2002-03-10 19:55:10 +00:00
|
|
|
<sect2><title>Configuring your keyboard</title>
|
|
|
|
|
2003-05-13 08:30:09 +01:00
|
|
|
<para>Few things are more annoying than using Linux while a wrong keymap
|
|
|
|
for your keyboard is loaded. If you have a standard US keyboard, however, you
|
|
|
|
can skip this section, as the US keymap is the default as long as you don't
|
|
|
|
change it.</para>
|
2002-03-10 19:55:10 +00:00
|
|
|
|
2003-05-13 08:30:09 +01:00
|
|
|
<para>To change the default keymap, create the
|
2002-03-28 12:16:23 +00:00
|
|
|
<filename class="symlink">/usr/share/kbd/keymaps/defkeymap.map.gz</filename>
|
2003-05-13 08:30:09 +01:00
|
|
|
symlink by running the following command:</para>
|
2002-03-10 19:55:10 +00:00
|
|
|
|
2003-10-10 00:22:07 +01:00
|
|
|
<screen><userinput>ln -s path/to/keymap /usr/share/kbd/keymaps/defkeymap.map.gz</userinput></screen>
|
2002-03-10 19:55:10 +00:00
|
|
|
|
2003-05-13 08:30:09 +01:00
|
|
|
<para>Of course, replace <filename>path/to/keymap</filename> with the path and
|
|
|
|
name of your keyboard's map file. For example, if you have a Dutch keyboard,
|
|
|
|
you would use <filename>i386/qwerty/nl.map.gz</filename>.</para>
|
2002-03-10 19:55:10 +00:00
|
|
|
|
2003-05-13 08:30:09 +01:00
|
|
|
<para>Another way to set your keyboard's layout is to compile the keymap
|
|
|
|
into the kernel. This ensures that your keyboard will always work as expected,
|
|
|
|
even when you boot into maintenance mode (by passing `init=/bin/sh' to the
|
|
|
|
kernel), as then the bootscript that normally sets up your keymap isn't run.</para>
|
2002-03-10 19:55:10 +00:00
|
|
|
|
2003-05-13 08:30:09 +01:00
|
|
|
<para>Run the following command to patch the current default keymap into the
|
2002-08-14 03:07:20 +01:00
|
|
|
kernel source. You will have to repeat this command whenever you unpack a
|
|
|
|
new kernel:</para>
|
2002-04-05 21:26:49 +01:00
|
|
|
|
2003-10-10 00:22:07 +01:00
|
|
|
<screen><userinput>loadkeys -m /usr/share/kbd/keymaps/defkeymap.map.gz > \
|
|
|
|
/usr/src/linux-&kernel-version;/drivers/char/defkeymap.c</userinput></screen>
|
2002-04-05 21:26:49 +01:00
|
|
|
|
2002-03-10 19:55:10 +00:00
|
|
|
</sect2>
|
|
|
|
|