Install locales and set default locale with
$ sudo -s # raspi-config
To set the keyboard layout to "us" in /etc/default/keyboard
$ cat /etc/default/keyboard # KEYBOARD CONFIGURATION FILE # Consult the keyboard(5) manual page. XKBMODEL="pc105" XKBLAYOUT="gb" XKBVARIANT="" XKBOPTIONS="" BACKSPACE="guess"
do it ... save a copy of the original keybord in keyboard.0 and reboot the system
# cd /etc/default/ # perl -i.0 -p -e 's/gb/us/g;' ./keyboard # shutdown -r now
Raspberry Pi set keyboard layout to US