… | |
… | |
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.126 2013/12/17 11:48:58 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.127 2013/12/17 11:52:05 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>32</version> |
17 | <version>33</version> |
18 | <date>2013-12-17</date> |
18 | <date>2013-12-17</date> |
19 | |
19 | |
20 | <section> |
20 | <section> |
21 | <title>Filesystem Information</title> |
21 | <title>Filesystem Information</title> |
22 | <subsection> |
22 | <subsection> |
… | |
… | |
216 | You only need a domain if your ISP or network administrator says so, or if you |
216 | You only need a domain if your ISP or network administrator says so, or if you |
217 | have a DNS server but not a DHCP server. You don't need to worry about DNS or |
217 | have a DNS server but not a DHCP server. You don't need to worry about DNS or |
218 | domainnames if your networking is setup for DHCP. |
218 | domainnames if your networking is setup for DHCP. |
219 | </p> |
219 | </p> |
220 | |
220 | |
|
|
221 | <note> |
|
|
222 | The <path>/etc/conf.d/net</path> file does not exist by default, so you might |
|
|
223 | need to create it. |
|
|
224 | </note> |
|
|
225 | |
221 | <pre caption="Setting the domainname"> |
226 | <pre caption="Setting the domainname"> |
222 | # <i>nano -w /etc/conf.d/net</i> |
227 | # <i>nano -w /etc/conf.d/net</i> |
223 | |
228 | |
224 | <comment>(Set the dns_domain variable to your domain name)</comment> |
229 | <comment>(Set the dns_domain variable to your domain name)</comment> |
225 | dns_domain_lo="<i>homenetwork</i>" |
230 | dns_domain_lo="<i>homenetwork</i>" |
… | |
… | |
291 | this example): |
296 | this example): |
292 | </p> |
297 | </p> |
293 | |
298 | |
294 | <pre caption="Opening /etc/conf.d/net for editing"> |
299 | <pre caption="Opening /etc/conf.d/net for editing"> |
295 | # <i>nano -w /etc/conf.d/net</i> |
300 | # <i>nano -w /etc/conf.d/net</i> |
296 | </pre> |
|
|
297 | |
|
|
298 | <p> |
|
|
299 | You will see the following file: |
|
|
300 | </p> |
|
|
301 | |
|
|
302 | <pre caption="Default /etc/conf.d/net"> |
|
|
303 | # This blank configuration will automatically use DHCP for any net.* |
|
|
304 | # scripts in /etc/init.d. To create a more complete configuration, |
|
|
305 | # please review /usr/share/doc/netifrc-*/net.example.bz2 and save |
|
|
306 | # your configuration in /etc/conf.d/net (this file :]!). |
|
|
307 | </pre> |
301 | </pre> |
308 | |
302 | |
309 | <p> |
303 | <p> |
310 | To enter your own IP address, netmask and gateway, you need |
304 | To enter your own IP address, netmask and gateway, you need |
311 | to set both <c>config_eth0</c> and <c>routes_eth0</c>: |
305 | to set both <c>config_eth0</c> and <c>routes_eth0</c>: |