console.xml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-scripts-console">
  8. <?dbhtml filename="console.html"?>
  9. <title>Configuring the Linux Console</title>
  10. <indexterm zone="ch-scripts-console">
  11. <primary sortas="d-console">console</primary>
  12. <secondary>configuring</secondary>
  13. </indexterm>
  14. <para>This section discusses how to configure the
  15. <command>systemd-vconsole-setup</command> system service, which configures
  16. the virtual console font and console keymap.</para>
  17. <para>The <command>systemd-vconsole-setup</command> service reads the
  18. <filename>/etc/vconsole.conf</filename> file for configuration
  19. information. Decide which keymap and screen font will be used. Various
  20. language-specific HOWTOs can also help with this, see <ulink
  21. url="http://www.tldp.org/HOWTO/HOWTO-INDEX/other-lang.html"/>. If still in
  22. doubt, look in the <filename class="directory">/usr/share/keymaps</filename>
  23. and <filename class="directory">/usr/share/consolefonts</filename> directories
  24. for valid keymaps and screen fonts. Read <filename>loadkeys(1)</filename> and
  25. <filename>setfont(8)</filename> manual pages to determine the correct
  26. arguments for these programs.</para>
  27. <para>The <filename>/etc/vconsole.conf</filename> file should contain lines
  28. of the form: VARIABLE="value". The following variables are recognized:</para>
  29. <variablelist>
  30. <varlistentry>
  31. <term>KEYMAP</term>
  32. <listitem>
  33. <para>This variable specifies the key mapping table for the keyboard. If
  34. unset, it defaults to <literal>us</literal>.</para>
  35. </listitem>
  36. </varlistentry>
  37. <varlistentry>
  38. <term>KEYMAP_TOGGLE</term>
  39. <listitem>
  40. <para>This variable can be used to configure a second toggle keymap and
  41. is unset by default.</para>
  42. </listitem>
  43. </varlistentry>
  44. <varlistentry>
  45. <term>FONT</term>
  46. <listitem>
  47. <para>This variable specifies the font used by the virtual
  48. console.</para>
  49. </listitem>
  50. </varlistentry>
  51. <varlistentry>
  52. <term>FONT_MAP</term>
  53. <listitem>
  54. <para>This variable specifies the console map to be used.</para>
  55. </listitem>
  56. </varlistentry>
  57. <varlistentry>
  58. <term>FONT_UNIMAP</term>
  59. <listitem>
  60. <para>This variable specifies the unicode font map.</para>
  61. </listitem>
  62. </varlistentry>
  63. </variablelist>
  64. <para>An example for a German keyboard and console is given below:</para>
  65. <screen role="nodump"><userinput>cat &gt; /etc/vconsole.conf &lt;&lt; "EOF"
  66. <literal>KEYMAP=de-latin1
  67. FONT=latarcyrheb-sun16</literal>
  68. EOF</userinput></screen>
  69. <!-- Added because folks keep posting their console file with X questions
  70. to blfs-support list -->
  71. <note>
  72. <para>The <filename>/etc/vconsole.conf</filename> file only controls
  73. localization of the Linux text console. It has nothing to do with setting
  74. the proper keyboard layout and terminal fonts in the X Window System, with
  75. ssh sessions, or with a serial console.</para>
  76. </note>
  77. </sect1>