Raspberry Pi: My Keyboard Layout is Funny

Alright, so you followed my last tutorial to get your ancient (which is only 4 or 5 years old nowadays) monitor working with your Raspberry Pi.  Once you got over the initial excitement of seeing the Pi boot, you might’ve gone into the terminal and noticed something funky going on – your keyboard was not working!  How on earth can you be expected to do anything at all without a pipe* key?!

*This little guy “|”.  Don’t worry, I didn’t know what he was before terminal, either.

Not to worry, I can tell you what’s wrong and how to fix it.
Note: We love Great Britain – they gave us the Pi, after all!
Problem #1:
Keyboard is not working when you boot Raspbian
Raspbian’s default keyboard layout is British!  We need to change it to the U.S. layout.
Problem #2:
I have no idea how to change the keyboard layout
This is easy-peasy, mainly because no pipes are involved.
First, check to make sure you have Nano.  It is an amazing text editor that works directly in your terminal.
sudo -s
apt-get install nano
If you don’t have it, get it.  It’s awesome and will let you do this next step.
Just type in:
sudo -s
nano /etc/default/keyboard
Now we can see this little line in your keyboard layout file that says:
That stands for Great Britain and Unattainable Pipes.  Change it to:
And save (Ctrl-X -> Y).
Now before you start spamming the backslash key and getting angry, let your Pi know that you want it to drop the accent:
Once the system is back, you can enjoy your proper keyboard layout!
If you’d like an example script to type on your newly formatted keyboard, try our Performance Monitor – you can see how hard you’re making your little board work!

Leave a reply:

Your email address will not be published.

Site Footer

Initial State