/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-config.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-config.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.103 Revision 1.104
1<?xml version='1.0' encoding='UTF-8'?> 1<?xml version='1.0' encoding='UTF-8'?>
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.104 2011/08/03 08:17:07 jkt Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<abstract> 11<abstract>
12You need to edit some important configuration files. In this chapter 12You need to edit some important configuration files. In this chapter
13you receive an overview of these files and an explanation on how to 13you receive an overview of these files and an explanation on how to
14proceed. 14proceed.
15</abstract> 15</abstract>
16 16
17<version>10</version> 17<version>11</version>
18<date>2011-08-02</date> 18<date>2011-08-03</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>
24<body> 24<body>
25 25
26<p> 26<p>
27Under Linux, all partitions used by the system must be listed in 27Under Linux, all partitions used by the system must be listed in
28<path>/etc/fstab</path>. This file contains the mount points of those partitions 28<path>/etc/fstab</path>. This file contains the mount points of those partitions
29(where they are seen in the file system structure), how they should be mounted 29(where they are seen in the file system structure), how they should be mounted
30and with what special options (automatically or not, whether users can mount 30and with what special options (automatically or not, whether users can mount
31them or not, etc.) 31them or not, etc.)
32</p> 32</p>
33 33
194<subsection> 194<subsection>
195<title>Host name, Domainname, etc</title> 195<title>Host name, Domainname, etc</title>
196<body> 196<body>
197 197
198<p> 198<p>
199One of the choices the user has to make is name his/her PC. This seems to be 199One of the choices the user has to make is name his/her PC. This seems to be
200quite easy, but <e>lots</e> of users are having difficulties finding the 200quite easy, but <e>lots</e> of users are having difficulties finding the
201appropriate name for their Linux-pc. To speed things up, know that any name you 201appropriate name for their Linux-pc. To speed things up, know that any name you
202choose can be changed afterwards. For all we care, you can just call your system 202choose can be changed afterwards. For all we care, you can just call your system
203<c>tux</c> and domain <c>homenetwork</c>. 203<c>tux</c> and domain <c>homenetwork</c>.
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>
210HOSTNAME="<i>tux</i>" 210hostname="<i>tux</i>"
211</pre> 211</pre>
212 212
213<p> 213<p>
214Second, <e>if</e> you need a domainname, set it in <path>/etc/conf.d/net</path>. 214Second, <e>if</e> you need a domainname, set it in <path>/etc/conf.d/net</path>.
215You only need a domain if your ISP or network administrator says so, or if you 215You only need a domain if your ISP or network administrator says so, or if you
216have a DNS server but not a DHCP server. You don't need to worry about DNS or 216have a DNS server but not a DHCP server. You don't need to worry about DNS or
217domainnames if your networking is setup for DHCP. 217domainnames if your networking is setup for DHCP.
218</p> 218</p>
219 219
220<pre caption="Setting the domainname"> 220<pre caption="Setting the domainname">
221# <i>nano -w /etc/conf.d/net</i> 221# <i>nano -w /etc/conf.d/net</i>
222 222
223<comment>(Set the dns_domain variable to your domain name)</comment> 223<comment>(Set the dns_domain variable to your domain name)</comment>
224dns_domain_lo="<i>homenetwork</i>" 224dns_domain_lo="<i>homenetwork</i>"
225</pre> 225</pre>
298</p> 298</p>
299 299
300<pre caption="Default /etc/conf.d/net"> 300<pre caption="Default /etc/conf.d/net">
301# This blank configuration will automatically use DHCP for any net.* 301# This blank configuration will automatically use DHCP for any net.*
302# scripts in /etc/init.d. To create a more complete configuration, 302# scripts in /etc/init.d. To create a more complete configuration,
303# please review /etc/conf.d/net.example and save your configuration 303# please review /etc/conf.d/net.example and save your configuration
304# in /etc/conf.d/net (this file :]!). 304# in /etc/conf.d/net (this file :]!).
305</pre> 305</pre>
306 306
307<p> 307<p>
308To enter your own IP address, netmask and gateway, you need 308To enter your own IP address, netmask and gateway, you need
309to set both <c>config_eth0</c> and <c>routes_eth0</c>: 309to 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">
313config_eth0=( "192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255" ) 313config_eth0="192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255"
314routes_eth0=( "default via 192.168.0.1" ) 314routes_eth0="default via 192.168.0.1"
315</pre> 315</pre>
316 316
317<p> 317<p>
318To use DHCP, define <c>config_eth0</c>: 318To 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">
322config_eth0=( "dhcp" ) 322config_eth0="dhcp"
323</pre> 323</pre>
324 324
325<p> 325<p>
326Please read <path>/etc/conf.d/net.example</path> for a list of all available 326Please read <path>/etc/conf.d/net.example</path> for a list of all available
327options. Be sure to also read your DHCP client manpage if you need to set 327options. Be sure to also read your DHCP client manpage if you need to set
328specific DHCP options. 328specific DHCP options.
329</p> 329</p>
330 330
331<p> 331<p>
332If you have several network interfaces repeat the above steps for 332If you have several network interfaces repeat the above steps for
333<c>config_eth1</c>, <c>config_eth2</c>, etc. 333<c>config_eth1</c>, <c>config_eth2</c>, etc.
334</p> 334</p>
335 335
336<p> 336<p>
337Now save the configuration and exit to continue. 337Now save the configuration and exit to continue.

Legend:
Removed from v.1.103  
changed lines
  Added in v.1.104

  ViewVC Help
Powered by ViewVC 1.1.20