console.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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">/lib/kbd</filename> directory
  23. for valid keymaps and screen fonts. Read <filename>loadkeys(1)</filename> and
  24. <filename>setfont(8)</filename> manual pages to determine the correct
  25. arguments for these programs.</para>
  26. <para>The <filename>/etc/vconsole.conf</filename> file should contain lines
  27. of the form: VARIABLE="value". The following variables are recognized:</para>
  28. <variablelist>
  29. <varlistentry>
  30. <term>KEYMAP</term>
  31. <listitem>
  32. <para>This variable specifies the key mapping table for the keyboard. If
  33. unset, it defaults to <literal>us</literal>.</para>
  34. </listitem>
  35. </varlistentry>
  36. <varlistentry>
  37. <term>KEYMAP_TOGGLE</term>
  38. <listitem>
  39. <para>This variable can be used to configure a second toggle keymap and
  40. is unset by default.</para>
  41. </listitem>
  42. </varlistentry>
  43. <varlistentry>
  44. <term>FONT</term>
  45. <listitem>
  46. <para>This variable specifies the font used by the virtual
  47. console.</para>
  48. </listitem>
  49. </varlistentry>
  50. <varlistentry>
  51. <term>FONT_MAP</term>
  52. <listitem>
  53. <para>This variable specifies the console map to be used.</para>
  54. </listitem>
  55. </varlistentry>
  56. <varlistentry>
  57. <term>FONT_UNIMAP</term>
  58. <listitem>
  59. <para>This variable specifies the unicode font map.</para>
  60. </listitem>
  61. </varlistentry>
  62. </variablelist>
  63. <para>An example for a German keyboard and console is given below:</para>
  64. <screen role="nodump"><userinput>cat &gt; /etc/vconsole.conf &lt;&lt; "EOF"
  65. <literal>KEYMAP=de-latin1
  66. FONT=latarcyrheb-sun16</literal>
  67. EOF</userinput></screen>
  68. <!-- Added because folks keep posting their console file with X questions
  69. to blfs-support list -->
  70. <note>
  71. <para>The <filename>/etc/vconsole.conf</filename> file only controls
  72. localization of the Linux text console. It has nothing to do with setting
  73. the proper keyboard layout and terminal fonts in the X Window System, with
  74. ssh sessions, or with a serial console.</para>
  75. </note>
  76. </sect1>