console.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. <indexterm zone="ch-scripts-console">
  10. <primary sortas="d-console">console</primary>
  11. <secondary>configuring</secondary></indexterm>
  12. <screen><userinput>cat &gt;/etc/sysconfig/console &lt;&lt;"EOF"
  13. KEYMAP="<replaceable>[arguments for loadkeys]</replaceable>"
  14. FONT="<replaceable>[arguments for setfont]</replaceable>"
  15. EOF</userinput></screen>
  16. <para>If you see that keycode 14 is Backspace and not Delete,
  17. create the following keymap snippet to fix this issue:</para>
  18. <screen><userinput>mkdir -p /etc/kbd &amp;&amp; cat &gt;/etc/kbd/bs-sends-del &lt;&lt;"EOF"
  19. keycode 14 = Delete Delete Delete Delete
  20. alt keycode 14 = Meta_Delete
  21. altgr alt keycode 14 = Meta_Delete
  22. keycode 111 = Remove
  23. altgr control keycode 111 = Boot
  24. control alt keycode 111 = Boot
  25. altgr control alt keycode 111 = Boot
  26. EOF</userinput></screen>
  27. <para>Then tell the <command>console</command> script to load this snippet
  28. after the main keymap:</para>
  29. <screen><userinput>cat &gt;&gt;/etc/sysconfig/console &lt;&lt;"EOF"
  30. KEYMAP_CORRECTION="/etc/kbd/bs-sends-del"
  31. EOF</userinput></screen>
  32. </sect1>