From 39fecacfaf2cc18abd0045f40c5da19bb040c3cd Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Fri, 8 Mar 2019 13:52:17 +0000 Subject: Remove obsolete pages from the chapter07 directory: Those have been included into "usage.xml" or obsoleted for a long time now, and just clobber the sources. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11551 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter07/console.xml | 325 ------------------------------------------------- chapter07/hostname.xml | 31 ----- chapter07/hosts.xml | 80 ------------ chapter07/setclock.xml | 132 -------------------- chapter07/site.xml | 103 ---------------- chapter07/sysklogd.xml | 31 ----- 6 files changed, 702 deletions(-) delete mode 100644 chapter07/console.xml delete mode 100644 chapter07/hostname.xml delete mode 100644 chapter07/hosts.xml delete mode 100644 chapter07/setclock.xml delete mode 100644 chapter07/site.xml delete mode 100644 chapter07/sysklogd.xml (limited to 'chapter07') diff --git a/chapter07/console.xml b/chapter07/console.xml deleted file mode 100644 index d2562760f..000000000 --- a/chapter07/console.xml +++ /dev/null @@ -1,325 +0,0 @@ - - - %general-entities; -]> - - - - - Configuring the Linux Console - - - console - configuring - - - This section discusses how to configure the console - bootscript that sets up the keyboard map, console font and console kernel log - level. If non-ASCII characters (e.g., the copyright sign, the British pound - sign and Euro symbol) will not be used and the keyboard is a U.S. one, much - of this section can be skipped. Without the configuration file, (or - equivalent settings in rc.site), the - console bootscript will do nothing. - - - System V - - The console script reads the - /etc/sysconfig/console file for configuration - information. Decide which keymap and screen font will be used. Various - language-specific HOWTOs can also help with this, see . If still in - doubt, look in the /usr/share/keymaps - and /usr/share/consolefonts directories - for valid keymaps and screen fonts. Read loadkeys(1) and - setfont(8) manual pages to determine the correct - arguments for these programs. - - The /etc/sysconfig/console file should contain lines - of the form: VARIABLE="value". The following variables are recognized: - - - - - LOGLEVEL - - This variable specifies the log level for kernel messages sent - to the console as set by dmesg. Valid levels are - from "1" (no messages) to "8". The default level is "7". - - - - - KEYMAP - - This variable specifies the arguments for the - loadkeys program, typically, the name of keymap - to load, e.g., es. If this variable is not set, the - bootscript will not run the loadkeys program, - and the default kernel keymap will be used. - - - - - KEYMAP_CORRECTIONS - - This (rarely used) variable - specifies the arguments for the second call to the - loadkeys program. This is useful if the stock keymap - is not completely satisfactory and a small adjustment has to be made. E.g., - to include the Euro sign into a keymap that normally doesn't have it, - set this variable to euro2. - - - - - FONT - - This variable specifies the arguments for the - setfont program. Typically, this includes the font - name, -m, and the name of the application character - map to load. E.g., in order to load the lat1-16 font - together with the 8859-1 application character map - (as it is appropriate in the USA), - - set this variable to lat1-16 -m 8859-1. - In UTF-8 mode, the kernel uses the application character map for - conversion of composed 8-bit key codes in the keymap to UTF-8, and thus - the argument of the "-m" parameter should be set to the encoding of the - composed key codes in the keymap. - - - - - - UNICODE - - Set this variable to 1, yes or - true in order to put the - console into UTF-8 mode. This is useful in UTF-8 based locales and - harmful otherwise. - - - - - LEGACY_CHARSET - - For many keyboard layouts, there is no stock Unicode keymap in - the Kbd package. The console bootscript will - convert an available keymap to UTF-8 on the fly if this variable is - set to the encoding of the available non-UTF-8 keymap. - - - - - - Some examples: - - - - - For a non-Unicode setup, only the KEYMAP and FONT variables are - generally needed. E.g., for a Polish setup, one would use: - -cat > /etc/sysconfig/console << "EOF" -# Begin /etc/sysconfig/console - -KEYMAP="pl2" -FONT="lat2a-16 -m 8859-2" - -# End /etc/sysconfig/console -EOF - - - - As mentioned above, it is sometimes necessary to adjust a - stock keymap slightly. The following example adds the Euro symbol to the - German keymap: - -cat > /etc/sysconfig/console << "EOF" -# Begin /etc/sysconfig/console - -KEYMAP="de-latin1" -KEYMAP_CORRECTIONS="euro2" -FONT="lat0-16 -m 8859-15" - -# End /etc/sysconfig/console -EOF - - - - The following is a Unicode-enabled example for Bulgarian, where a - stock UTF-8 keymap exists: - -cat > /etc/sysconfig/console << "EOF" -# Begin /etc/sysconfig/console - -UNICODE="1" -KEYMAP="bg_bds-utf8" -FONT="LatArCyrHeb-16" - -# End /etc/sysconfig/console -EOF - - - - Due to the use of a 512-glyph LatArCyrHeb-16 font in the previous - example, bright colors are no longer available on the Linux console unless - a framebuffer is used. If one wants to have bright colors without - framebuffer and can live without characters not belonging to his language, - it is still possible to use a language-specific 256-glyph font, as - illustrated below: - -cat > /etc/sysconfig/console << "EOF" -# Begin /etc/sysconfig/console - -UNICODE="1" -KEYMAP="bg_bds-utf8" -FONT="cyr-sun16" - -# End /etc/sysconfig/console -EOF - - - - The following example illustrates keymap autoconversion from - ISO-8859-15 to UTF-8 and enabling dead keys in Unicode mode: - -cat > /etc/sysconfig/console << "EOF" -# Begin /etc/sysconfig/console - -UNICODE="1" -KEYMAP="de-latin1" -KEYMAP_CORRECTIONS="euro2" -LEGACY_CHARSET="iso-8859-15" -FONT="LatArCyrHeb-16 -m 8859-15" - -# End /etc/sysconfig/console -EOF - - - - Some keymaps have dead keys (i.e., keys that don't produce a - character by themselves, but put an accent on the character produced - by the next key) or define composition rules (such as: press - Ctrl+. A E to get Æ in the default keymap). - Linux-&linux-version; interprets dead keys and composition rules in the - keymap correctly only when the source characters to be composed together - are not multibyte. This deficiency doesn't affect keymaps for European - languages, because there accents are added to unaccented ASCII - characters, or two ASCII characters are composed together. However, in - UTF-8 mode it is a problem, e.g., for the Greek language, where one - sometimes needs to put an accent on the letter alpha. - The solution is either to avoid the use of UTF-8, or to install the - X window system that doesn't have this limitation in its input - handling. - - - - For Chinese, Japanese, Korean and some other languages, the Linux - console cannot be configured to display the needed characters. Users - who need such languages should install the X Window System, fonts that - cover the necessary character ranges, and the proper input method (e.g., - SCIM, it supports a wide variety of languages). - - - - - - - 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. - - - - diff --git a/chapter07/hostname.xml b/chapter07/hostname.xml deleted file mode 100644 index 07de15e98..000000000 --- a/chapter07/hostname.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - %general-entities; -]> - - - - - Configuring the system hostname - - - hostname - configuring - - - During the boot process, both Systemd and System V use the same - file for establishing the system's hostname. This needs to be configured by - creating /etc/hostname. - - Create the /etc/hostname file and enter a - hostname by running: - -echo "<lfs>" > /etc/hostname - - <lfs> needs to be replaced with the name given - to the computer. Do not enter the Fully Qualified Domain Name (FQDN) here. That - information is put in the /etc/hosts file. - - diff --git a/chapter07/hosts.xml b/chapter07/hosts.xml deleted file mode 100644 index 13c0ccbbf..000000000 --- a/chapter07/hosts.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - %general-entities; -]> - - - - - Customizing the /etc/hosts File - - - /etc/hosts - - - - localnet - /etc/hosts - - - network - /etc/hosts - - If a network card is to be configured, decide on the IP address, - fully-qualified domain name (FQDN), and possible aliases for use in the - /etc/hosts file. The syntax is: - -IP_address myhost.example.org aliases - - Unless the computer is to be visible to the Internet (i.e., - there is a registered domain and a valid block of assigned IP - addresses—most users do not have this), make sure that the IP - address is in the private network IP address range. Valid ranges - are: - -Private Network Address Range Normal Prefix -10.0.0.1 - 10.255.255.254 8 -172.x.0.1 - 172.x.255.254 16 -192.168.y.1 - 192.168.y.254 24 - - x can be any number in the range 16-31. y can be any number in - the range 0-255. - - A valid private IP address could be 192.168.1.1. A valid FQDN for this - IP could be lfs.example.org. - - Even if not using a network card, a valid FQDN is still required. - This is necessary for certain programs to operate correctly. - - Create the /etc/hosts file by running: - -cat > /etc/hosts << "EOF" -# Begin /etc/hosts (network card version) - -127.0.0.1 localhost -<192.168.1.1> <HOSTNAME.example.org> [alias1] [alias2 ...] - -# End /etc/hosts (network card version) -EOF - - The <192.168.1.1> and - <HOSTNAME.example.org> - values need to be changed for specific uses or requirements (if - assigned an IP address by a network/system administrator and the - machine will be connected to an existing network). The optional alias - name(s) can be omitted. - - If a network card is not going to be configured, create the - /etc/hosts file by running: - -cat > /etc/hosts << "EOF" -# Begin /etc/hosts (no network card version) - -127.0.0.1 <HOSTNAME.example.org> <HOSTNAME> localhost - -# End /etc/hosts (no network card version) -EOF - - diff --git a/chapter07/setclock.xml b/chapter07/setclock.xml deleted file mode 100644 index 729c447f6..000000000 --- a/chapter07/setclock.xml +++ /dev/null @@ -1,132 +0,0 @@ - - - %general-entities; -]> - - - - - Configuring the System Clock - - Procedures for setting the system clock differ between systemd and - System V, however the separate procedures do not conflict so both - procedures should be accomplished to allow switching between systems. - - - System V Clock Configuration - - - setclock - configuring - - The setclock script reads the time from the hardware - clock, also known as the BIOS or the Complementary Metal Oxide Semiconductor - (CMOS) clock. If the hardware clock is set to UTC, this script will convert the - hardware clock's time to the local time using the - /etc/localtime file (which tells the - hwclock program which timezone the user is in). There is no - way to detect whether or not the hardware clock is set to UTC, so this - needs to be configured manually. - - The setclock is run via - udev when the kernel detects the hardware - capability upon boot. It can also be run manually with the stop parameter to - store the system time to the CMOS clock. - - If you cannot remember whether or not the hardware clock is set to UTC, - find out by running the hwclock --localtime --show - command. This will display what the current time is according to the hardware - clock. If this time matches whatever your watch says, then the hardware clock is - set to local time. If the output from hwclock is not local - time, chances are it is set to UTC time. Verify this by adding or subtracting - the proper amount of hours for the timezone to the time shown by - hwclock. For example, if you are currently in the MST - timezone, which is also known as GMT -0700, add seven hours to the local - time. - - Change the value of the UTC variable below - to a value of 0 (zero) if the hardware clock - is not set to UTC time. - - Create a new file /etc/sysconfig/clock by running - the following: - -cat > /etc/sysconfig/clock << "EOF" -# Begin /etc/sysconfig/clock - -UTC=1 - -# Set this to any options you might need to give to hwclock, -# such as machine hardware clock type for Alphas. -CLOCKPARAMS= - -# End /etc/sysconfig/clock -EOF - - A good hint explaining how to deal with time on LFS is available - at . It explains issues such as - time zones, UTC, and the TZ environment variable. - - The CLOCKPARAMS and UTC paramaters may be alternatively set - in the /etc/sysconfig/rc.site file. - - - - - Systemd Clock Configuration - - - clock - configuring - - This section discusses how to configure the - systemd-timedated system service, which configures - system clock and timezone. - - systemd-timedated reads - /etc/adjtime, and depending on the contents of the file, - it sets the clock to either UTC or local time. Create the - /etc/adjtime file with the following contents if your - hardware clock is set to local time: - -cat > /etc/adjtime << "EOF" -0.0 0 0.0 -0 -LOCAL -EOF - - If /etc/adjtime isn't present at first boot, - systemd-timedated will assume that hardware clock is - set to UTC and create the file using that setting. - - You can also use the timedatectl utility to tell - systemd-timedated if your hardware clock is set to - UTC or local time: - -timedatectl set-local-rtc 1 - - timedatectl can also be used to change system time and - time zone. - - To change your current system time, issue: - -timedatectl set-time YYYY:MM:DD HH:MM:SS - - Hardware clock will also be updated accordingly. - - To change your current time zone, issue: - -timedatectl set-timezone TIMEZONE - - You can get list of available time zones by running: - -timedatectl list-timezones - - Please note that timedatectl command can - be used only on a system booted with Systemd. - - - - diff --git a/chapter07/site.xml b/chapter07/site.xml deleted file mode 100644 index 1dd6df9a1..000000000 --- a/chapter07/site.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - %general-entities; -]> - - - - - The rc.site File - - - rc.site - - - The optional /etc/sysconfig/rc.site file contains - settings that are automatically set for each SystemV boot script. It can - alternatively set the values specified in the hostname, - console, and clock files in the - /etc/sysconfig/ directory. If the - associated variables are present in both these separate files and - rc.site, the values in the script specific files have - precedence. - - rc.site also contains parameters that can - customize other aspects of the boot process. Setting the IPROMPT variable - will enable selective running of bootscripts. Other options are described - in the file comments. The default version of the file is as follows: - - - &site; - - - Customizing the Boot and Shutdown Scripts - - The LFS boot scripts boot and shut down a system in a fairly - efficient manner, but there are a few tweaks that you can make in the - rc.site file to improve speed even more and to adjust messages according - to your preferences. To do this, adjust the settings in - the /etc/sysconfig/rc.site file above. - - - - During the boot script udev, there is - a call to udev settle that requires some time to - complete. This time may or may not be required depending on devices present - in the system. If you only have simple partitions and a single ethernet - card, the boot process will probably not need to wait for this command. To - skip it, set the variable OMIT_UDEV_SETTLE=y. - - The boot script udev_retry also runs - udev settle by default. This command is only needed by - default if the /var directory is - separately mounted. This is because the clock needs the file - /var/lib/hwclock/adjtime. Other customizations may - also need to wait for udev to complete, but in many installations it is not - needed. Skip the command by setting the variable OMIT_UDEV_RETRY_SETTLE=y. - - - By default, the file system checks are silent. This can - appear to be a delay during the bootup process. To turn on the - fsck output, set the variable VERBOSE_FSCK=y. - - - When rebooting, you may want to skip the filesystem check, - fsck, completely. To do this, either create the file - /fastboot or reboot the system with the command - /sbin/shutdown -f -r now. On the other hand, you can - force all file systems to be checked by creating - /forcefsck or running shutdown with - the -F parameter instead of -f. - - - Setting the variable FASTBOOT=y will disable fsck - during the boot process until it is removed. This is not recommended - on a permanent basis. - - Normally, all files in the /tmp directory are deleted at boot time. - Depending on the number of files or directories present, this can cause a - noticeable delay in the boot process. To skip removing these files set the - variable SKIPTMPCLEAN=y. - - During shutdown, the init program sends - a TERM signal to each program it has started (e.g. agetty), waits for a set - time (default 3 seconds), and sends each process a KILL signal and waits - again. This process is repeated in the sendsignals - script for any processes that are not shut down by their own scripts. The - delay for init can be set by passing a parameter. For - example to remove the delay in init, pass the -t0 - parameter when shutting down or rebooting (e.g. /sbin/shutdown - -t0 -r now). The delay for the sendsignals - script can be skipped by setting the parameter - KILLDELAY=0. - - - - - - - diff --git a/chapter07/sysklogd.xml b/chapter07/sysklogd.xml deleted file mode 100644 index a3747478a..000000000 --- a/chapter07/sysklogd.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - %general-entities; -]> - - - - - Configuring the sysklogd Script - - - sysklogd - configuring - - - The sysklogd script invokes the - syslogd program as a part of System V initialization. The - -m 0 option turns off the periodic timestamp mark that - syslogd writes to the log files every 20 minutes by - default. If you want to turn on this periodic timestamp mark, edit - /etc/sysconfig/rc.site and define the variable - SYSKLOGD_PARMS to the desired value. For instance, to remove all parameters, - set the variable to a null value: - -SYSKLOGD_PARMS= - - See man syslogd for more options. - - -- cgit v1.2.3-54-g00ecf