10.0
10.0-rc1
10.1
10.1-rc1
11.0
11.0-rc1
11.0-rc2
11.0-rc3
11.1
11.1-rc1
11.2
11.2-rc1
11.3
11.3-rc1
12.0
12.0-rc1
12.1
12.1-rc1
12.2
12.2-rc1
6.0
6.1
6.1.1
6.3
6.4
6.5
6.6
6.7
6.8
7.0
7.1
7.2
7.3
7.4
7.5
7.5-systemd
7.6
7.6-systemd
7.7
7.7-systemd
7.8
7.8-systemd
7.9
7.9-systemd
8.0
8.1
8.2
8.3
8.4
9.0
9.1
arm
bdubbs/gcc13
ml-11.0
multilib
renodr/libudev-from-systemd
s6-init
trunk
v4_0
v4_1
v5_0
v5_1
v5_1_1
xry111/arm64
xry111/arm64-12.0
xry111/clfs-ng
xry111/lfs-next
xry111/loongarch
xry111/loongarch-12.0
xry111/loongarch-12.1
xry111/loongarch-12.2
xry111/mips64el
xry111/multilib
xry111/pip3
xry111/rust-wip-20221008
xry111/update-glibc
Rev | Line | |
---|
[4c1a3af] | 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
|
---|
[ef7f591] | 8 | <filename class="symlink">/usr/share/kbd/keymaps/defkeymap.map.gz</filename>
|
---|
[4c1a3af] | 9 | symlink by running the following commands:</para>
|
---|
| 10 |
|
---|
[3f12743] | 11 | <para><screen><userinput>ln -s <path/to/keymap> /usr/share/kbd/keymaps/defkeymap.map.gz</userinput></screen></para>
|
---|
[4c1a3af] | 12 |
|
---|
| 13 | <para>Replace <path/to/keymap> with the your keyboard's map file. For
|
---|
| 14 | example, if you have a Dutch keyboard, you would run:</para>
|
---|
| 15 |
|
---|
[3f12743] | 16 | <para><screen><userinput>ln -s i386/qwerty/nl.map.gz /usr/share/kbd/keymaps/defkeymap.map.gz</userinput></screen></para>
|
---|
[4c1a3af] | 17 |
|
---|
[34a2f0c] | 18 | <para>A second option to configure your keyboard's layout is to compile
|
---|
[a5043ab] | 19 | the keymap directly into the kernel. This will make sure that your
|
---|
| 20 | keyboard always works as expected, even when you have booted into
|
---|
| 21 | maintenance mode (by passing `init=/bin/sh' to the kernel) in which case
|
---|
| 22 | the bootscript that normally sets up your keymap isn't run.</para>
|
---|
| 23 |
|
---|
| 24 | <para>If you didn't create the defkeymap.map.gz file and going with the
|
---|
| 25 | default US keymap, then again you don't have to do anything. The kernel
|
---|
| 26 | compiles a suitable keymap by default that'll work just fine for
|
---|
| 27 | you, so skip the next command.</para>
|
---|
| 28 |
|
---|
| 29 | <para>Run the following commands to accomplish that:</para>
|
---|
| 30 |
|
---|
| 31 | <para><screen><userinput>loadkeys -m /usr/share/kbd/keymaps/defkeymap.map.gz > \
|
---|
[3f12743] | 32 | /usr/src/linux/drivers/char/defkeymap.c</userinput></screen></para>
|
---|
[a5043ab] | 33 |
|
---|
[4c1a3af] | 34 | </sect2>
|
---|
| 35 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.