My USB keyboard was configured slightly wrong. So far I have only tried it with the Debian image. Certain keys were not in the right place (such as the '~' character). I know how to change the keyboard configuration and that this is trivial for many Linux users. However, in the interest of benefit to the Raspberry Pi community (especially those fairly new to Linux), I was wondering if there's a simple way to automatically set up a keyboard to correct these sorts of issues.
You need to reconfigure you keyboard mappings. At the command line type:
sudo dpkg-reconfigure keyboard-configuration
Follow the prompts. Then restart your RasPi.
sudo nano /etc/default/keyboard
find the line where it says
and change the gb to the two letter code for your country (e.g. US).
And restart your RasPi.
If after remapping your keyboard you get a long delay in boot up during the keyboard mapping phase type the following (once) on the command line:
I ran into this same issue and the second step of AndyD's reply to this question on the raspberrypi.org forum suggests an alternative to restarting.
Use the command:
$ sudo dpkg-reconfigure keyboard-configuration
to reconfigure your keyboard. Choose English (US) for keyboard layout (second page of configuration). Then either reboot or
$ invoke-rc.d keyboard-setup start
to reload the keymap.
The debian image I am using defaulted to a UK keymapping which made the pipe (|) key inaccessible using my 104-key US keyboard (as far as I can tell) and remapped the tilde (~) to the pipe key. It felt odd not being able to pipe output.
I goofed earlier today when I did a new install. I ran across this post and it was helpful. I would like to point out that when I re-installed a new image on another device, it appears as if the "UK Keyboard" is the default keyboard layout. At the very bottom of the screen (during Raspbian) of the setup, you should be able to select different keyboard layouts.
protected by Community♦ Apr 24 '15 at 0:09
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?