kbd.xml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <sect1 id="ch-system-kbd" xreflabel="Kbd">
  2. <title>Installing Kbd-&kbd-version;</title>
  3. <?dbhtml filename="kbd.html" dir="chapter06"?>
  4. <para>The Kbd package contains keytable files and keyboard utilities.</para>
  5. <screen>&buildtime; &kbd-time;
  6. &diskspace; &kbd-compsize;</screen>
  7. &aa-kbd-down;
  8. &aa-kbd-dep;
  9. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  10. <sect2>
  11. <title>Installation of Kbd</title>
  12. <para>By default some of Kbd's utilities (<command>setlogcons</command>,
  13. <command>setvesablank</command> and <command>getunimap</command>) are
  14. not installed. First enable the compilation of these utilities:</para>
  15. <screen><userinput>patch -Np1 -i ../&kbd-patch;</userinput></screen>
  16. <para>Now prepare Kbd for compilation:</para>
  17. <screen><userinput>./configure</userinput></screen>
  18. <para>Compile the package:</para>
  19. <screen><userinput>make</userinput></screen>
  20. <para>And install it:</para>
  21. <screen><userinput>make install</userinput></screen>
  22. </sect2>
  23. <sect2><title>Configuring your keyboard</title>
  24. <para>Few things are more annoying than using Linux while a wrong keymap
  25. for your keyboard is loaded. If you have a standard US keyboard, however, you
  26. can skip this section, as the US keymap is the default as long as you don't
  27. change it.</para>
  28. <para>To change the default keymap, create the
  29. <filename class="symlink">/usr/share/kbd/keymaps/defkeymap.map.gz</filename>
  30. symlink by running the following command:</para>
  31. <screen><userinput>ln -s path/to/keymap /usr/share/kbd/keymaps/defkeymap.map.gz</userinput></screen>
  32. <para>Of course, replace <filename>path/to/keymap</filename> with the path and
  33. name of your keyboard's map file. For example, if you have a Dutch keyboard,
  34. you would use <filename>i386/qwerty/nl.map.gz</filename>.</para>
  35. <para>Another way to set your keyboard's layout is to compile the keymap
  36. into the kernel. This ensures that your keyboard will always work as expected,
  37. even when you boot into maintenance mode (by passing `init=/bin/sh' to the
  38. kernel), as then the bootscript that normally sets up your keymap isn't run.</para>
  39. <para>When in <xref linkend="chapter-mixture"/> you're ready to compile the
  40. kernel, run the following command to patch the current default keymap into the
  41. source (you will have to repeat this command whenever you unpack a new
  42. kernel):</para>
  43. <screen><userinput>loadkeys -m /usr/share/kbd/keymaps/defkeymap.map.gz &gt; \
  44. &nbsp;&nbsp;&nbsp;&nbsp;/usr/src/linux-&kernel-version;/drivers/char/defkeymap.c</userinput></screen>
  45. </sect2>
  46. &aa-kbd-shortdesc;
  47. &aa-kbd-desc;
  48. </sect1>