Keyboard layout on Ubuntu Server 11.04

Even if the locale was set on install (?) the keyboard layout may be wrong.

To fix this, do the following:
1. Open /etc/default/keyboard in an editor (with sudo), it looks like this:

XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS=""

Change the from XKBLAYOUT="us" to your language code, swedish for example is se, so  XKBLAYOUT="se" 

2. Save file.

3. Run sudo dpkg-reconfigure console-setup

4. Done

References:
http://igrudge.net/keyboard-layout-ubuntu-server-11-04/
http://www.ubuntu-se.org/phpBB3/viewtopic.php?t=31060

This is a personal note. Last updated: 2014-06-27 00:38:41.



GitHub

My

GitLab

My

LinkedIn

My

Klebe.se

Don't forget to pay my friend a visit too. Joakim