| … | |
… | |
| 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.81 2006/08/30 22:52:28 nightmorph Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.85 2006/10/21 01:13:51 nightmorph Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <version>7.0</version> |
11 | <version>7.4</version> |
| 12 | <date>2006-08-30</date> |
12 | <date>2006-10-20</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> |
| … | |
… | |
| 220 | </subsection> |
220 | </subsection> |
| 221 | </section> |
221 | </section> |
| 222 | <section> |
222 | <section> |
| 223 | <title>Networking Information</title> |
223 | <title>Networking Information</title> |
| 224 | <subsection> |
224 | <subsection> |
| 225 | <title>Host name</title> |
225 | <title>Host name, Domainname, etc</title> |
| 226 | <body> |
226 | <body> |
| 227 | |
227 | |
| 228 | <p> |
228 | <p> |
| 229 | One of the choices the user has to make is name his/her PC. This seems to be |
229 | One of the choices the user has to make is name his/her PC. This seems to be |
| 230 | quite easy, but <e>lots</e> of users are having difficulties finding the |
230 | quite easy, but <e>lots</e> of users are having difficulties finding the |
| … | |
… | |
| 238 | |
238 | |
| 239 | <comment>(Set the HOSTNAME variable to your host name)</comment> |
239 | <comment>(Set the HOSTNAME variable to your host name)</comment> |
| 240 | HOSTNAME="<i>tux</i>" |
240 | HOSTNAME="<i>tux</i>" |
| 241 | </pre> |
241 | </pre> |
| 242 | |
242 | |
|
|
243 | <p> |
|
|
244 | Second we set the domainname in <path>/etc/conf.d/net</path>: |
|
|
245 | </p> |
|
|
246 | |
|
|
247 | <pre caption="Setting the domainname"> |
|
|
248 | # <i>nano -w /etc/conf.d/net</i> |
|
|
249 | |
|
|
250 | <comment>(Set the dns_domain variable to your domain name)</comment> |
|
|
251 | dns_domain_lo="<i>homenetwork</i>" |
|
|
252 | </pre> |
|
|
253 | |
|
|
254 | <p> |
|
|
255 | If you have a NIS domain (if you don't know what that is, then you don't have |
|
|
256 | one), you need to define that one too: |
|
|
257 | </p> |
|
|
258 | |
|
|
259 | <pre caption="Setting the NIS domainname"> |
|
|
260 | # <i>nano -w /etc/conf.d/net</i> |
|
|
261 | |
|
|
262 | <comment>(Set the nis_domain variable to your NIS domain name)</comment> |
|
|
263 | nis_domain_lo="<i>my-nisdomain</i>" |
|
|
264 | </pre> |
|
|
265 | |
|
|
266 | <note> |
|
|
267 | For more information on configuring DNS and NIS, please read the examples |
|
|
268 | provided in <path>/etc/conf.d/net.example</path>. |
|
|
269 | </note> |
|
|
270 | |
| 243 | </body> |
271 | </body> |
| 244 | </subsection> |
272 | </subsection> |
| 245 | <subsection> |
273 | <subsection> |
| 246 | <title>Configuring your Network</title> |
274 | <title>Configuring your Network</title> |
| 247 | <body> |
275 | <body> |
| … | |
… | |
| 266 | commented example that covers many different configurations is available in |
294 | commented example that covers many different configurations is available in |
| 267 | <path>/etc/conf.d/net.example</path>. |
295 | <path>/etc/conf.d/net.example</path>. |
| 268 | </p> |
296 | </p> |
| 269 | |
297 | |
| 270 | <p> |
298 | <p> |
| 271 | DHCP is used by default and does not require any further configuration. |
299 | DHCP is used by default. For DHCP to work, you will need to install a DHCP |
|
|
300 | client. This is described later in <uri |
|
|
301 | link="?part=1&chap=9#networking-tools">Installing Necessary System |
|
|
302 | Tools</uri>. Do not forget to install a DHCP client. |
| 272 | </p> |
303 | </p> |
| 273 | |
304 | |
| 274 | <p> |
305 | <p> |
| 275 | If you need to configure your network connection either because you need |
306 | If you need to configure your network connection either because you need |
| 276 | specific DHCP options or because you do not use DHCP at all, open |
307 | specific DHCP options or because you do not use DHCP at all, open |
| … | |
… | |
| 509 | <pre caption="Opening /etc/conf.d/clock"> |
540 | <pre caption="Opening /etc/conf.d/clock"> |
| 510 | # <i>nano -w /etc/conf.d/clock</i> |
541 | # <i>nano -w /etc/conf.d/clock</i> |
| 511 | </pre> |
542 | </pre> |
| 512 | |
543 | |
| 513 | <p> |
544 | <p> |
| 514 | If your hardware clock is not using UTC, you need to add <c>CLOCK="local"</c> to |
545 | If your hardware clock is not using UTC, you need to add <c>CLOCK="local"</c> |
| 515 | the file. Otherwise you will notice some clock skew. Furthermore, Windows |
546 | to the file. Otherwise you will notice some clock skew. |
| 516 | assumes that your hardware clock uses local time, so if you want to dualboot, |
|
|
| 517 | you should set this variable appropriately, otherwise your clock will go crazy. |
|
|
| 518 | </p> |
547 | </p> |
| 519 | |
548 | |
| 520 | <p> |
549 | <p> |
| 521 | When you're finished configuring <path>/etc/conf.d/clock</path>, save and |
550 | When you're finished configuring <path>/etc/conf.d/clock</path>, save and |
| 522 | exit. |
551 | exit. |