source: chapter07/console.xml@ 00c1c08

7.5-systemd 7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since 00c1c08 was b06a0085, checked in by Matthew Burgess <matthew@…>, 11 years ago

Document how to configure the virtual console under Systemd.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10192 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.1 KB
Line 
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
8<sect1 id="ch-scripts-console">
9 <?dbhtml filename="console.html"?>
10
11 <title>Configuring the Linux Console</title>
12
13 <indexterm zone="ch-scripts-console">
14 <primary sortas="d-console">console</primary>
15 <secondary>configuring</secondary>
16 </indexterm>
17
18 <para>This section discusses how to configure the
19 <command>systemd-vconsole-setup</command> system service, which configures
20 the virtual console font and console keymap.</para>
21
22 <para>The <command>systemd-vconsole-setup</command> service reads the
23 <filename>/etc/vconsole.conf</filename> file for configuration
24 information. Decide which keymap and screen font will be used. Various
25 language-specific HOWTOs can also help with this, see <ulink
26 url="http://www.tldp.org/HOWTO/HOWTO-INDEX/other-lang.html"/>. If still in
27 doubt, look in the <filename class="directory">/lib/kbd</filename> directory
28 for valid keymaps and screen fonts. Read <filename>loadkeys(1)</filename> and
29 <filename>setfont(8)</filename> manual pages to determine the correct
30 arguments for these programs.</para>
31
32 <para>The <filename>/etc/vconsole.conf</filename> file should contain lines
33 of the form: VARIABLE="value". The following variables are recognized:</para>
34
35 <variablelist>
36
37 <varlistentry>
38 <term>KEYMAP</term>
39 <listitem>
40 <para>This variable specifies the key mapping table for the keyboard. If
41 unset, it defaults to <literal>us</literal>.</para>
42 </listitem>
43 </varlistentry>
44
45 <varlistentry>
46 <term>KEYMAP_TOGGLE</term>
47 <listitem>
48 <para>This variable can be used to configure a second toggle keymap and
49 is unset by default.</para>
50 </listitem>
51 </varlistentry>
52
53 <varlistentry>
54 <term>FONT</term>
55 <listitem>
56 <para>This variable specifies the font used by the virtual
57 console.</para>
58 </listitem>
59 </varlistentry>
60
61 <varlistentry>
62 <term>FONT_MAP</term>
63 <listitem>
64 <para>This variable specifies the console map to be used.</para>
65 </listitem>
66 </varlistentry>
67
68 <varlistentry>
69 <term>FONT_UNIMAP</term>
70 <listitem>
71 <para>This variable specifies the unicode font map.</para>
72 </listitem>
73 </varlistentry>
74
75 </variablelist>
76
77 <para>An example for a German keyboard and console is given below:</para>
78
79<screen role="nodump"><userinput>cat &gt; /etc/vconsole.conf &lt;&lt; "EOF"
80<literal>KEYMAP=de-latin1
81FONT=latarcyrheb-sun16</literal>
82EOF</userinput></screen>
83
84 <!-- Added because folks keep posting their console file with X questions
85 to blfs-support list -->
86 <note>
87 <para>The <filename>/etc/vconsole.conf</filename> file only controls
88 localization of the Linux text console. It has nothing to do with setting
89 the proper keyboard layout and terminal fonts in the X Window System, with
90 ssh sessions, or with a serial console.</para>
91 </note>
92
93</sect1>
Note: See TracBrowser for help on using the repository browser.