From 0090db5c7b0cb69fc9c06da99ad868814414d2b0 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Fri, 14 Apr 2006 09:37:17 +0000 Subject: Changed typography convections. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7516 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter07/hostname.xml | 4 ++-- chapter07/hosts.xml | 13 +++++++------ chapter07/network.xml | 8 ++++---- chapter07/profile.xml | 24 ++++++++++++------------ chapter07/usage.xml | 4 ++-- 5 files changed, 27 insertions(+), 26 deletions(-) (limited to 'chapter07') diff --git a/chapter07/hostname.xml b/chapter07/hostname.xml index 7515d6a03..26f1e20b3 100644 --- a/chapter07/hostname.xml +++ b/chapter07/hostname.xml @@ -22,9 +22,9 @@ Create the /etc/sysconfig/network file and enter a hostname by running: -echo "HOSTNAME=[lfs]" > /etc/sysconfig/network +echo "HOSTNAME=<lfs>" > /etc/sysconfig/network - [lfs] needs to be replaced with the name given + <lfs> needs to be replaced with the name given to the computer. Do not enter the Fully Qualified Domain Name (FQDN) here. That information will be put in the /etc/hosts file in the next section. diff --git a/chapter07/hosts.xml b/chapter07/hosts.xml index 0b196cefd..e51aa37be 100644 --- a/chapter07/hosts.xml +++ b/chapter07/hosts.xml @@ -26,7 +26,7 @@ fully-qualified domain name (FQDN), and possible aliases for use in the /etc/hosts file. The syntax is: -<IP address> myhost.example.org aliases +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 @@ -54,16 +54,17 @@ # Begin /etc/hosts (network card version) 127.0.0.1 localhost -[192.168.1.1] [<HOSTNAME>.example.org] [HOSTNAME] +<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] + The <192.168.1.1> and + <HOSTNAME.example.org> values need to be changed for specific users or requirements (if assigned an IP address by a network/system administrator and the - machine will be connected to an existing network). + 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: @@ -71,7 +72,7 @@ EOF cat > /etc/hosts << "EOF" # Begin /etc/hosts (no network card version) -127.0.0.1 [<HOSTNAME>.example.org] [HOSTNAME] localhost +127.0.0.1 <HOSTNAME.example.org> <HOSTNAME> localhost # End /etc/hosts (no network card version) EOF diff --git a/chapter07/network.xml b/chapter07/network.xml index ac6082271..8ae1399ca 100644 --- a/chapter07/network.xml +++ b/chapter07/network.xml @@ -139,14 +139,14 @@ EOF cat > /etc/resolv.conf << "EOF" # Begin /etc/resolv.conf -domain {[Your Domain Name]} -nameserver [IP address of your primary nameserver] -nameserver [IP address of your secondary nameserver] +domain {<Your Domain Name>} +nameserver <IP address of your primary nameserver> +nameserver <IP address of your secondary nameserver> # End /etc/resolv.conf EOF - Replace [IP address of the nameserver] + Replace <IP address of the nameserver> with the IP address of the DNS most appropriate for the setup. There will often be more than one entry (requirements demand secondary servers for fallback capability). If you only need or want one DNS server, remove the diff --git a/chapter07/profile.xml b/chapter07/profile.xml index e2748d9df..9255ef81c 100644 --- a/chapter07/profile.xml +++ b/chapter07/profile.xml @@ -65,10 +65,10 @@ makes Bash and Readline use the /etc/inputrc file created earlier. - Replace [ll] below with the two-letter code + Replace <ll> below with the two-letter code for the desired language (e.g., en) and - [CC] with the two-letter code for the appropriate - country (e.g., GB). [charmap] should + <CC> with the two-letter code for the appropriate + country (e.g., GB). <charmap> should be replaced with the canonical charmap for your chosen locale. Optional modifiers such as @euro may also be present. @@ -83,11 +83,11 @@ that UTF-8 is written as UTF-8, not utf8), so it is safest in most cases to choose the canonical name for a particular locale. To determine - the canonical name, run the following command, where [locale - name] is the output given by locale -a for + the canonical name, run the following command, where <locale + name> is the output given by locale -a for your preferred locale (en_GB.iso88591 in our example). -LC_ALL=[locale name] locale charmap +LC_ALL=<locale name> locale charmap For the en_GB.iso88591 locale, the above command will print: @@ -98,11 +98,11 @@ It is important that the locale found using the heuristic above is tested prior to it being added to the Bash startup files: -LC_ALL=[locale name] locale country -LC_ALL=[locale name] locale language -LC_ALL=[locale name] locale charmap -LC_ALL=[locale name] locale int_curr_symbol -LC_ALL=[locale name] locale int_prefix +LC_ALL=<locale name> locale country +LC_ALL=<locale name> locale language +LC_ALL=<locale name> locale charmap +LC_ALL=<locale name> locale int_curr_symbol +LC_ALL=<locale name> locale int_prefix The above commands should print the country and language names, the character encoding used by the locale, the local currency and the prefix to dial @@ -143,7 +143,7 @@ LC_ALL=[locale name] locale int_prefix cat > /etc/profile << "EOF" # Begin /etc/profile -export LANG=[ll]_[CC].[charmap][@modifiers] +export LANG=<ll>_<CC>.<charmap><@modifiers> export INPUTRC=/etc/inputrc # End /etc/profile diff --git a/chapter07/usage.xml b/chapter07/usage.xml index 991cf55dc..6e2bab32f 100644 --- a/chapter07/usage.xml +++ b/chapter07/usage.xml @@ -38,8 +38,8 @@ 6: reboot the computer The command used to change run-levels is init - [runlevel], where - [runlevel] is the target run-level. For example, to + <runlevel>, where + <runlevel> is the target run-level. For example, to reboot the computer, a user could issue the init 6 command, which is an alias for the reboot command. Likewise, init 0 is an alias for the halt -- cgit v1.2.3-54-g00ecf