Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I accidentally set my keyboard type to US during installation, but it actually is UK type. How do I change it?

[note] I use Debian Squeeze.

share|improve this question
up vote 7 down vote accepted

The Debian way is:

dpkg-reconfigure keyboard-configuration
dpkg-reconfigure console-data

To make the change visible in X (else reboot):

/etc/init.d/hal restart
share|improve this answer
Regarding HAL, which version of Debian are you talking about? AFAIR X in Squeeze doesn't need HAL. – Tshepang Feb 13 '11 at 19:37
The HAL part is optional, just reboot your X server. – shellholic Feb 13 '11 at 19:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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