console.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-scripts-console">
  7. <title>Configuring the Linux Console</title>
  8. <?dbhtml filename="console.html"?>
  9. <para>Create the configuration file:</para>
  10. <screen><userinput>cat &gt;/etc/sysconfig/console &lt;&lt;"EOF"
  11. <literal>KEYMAP="<replaceable>[arguments for loadkeys]</replaceable>"
  12. FONT="<replaceable>[arguments for setfont]</replaceable>"</literal>
  13. EOF</userinput></screen>
  14. <para>If you see that keycode 14 is Backspace and not Delete,
  15. create the following keymap snippet to fix this issue:</para>
  16. <screen><userinput>mkdir -p /etc/kbd &amp;&amp; cat &gt; /etc/kbd/bs-sends-del &lt;&lt;"EOF"
  17. <literal> keycode 14 = Delete Delete Delete Delete
  18. alt keycode 14 = Meta_Delete
  19. altgr alt keycode 14 = Meta_Delete
  20. keycode 111 = Remove
  21. altgr control keycode 111 = Boot
  22. control alt keycode 111 = Boot
  23. altgr control alt keycode 111 = Boot</literal>
  24. EOF</userinput></screen>
  25. <para>Then tell the <command>console</command> script to load this snippet
  26. after the main keymap:</para>
  27. <screen><userinput>cat &gt;&gt;/etc/sysconfig/console &lt;&lt;"EOF"
  28. <literal>KEYMAP_CORRECTION="/etc/kbd/bs-sends-del"</literal>
  29. EOF</userinput></screen>
  30. </sect1>