- Timestamp:
- 10/09/2003 11:22:07 PM (21 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_0, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 27d9bc1a
- Parents:
- 1a7aecc6
- Location:
- chapter07
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/hostname.xml
r1a7aecc6 r21ba4e3 9 9 running:</para> 10 10 11 < para><screen><userinput>echo "HOSTNAME=lfs" > /etc/sysconfig/network</userinput></screen></para>11 <screen><userinput>echo "HOSTNAME=lfs" > /etc/sysconfig/network</userinput></screen> 12 12 13 13 <para><quote>lfs</quote> needs to be replaced with the name the computer is -
chapter07/hosts.xml
r1a7aecc6 r21ba4e3 7 7 syntax is:</para> 8 8 9 < para><screen><IP address> myhost.mydomain.org aliases</screen></para>9 <screen><IP address> myhost.mydomain.org aliases</screen> 10 10 11 11 <para>You should make sure that the IP-address is in the private network 12 12 IP-address range. Valid ranges are:</para> 13 13 14 < para><screen> Class Networks14 <screen> Class Networks 15 15 A 10.0.0.0 16 16 B 172.16.0.0 through 172.31.0.0 17 C 192.168.0.0 through 192.168.255.0</screen> </para>17 C 192.168.0.0 through 192.168.255.0</screen> 18 18 19 19 <para>A valid IP address could be 192.168.1.1. A valid FQDN for this IP could … … 27 27 <filename>/etc/hosts</filename> file by running:</para> 28 28 29 < para><screen><userinput>cat > /etc/hosts << "EOF"</userinput>29 <screen><userinput>cat > /etc/hosts << "EOF"</userinput> 30 30 # Begin /etc/hosts (no network card version) 31 31 … … 33 33 34 34 # End /etc/hosts (no network card version) 35 <userinput>EOF</userinput></screen> </para>35 <userinput>EOF</userinput></screen> 36 36 37 37 <para>If a network card is to be configured, create the 38 38 <filename>/etc/hosts</filename> file by running:</para> 39 39 40 < para><screen><userinput>cat > /etc/hosts << "EOF"</userinput>40 <screen><userinput>cat > /etc/hosts << "EOF"</userinput> 41 41 # Begin /etc/hosts (network card version) 42 42 … … 45 45 46 46 # End /etc/hosts (network card version) 47 <userinput>EOF</userinput></screen> </para>47 <userinput>EOF</userinput></screen> 48 48 49 49 <para>Of course, the 192.168.1.1 and <value of HOSTNAME>.mydomain.org -
chapter07/network.xml
r1a7aecc6 r21ba4e3 19 19 /etc/sysconfig/network file by running the following:</para> 20 20 21 < para><screen><userinput>cat >> /etc/sysconfig/network << "EOF"</userinput>21 <screen><userinput>cat >> /etc/sysconfig/network << "EOF"</userinput> 22 22 GATEWAY=192.168.1.2 23 23 GATEWAY_IF=eth0 24 <userinput>EOF</userinput></screen> </para>24 <userinput>EOF</userinput></screen> 25 25 26 26 <para>The values for GATEWAY and GATEWAY_IF need to be changed to match … … 46 46 The following command creates a sample ifconfig.eth0 file:</para> 47 47 48 < para><screen><userinput>cat > /etc/sysconfig/network-devices/ifconfig.eth0 << "EOF"</userinput>48 <screen><userinput>cat > /etc/sysconfig/network-devices/ifconfig.eth0 << "EOF"</userinput> 49 49 ONBOOT=yes 50 50 IP=192.168.1.1 51 51 NETMASK=255.255.255.0 52 52 BROADCAST=192.168.1.255 53 <userinput>EOF</userinput></screen> </para>53 <userinput>EOF</userinput></screen> 54 54 55 55 <para>Of course, the values of those variables have to be changed -
chapter07/setclock.xml
r1a7aecc6 r21ba4e3 17 17 the following:</para> 18 18 19 < para><screen><userinput>cat > /etc/sysconfig/clock << "EOF"</userinput>19 <screen><userinput>cat > /etc/sysconfig/clock << "EOF"</userinput> 20 20 # Begin /etc/sysconfig/clock 21 21 … … 23 23 24 24 # End /etc/sysconfig/clock 25 <userinput>EOF</userinput></screen> </para>25 <userinput>EOF</userinput></screen> 26 26 27 27 <para>Now, you may want to take a look at a very good hint explaining how we
Note:
See TracChangeset
for help on using the changeset viewer.