1 | <sect2><title>Configuring your keyboard</title>
|
---|
2 |
|
---|
3 | <para>Nothing is more annoying than using Linux with a wrong keymap loaded
|
---|
4 | for your keyboard. If you have a default US keyboard, you can skip this
|
---|
5 | section. The US keymap file is the default if you don't change it.</para>
|
---|
6 |
|
---|
7 | <para>To set the default keymap file, create the
|
---|
8 | <filename class="symlink">/usr/share/kbd/keymaps/defkeymap.map.gz</filename>
|
---|
9 | symlink by running the following commands:</para>
|
---|
10 |
|
---|
11 | <para><screen><userinput>cd /usr/share/kbd/keymaps &&
|
---|
12 | ln -s <path/to/keymap> defkeymap.map.gz</userinput></screen></para>
|
---|
13 |
|
---|
14 | <para>Replace <path/to/keymap> with the your keyboard's map file. For
|
---|
15 | example, if you have a Dutch keyboard, you would run:</para>
|
---|
16 |
|
---|
17 | <para><screen><userinput>ln -s i386/qwerty/nl.map.gz defkeymap.map.gz</userinput></screen></para>
|
---|
18 |
|
---|
19 | <para>An second option to configure your keyboard's layout is to compile
|
---|
20 | the keymap directly into the kernel. This will make sure that your
|
---|
21 | keyboard always works as expected, even when you have booted into
|
---|
22 | maintenance mode (by passing `init=/bin/sh' to the kernel) in which case
|
---|
23 | the bootscript that normally sets up your keymap isn't run.</para>
|
---|
24 |
|
---|
25 | <para>If you didn't create the defkeymap.map.gz file and going with the
|
---|
26 | default US keymap, then again you don't have to do anything. The kernel
|
---|
27 | compiles a suitable keymap by default that'll work just fine for
|
---|
28 | you, so skip the next command.</para>
|
---|
29 |
|
---|
30 | <para>Run the following commands to accomplish that:</para>
|
---|
31 |
|
---|
32 | <para><screen><userinput>loadkeys -m /usr/share/kbd/keymaps/defkeymap.map.gz > \
|
---|
33 | /usr/src/linux/drivers/char/defkeymap.c</userinput></screen></para>
|
---|
34 |
|
---|
35 | </sect2>
|
---|
36 |
|
---|