Changing The Language & Keyboard Layout On Various Distributions

This document describes how to reconfigure the default language and the keyboard layout on various distributions so that they suit your location. I made this howto for our VMware images where the keyboard layout is always set to German and a few users have problems to configure the language and keyboard layout on these images.

This howto is a practical guide without any warranty - it doesn't cover the theoretical backgrounds. There are many ways to set up such a system - this is the way I chose.


1 Preliminary Note

If you're using a system with a desktop environment like Gnome or KDE you should use its tools to configure the default language and the keyboard layout. In the following steps I'll show you how to change the default language and the keyboard layout within the console on various distributions.


2 Fedora 8 Server / CentOS 5.x

2.1 Default Language



2.2 Keyboard Layout



3 Debian Etch Server

3.1 Default Language

dpkg-reconfigure locales


3.2 Keyboard Layout

dpkg-reconfigure console-data


4 Ubuntu 7.10 Server

4.1 Default Language

sudo set-language-env -E


4.2 Keyboard Layout

sudo dpkg-reconfigure console-setup


5 Mandriva 2008 Server

5.1 Default Language



5.2 Keyboard Layout



6 Suse 10.X Server

6.1 Default Language


Select "System" on the left side and then "Language" on the right side. Change the language and save the settings with "Accept"


6.2 Keyboard Layout


Select "Hardware" on the left side and then "Keyboard Layout" on the right side. Change the keyboard layout and save the settings with "Accept".


Share this page:

Suggested articles

7 Comment(s)

Add comment



Here is instructions for localization of Gentoo:

General Linux:

But this howto can be coocked down to:

To change temporary (until reboot) loadkeys sv-latin To change temporarily to swedish keyboard layout.

And to verify that the keyboard layout is correct use the command: showkey

Permanent setting (RHEL, CentOS and Fedora):
Edit /etc/sysconfig/keyboard and replace KEYTABLE="us" by KEYTABLE="sv-latin1"
save and reboot.

To find whitch keyboard layout maps that is available is in the map /lib/kbd/keymaps/i386/... or /usr/share/keymaps/i386/..., depending on which distro is used.

By: Rebuon

In Puppy Linux's terminal it's with this command:

setxkbmap -layout us

The example is for the USA keyboard layout. For other layouts replace us with the corresponding code (for example es for Spain).

Taken from

By: Dincer Kavraal

Unless  you have xserver using primitive terminal, you can have your keyboard layout installed by:

 # sudo dpkg-reconfigure keyboard-configuration

 (at least for ubuntu 11.04 natty)


By: falcon7700

# sudo dpkg-reconfigure keyboard-configuration

This command also works well on Debian (6.0 squeeze) at the command line.

By: Anonymous

How about showing how to do it without some lame script wrapper?  Prove that you know what you are doing ;-)


My keyboard types " when I press the @ key and vise versa.   I need to reverse this.   Need help very badly.

By: wallymetle

i am so satisfacted. greetings wally