The Smorgasbord:  Gadget reviews, geek blog

Archive for the ‘ubuntu linux’

Installing Windows ttf True Type Fonts in Linux06.29.07

You can download and install thousands of free windows .ttf true type fonts from the web and install and use them in Ubuntu (or any distro) Linux.

Just download the fonts you want from free online web sites and archives (listed below), if necessary – unzip them to the desktop or another directory of your choice.

Then create a directory for your new fonts where the fonts are stored on your system. This is the location in Ubuntu Linux – your Linux distribution may be similar:

$ sudo mkdir /usr/share/fonts/myfonts

Then open your terminal to install them:

$ sudo cp /home/user/Desktop/*.ttf /usr/share/fonts/myfonts/

and refresh your font cache like this:
$ sudo fc-cache -f

Now open Open Office Writer or Gimp, and your fonts should be available! You can access your new true type fonts in any graphics, design, text based document application that uses fonts.

Here are some free archives to download fonts from. They will be listed as Windows true type fonts (ttf), but there are completely usable in all Linux distributions. A lot of font sites you’ll find on google are loaded with popup, ads, and garbage. I tried not to list any of those here, these are some of the best font sites I could find without “nagging” ads and crap.

Fonts 101

Abstract Fonts

1001 Free Fonts

Font Reactor

TypeNow

Font Village

EKNP Free Fonts

originally posted: 2006-05-16 09:58:47 -0400

Posted in fonts, ubuntu linuxwith 3 Comments →

Firefox Browser in Ubuntu Linux06.29.07

Firefox comes installed in Ubuntu linux 5.10 by default. If you install the normal Ubuntu with the Gnome desktop, the earth logo on the top toolbar opens firefox. You can also get there by using ‘applications->Internet’.

The nice thing about Firefox is that it works the same in Linux as it does on Windows. Also the skins and extensions aren’t platform specific – so if you were used to certain ones in Windows, you should be able to install them all right here in Linux.

Firefox is very stable in Ubuntu – I haven’t had a single problem with it. Be sure to read the extensions thread – Firefox is best when customized just for you and the ways you work the web!

originally posted: 2005-11-23 22:54:24 -0400

Posted in firefox, ubuntu linuxwith Comments Off

How to install second hard drive in Ubuntu Linux06.29.07

So you’ve been using linux for awhile now, and it’s time to install another hard drive for some more storage? Maybe it’s finally time to wipe out a Window’s or NTFS partition.

In any event, I wrote this post so you would have a little help through this step. I’m going to assume that you already know how to install a hard drive. I’m also going to assume that you knew how to make it a master or slave, you’ve checked to make sure that it shows up in bios, and that it was intalled properly. It also assumes you’ve already formatted your drive in linux ext3 format, using a tool like gParted, or something similar.

If you’ve done all of these things, then boot up your system – and let’s get going. I’m using Ubuntu linux – formerly Breezy 5.10, but I’ve recently upgraded to Dapper 6.06.

Open up a terminal window and run the following command:
$ sudo fdisk -l

You should get a listing of the hard drives installed on your computer. There will be a little paragraph for each one that will look like this:


Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 4678 37576003+ 83 Linux
/dev/hda2 4679 4865 1502077+ 5 Extended
/dev/hda5 4679 4865 1502046 82 Linux swap / Solaris

In windows disk drives are assigned an alphabet letter, and traditionally – floppy disk drives were a: and / or b:, and the main hard drive was c:/. Then the first cdrom or dvdrom was d:/, and any additional drives would be e:, f:, and so on. In linux it’s kind of the same, but in a different format. All hard drives installed are listed in the ‘device’ or /dev directory. All drives start with the appendage “hd” (I think for ‘hard drive’).

So, if you have 2 hard drives and one cdrom – then you have 3 devices. You have a hda, hdb, and hdc. The number of partitions comes next. If your main hard drive is linux – and you have 3 partitions, then you’ll have a hda1, hda2, and hda5. The partition numbers aren’t in a logical order – hda5 is always the swap partition.

So know, if you see your hard drive listed in the sudo fdisk -l, then you know you can mount it. Your computer has a startup file that tells it what to mount when it boots. We need to edit this file and add the new drive.

But first we have to create a directory. We have to create what’s called a “mount point”. A mount point is a virtual directory. It’s like saying – mount that hard drive from this directory.

The most logical place to create the mount point for the new hard drive is either the /mnt or /media folder. Many would say that /mnt is the only place it should be – the mount folder. However, Ubuntu always mounts all dvd, cd, and removable media in /media. I chose to make my mount point here for just that very reason.

Think of what you want to call the new mount point name. Just make sure you don’t use any special characters or spaces in the name. I called mine linuxstore. Now, in terminal run the following command substituting my mount point name for yours:
$ sudo mkdir /media/linuxstore

Next, here’s one of the most important things….and somethng that I didn’t find in any of the articles on the web when I was trying to figure out how to do this. You have to make the mount point directory ‘writable’. In other words, you have to give it writable permissions. They have to be world-writable permissions since you aren’t a member of the ‘root’ group in which all mount points are owned.

So, now you want to run the following command (again substituting my mount point name for yours):
$ chmod 777 /media/linuxstore

If you want to mount your drive right away, and you don’t care if it’s mounted automatically every time you boot – then in terminal run the following command:
$ mount /dev/hdd1 /media/linuxstore

There! Now you are temporarily mounted. But…if you want it to be permanent, you need to edit your filesystem tab file. Run the following command in terminal:
$ gedit /etc/fstab

The text editor window will appear with the fstab file loaded up. You will see something that looks kind of like this:

# /etc/fstab: static file system information.
#
#
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda5 none swap sw 0 0
/dev/hdb1 /media/hdb1 ext3 defaults 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

All you have to do is add a new line for the new drive…
I will add the following line to my fstab for my new drive:

/dev/hdd1 /media/linuxstore ext3 defaults 0 0

Just be sure to substitute both the name of my hard drive for yours (mine is hdd1, is yours hdc1 or another name?), and my mount point hame for yours. Then save the file.

Now you will have the new hard drive mounted and writable both every time you boot. In Ubuntu, you should find your new drive listed under your ‘Places’ menu. To make the hard drive show up right now, without rebooting – just reload your fstab file with the following command:
$ sudo mount -a

Now you’re done! Enjoy your new storage drive in Linux!

originally published: 2006-06-04 13:28:53 -0400

Posted in ubuntu linuxwith 16 Comments →





  • My name is John Pratt and I like all kinds of geeky, gadget tech stuff. I maintain web sites, write a little code, fool around with Wordpress, Ubuntu, play lead guitar in a band, and have a general fondness for computers electronic 'thingies'!

  • Get Updates via Email: