Differences between revisions 23 and 24
Revision 23 as of 2012-07-03 10:56:56
Size: 2934
Comment: Fix spelling.
Revision 24 as of 2012-07-13 16:35:54
Size: 2933
Editor: Calinou
Comment: Typo fix. :}
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
You can change your keyboard settinggs by: You can change your keyboard settings by:

Translation(s): English - Italiano - Русский

(!) ?Discussion

http://www.debian.org/logos/openlogo-nd-50.png http://www.debian.org/Pics/debian.png

Portal/IDB/logo_portal.png Welcome to the Debian portal for keyboard information

The keyboard settings are stored in /etc/default/keyboard. This file provided by keyboard-configuration package and other packages use this information in order to configure the keyboard on the console or in X Window.

You can change your keyboard settings by:

$ sudo dpkg-reconfigure keyboard-configuration

As usual it will prompt you for the model of keyboard (what the keyboard *is*), and then for the keyboard layout (what the keys should *do*). Use this tool to change your keyboard map e.g from qwerty to qwertz, or to dworak, or for non-English layouts.

  • Keyboard layout (keymap), see debian-reference.

  • "dpkg-reconfigure --priority=low xserver-xorg" suggested by the above linked page does not work in Squeeze. You may try to add something like "setxkbmap us,ru -option grp:ctrl_shift_toggle" into ~/.xsessionrc instead.

  • Configure additional multimedia key

Set Keyboard Layout in initramfs

The file /etc/initramfs-tools/initramfs.conf must be changed to have the localized keyboard layout at boot time:

# KEYMAP: [ y | n ]
# Load a keymap during the initramfs stage.


Apply changes.

# update-initramfs -u

Enable USB Keyboard in initramfs

The initramfs-tools must include the usbhid module and its dependencies for USB keyboard support at boot time. Either the configuration file /etc/initramfs-tools/conf.d/driver-policy must include most modules, or they will have to be specified in another file:

# MODULES: [ most | netboot | dep | list ]
# most - Add most filesystem and all harddrive drivers.
# dep - Try and guess which modules to load.
# netboot - Add the base modules, network modules, but skip block devices.
# list - Only include modules from the 'additional modules' list


If the configuration above was not set to include most modules then the necessary modules have to be specified in the file /etc/initramfs-tools/modules:

# USB keyboard at boot

Apply changes.

# update-initramfs -u