config-keyboard.xml 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. <sect2><title>Configuring your keyboard</title>
  2. <para>Nothing is more annoying than using Linux with a wrong keymap loaded
  3. for your keyboard. If you have a default US keyboard, you can skip this
  4. section. The US keymap file is the default if you don't change it.</para>
  5. <para>To set the default keymap file, create the
  6. <filename class="symlink">/usr/share/kbd/keymaps/defkeymap.map.gz</filename>
  7. symlink by running the following commands:</para>
  8. <para><screen><userinput>ln -s &lt;path/to/keymap&gt; /usr/share/kbd/keymaps/defkeymap.map.gz</userinput></screen></para>
  9. <para>Replace &lt;path/to/keymap&gt; with the your keyboard's map file. For
  10. example, if you have a Dutch keyboard, you would run:</para>
  11. <para><screen><userinput>ln -s i386/qwerty/nl.map.gz /usr/share/kbd/keymaps/defkeymap.map.gz</userinput></screen></para>
  12. <para>A second option to configure your keyboard's layout is to compile
  13. the keymap directly into the kernel. This will make sure that your
  14. keyboard always works as expected, even when you have booted into
  15. maintenance mode (by passing `init=/bin/sh' to the kernel) in which case
  16. the bootscript that normally sets up your keymap isn't run.</para>
  17. <para>Run the following command to patch the correct keymap into the
  18. kernel source. You will have to repeat this command whenever you unpack a
  19. new kernel:</para>
  20. <para><screen><userinput>loadkeys -m /usr/share/kbd/keymaps/defkeymap.map.gz &gt; \
  21. &nbsp;&nbsp;&nbsp;&nbsp;/usr/src/linux/drivers/char/defkeymap.c</userinput></screen></para>
  22. </sect2>