From d72e04ae7c868b734e3ad39982b169c71444f541 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Sun, 30 Jan 2005 12:51:22 +0000 Subject: Added 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 --- chapter07/console.xml | 22 +++++++++++----------- chapter07/hosts.xml | 18 +++++++++--------- chapter07/inputrc.xml | 5 +++-- chapter07/network.xml | 13 +++++++------ chapter07/profile.xml | 4 ++-- chapter07/setclock.xml | 4 ++-- 6 files changed, 34 insertions(+), 32 deletions(-) (limited to 'chapter07') 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 @@ Create the configuration file: cat >/etc/sysconfig/console <<"EOF" -KEYMAP="[arguments for loadkeys]" -FONT="[arguments for setfont]" +KEYMAP="[arguments for loadkeys]" +FONT="[arguments for setfont]" EOF If you see that keycode 14 is Backspace and not Delete, create the following keymap snippet to fix this issue: -mkdir -p /etc/kbd && cat >/etc/kbd/bs-sends-del <<"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 +mkdir -p /etc/kbd && cat > /etc/kbd/bs-sends-del <<"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 EOF Then tell the console script to load this snippet after the main keymap: cat >>/etc/sysconfig/console <<"EOF" -KEYMAP_CORRECTION="/etc/kbd/bs-sends-del" +KEYMAP_CORRECTION="/etc/kbd/bs-sends-del" EOF 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 @@ Creating the /etc/hosts File -If a network card is not going to be configured, create the +If a network card is to be configured, create the /etc/hosts file by running: cat > /etc/hosts << "EOF" -# Begin /etc/hosts (no network card version) +# Begin /etc/hosts (network card version) -127.0.0.1 [<value of HOSTNAME>.example.org] [value of HOSTNAME] localhost +127.0.0.1 localhost +[192.168.1.1] [<HOSTNAME>.example.org] [HOSTNAME] -# End /etc/hosts (no network card version) +# End /etc/hosts (network card version) EOF -If a network card is to be configured, create the +If a network card is not going to be configured, create the /etc/hosts file by running: cat > /etc/hosts << "EOF" -# Begin /etc/hosts (network card version) +# Begin /etc/hosts (no network card version) -127.0.0.1 localhost -[192.168.1.1] [<value of HOSTNAME>.example.org] [value of HOSTNAME] +127.0.0.1 [<HOSTNAME>.example.org] [HOSTNAME] localhost -# End /etc/hosts (network card version) +# End /etc/hosts (no network card version) EOF 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 @@ Create the /etc/inputrc file: cat > /etc/inputrc << "EOF" -# Begin /etc/inputrc +# Begin /etc/inputrc +# Modified by Chris Lynn <roryo@roryo.dynup.net> # 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 EOF 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 @@ cd /etc/sysconfig/network-devices && mkdir ifconfig.eth0 && cat > ifconfig.eth0/ipv4 << "EOF" -ONBOOT=yes +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 EOF -Creating the /etc/resolv.conf file +Creating the /etc/resolv.conf File Create the file by running the following: cat > /etc/resolv.conf << "EOF" -# Begin /etc/resolv.conf +# Begin /etc/resolv.conf domain {[Your Domain Name]} -nameserver [IP address of your nameserver] +nameserver [IP address of your primary nameserver] +nameserver [IP address of your secondary nameserver] -# End /etc/resolv.conf +# End /etc/resolv.conf EOF 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 @@ Create the /etc/profile file: cat > /etc/profile << "EOF" -# Begin /etc/profile +# Begin /etc/profile export LC_ALL=[ll]_[CC] export LANG=[ll]_[CC] export INPUTRC=/etc/inputrc -# End /etc/profile +# End /etc/profile EOF 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: cat > /etc/sysconfig/clock << "EOF" -# Begin /etc/sysconfig/clock +# Begin /etc/sysconfig/clock UTC=1 -# End /etc/sysconfig/clock +# End /etc/sysconfig/clock EOF -- cgit v1.2.3-54-g00ecf