source: chapter07/console.xml@ f2a5108

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

Merge latest trunk updates to systemd branch

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

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