As Ubuntu user (with GNOME environment) it is quite simple to add arabic layout, by choosing keyboard layouts on preference menu. but if you use LXDE/LUBUNTU, it’s little problem…if you setting the Lxkeymap, it will make your setting totally different. so, if you want to change your LXDE keyboard layout in arabic, just type in teminal:
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,ar
after that, if you want to change the LXDE keyboard layout, just prest Alt+Shift on your keyboard…..
Update:
- if you want to make it automatically when you reboot your PC/Laptop, just download this script and put it on your /usr/bin/ folder, then excute it on your lxsession autostart. Don’t forget to change the permission, ex: sudo chmod -R 777 /usr/bin/arabic.sh
- Add the autostart script by typing: sudo vim /etc/xdg/lxsession/YOURSESSIONHERE/autostart
- then add your script by typing : @arabic.sh, save it and reboot…enjoy arabic layout on your LUBUNTU/LXDE




Thanks! It really helps. But can it be permanent? Each time I reboot/ shutdown and restart, I need to do it all over again.
see my update above, if you want to make it automatic when you reboot your pc/notebook, add my shell script to your /usr/bin/, then edit your lxsession autostart and add the script there
an easy way to make the changes permanently is
1- go to ~/.config/autostart
2- create a .desktop file
3- copy & past the following
[Desktop Entry]
Encoding=UTF-8
Comment=Arabic Keyboard
Exec=setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,ar
Terminal=true
I have a new Momo9 ployer tablet pc, its arabic display is showed character by character and in the opposite direction, does the solution mentioned with Mr. Ahmad solves the problem? or there is another solution.
Thanks.
Jean