Changing Keyboard Layout on Raspberry Pi

 

By default, the keyboard layout is set for UK on Raspbian OS. So, if your keyboard is not UK layout, you may want to change it. Here is the steps.

1. Launch Terminal if you are on  graphical desktop mode.

2. Open “/etc/default/keyboard” with nano (or any other editor you prefer).

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. In case your keyboard is US layout, changed to “us”.

XKBLAYOUT="us"

4. Reboot the board.

sudo reboot

 

Sponsor Link

2 Comments

Comments are closed.