| … | |
… | |
| 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.103 2011/08/02 17:43:17 jkt Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.106 2011/08/14 10:29:40 swift Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <abstract> |
11 | <abstract> |
| 12 | You need to edit some important configuration files. In this chapter |
12 | You need to edit some important configuration files. In this chapter |
| 13 | you receive an overview of these files and an explanation on how to |
13 | you receive an overview of these files and an explanation on how to |
| 14 | proceed. |
14 | proceed. |
| 15 | </abstract> |
15 | </abstract> |
| 16 | |
16 | |
| 17 | <version>10</version> |
17 | <version>13</version> |
| 18 | <date>2011-08-02</date> |
18 | <date>2011-08-13</date> |
| 19 | |
19 | |
| 20 | <section> |
20 | <section> |
| 21 | <title>Filesystem Information</title> |
21 | <title>Filesystem Information</title> |
| 22 | <subsection> |
22 | <subsection> |
| 23 | <title>What is fstab?</title> |
23 | <title>What is fstab?</title> |
| … | |
… | |
| 204 | </p> |
204 | </p> |
| 205 | |
205 | |
| 206 | <pre caption="Setting the host name"> |
206 | <pre caption="Setting the host name"> |
| 207 | # <i>nano -w /etc/conf.d/hostname</i> |
207 | # <i>nano -w /etc/conf.d/hostname</i> |
| 208 | |
208 | |
| 209 | <comment>(Set the HOSTNAME variable to your host name)</comment> |
209 | <comment>(Set the hostname variable to your host name)</comment> |
| 210 | HOSTNAME="<i>tux</i>" |
210 | hostname="<i>tux</i>" |
| 211 | </pre> |
211 | </pre> |
| 212 | |
212 | |
| 213 | <p> |
213 | <p> |
| 214 | Second, <e>if</e> you need a domainname, set it in <path>/etc/conf.d/net</path>. |
214 | Second, <e>if</e> you need a domainname, set it in <path>/etc/conf.d/net</path>. |
| 215 | You only need a domain if your ISP or network administrator says so, or if you |
215 | You only need a domain if your ISP or network administrator says so, or if you |
| … | |
… | |
| 308 | To enter your own IP address, netmask and gateway, you need |
308 | To enter your own IP address, netmask and gateway, you need |
| 309 | to set both <c>config_eth0</c> and <c>routes_eth0</c>: |
309 | to set both <c>config_eth0</c> and <c>routes_eth0</c>: |
| 310 | </p> |
310 | </p> |
| 311 | |
311 | |
| 312 | <pre caption="Manually setting IP information for eth0"> |
312 | <pre caption="Manually setting IP information for eth0"> |
| 313 | config_eth0=( "192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255" ) |
313 | config_eth0="192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255" |
| 314 | routes_eth0=( "default via 192.168.0.1" ) |
314 | routes_eth0="default via 192.168.0.1" |
| 315 | </pre> |
315 | </pre> |
| 316 | |
316 | |
| 317 | <p> |
317 | <p> |
| 318 | To use DHCP, define <c>config_eth0</c>: |
318 | To use DHCP, define <c>config_eth0</c>: |
| 319 | </p> |
319 | </p> |
| 320 | |
320 | |
| 321 | <pre caption="Automatically obtaining an IP address for eth0"> |
321 | <pre caption="Automatically obtaining an IP address for eth0"> |
| 322 | config_eth0=( "dhcp" ) |
322 | config_eth0="dhcp" |
| 323 | </pre> |
323 | </pre> |
| 324 | |
324 | |
| 325 | <p> |
325 | <p> |
| 326 | Please read <path>/etc/conf.d/net.example</path> for a list of all available |
326 | Please read <path>/etc/conf.d/net.example</path> for a list of all available |
| 327 | options. Be sure to also read your DHCP client manpage if you need to set |
327 | options. Be sure to also read your DHCP client manpage if you need to set |
| … | |
… | |
| 463 | <pre caption="Opening /etc/conf.d/keymaps"> |
463 | <pre caption="Opening /etc/conf.d/keymaps"> |
| 464 | # <i>nano -w /etc/conf.d/keymaps</i> |
464 | # <i>nano -w /etc/conf.d/keymaps</i> |
| 465 | </pre> |
465 | </pre> |
| 466 | |
466 | |
| 467 | <p> |
467 | <p> |
| 468 | Take special care with the <c>KEYMAP</c> variable. If you select the wrong |
468 | Take special care with the <c>keymap</c> variable. If you select the wrong |
| 469 | <c>KEYMAP</c>, you will get weird results when typing on your keyboard. |
469 | <c>keymap</c>, you will get weird results when typing on your keyboard. |
| 470 | </p> |
470 | </p> |
| 471 | |
471 | |
| 472 | <note test="substring(func:keyval('arch'),1,3)='PPC'"> |
472 | <note test="substring(func:keyval('arch'),1,3)='PPC'"> |
| 473 | PPC uses x86 keymaps on most systems. |
473 | PPC uses x86 keymaps on most systems. |
| 474 | </note> |
474 | </note> |
| … | |
… | |
| 477 | When you're finished configuring <path>/etc/conf.d/keymaps</path>, save and |
477 | When you're finished configuring <path>/etc/conf.d/keymaps</path>, save and |
| 478 | exit. |
478 | exit. |
| 479 | </p> |
479 | </p> |
| 480 | |
480 | |
| 481 | <p> |
481 | <p> |
| 482 | Gentoo uses <path>/etc/conf.d/clock</path> to set clock options. Edit it |
482 | Gentoo uses <path>/etc/conf.d/hwclock</path> to set clock options. Edit it |
| 483 | according to your needs. |
483 | according to your needs. |
| 484 | </p> |
484 | </p> |
| 485 | |
485 | |
| 486 | <pre caption="Opening /etc/conf.d/clock"> |
486 | <pre caption="Opening /etc/conf.d/hwclock"> |
| 487 | # <i>nano -w /etc/conf.d/clock</i> |
487 | # <i>nano -w /etc/conf.d/hwclock</i> |
| 488 | </pre> |
488 | </pre> |
| 489 | |
489 | |
| 490 | <p> |
490 | <p> |
| 491 | If your hardware clock is not using UTC, you need to add <c>CLOCK="local"</c> |
491 | If your hardware clock is not using UTC, you need to add <c>CLOCK="local"</c> |
| 492 | to the file. Otherwise you will notice some clock skew. |
492 | to the file. Otherwise you will notice some clock skew. |
| … | |
… | |
| 499 | automatically. For instance, if you used the GMT timezone, you would add |
499 | automatically. For instance, if you used the GMT timezone, you would add |
| 500 | <c>TIMEZONE="GMT"</c> |
500 | <c>TIMEZONE="GMT"</c> |
| 501 | </p> |
501 | </p> |
| 502 | |
502 | |
| 503 | <p> |
503 | <p> |
| 504 | When you're finished configuring <path>/etc/conf.d/clock</path>, save and |
504 | When you're finished configuring <path>/etc/conf.d/hwclock</path>, save and |
| 505 | exit. |
505 | exit. |
| 506 | </p> |
506 | </p> |
| 507 | |
507 | |
| 508 | <p test="not(func:keyval('arch')='PPC64')"> |
508 | <p test="not(func:keyval('arch')='PPC64')"> |
| 509 | Please continue with <uri link="?part=1&chap=9">Installing Necessary System |
509 | Please continue with <uri link="?part=1&chap=9">Installing Necessary System |