It is realy simple. What you need to do is:
1) Login as root
2) Go to
/etc/X11/ and make a copy of
xorg.conf file to some safe place, so in case if you get something wrong, you could place it back and regain what you already have.
3) double click on the
xorg.conf file (the file in
/etc/X11/, not the copy)
4) scroll down untill you will see (if you have only english layout)
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbLayout" "us" ## KEYBOARD_MAP!
Option "XkbModel" "" ## KEYBOARD_MODEL!
Option "Xkbvariant" "" ## KEYBOARD_VARIANT!
EndSection
5) if you need to install aditional layout( russian, for example), you need to add:
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbLayout" "us,ru" ## KEYBOARD_MAP! #additional layout
Option "XkbOptions" "grp:ctrl_shift_toggle,grp_led:scroll" #Ctrl-Shift layout switching key combination
Option "XkbModel" "" ## KEYBOARD_MODEL!
Option "Xkbvariant" "" ## KEYBOARD_VARIANT!
EndSection
cursive - my coments, do not add them:-)
If you need to add not a russian layout, then instead of
ru you need to put your layout code. I hope someone will help you to find out, for which language which code is needed.
6) reboot
7)(optional) add keyboard layout switcher(in XFCE) at your panel: right click at the panel, add new item, keyboard layout switcher.
Thats it.
Ps.
If someone knows any other language layout codes beside
ru and
us, please post them here:-)