2002-03-10 19:55:10 +00:00
|
|
|
<sect2><title>Configuring your keyboard</title>
|
|
|
|
|
|
|
|
<para>Nothing is more annoying than using Linux with a wrong keymap loaded
|
|
|
|
for your keyboard. If you have a default US keyboard, you can skip this
|
|
|
|
section. The US keymap file is the default if you don't change it.</para>
|
|
|
|
|
|
|
|
<para>To set the default keymap file, create the
|
2002-03-28 12:16:23 +00:00
|
|
|
<filename class="symlink">/usr/share/kbd/keymaps/defkeymap.map.gz</filename>
|
2002-03-10 19:55:10 +00:00
|
|
|
symlink by running the following commands:</para>
|
|
|
|
|
2002-05-02 21:15:02 +01:00
|
|
|
<para><screen><userinput>ln -s <path/to/keymap> /usr/share/kbd/keymaps/defkeymap.map.gz</userinput></screen></para>
|
2002-03-10 19:55:10 +00:00
|
|
|
|
|
|
|
<para>Replace <path/to/keymap> with the your keyboard's map file. For
|
|
|
|
example, if you have a Dutch keyboard, you would run:</para>
|
|
|
|
|
2002-05-02 21:15:02 +01:00
|
|
|
<para><screen><userinput>ln -s i386/qwerty/nl.map.gz /usr/share/kbd/keymaps/defkeymap.map.gz</userinput></screen></para>
|
2002-03-10 19:55:10 +00:00
|
|
|
|
2002-05-16 19:40:04 +01:00
|
|
|
<para>A second option to configure your keyboard's layout is to compile
|
2002-04-05 21:26:49 +01:00
|
|
|
the keymap directly into the kernel. This will make sure that your
|
|
|
|
keyboard always works as expected, even when you have booted into
|
2002-10-06 16:50:25 +01:00
|
|
|
maintenance mode (by passing `init=/bin/sh' to the kernel), in which case
|
2002-04-05 21:26:49 +01:00
|
|
|
the bootscript that normally sets up your keymap isn't run.</para>
|
|
|
|
|
2002-08-14 03:07:20 +01:00
|
|
|
<para>Run the following command to patch the correct keymap into the
|
|
|
|
kernel source. You will have to repeat this command whenever you unpack a
|
|
|
|
new kernel:</para>
|
2002-04-05 21:26:49 +01:00
|
|
|
|
|
|
|
<para><screen><userinput>loadkeys -m /usr/share/kbd/keymaps/defkeymap.map.gz > \
|
2003-01-22 20:08:31 +00:00
|
|
|
/usr/src/linux-&kernel-version;/drivers/char/defkeymap.c</userinput></screen></para>
|
2002-04-05 21:26:49 +01:00
|
|
|
|
2002-03-10 19:55:10 +00:00
|
|
|
</sect2>
|
|
|
|
|