Saturday, December 15, 2007

MP3 support in Fedora

I really don't know what took me so long to figure this out (again). Since my latest installation of Fedora about 2 months back, I've been trying to hard to get it to play MP3s. Not that I didn't know how. I had done that before, 'N' times. But I just couldn't manage to do it again!!

Finally, cracked it today. Here's how:

$ yum install gstreamer-plugins-ugly

That's it! Yes, that's it. Just answer with y (yes) whenever your permission is required to proceed. Download size is just under 1 MB. It will enable MP3 support in Rhythmbox, the default media player under Fedora (GNOME)

Sunday, December 9, 2007

Regional language (Indic scripts / Complex scripts) support in Fedora

The following instructions have been tested to work correctly only for Devnaagarii script.

To enable Indic support, you need two things:

  1. A font having Indic character definitions
  2. A 'complex script' rendering engine
The first part is taken care of by the Arial Unicode MS font (see my Windows fonts tutorial). The complex script rendering engine in Fedora is called pango. I dont't kno about other applications, but its certainly required for Mozilla/Firefox.

Now Firefox can be 'built' from its source code either with the pango engine, or without it. The ordinary version that you download has been compiled WITHOUT pango. And although the source code is freely available for everyone to comiple, trust me, trying to compile it yourself is no easy task.

A better option is to use whichever version of Firefox that came with your Fedora installation.Such versions (1.5.0.7, in my case, on FC6) have been compiled using the pango engine, and that should make your task easier. However, you must take care to see to it that you use the older version only when you need Indic support. Older versions can have security vulnerabilities that can put your computer/data at risk.

A thing I consider extremely worthwhile mentioning is that multiple versions of Firefox can peacefully co-exist under Fedora. All you need to do is keep them in separate folders. You can make the default link poin to the latest version, and run the old version manually by executing

$ FIREFOX_HOME/firefox

where FIREFOX_HOME is the directory where your old Firefox installation resides. In my case it is /usr/lib/firefox-1.5.0.7

That done, you should be able to view regional scripts (Indic) correctly...!

Windows Fonts support in Fedora

To install Windows (.ttf & .fot) fonts in Fedora, do the following:

  1. Install MS Office in Windows XP with 'Complete' configuration
  2. Copy the C:\Windows\Fonts folder onto a removable media
  3. Log in to Fedora
  4. Insert the removable media
  5. Go to System > Preferences > Fonts > Details > Go to font folder
  6. Drag and drop the font files from the removable media directly into the 'Fonts' folder that opens
  7. Restart the system

(Tutorial courtesy: http://www.fedorafaq.org)