/[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.16 Revision 1.17
1<!-- The content of this document is licensed under the CC-BY-SA license --> 1<!-- The content of this document is licensed under the CC-BY-SA license -->
2<!-- See http://creativecommons.org/licenses/by-sa/1.0 --> 2<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
3 3
4<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.16 2004/01/04 17:33:58 swift Exp $ --> 4<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.17 2004/01/06 10:08:38 swift Exp $ -->
5 5
6<sections> 6<sections>
7<section> 7<section>
8<title>Timezone</title> 8<title>Timezone</title>
9<body> 9<body>
10 10
11<p> 11<p>
12You now need to select your timezone so that your system knows where it is 12You now need to select your timezone so that your system knows where it is
13located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then make a 13located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then make a
14symlink to <path>/etc/localtime</path> using <c>ln</c>: 14symlink to <path>/etc/localtime</path> using <c>ln</c>:
15</p> 15</p>
16 16
17<pre caption="Setting the timezone information"> 17<pre caption="Setting the timezone information">
18# <i>ls /usr/share/zoneinfo</i> 18# <i>ls /usr/share/zoneinfo</i>
19<comment>(Suppose you want to use GMT:)</comment> 19<comment>(Suppose you want to use GMT:)</comment>
31<p> 31<p>
32Under Linux, all partitions used by the system must be listed in 32Under Linux, all partitions used by the system must be listed in
33<path>/etc/fstab</path>. This file contains the mountpoints of those partitions 33<path>/etc/fstab</path>. This file contains the mountpoints of those partitions
34(where they are seen in the file system structure), how they should be mounted 34(where they are seen in the file system structure), how they should be mounted
35(special options) and when (automatically or not, can users mount those or not, 35(special options) and when (automatically or not, can users mount those or not,
36etc.). 36etc.).
37</p> 37</p>
38 38
39</body> 39</body>
40</subsection> 40</subsection>
41<subsection> 41<subsection>
42<title>Creating /etc/fstab</title> 42<title>Creating /etc/fstab</title>
43<body> 43<body>
44 44
45<p> 45<p>
46<path>/etc/fstab</path> uses a special syntaxis. Every line consists of six 46<path>/etc/fstab</path> uses a special syntax. Every line consists of six
47fields, separated by whitespace (space(s), tabs or a mixture). Each field has 47fields, separated by whitespace (space(s), tabs or a mixture). Each field has
48its own meaning: 48its own meaning:
49</p> 49</p>
50 50
51<ul> 51<ul>
52<li> 52<li>
53 The first field shows the <b>partition</b> described (the path to the device 53 The first field shows the <b>partition</b> described (the path to the device
54 file) 54 file)
55</li> 55</li>
56<li> 56<li>
57 The second field shows the <b>mountpoint</b> at which the partition should be 57 The second field shows the <b>mountpoint</b> at which the partition should be
58 mounted 58 mounted
59</li> 59</li>
60<li> 60<li>
61 The third field shows the <b>filesystem</b> used by the partition 61 The third field shows the <b>filesystem</b> used by the partition
62</li> 62</li>
63<li> 63<li>
64 The fourth field shows the <b>mountoptions</b> used by <c>mount</c> when it 64 The fourth field shows the <b>mountoptions</b> used by <c>mount</c> when it
65 wants to mount the partition. As every filesystem has its own mountoptions, 65 wants to mount the partition. As every filesystem has its own mountoptions,
66 you are encouraged to read the mount manpage (<c>man mount</c>) for a full 66 you are encouraged to read the mount manpage (<c>man mount</c>) for a full
67 listing. Multiple mountoptions are comma-separated. 67 listing. Multiple mountoptions are comma-separated.
68</li> 68</li>
69<li> 69<li>
70 The fifth field is used by <c>dump</c> to determine if the partition needs to 70 The fifth field is used by <c>dump</c> to determine if the partition needs to
71 be <b>dump</b>ed or not. You can generally leave this as <c>0</c> (zero). 71 be <b>dump</b>ed or not. You can generally leave this as <c>0</c> (zero).
72</li> 72</li>
73<li> 73<li>
74 The sixth field is used by <c>fsck</c> the order in which filesystems should 74 The sixth field is used by <c>fsck</c> to determine the order in which
75 be <b>check</b>ed if the system wasn't shut down properly. The root filesystem 75 filesystems should be <b>check</b>ed if the system wasn't shut down properly.
76 should have <c>1</c> while the rest should have <c>2</c> (or <c>0</c> in case 76 The root filesystem should have <c>1</c> while the rest should have <c>2</c>
77 a filesystem check isn't necessary). 77 (or <c>0</c> in case a filesystem check isn't necessary).
78</li> 78</li>
79</ul> 79</ul>
80 80
81<p> 81<p>
82So start <c>nano</c> (or your favorite editor) to create your 82So start <c>nano</c> (or your favorite editor) to create your
83<path>/etc/fstab</path>: 83<path>/etc/fstab</path>:
84</p> 84</p>
85 85
86<pre caption="Opening /etc/fstab"> 86<pre caption="Opening /etc/fstab">
87# <i>nano -w /etc/fstab</i> 87# <i>nano -w /etc/fstab</i>
88</pre> 88</pre>
89 89
90<p> 90<p>
91Lets take a look at how we write down the options for the <path>/boot</path> 91Let us take a look at how we write down the options for the <path>/boot</path>
92partition. This is just an example, so if your architecture doesn't require a 92partition. This is just an example, so if your architecture doesn't require a
93<path>/boot</path> partition, don't copy it verbatim. 93<path>/boot</path> partition, don't copy it verbatim.
94</p> 94</p>
95 95
96<p> 96<p>
97In our default x86 partitioning example <path>/boot</path> is the 97In our default x86 partitioning example <path>/boot</path> is the
98<path>/dev/hda1</path> partition, with <c>ext2</c> as filesystem. It shouldn't 98<path>/dev/hda1</path> partition, with <c>ext2</c> as filesystem. It shouldn't
99be mounted automatically (<c>noauto</c>) but does need to be checked. So we 99be mounted automatically (<c>noauto</c>) but does need to be checked. So we
100would write down: 100would write down:
101</p> 101</p>
102 102
103<pre caption="An example /boot line for /etc/fstab"> 103<pre caption="An example /boot line for /etc/fstab">
104/dev/hda1 /boot ext2 noauto 1 2 104/dev/hda1 /boot ext2 noauto 1 2
105</pre> 105</pre>
106 106
254</p> 254</p>
255 255
256<pre caption="iface_eth0 syntaxis"> 256<pre caption="iface_eth0 syntaxis">
257iface_eth0="<i>&lt;your ip address&gt;</i> broadcast <i>&lt;your broadcast address&gt;</i> netmask <i>&lt;your netmask&gt;</i>" 257iface_eth0="<i>&lt;your ip address&gt;</i> broadcast <i>&lt;your broadcast address&gt;</i> netmask <i>&lt;your netmask&gt;</i>"
258</pre> 258</pre>
259 259
260<p> 260<p>
261If you use DHCP (automatic IP retrieval), you should just set <c>iface_eth0</c> 261If you use DHCP (automatic IP retrieval), you should just set <c>iface_eth0</c>
262to <c>dhcp</c>. However, if you need to setup your network manually and you're 262to <c>dhcp</c>. However, if you need to setup your network manually and you're
263not familiar with all the above terms, please read the section on <uri 263not familiar with all the above terms, please read the section on <uri
264link="?part=1&amp;chap=3#doc_chap4_sect3">Understanding Network 264link="?part=1&amp;chap=3#doc_chap4_sect3">Understanding Network
265Terminology</uri> if you haven't done so already. 265Terminology</uri> if you haven't done so already.
266</p> 266</p>
267 267
268<p> 268<p>
269So lets give two examples; the first one uses DHCP, the second one a static IP 269So let us give two examples; the first one uses DHCP, the second one a static IP
270(192.168.0.2) with netmask 255.255.255.0, broadcast 192.168.0.255 and gateway 270(192.168.0.2) with netmask 255.255.255.0, broadcast 192.168.0.255 and gateway
271192.168.0.1: 271192.168.0.1:
272</p> 272</p>
273 273
274<pre caption="Examples for /etc/conf.d/net"> 274<pre caption="Examples for /etc/conf.d/net">
275<comment>(For DHCP:)</comment> 275<comment>(For DHCP:)</comment>
276iface_eth0="dhcp" 276iface_eth0="dhcp"
277 277
278<comment>(For static IP:)</comment> 278<comment>(For static IP:)</comment>
279iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0" 279iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
280gateway="eth0/192.168.0.1" 280gateway="eth0/192.168.0.1"
281</pre> 281</pre>
282 282
283<p> 283<p>
284If you have several network interfaces, create extra <c>iface_eth</c> variables, 284If you have several network interfaces, create extra <c>iface_eth</c> variables,

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20