config-keyboard.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  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>If you didn't create the defkeymap.map.gz file and going with the
  18. default US keymap, then again you don't have to do anything. The kernel
  19. compiles a suitable keymap by default that'll work just fine for
  20. you, so skip the next command.</para>
  21. <para>Run the following commands to accomplish that:</para>
  22. <para><screen><userinput>loadkeys -m /usr/share/kbd/keymaps/defkeymap.map.gz &gt; \
  23. &nbsp;&nbsp;&nbsp;&nbsp;/usr/src/linux/drivers/char/defkeymap.c</userinput></screen></para>
  24. </sect2>