Tuesday, July 8, 2008

89. Setting Keyboard layout

I my Ubuntu 8.04 I have problems with remembering the keyboard layout. I want to have the Polish layout but unfortunately every time I restart my laptop I need to go to System -> Preferences -> Keyboard -> Layout Tab and select the Polish layout, etc. Then it works.

https://help.ubuntu.com/xubuntu/desktopguide/C/switch-keyboard-layout.html

I will try this above that is:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BACKUP

Find the section that looks like this:

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Change "us" to whatever language code you prefer. Next, type this from a terminal:

setxkbmap

And ... it looks as it works.