up vote 2 down vote favorite
share [g+] share [fb]

How can you change the keyboard layout (to QWERTY from QWERTZ) on the fly from a Linux shell?

I found this similar question, but the answer was to edit a config file, which is not so easy when you're using a Live CD.

link|improve this question

38% accept rate
feedback

3 Answers

up vote 2 down vote accepted

setxkbmap

link|improve this answer
+1 because you beat me to it :) – ricbax Nov 3 '09 at 4:42
I never said I was running X... I am actually, but do you know how to do it from the console? – Hugh Allen Nov 3 '09 at 10:17
feedback

I'm not aware of any tool that changes keymap on-the-fly, but in at least debian it is possible to edit /etc/default/console-setup with your preferred map, and make the system reflect those changes by issuing /etc/init.d/hal restart.

link|improve this answer
feedback

kbdconfig or loadkeys

That's how we used to do it. I don't know if they're still supported; I'll check next time I've got Knoppix running.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.