config-keyboard.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  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>cd /usr/share/kbd/keymaps &amp;&amp;
  9. ln -s &lt;path/to/keymap&gt; defkeymap.map.gz</userinput></screen></para>
  10. <para>Replace &lt;path/to/keymap&gt; with the your keyboard's map file. For
  11. example, if you have a Dutch keyboard, you would run:</para>
  12. <para><screen><userinput>ln -s i386/qwerty/nl.map.gz defkeymap.map.gz</userinput></screen></para>
  13. <para>An second option to configure your keyboard's layout is to compile
  14. the keymap directly into the kernel. This will make sure that your
  15. keyboard always works as expected, even when you have booted into
  16. maintenance mode (by passing `init=/bin/sh' to the kernel) in which case
  17. the bootscript that normally sets up your keymap isn't run.</para>
  18. <para>If you didn't create the defkeymap.map.gz file and going with the
  19. default US keymap, then again you don't have to do anything. The kernel
  20. compiles a suitable keymap by default that'll work just fine for
  21. you, so skip the next command.</para>
  22. <para>Run the following commands to accomplish that:</para>
  23. <para><screen><userinput>loadkeys -m /usr/share/kbd/keymaps/defkeymap.map.gz &gt; \
  24. &nbsp;&nbsp;&nbsp;/usr/src/linux/drivers/char/defkeymap.c</userinput></screen></para>
  25. </sect2>