quickly debug something. But the key mapping is all wrong because the person
who installed the computer was a Armenian, Swiss German or what not.
You know the solution: loadkeys
But what mapping file? More often than not, I find no keyboard layout files.
This is annoying, because I really just want to fix a few things in the console
and then switch back to X11 and forget about it.
Try:
loadkeys -d
If this does not set the correct layout directly, it gives you at least
an idea where to look for keyboard layouts.
Permanently change the default keyboard mapping on the linux console.
For example to Swiss German (sg):
- login as root
- cd /usr/share/keymaps/i386/qwerty (your mileage may vary)
- mv defkeymap.kmap.gz not_my_defkeymap.kmap.gz
- cd ../qwertz
- ln -s sg-latin1.kmap.gz defkeymap.kmap.gz
- loadkeys -d
The point is to create a keyboard definition called defkeymap.kmap.gz
which will be loaded by default.