This blog is subject the DISCLAIMER below.

Tuesday, February 27, 2007

Linux Tip #3 : Using Arabic keyboard

It is really simple to use Arabic in Linux. This command enables it:
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,ar

You can make this command run each time the computer starts by adding to ~/.bashrc .

This command in short, set the switch keys to alt-shift (left alt and left shift), the mode of this key is to toggle, and it specifies that the state of the scroll-lock LED will show the language currently used. Use 'man setxkbmap' for more details on advanced use.

4 comments:

Shereef Sakr said...

You can also do this without the shell.

System->Administration->Language Support

A list of languages will show up, you need to choose arabic from it, then give it an ok.

System->Preferences->Keyboard

Go to the layout tab and click Add

A list of keyboard layout will show up, choose Arabic(qwerty).

Then go to the Layout Options tab and click on Group shift/lock behaviour then mark ALT+Shift changes group.

Close this windows and you are done.

Magdy Wageeh said...

I added this command to ~/.bashrc, but it does not run when my computer start!!!

Mohammad Nabil said...

System->Preferences->Sessions->Startup programs. There's I've added my script 'file'. I saved it in /usr/local/bin first.

faisal said...

how can i add the command to ~/.bashrc