diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2014-04-06 22:36:59 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2014-04-06 22:36:59 +0000 |
commit | c729bc928cb74e89b5f362ffbf9221951461725c (patch) | |
tree | afa4dd7e60475ff39080fb37e467a95bb6fa94b8 /chapter07/console.xml | |
parent | ba75f1313a7927011dcdf17a364fccc2476f8811 (diff) |
Add section on systemd customization
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10527 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07/console.xml')
-rw-r--r-- | chapter07/console.xml | 97 |
1 files changed, 93 insertions, 4 deletions
diff --git a/chapter07/console.xml b/chapter07/console.xml index a865b29b6..88395d4c5 100644 --- a/chapter07/console.xml +++ b/chapter07/console.xml @@ -23,6 +23,9 @@ equivalent settings in <filename>rc.site</filename>), the <command>console</command> bootscript will do nothing.</para> + <sect2 id="ch-scripts-sysv-console"> + <title>Systemd V</title> + <para>The <command>console</command> script reads the <filename>/etc/sysconfig/console</filename> file for configuration information. Decide which keymap and screen font will be used. Various @@ -227,10 +230,96 @@ EOF</userinput></screen> <!-- Added because folks keep posting their console file with X questions to blfs-support list --> <note> - <para>The <filename>/etc/sysconfig/console</filename> file only controls the Linux text console localization. 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. In such situations, limitations mentioned - in the last two list items above do not apply.</para> + <para>The <filename>/etc/sysconfig/console</filename> file only controls + the Linux text console localization. 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. In such situations, limitations + mentioned in the last two list items above do not apply.</para> </note> + </sect2> + + <sect2 id="ch-scripts-systemd-console"> + <title>Systemd</title> + + <indexterm zone="ch-scripts-systemd-console"> + <primary sortas="d-console">systemd console</primary> + <secondary>configuring</secondary> + </indexterm> + + <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 + information. Decide which keymap and screen font will be used. Various + language-specific HOWTOs can also help with this, see <ulink + url="http://www.tldp.org/HOWTO/HOWTO-INDEX/other-lang.html"/>. + Examine <command>localectl list-keymaps</command> output for a list of + valid console keymaps. Look in + <filename class="directory">/usr/share/consolefonts</filename> + directory for valid screen fonts.</para> + + <para>The <filename>/etc/vconsole.conf</filename> file should contain lines + of the form: VARIABLE="value". The following variables are recognized:</para> + + <variablelist> + + <varlistentry> + <term>KEYMAP</term> + <listitem> + <para>This variable specifies the key mapping table for the keyboard. If + unset, it defaults to <literal>us</literal>.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term>KEYMAP_TOGGLE</term> + <listitem> + <para>This variable can be used to configure a second toggle keymap and + is unset by default.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term>FONT</term> + <listitem> + <para>This variable specifies the font used by the virtual + console.</para> + </listitem> + </varlistentry> + <varlistentry> + <term>FONT_MAP</term> + <listitem> + <para>This variable specifies the console map to be used.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term>FONT_UNIMAP</term> + <listitem> + <para>This variable specifies the unicode font map.</para> + </listitem> + </varlistentry> + + </variablelist> + + <para>An example for a German keyboard and console is given below:</para> + +<screen role="nodump"><userinput>cat > /etc/vconsole.conf << "EOF" +<literal>KEYMAP=de-latin1 +FONT=Lat2-Terminus16</literal> +EOF</userinput></screen> + + <para>You can change KEYMAP value at runtime by using the + <command>localectl</command> utility:</para> + +<screen role="nodump"><userinput>localectl set-keymap MAP</userinput></screen> + + <note><para>Please note that <command>localectl</command> command can + be used only on a system booted with Systemd.</para></note> + + </sect2> + </sect1> |