Skip to content
July 6, 2009 / Shamal Karunarathne

Switching to Linux OS @ work

This week, I switched to Fedora 11 at (my career provider). There are a lot of interesting stuff. The desktop effects seem attractive.

But, I encountered a problem while remote accessing the server (which is running on CentOS) using NX. The keymap from Fedora 11 was not compatible with the keymap in CentOS. Therefore I had to monitor the keystrokes received at the remote machine using ‘xev’ command (try it, it’s quite interesting. It shows all the details of the inputs received. mouse moves, keystrokes etc.).

And then I had to create a shell script that run all the time I log in using NX.

echo “changing key maps”
xmodmap -e “keycode 113=Left”
xmodmap -e “keycode 114=Right”
xmodmap -e “keycode 111=Up”
xmodmap -e “keycode 116=Down”
xmodmap -e “keycode 110=Home”
xmodmap -e “keycode 108=Alt_R”
xmodmap -e “keycode 110=Home”
xmodmap -e “keycode 118=Insert”
xmodmap -e “keycode 119=Delete”
xmodmap -e “keycode 112=Prior”
xmodmap -e “keycode 117=Next”
xmodmap -e “keycode 115=End”
xmodmap -e “keycode 105=Control_R”
xmodmap -e “keycode 109=NoSymbol”

Now it seems quite ok. If you know a better method, pls do comment.



Leave a Comment
  1. Azroy Kandan / Jul 10 2009 2:09 am

    So you’re using Fedora at work? How has it been so far?

    Was also wondering why Fedora, and not some other Linux distribution like Ubuntu? Was there a reasoning behind it, or is it a company standard?

    • Shamal Karunarathne / Jul 10 2009 9:47 am

      I’m impressed with fedora 11. Well, I didn’t do any deep researching about which version is better (ubuntu, fedora etc..) Darren and I decided Fedora would be good and then I downloaded and installed.
      Fussion desktop effects are awsome. You should try it.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: