From c729bc928cb74e89b5f362ffbf9221951461725c Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sun, 6 Apr 2014 22:36:59 +0000 Subject: Add section on systemd customization git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10527 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter07/console.xml | 97 ++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 93 insertions(+), 4 deletions(-) (limited to 'chapter07/console.xml') 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 rc.site), the console bootscript will do nothing. + + Systemd V + The console script reads the /etc/sysconfig/console file for configuration information. Decide which keymap and screen font will be used. Various @@ -227,10 +230,96 @@ EOF - The /etc/sysconfig/console 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. + The /etc/sysconfig/console 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. + + + + Systemd + + + systemd console + configuring + + + This section discusses how to configure the + systemd-vconsole-setup system service, which configures + the virtual console font and console keymap. + + The systemd-vconsole-setup service reads the + /etc/vconsole.conf file for configuration + information. Decide which keymap and screen font will be used. Various + language-specific HOWTOs can also help with this, see . + Examine localectl list-keymaps output for a list of + valid console keymaps. Look in + /usr/share/consolefonts + directory for valid screen fonts. + + The /etc/vconsole.conf file should contain lines + of the form: VARIABLE="value". The following variables are recognized: + + + + + KEYMAP + + This variable specifies the key mapping table for the keyboard. If + unset, it defaults to us. + + + + + KEYMAP_TOGGLE + + This variable can be used to configure a second toggle keymap and + is unset by default. + + + + + FONT + + This variable specifies the font used by the virtual + console. + + + + FONT_MAP + + This variable specifies the console map to be used. + + + + + FONT_UNIMAP + + This variable specifies the unicode font map. + + + + + + An example for a German keyboard and console is given below: + +cat > /etc/vconsole.conf << "EOF" +KEYMAP=de-latin1 +FONT=Lat2-Terminus16 +EOF + + You can change KEYMAP value at runtime by using the + localectl utility: + +localectl set-keymap MAP + + Please note that localectl command can + be used only on a system booted with Systemd. + + + -- cgit v1.2.3-54-g00ecf