To change the keyboard layout when you are using an Emulation do:
- Enter Console (Alt-Ctrl-F1)
- Login as root (just hit Return, no password needed)
- type
- Code: Select all
loadkeys xy
where xy is your keyboard layout shortcut, e.g. "de" for german layout.
(be careful: as you havn't changed your keyboard layout when you type the command, you might have to hit the key "z" to get an "y" and/or the key "q" to get an "a".)
- Edit /etc/sysconfig/keyboard (this changes the keyboard layout within SUGAR)
- Code: Select all
vi /etc/sysconfig/keyboard
"a" starts edit-mode (insert after cursor)
change "us" to your keycode two times.
Leave edit-mode (ESCAPE)
type ":wq" and hit Enter to write the changes and quit the editor
If you produced a chaos and want to quit without writing the changes, type ":q!"
- Edit /etc/rc.d/rc.local (this changes the keyboard layout permanently for the console)
- Code: Select all
vi /etc/rc.d/rc.local
"a" starts edit-mode (insert after cursor)
move the cursor to the end of the file, hit RETURN to create a new line.
type "loadkeys de" (or whatever keycode you want)
Leave edit-mode (ESCAPE)
type ":wq" and hit Enter to write the changes and quit the editor
If you produced a chaos and want to quit without writing the changes, type ":q!"
If you don't know the mapname/code for your keyboard layout, go to /lib/kdb/keymaps, switch to the subdirectory that covers your architecture (eg "i386" for Intel-platforms), and then enter the subdirectory which covers your keyboard type (look at the first six letters on the upper left of your keyboard to distinguish the "azerty", "qwerty" or "qwertz" layout type). In the subdirectory, you find some keymaps for your keyboard layout - find out which one fits your keyboard exactly. The keymap code is the filename without "map.gz".
Valid examples (among others) are:
"by", "cf", "cz", "dk", "emacs", "es", "et", "fi", "gr", "hu101", "il", "is-latin1", "it", "jp106", "ko", la-latin1", "lt", "nk", "nl", "no", "pc110", "pl", "pt", "ro", "ru", "se-latin1", "sk-qwerty", "sr-latin", "sv-latin", "trq", "ua", "uk", "us" (QWERTY)
"cz-us-qwertz", "de", "croat", "fr", "fr_CH", "sg", "sk-qwertz", "slovene", "hu" (QWERTZ)
"azerty", "be-latin1", "fr", "wangbe" (AZERTY)
If those examples don't fit your keyboard layout exactly, please have a look into the directories for yourself to look for alternatives or define your own keymap (see
http://wiki.linuxquestions.org/wiki/Con ... eys_Method for instructions)