aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06
diff options
context:
space:
mode:
authorTimothy Bauscher <timothy@linuxfromscratch.org>2003-05-12 00:18:10 +0000
committerTimothy Bauscher <timothy@linuxfromscratch.org>2003-05-12 00:18:10 +0000
commiteec6e6dc6ed147269ff7eae9f1392192481833f4 (patch)
treeb73e507977db348c7eff46226ebbd66c19566ff3 /chapter06
parent0b6cb049c386a2b24162b97821bb5082cfae0454 (diff)
Zack's patches: Fix Bugs #359 and #515. Added /etc/hosts creation to beginning of ch6. Detailed services,protocols files and update to lfs-utils.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2571 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06')
-rw-r--r--chapter06/basic-net.xml26
-rw-r--r--chapter06/chapter06.xml1
2 files changed, 27 insertions, 0 deletions
diff --git a/chapter06/basic-net.xml b/chapter06/basic-net.xml
new file mode 100644
index 000000000..c89ecc7d9
--- /dev/null
+++ b/chapter06/basic-net.xml
@@ -0,0 +1,26 @@
+<sect1 id="ch06-basic-net">
+<title>Setting up Basic Networking</title>
+<?dbhtml filename="basic-net.html" dir="chapter06"?>
+
+<para>Here will be set up basic networking now that all the necessary
+software has been installed. There isn't all that much to do, really,
+just creating a basic /etc/hosts file, and downloading some very
+high-quality network information files.</para>
+
+<para>The first step is to create /etc/hosts. This file contains
+information allowing resolution of hostnames to IP addresses. Create a
+very basic one (we'll make a better one later) with the following
+command:</para>
+
+<para><screen><userinput>echo '127.0.0.1 localhost' > /etc/hosts</userinput></screen></para>
+
+<para>Now unpack the Lfs-Utils tarball again, as we're going to copy two
+necessary files from it. One is the /etc/services file, which is used to
+resolv service numbers to human-readable names, and the /etc/protocols
+file, which does the same for protocol numbers. Copy them with the
+following command after you have entered the Lfs-Utils directory:</para>
+
+<para><screen><userinput>cp -f etc/{services,protocols} /etc</userinput></screen></para>
+
+</sect1>
+
diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml
index 4aa5225d2..c0ff7547c 100644
--- a/chapter06/chapter06.xml
+++ b/chapter06/chapter06.xml
@@ -33,6 +33,7 @@
&c6-gettext;
&c6-nettools;
&c6-inetutils;
+&c6-basic-net;
&c6-perl;
&c6-texinfo;
&c6-autoconf;