Wednesday, July 11, 2012

Changing Keyboard Layout in Linux

Here's my learning for today, although I learned a lot just getting a picture on here and uploading it. (Once I added a USB hub it was a snap.) Open the LXTerminal and type setxkbmap -layout us. The LXTerminal is pretty fancy in that you can even get a right click menu on it (to copy from and to).

Here's my source: http://how-to.linuxcareer.com/linux-command-line-basics-for-beginners-part-3

1 comment :

Erik N. said...

So the above turns out to only apply to the X environment. To change the console keyboard layout I finally found the answer in a Raspberry Pi forum:
"sudo dpkg-reconfigure keyboard-configuration
Follow the prompts. Then restart your RasPi.
Or:
From the command line type:
sudo nano /etc/default/keyboard
Then find where it says
XKBLAYOUT=”gb”
and change the gb to the two letter code for your country."
I had found that first solution but it didn't seem to be working because I didn't know to reboot. D-oh!