I have a Pi 2 running Raspian. It has USB keyboard attached. I have to use "shift +" to get @ sign.

How can I get the @ on the keyboard to work?


2 Answers 2


You've probably have it set to a different country than you are used to. Execute the following in the command line:

sudo nano /etc/default/keyboard

Then, find where it says XKBLAYOUT=”gb” and change the gb (or anything else) to the two letter code for your country.

If you are from the US, it should read like so:


Save and exit: Ctrl+X, Y, Enter

  • No problem, I find that easier than going into the config and looking for it there. @Reddirt
    – Dylan
    Commented Mar 23, 2016 at 15:34

You need to reconfigure your keyboard layout. Use:

sudo dpkg-reconfigure locales

To reconfigure it and follow instructions on screen. To use standard layout check us_US.UTF-8 locales.

Not the answer you're looking for? Browse other questions tagged or ask your own question.