Configure the locale and keyboard layout in Raspbian

I have a keyboard with the spanish layout (with the “ñ” key, etc.) but Raspbian comes by default only with the english locale and keyboard layout. To make my keyboard work correctly I first added the spanish es_ES.UTF-8 locale on the system:

$ sudo dpkg-reconfigure locales


Then configure the keyboard layout:

$ sudo dpkg-reconfigure keyboard-configuration


Look that last option “Other” because you’ll have to use it if you want to select a language diferent than english.





You may also change the time zone to your country:

$ sudo dpkg-reconfigure tzdata

Now reboot to activate all the changes:

sudo shutdown -r now


You might also like

Fix locale problems in Raspbian
If you get errors like this while running commands on your Raspbian:perl: warning: Setting locale...

Install script for XBMC in Raspbian
# Install XBMC sudo sh -c "echo 'deb wheezy contrib' > /etc/apt/sources.list.d/mene.list" sudo...

Enable SSH server in a headless Raspberry Pi
Raspbian come by default with SSH server deactivated so if you have a headless Raspberry Pi you won't...

Fix ‘A template that extends another one cannot have a body in …’ in Twig with Symfony2
This may be a confusing error at first but it's quite self explanatory. You can't have any HTML text...

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.