Skip to content

Instantly share code, notes, and snippets.

@bhaskar253
Created November 19, 2020 04:41
Show Gist options
  • Save bhaskar253/2b4d13c57a6b8495c4ba0cbc4ad7f6c4 to your computer and use it in GitHub Desktop.
Save bhaskar253/2b4d13c57a6b8495c4ba0cbc4ad7f6c4 to your computer and use it in GitHub Desktop.
Changing Keyboard Layout on Raspberry Pi
By default, the keyboard layout is set for UK on Raspbian OS, to set it to US following are the steps:
1. Launch Terminal
2. Open “/etc/default/keyboard” with nano (or any other editor).
sudo nano /etc/default/keyboard
The file should be like this:
# KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page.
XKBMODEL="pc105"
XKBLAYOUT="gb"
XKBVARIANT=""
XKBOPTIONS=""
BACKSPACE="guess"
3. Edit XKBLAYOUT line. "gb" needs to be changed to "us".
XKBLAYOUT="us"
4. Reboot
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment