/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-config.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-config.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.75 Revision 1.78
2<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> 2<!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3 3
4<!-- The content of this document is licensed under the CC-BY-SA license --> 4<!-- The content of this document is licensed under the CC-BY-SA license -->
5<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 5<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.75 2006/02/27 00:55:34 fox2mike Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.78 2006/05/27 13:02:15 neysx Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>2.17</version> 11<version>2.19</version>
12<date>2006-02-27</date> 12<date>2006-05-27</date>
13 13
14<section> 14<section>
15<title>Filesystem Information</title> 15<title>Filesystem Information</title>
16<subsection> 16<subsection>
17<title>What is fstab?</title> 17<title>What is fstab?</title>
66 (or <c>0</c> if a filesystem check isn't necessary). 66 (or <c>0</c> if a filesystem check isn't necessary).
67</li> 67</li>
68</ul> 68</ul>
69 69
70<p> 70<p>
71The default <path>/etc/fstab</path> file provided by Gentoo <e>is no valid fstab 71The default <path>/etc/fstab</path> file provided by Gentoo <e>is not a valid
72file</e>, so start <c>nano</c> (or your favorite editor) to create your 72fstab file</e>, so start <c>nano</c> (or your favorite editor) to create your
73<path>/etc/fstab</path>: 73<path>/etc/fstab</path>:
74</p> 74</p>
75 75
76<pre caption="Opening /etc/fstab"> 76<pre caption="Opening /etc/fstab">
77# <i>nano -w /etc/fstab</i> 77# <i>nano -w /etc/fstab</i>
209 209
210<comment>(Set the NISDOMAIN variable to your NIS domain name)</comment> 210<comment>(Set the NISDOMAIN variable to your NIS domain name)</comment>
211NISDOMAIN="<i>my-nisdomain</i>" 211NISDOMAIN="<i>my-nisdomain</i>"
212</pre> 212</pre>
213 213
214<p>
215Now add the <c>domainname</c> script to the default runlevel:
216</p>
217
218<pre caption="Adding domainname to the default runlevel">
219# <i>rc-update add domainname default</i>
220</pre>
221
222</body> 214</body>
223</subsection> 215</subsection>
224<subsection> 216<subsection>
225<title>Configuring your Network</title> 217<title>Configuring your Network</title>
226<body> 218<body>
340<title>Writing Down Network Information</title> 332<title>Writing Down Network Information</title>
341<body> 333<body>
342 334
343<p> 335<p>
344You now need to inform Linux about your network. This is defined in 336You now need to inform Linux about your network. This is defined in
345<path>/etc/hosts</path> and helps in resolving hostnames to IP addresses 337<path>/etc/hosts</path> and helps in resolving hostnames to IP addresses for
346for hosts that aren't resolved by your nameserver. For instance, if your 338hosts that aren't resolved by your nameserver. You need to define your system.
347internal network consists of three PCs called <c>jenny</c> (192.168.0.5), 339You may also want to define other systems on your network if you don't want to
348<c>benny</c> (192.168.0.6) and <c>tux</c> (192.168.0.7 - this system) you would 340set up your own internal DNS system.
349open <path>/etc/hosts</path> and fill in the values:
350</p> 341</p>
351 342
352<pre caption="Opening /etc/hosts"> 343<pre caption="Opening /etc/hosts">
353# <i>nano -w /etc/hosts</i> 344# <i>nano -w /etc/hosts</i>
354</pre> 345</pre>
355 346
356<pre caption="Filling in the networking information"> 347<pre caption="Filling in the networking information">
357127.0.0.1 localhost 348<comment>(This defines the current system)</comment>
349127.0.0.1 tux.homenetwork tux localhost
350
351<comment>(Define extra systems on your network,
352they need to have a static IP to be defined this way.)</comment>
358192.168.0.5 jenny.homenetwork jenny 353192.168.0.5 jenny.homenetwork jenny
359192.168.0.6 benny.homenetwork benny 354192.168.0.6 benny.homenetwork benny
360192.168.0.7 tux.homenetwork tux
361</pre>
362
363<p>
364If your system is the only system (or the nameservers handle all name
365resolution) a single line is sufficient. For instance, if you want to call your
366system <c>tux</c>:
367</p>
368
369<pre caption="/etc/hosts for lonely or fully integrated PCs">
370127.0.0.1 localhost tux
371</pre> 355</pre>
372 356
373<p> 357<p>
374Save and exit the editor to continue. 358Save and exit the editor to continue.
375</p> 359</p>

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.78

  ViewVC Help
Powered by ViewVC 1.1.20