| … | |
… | |
| 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.72 2005/08/15 09:00:27 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.77 2006/05/15 07:00:22 nightmorph Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <version>2.13</version> |
11 | <version>2.18</version> |
| 12 | <date>2005-08-15</date> |
12 | <date>2006-03-28</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> |
| … | |
… | |
| 275 | To enter your own IP address, netmask and gateway, you need |
268 | To enter your own IP address, netmask and gateway, you need |
| 276 | to set both <c>config_eth0</c> and <c>routes_eth0</c>: |
269 | to set both <c>config_eth0</c> and <c>routes_eth0</c>: |
| 277 | </p> |
270 | </p> |
| 278 | |
271 | |
| 279 | <pre caption="Manually setting IP information for eth0"> |
272 | <pre caption="Manually setting IP information for eth0"> |
| 280 | config_eth0=( "192.168.0.2 netmask 255.255.255.0" ) |
273 | config_eth0=( "192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255" ) |
| 281 | routes_eth0=( "default gw 192.168.0.1" ) |
274 | routes_eth0=( "default gw 192.168.0.1" ) |
| 282 | </pre> |
275 | </pre> |
| 283 | |
276 | |
| 284 | <p> |
277 | <p> |
| 285 | To use DHCP and add specific DHCP options, define <c>config_eth0</c> and |
278 | To use DHCP and add specific DHCP options, define <c>config_eth0</c> and |
| … | |
… | |
| 496 | # <i>nano -w /etc/conf.d/clock</i> |
489 | # <i>nano -w /etc/conf.d/clock</i> |
| 497 | </pre> |
490 | </pre> |
| 498 | |
491 | |
| 499 | <p> |
492 | <p> |
| 500 | If your hardware clock is not using UTC, you need to add <c>CLOCK="local"</c> to |
493 | If your hardware clock is not using UTC, you need to add <c>CLOCK="local"</c> to |
| 501 | the file. Otherwise you will notice some clock skew. |
494 | the file. Otherwise you will notice some clock skew. Furthermore, Windows |
|
|
495 | assumes that your hardware clock uses local time, so if you want to dualboot, |
|
|
496 | you should set this variable appropriately, otherwise your clock will go crazy. |
| 502 | </p> |
497 | </p> |
| 503 | |
498 | |
| 504 | <p> |
499 | <p> |
| 505 | When you're finished configuring <path>/etc/conf.d/clock</path>, save and |
500 | When you're finished configuring <path>/etc/conf.d/clock</path>, save and |
| 506 | exit. |
501 | exit. |