In this tutorial, you will see how to change the keyboard layout on your Raspberry Pi. This will allow you to access all of the necessary characters available in the language of your desire, as well as give you an opportunity to switch between a QWERTY or other type of keyboard layout. We will assume that you are using the official Raspberry Pi OS, from which the keyboard layout can be configured via both command line and GUI.
In this tutorial you will learn:
- How to change the keyboard layout on Raspberry Pi via command line
- How to change the keyboard layout on Raspberry Pi via desktop GUI
|Category||Requirements, Conventions or Software Version Used|
|Other||Privileged access to your Linux system as root or via the
# – requires given linux commands to be executed with root privileges either directly as a root user or by use of
$ – requires given linux commands to be executed as a regular non-privileged user
How to change keyboard layout on Raspberry Pi step by step instructions
We will cover two methods below, both command line and GUI. Feel free to choose whichever method is the easiest for you.
Change Keyboard Layout via Command Line
- Start by opening a command line terminal and typing the following command to open the
raspi-configutility with root permissions:
$ sudo raspi-config
- Next, open the ‘Localisation Options’ menu.
- Next, open the ‘Keyboard’ menu.
- Here you can select the keyboard layout. Note that this is not the language selection (we will do that next). For the majority of keyboards, you will want to select the Generic 105-key PC option.
- Next, select the language that you want to use for your keyboard. If something other than English, you may have to scroll down to the bottom and select ‘Other.’
- Finally, choose the language that corresponds to your keyboard.
- Choose additional options for the
AltGrkey, or just accept your keyboard’s default settings:
- Do the same thing for the
- Choose what you want the
Ctrl + Alt + Backspacebehavior to do:
Change Keyboard Layout via Desktop GUI
- Start by opening the application launcher, then navigating to Preferences > Keyboard and Mouse.
- Under the Keyboard tab, click on the Keyboard Layout button.
- In this menu, select your keyboard model, the language, and the variant (or dialect) to use. Then, click OK.
In this tutorial, we saw how to change the keyboard layout on a Raspberry Pi system. We can change our keyboard layout at any time via both command line and GUI, in case we switch keyboards to a different type of layout or language.