loadkeys.xml 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <sect1 id="ch07-loadkeys">
  2. <title>Configuring the loadkeys script</title>
  3. <?dbhtml filename="loadkeys.html" dir="chapter07"?>
  4. <para>You only need to create configure script if you don't have a
  5. default 101 keys US keyboard layout.</para>
  6. <para>The /etc/sysconfig/keyboard file contains the information the
  7. loadkeys script needs to operate. This file contains the LAYOUT variable
  8. which tells loadkeys what keymap to load that corresponds with your
  9. keyboard.</para>
  10. <para>Create a new file <filename>/etc/sysconfig/keyboard</filename>
  11. by running the following:</para>
  12. <para><screen><userinput>cat &gt; /etc/sysconfig/keyboard &lt;&lt; "EOF"</userinput
  13. >
  14. # Begin /etc/sysconfig/keyboard
  15. LAYOUT=&lt;path-to-keymap&gt;
  16. # End /etc/sysconfig/keyboard
  17. <userinput>EOF</userinput></screen></para>
  18. <para>Replace <userinput>&lt;path-to-keymap&gt;</userinput> with the
  19. path to the keymap you have selected. For example, if you have chosen the
  20. US keymap, you would replace it with
  21. <userinput>/usr/share/kbd/keymaps/i386/qwerty/us.map.gz</userinput></para>
  22. </sect1>