2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-03-21 18:42:58 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2005-12-18 18:31:04 +00:00
|
|
|
|
2004-05-05 00:22:10 +01:00
|
|
|
<sect1 id="ch-scripts-console">
|
2005-12-18 18:31:04 +00:00
|
|
|
<?dbhtml filename="console.html"?>
|
|
|
|
|
|
|
|
<title>Configuring the Linux Console</title>
|
|
|
|
|
|
|
|
<indexterm zone="ch-scripts-console">
|
|
|
|
<primary sortas="d-console">console</primary>
|
|
|
|
<secondary>configuring</secondary>
|
|
|
|
</indexterm>
|
|
|
|
|
2013-03-04 21:46:36 +00:00
|
|
|
<para>This section discusses how to configure the
|
|
|
|
<command>systemd-vconsole-setup</command> system service, which configures
|
|
|
|
the virtual console font and console keymap.</para>
|
|
|
|
|
|
|
|
<para>The <command>systemd-vconsole-setup</command> service reads the
|
|
|
|
<filename>/etc/vconsole.conf</filename> file for configuration
|
2012-02-03 03:55:07 +00:00
|
|
|
information. Decide which keymap and screen font will be used. Various
|
|
|
|
language-specific HOWTOs can also help with this, see <ulink
|
2006-01-06 01:59:08 +00:00
|
|
|
url="http://www.tldp.org/HOWTO/HOWTO-INDEX/other-lang.html"/>. If still in
|
2012-02-03 03:55:07 +00:00
|
|
|
doubt, look in the <filename class="directory">/lib/kbd</filename> directory
|
|
|
|
for valid keymaps and screen fonts. Read <filename>loadkeys(1)</filename> and
|
|
|
|
<filename>setfont(8)</filename> manual pages to determine the correct
|
|
|
|
arguments for these programs.</para>
|
2006-01-06 01:59:08 +00:00
|
|
|
|
2013-03-04 21:46:36 +00:00
|
|
|
<para>The <filename>/etc/vconsole.conf</filename> file should contain lines
|
2006-01-06 01:59:08 +00:00
|
|
|
of the form: VARIABLE="value". The following variables are recognized:</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>KEYMAP</term>
|
|
|
|
<listitem>
|
2013-03-04 21:46:36 +00:00
|
|
|
<para>This variable specifies the key mapping table for the keyboard. If
|
|
|
|
unset, it defaults to <literal>us</literal>.</para>
|
2006-01-06 01:59:08 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
2013-03-04 21:46:36 +00:00
|
|
|
<term>KEYMAP_TOGGLE</term>
|
2006-01-06 01:59:08 +00:00
|
|
|
<listitem>
|
2013-03-04 21:46:36 +00:00
|
|
|
<para>This variable can be used to configure a second toggle keymap and
|
|
|
|
is unset by default.</para>
|
2006-01-06 01:59:08 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>FONT</term>
|
|
|
|
<listitem>
|
2013-03-04 21:46:36 +00:00
|
|
|
<para>This variable specifies the font used by the virtual
|
|
|
|
console.</para>
|
2006-01-06 01:59:08 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
2013-03-04 21:46:36 +00:00
|
|
|
<term>FONT_MAP</term>
|
2006-01-06 01:59:08 +00:00
|
|
|
<listitem>
|
2013-03-04 21:46:36 +00:00
|
|
|
<para>This variable specifies the console map to be used.</para>
|
2006-01-06 01:59:08 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
2013-03-04 21:46:36 +00:00
|
|
|
<term>FONT_UNIMAP</term>
|
2006-01-06 01:59:08 +00:00
|
|
|
<listitem>
|
2013-03-04 21:46:36 +00:00
|
|
|
<para>This variable specifies the unicode font map.</para>
|
2006-01-06 01:59:08 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
2013-03-04 21:46:36 +00:00
|
|
|
<para>An example for a German keyboard and console is given below:</para>
|
2004-05-06 17:22:04 +01:00
|
|
|
|
2013-03-04 21:46:36 +00:00
|
|
|
<screen role="nodump"><userinput>cat > /etc/vconsole.conf << "EOF"
|
|
|
|
<literal>KEYMAP=de-latin1
|
|
|
|
FONT=latarcyrheb-sun16</literal>
|
2004-06-19 17:54:58 +01:00
|
|
|
EOF</userinput></screen>
|
2006-01-06 01:59:08 +00:00
|
|
|
|
|
|
|
<!-- Added because folks keep posting their console file with X questions
|
|
|
|
to blfs-support list -->
|
|
|
|
<note>
|
2013-03-04 21:46:36 +00:00
|
|
|
<para>The <filename>/etc/vconsole.conf</filename> file only controls
|
|
|
|
localization of the Linux text console. It has nothing to do with setting
|
|
|
|
the proper keyboard layout and terminal fonts in the X Window System, with
|
|
|
|
ssh sessions, or with a serial console.</para>
|
2006-01-06 01:59:08 +00:00
|
|
|
</note>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2002-04-05 22:08:22 +01:00
|
|
|
</sect1>
|