Setting up Basic Networking
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 high-quality network information files.
The first step is to create /etc/hosts. This file
contains information allowing resolution of host names to IP addresses.
Create a very basic one (we'll make a better one later) with the following
command:
echo "127.0.0.1 $(hostname) localhost" > /etc/hosts
Now unpack the Lfs-Utils tarball again, as we're going to copy two
necessary files from it. One is /etc/services, which is
used to resolve service numbers to human-readable names, and the other is
/etc/protocols, which does the same for protocol numbers.
Copy them with the following command after you have entered the Lfs-Utils
directory:
cp -f etc/{services,protocols} /etc