Raspberry Pi with Linux LESSON 11: Fixing Problem with Keyboard and Special Characters

The standard boot configuration of the Raspberry pi can lead to some characters not working properly on US keyboards. In particular, the shift-number characters like !,~,# can not be where you expect them. The easiest way to fix this is to edit the nano /etc/default/keyboard file. The following should fix things for you.

$ sudo nano /etc/default/keyboard

Then on the line for XKBLAYOUT change it to:

XKBLAYOUT=”us”

That should make your pi work properly with most US keyboards.

2 thoughts on “Raspberry Pi with Linux LESSON 11: Fixing Problem with Keyboard and Special Characters”

  1. Thanks Paul, this keyboard stuff was really helpful.
    After your instructions however, I had to boot the Raspberry
    to correctly display the keybord shift symbols. I guess the “gb”
    stood for Great Britain as the Pi is manufactured in GB.
    This little Pi is really cool !!!
    I.G.

  2. I did this but I am still not getting the right characters. Is there anything else I can do to correct it? Thanks!

Comments are closed.