Clone wiki

rpi-emulator / RPi_tips

RPi tips

Some tips regarding setting up and using the Raspberry Pi

Setting up US keyboard

One of the first things you notice when you install a fresh OS image from RPi foundation is that the keyboard behaves weirdly (try to type characters like '|' and '#' and see what happens...).

That's because RPi originates in the UK, where the popular keyboards have British layout. If you live in another country, you probably have other keyboard layouts - most likely a US one. So, to change the keyboard layout to US (or whatever other layout you want), type:

sudo nano /etc/default/keyboard

then, on the 6th line, replace the existing contents (XKBLAYOUT="gb") with:

XKBLAYOUT="us"

This should fix the keyboard on the next reboot. But if you want immediate results, without having to reboot, type:

sudo setupcon

Updated