|
@@ -23,6 +23,9 @@
|
|
equivalent settings in <filename>rc.site</filename>), the
|
|
equivalent settings in <filename>rc.site</filename>), the
|
|
<command>console</command> bootscript will do nothing.</para>
|
|
<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
|
|
<para>The <command>console</command> script reads the
|
|
<filename>/etc/sysconfig/console</filename> file for configuration
|
|
<filename>/etc/sysconfig/console</filename> file for configuration
|
|
information. Decide which keymap and screen font will be used. Various
|
|
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
|
|
<!-- Added because folks keep posting their console file with X questions
|
|
to blfs-support list -->
|
|
to blfs-support list -->
|
|
<note>
|
|
<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>
|
|
</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>
|
|
</sect1>
|