Switching Your Keyboard Layout on Raspbian
09 Feb 2015Being in the United States and using a keyboard with the US layout, I was experiencing issues typing on my Pi. Hitting the @ key was displaying quotes. This led me to a symbol guessing game that got old quick.
The issue is raspbian has a default Great Britian keyboard layout. The Pi is made in the UK, so this makes sense. But I’ll need to switch the settings.
We need to locate the file where this setting is stored.
Open the file in an editor.
We are looking for XKBLAYOUT=”gb”
The ‘gb’ means the keyboard is currently set to the Great Britian layout.
Switch this value according to your desired keyboard layout.
- ‘us’ for United States
- ‘de’ for Germany
- ‘fr’ for France
Save and exit (command + x, answer yes)
After rebooting you should now have the correct keyboard layout!