config-keyboard.xml 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. <sect2><title>Configuring your keyboard</title>
  2. <para>Few things are more annoying than using Linux while a wrong keymap
  3. for your keyboard is loaded. If you have a standard US keyboard, however, you
  4. can skip this section, as the US keymap is the default as long as you don't
  5. change it.</para>
  6. <para>To change the default keymap, create the
  7. <filename class="symlink">/usr/share/kbd/keymaps/defkeymap.map.gz</filename>
  8. symlink by running the following command:</para>
  9. <para><screen><userinput>ln -s path/to/keymap /usr/share/kbd/keymaps/defkeymap.map.gz</userinput></screen></para>
  10. <para>Of course, replace <filename>path/to/keymap</filename> with the path and
  11. name of your keyboard's map file. For example, if you have a Dutch keyboard,
  12. you would use <filename>i386/qwerty/nl.map.gz</filename>.</para>
  13. <para>Another way to set your keyboard's layout is to compile the keymap
  14. into the kernel. This ensures that your keyboard will always work as expected,
  15. even when you boot into maintenance mode (by passing `init=/bin/sh' to the
  16. kernel), as then the bootscript that normally sets up your keymap isn't run.</para>
  17. <para>Run the following command to patch the current default 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-&kernel-version;/drivers/char/defkeymap.c</userinput></screen></para>
  22. </sect2>