| … | |
… | |
| 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.74 2005/11/19 09:31:05 swift 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.15</version> |
11 | <version>2.19</version> |
| 12 | <date>2005-11-19</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> |
| 71 | The default <path>/etc/fstab</path> file provided by Gentoo <e>is no valid fstab |
71 | The default <path>/etc/fstab</path> file provided by Gentoo <e>is not a valid |
| 72 | file</e>, so start <c>nano</c> (or your favorite editor) to create your |
72 | fstab 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> |
| 78 | </pre> |
78 | </pre> |
| 79 | |
79 | |
| 80 | <p> |
80 | <p> |
| 81 | Let us take a look at how we write down the options for the <path>/boot</path> |
81 | Let us take a look at how we write down the options for the <path>/boot</path> |
| 82 | partition. This is just an example, so if your architecture doesn't require a |
82 | partition. This is just an example, so if your architecture doesn't require a |
| 83 | <path>/boot</path> partition (such as <b>PPC</b>), don't copy it verbatim. |
83 | <path>/boot</path> partition (such as Apple <b>PPC</b> machines), don't copy it |
|
|
84 | verbatim. |
| 84 | </p> |
85 | </p> |
| 85 | |
86 | |
| 86 | <p> |
87 | <p> |
| 87 | In our default x86 partitioning example <path>/boot</path> is the |
88 | In our default x86 partitioning example <path>/boot</path> is the |
| 88 | <path>/dev/hda1</path> partition, with <c>ext2</c> as filesystem. |
89 | <path>/dev/hda1</path> partition, with <c>ext2</c> as filesystem. |
| … | |
… | |
| 208 | |
209 | |
| 209 | <comment>(Set the NISDOMAIN variable to your NIS domain name)</comment> |
210 | <comment>(Set the NISDOMAIN variable to your NIS domain name)</comment> |
| 210 | NISDOMAIN="<i>my-nisdomain</i>" |
211 | NISDOMAIN="<i>my-nisdomain</i>" |
| 211 | </pre> |
212 | </pre> |
| 212 | |
213 | |
| 213 | <p> |
|
|
| 214 | Now add the <c>domainname</c> script to the default runlevel: |
|
|
| 215 | </p> |
|
|
| 216 | |
|
|
| 217 | <pre caption="Adding domainname to the default runlevel"> |
|
|
| 218 | # <i>rc-update add domainname default</i> |
|
|
| 219 | </pre> |
|
|
| 220 | |
|
|
| 221 | </body> |
214 | </body> |
| 222 | </subsection> |
215 | </subsection> |
| 223 | <subsection> |
216 | <subsection> |
| 224 | <title>Configuring your Network</title> |
217 | <title>Configuring your Network</title> |
| 225 | <body> |
218 | <body> |
| … | |
… | |
| 339 | <title>Writing Down Network Information</title> |
332 | <title>Writing Down Network Information</title> |
| 340 | <body> |
333 | <body> |
| 341 | |
334 | |
| 342 | <p> |
335 | <p> |
| 343 | You now need to inform Linux about your network. This is defined in |
336 | You now need to inform Linux about your network. This is defined in |
| 344 | <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 |
| 345 | for hosts that aren't resolved by your nameserver. For instance, if your |
338 | hosts that aren't resolved by your nameserver. You need to define your system. |
| 346 | internal network consists of three PCs called <c>jenny</c> (192.168.0.5), |
339 | You may also want to define other systems on your network if you don't want to |
| 347 | <c>benny</c> (192.168.0.6) and <c>tux</c> (192.168.0.7 - this system) you would |
340 | set up your own internal DNS system. |
| 348 | open <path>/etc/hosts</path> and fill in the values: |
|
|
| 349 | </p> |
341 | </p> |
| 350 | |
342 | |
| 351 | <pre caption="Opening /etc/hosts"> |
343 | <pre caption="Opening /etc/hosts"> |
| 352 | # <i>nano -w /etc/hosts</i> |
344 | # <i>nano -w /etc/hosts</i> |
| 353 | </pre> |
345 | </pre> |
| 354 | |
346 | |
| 355 | <pre caption="Filling in the networking information"> |
347 | <pre caption="Filling in the networking information"> |
| 356 | 127.0.0.1 localhost |
348 | <comment>(This defines the current system)</comment> |
|
|
349 | 127.0.0.1 tux.homenetwork tux localhost |
|
|
350 | |
|
|
351 | <comment>(Define extra systems on your network, |
|
|
352 | they need to have a static IP to be defined this way.)</comment> |
| 357 | 192.168.0.5 jenny.homenetwork jenny |
353 | 192.168.0.5 jenny.homenetwork jenny |
| 358 | 192.168.0.6 benny.homenetwork benny |
354 | 192.168.0.6 benny.homenetwork benny |
| 359 | 192.168.0.7 tux.homenetwork tux |
|
|
| 360 | </pre> |
|
|
| 361 | |
|
|
| 362 | <p> |
|
|
| 363 | If your system is the only system (or the nameservers handle all name |
|
|
| 364 | resolution) a single line is sufficient. For instance, if you want to call your |
|
|
| 365 | system <c>tux</c>: |
|
|
| 366 | </p> |
|
|
| 367 | |
|
|
| 368 | <pre caption="/etc/hosts for lonely or fully integrated PCs"> |
|
|
| 369 | 127.0.0.1 localhost tux |
|
|
| 370 | </pre> |
355 | </pre> |
| 371 | |
356 | |
| 372 | <p> |
357 | <p> |
| 373 | Save and exit the editor to continue. |
358 | Save and exit the editor to continue. |
| 374 | </p> |
359 | </p> |