The first time I used a Raspberry Pi years ago, I got frustrated that I could not connect to the WiFi Network. So I tested on the text editor if I am typing the correct password. As it turns out, pressing the backslash (
\) on the keyboard will type the hashtag symbol (
#), and if I press
2 will type double-quotes (
") instead of At sign (
The reason for the incorrect characters being typed is by default the Raspberry Pi is set to use a UK-based keyboard layout. To correct this, we need to reconfigure the keyboard layout to the ones we are using.
In my case, I am using a US-based keyboard layout. In the tutorial below that is what I am going to use. You can select the keyboard layout that you are using.
There are several ways to update the Keyboard Layout in a Raspberry Pi, you may choose which one you prefer on the list below.
- Set Keyboard Layout via Raspberry Pi Configuration (Desktop)
- Set Keyboard Layout via raspi-config (Terminal)
- Set Keyboard Layout via First Run Setup of Raspberry Pi Desktop
- Set Keyboard Layout via Raspberry Pi Imager