Sunday, May 25, 2008

Fedora 9(Sulphur) + Wireless + SCIM

My Fedora 6 (Zod) crashed a few days ago and instead of fixing it I decided to go for the latest version - Fedora 9(Sulphur).

Everything went pretty well. There was a small problem with network cards. I had to select the checkbox 'Controlled by NetworkManager' under 'Device Configuration' window that pops up when you double click on the device in 'Network Configuration' & Devices tab. 'Network Configuration' pops up by selecting System->Administration->Network

I restarted the network service and now it did detect my wireless card and I didn't have to do anything special and could start using it immediately.

There was one more wierd problem though. I use SCIM to type in Marathi. I was not able to enter the hotkeys using 'SCIM setup'. It just refused to accept the keys. No matter what I did, It was refusing to accept any Key Code.

I basically wanted to enter the hotkeys for 'Trigger' under 'Global Setup'.

If you have same problem, this is how you can solve it.

The configuration data for the scim is stored in ~/.scim/config file.
Edit the file and add words "= Control+space" on line /Hotkeys/FrontEnd/Trigger.

After that just restart scim or 'Reload Configuration' by right clicking on the scim icon.

Now it should work for you. I can switch between English and Marathi using Control+space.

Friday, March 7, 2008

Linux Tips - 5

YUM - "Yello dog Updater, Modified" is the package management tool for Red Hat based linux systems like Fedora, CentOS and others. It uses rpms to install/uninstall packages.

New users can use yum pretty easily. But sometimes you wonder where the package got installed.

Lets say we have just installed the CD/DVD writing software k3b using yum but don't know where exactly it has been installed.

Here is how you can find out the directory where the package gets installed.

[amit@localhost ~]$ rpm -qa | grep k3b

Use above command to find out the exact package name. Note that the same package name, but in upper and lower cases are considered to be different packages by grep. It will give output something like this

[amit@localhost ~]$ rpm -qa | grep k3b
k3b-extras-0.12.17-1.fc6
k3b-0.12.17-1
k3b-extras-nonfree-0.12.17-3.lvn6

Now use following command to find out the directories where k3b related files are installed. Substitute the argument with your package name.

[amit@localhost ~]$ rpm -ql k3b-0.12.17-1

Depending on the software it may show hundreds of directories. The executable file would be mostly the one that is under /usr/bin or /usr/share/apps/

It will also show you other details like where the documentation is stored, where the icons are stored, where the header files are etc.