aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07
diff options
context:
space:
mode:
authorManuel Canales Esparcia <manuel@linuxfromscratch.org>2005-01-30 12:51:22 +0000
committerManuel Canales Esparcia <manuel@linuxfromscratch.org>2005-01-30 12:51:22 +0000
commitd72e04ae7c868b734e3ad39982b169c71444f541 (patch)
tree8009bd8eb42c8b44e5c78decfd41c579e74a2c3b /chapter07
parentbce08efc719e0824225490272cefa848a2313b24 (diff)
Added <literal> tags.
Added NEW comments to commands that differs from testing. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4599 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07')
-rw-r--r--chapter07/console.xml22
-rw-r--r--chapter07/hosts.xml18
-rw-r--r--chapter07/inputrc.xml5
-rw-r--r--chapter07/network.xml13
-rw-r--r--chapter07/profile.xml4
-rw-r--r--chapter07/setclock.xml4
6 files changed, 34 insertions, 32 deletions
diff --git a/chapter07/console.xml b/chapter07/console.xml
index 878e657b1..debeba00b 100644
--- a/chapter07/console.xml
+++ b/chapter07/console.xml
@@ -10,28 +10,28 @@
<para>Create the configuration file:</para>
<screen><userinput>cat &gt;/etc/sysconfig/console &lt;&lt;"EOF"
-KEYMAP="<replaceable>[arguments for loadkeys]</replaceable>"
-FONT="<replaceable>[arguments for setfont]</replaceable>"
+<literal>KEYMAP="<replaceable>[arguments for loadkeys]</replaceable>"
+FONT="<replaceable>[arguments for setfont]</replaceable>"</literal>
EOF</userinput></screen>
<para>If you see that keycode 14 is Backspace and not Delete,
create the following keymap snippet to fix this issue:</para>
-<screen><userinput>mkdir -p /etc/kbd &amp;&amp; cat &gt;/etc/kbd/bs-sends-del &lt;&lt;"EOF"
- keycode 14 = Delete Delete Delete Delete
- alt keycode 14 = Meta_Delete
-altgr alt keycode 14 = Meta_Delete
- keycode 111 = Remove
-altgr control keycode 111 = Boot
-control alt keycode 111 = Boot
-altgr control alt keycode 111 = Boot
+<screen><userinput>mkdir -p /etc/kbd &amp;&amp; cat &gt; /etc/kbd/bs-sends-del &lt;&lt;"EOF"
+<literal> keycode 14 = Delete Delete Delete Delete
+ alt keycode 14 = Meta_Delete
+ altgr alt keycode 14 = Meta_Delete
+ keycode 111 = Remove
+ altgr control keycode 111 = Boot
+ control alt keycode 111 = Boot
+altgr control alt keycode 111 = Boot</literal>
EOF</userinput></screen>
<para>Then tell the <command>console</command> script to load this snippet
after the main keymap:</para>
<screen><userinput>cat &gt;&gt;/etc/sysconfig/console &lt;&lt;"EOF"
-KEYMAP_CORRECTION="/etc/kbd/bs-sends-del"
+<literal>KEYMAP_CORRECTION="/etc/kbd/bs-sends-del"</literal>
EOF</userinput></screen>
</sect1>
diff --git a/chapter07/hosts.xml b/chapter07/hosts.xml
index 5f58fe0fe..dda1de2b9 100644
--- a/chapter07/hosts.xml
+++ b/chapter07/hosts.xml
@@ -7,27 +7,27 @@
<title>Creating the /etc/hosts File</title>
<?dbhtml filename="hosts.html"?>
-<para>If a network card is not going to be configured, create the
+<para>If a network card is to be configured, create the
<filename>/etc/hosts</filename> file by running:</para>
<screen><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
-# Begin /etc/hosts (no network card version)
+<literal># Begin /etc/hosts (network card version)
-127.0.0.1 <replaceable>[&lt;value of HOSTNAME&gt;.example.org]</replaceable> <replaceable>[value of HOSTNAME]</replaceable> localhost
+127.0.0.1 localhost
+<replaceable>[192.168.1.1]</replaceable> <replaceable>[&lt;HOSTNAME&gt;.example.org]</replaceable> <replaceable>[HOSTNAME]</replaceable>
-# End /etc/hosts (no network card version)
+# End /etc/hosts (network card version)</literal>
EOF</userinput></screen>
-<para>If a network card is to be configured, create the
+<para>If a network card is not going to be configured, create the
<filename>/etc/hosts</filename> file by running:</para>
<screen><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
-# Begin /etc/hosts (network card version)
+<literal># Begin /etc/hosts (no network card version)
-127.0.0.1 localhost
-<replaceable>[192.168.1.1]</replaceable> <replaceable>[&lt;value of HOSTNAME&gt;.example.org]</replaceable> <replaceable>[value of HOSTNAME]</replaceable>
+127.0.0.1 <replaceable>[&lt;HOSTNAME&gt;.example.org]</replaceable> <replaceable>[HOSTNAME]</replaceable> localhost
-# End /etc/hosts (network card version)
+# End /etc/hosts (no network card version)</literal>
EOF</userinput></screen>
</sect1>
diff --git a/chapter07/inputrc.xml b/chapter07/inputrc.xml
index 4011cd91f..8d5e6ed9e 100644
--- a/chapter07/inputrc.xml
+++ b/chapter07/inputrc.xml
@@ -10,7 +10,8 @@
<para>Create the /etc/inputrc file:</para>
<screen><userinput>cat &gt; /etc/inputrc &lt;&lt; "EOF"
-# Begin /etc/inputrc
+<literal># Begin /etc/inputrc
+# Modified by Chris Lynn &lt;roryo@roryo.dynup.net&gt;
# Make sure we don't output everything on the 1 line
set horizontal-scroll-mode Off
@@ -51,7 +52,7 @@ set bell-style none
"\e[H": beginning-of-line
"\e[F": end-of-line
-# End /etc/inputrc
+# End /etc/inputrc</literal>
EOF</userinput></screen>
</sect1>
diff --git a/chapter07/network.xml b/chapter07/network.xml
index cc5f25244..b01da80a1 100644
--- a/chapter07/network.xml
+++ b/chapter07/network.xml
@@ -17,28 +17,29 @@
<screen><userinput>cd /etc/sysconfig/network-devices &amp;&amp;
mkdir ifconfig.eth0 &amp;&amp;
cat &gt; ifconfig.eth0/ipv4 &lt;&lt; "EOF"
-ONBOOT=yes
+<literal>ONBOOT=yes
SERVICE=ipv4-static
IP=192.168.1.1
GATEWAY=192.168.1.2
PREFIX=24
-BROADCAST=192.168.1.255
+BROADCAST=192.168.1.255</literal>
EOF</userinput></screen>
</sect2>
<sect2 id="resolv.conf">
-<title>Creating the /etc/resolv.conf file</title>
+<title>Creating the /etc/resolv.conf File</title>
<para>Create the file by running the following:</para>
<screen><userinput>cat &gt; /etc/resolv.conf &lt;&lt; "EOF"
-# Begin /etc/resolv.conf
+<literal># Begin /etc/resolv.conf
domain {<replaceable>[Your Domain Name]</replaceable>}
-nameserver <replaceable>[IP address of your nameserver]</replaceable>
+nameserver <replaceable>[IP address of your primary nameserver]</replaceable>
+nameserver <replaceable>[IP address of your secondary nameserver]</replaceable>
-# End /etc/resolv.conf
+# End /etc/resolv.conf</literal>
EOF</userinput></screen>
</sect2>
diff --git a/chapter07/profile.xml b/chapter07/profile.xml
index f487dacf5..bbb8d244c 100644
--- a/chapter07/profile.xml
+++ b/chapter07/profile.xml
@@ -11,13 +11,13 @@
<para>Create the <filename>/etc/profile</filename> file:</para>
<screen><userinput>cat &gt; /etc/profile &lt;&lt; "EOF"
-# Begin /etc/profile
+<literal># Begin /etc/profile
export LC_ALL=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>
export LANG=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>
export INPUTRC=/etc/inputrc
-# End /etc/profile
+# End /etc/profile</literal>
EOF</userinput></screen>
</sect1>
diff --git a/chapter07/setclock.xml b/chapter07/setclock.xml
index 577eae54c..37bd0ac46 100644
--- a/chapter07/setclock.xml
+++ b/chapter07/setclock.xml
@@ -12,11 +12,11 @@
the following:</para>
<screen><userinput>cat &gt; /etc/sysconfig/clock &lt;&lt; "EOF"
-# Begin /etc/sysconfig/clock
+<literal># Begin /etc/sysconfig/clock
UTC=1
-# End /etc/sysconfig/clock
+# End /etc/sysconfig/clock</literal>
EOF</userinput></screen>
</sect1>