/[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.26 Revision 1.27
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/1.0 --> 5<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.26 2004/02/23 16:40:12 vapier Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.27 2004/03/01 05:43:41 swift Exp $ -->
8 8
9<sections> 9<sections>
10<section> 10<section>
11<title>Filesystem Information</title> 11<title>Filesystem Information</title>
12<subsection> 12<subsection>
13<title>What is fstab?</title> 13<title>What is fstab?</title>
14<body> 14<body>
15 15
16<p> 16<p>
17Under Linux, all partitions used by the system must be listed in 17Under Linux, all partitions used by the system must be listed in
18<path>/etc/fstab</path>. This file contains the mountpoints of those partitions 18<path>/etc/fstab</path>. This file contains the mountpoints of those partitions
19(where they are seen in the file system structure), how they should be mounted 19(where they are seen in the file system structure), how they should be mounted
20(special options) and when (automatically or not, can users mount those or not, 20(special options) and when (automatically or not, can users mount those or not,
21etc.). 21etc.).
22</p> 22</p>
79</p> 79</p>
80 80
81<p> 81<p>
82In our default x86 partitioning example <path>/boot</path> is the 82In our default x86 partitioning example <path>/boot</path> is the
83<path>/dev/hda1</path> partition, with <c>ext2</c> as filesystem. It shouldn't 83<path>/dev/hda1</path> partition, with <c>ext2</c> as filesystem. It shouldn't
84be mounted automatically (<c>noauto</c>) but does need to be checked. So we 84be mounted automatically (<c>noauto</c>) but does need to be checked. So we
85would write down: 85would write down:
86</p> 86</p>
87 87
88<pre caption="An example /boot line for /etc/fstab"> 88<pre caption="An example /boot line for /etc/fstab">
89/dev/hda1 /boot ext2 noauto 1 2 89/dev/hda1 /boot ext2 noauto 1 2
90</pre> 90</pre>
91 91
92<p> 92<p>
93Now, to improve performance, most users would want to add the <c>noatime</c> 93Now, to improve performance, most users would want to add the <c>noatime</c>
94option as a mountoption, which results in a faster system since access times 94option as mountoption, which results in a faster system since access times
95aren't registered (you don't need those generally anyway): 95aren't registered (you don't need those generally anyway):
96</p> 96</p>
97 97
98<pre caption="An improved /boot line for /etc/fstab"> 98<pre caption="An improved /boot line for /etc/fstab">
99/dev/hda1 /boot ext2 noauto,noatime 1 2 99/dev/hda1 /boot ext2 noauto,noatime 1 2
100</pre> 100</pre>
101 101
102<p> 102<p>
103If we continue with this, we would end up with the following three lines (for 103If we continue with this, we would end up with the following three lines (for
104<path>/boot</path>, <path>/</path> and the swap partition): 104<path>/boot</path>, <path>/</path> and the swap partition):
105</p> 105</p>
106 106
107<pre caption="Three /etc/fstab lines"> 107<pre caption="Three /etc/fstab lines">
108/dev/hda1 /boot ext2 noauto,noatime 1 2 108/dev/hda1 /boot ext2 noauto,noatime 1 2
109/dev/hda2 none swap sw 0 0 109/dev/hda2 none swap sw 0 0
155Reread your <path>/etc/fstab</path>, save and quit to continue. 155Reread your <path>/etc/fstab</path>, save and quit to continue.
156</p> 156</p>
157 157
158</body> 158</body>
159</subsection> 159</subsection>
160</section> 160</section>
161<section> 161<section>
162<title>Networking Information</title> 162<title>Networking Information</title>
163<subsection> 163<subsection>
164<title>Hostname, Domainname etc.</title> 164<title>Hostname, Domainname etc.</title>
165<body> 165<body>
166 166
167<p> 167<p>
168One of the choices the user has to make is name his PC. This seems to be quite 168One of the choices the user has to make is name his PC. This seems to be quite
169easy, but <e>lots</e> of users are having difficulties finding the appropriate 169easy, but <e>lots</e> of users are having difficulties finding the appropriate
170name for their Linux PC. To speed things up, know that any name you choose can 170name for their Linux-pc. To speed things up, know that any name you choose can
171be changed afterwards. For all we care, you can just call your system 171be changed afterwards. For all we care, you can just call your system
172<c>tux</c> and domain <c>homenetwork</c>. 172<c>tux</c> and domain <c>homenetwork</c>.
173</p> 173</p>
174 174
175<p> 175<p>
176We use these values in the next examples. First we set the hostname: 176We use these values in the next examples. First we set the hostname:
177</p> 177</p>
178 178
179<pre caption="Setting the hostname"> 179<pre caption="Setting the hostname">
180# <i>echo tux &gt; /etc/hostname</i> 180# <i>echo tux &gt; /etc/hostname</i>
181</pre> 181</pre>
182 182
183<p> 183<p>
184Second we set the domainname: 184Second we set the domainname:
185</p> 185</p>
201Now add the <c>domainname</c> script to the default runlevel: 201Now add the <c>domainname</c> script to the default runlevel:
202</p> 202</p>
203 203
204<pre caption="Adding domainname to the default runlevel"> 204<pre caption="Adding domainname to the default runlevel">
205# <i>rc-update add domainname default</i> 205# <i>rc-update add domainname default</i>
206</pre> 206</pre>
207 207
208</body> 208</body>
209</subsection> 209</subsection>
210<subsection> 210<subsection>
211<title>Configuring your Network</title> 211<title>Configuring your Network</title>
212<body> 212<body>
213 213
214<p> 214<p>
215Before you get that "Hey, we've had that already"-feeling, you should remember 215Before you get that "Hey, we've had that already"-feeling, you should remember
216that the networking you set up in the beginning of the Gentoo installation was 216that the networking you set up in the beginning of the gentoo installation was
217just for the installation. Right now you are going to configure networking for 217just for the installation. Right now you are going to configure networking for
218your Gentoo system permanently. 218your Gentoo system permanently.
219</p> 219</p>
220 220
221<p> 221<p>
222All networking information is gathered in <path>/etc/conf.d/net</path>. It uses 222All networking information is gathered in <path>/etc/conf.d/net</path>. It uses
223a straightforward yet not intuitive syntax if you don't know how to setup 223a straightforward yet not intuitive syntax if you don't know how to setup
224networking manually. But don't fear, we'll explain everything :) 224networking manually. But don't fear, we'll explain everything :)
225</p> 225</p>
226 226
227<p> 227<p>
228First open <path>/etc/conf.d/net</path> with your favorite editor (<c>nano</c> 228First open <path>/etc/conf.d/net</path> with your favorite editor (<c>nano</c>
229is used in this example): 229is used in this example):
230</p> 230</p>
231 231
247to <c>dhcp</c>. If you use rp-pppoe (e.g. for ADSL), set it to <c>up</c>. 247to <c>dhcp</c>. If you use rp-pppoe (e.g. for ADSL), set it to <c>up</c>.
248If you need to setup your network manually and you're 248If you need to setup your network manually and you're
249not familiar with all the above terms, please read the section on <uri 249not familiar with all the above terms, please read the section on <uri
250link="?part=1&amp;chap=3#doc_chap4_sect3">Understanding Network 250link="?part=1&amp;chap=3#doc_chap4_sect3">Understanding Network
251Terminology</uri> if you haven't done so already. 251Terminology</uri> if you haven't done so already.
252</p> 252</p>
253 253
254<p> 254<p>
255So let us give three examples; the first one uses DHCP, the second one a static 255So let us give three examples; the first one uses DHCP, the second one a static
256IP (192.168.0.2) with netmask 255.255.255.0, broadcast 192.168.0.255 and 256IP (192.168.0.2) with netmask 255.255.255.0, broadcast 192.168.0.255 and
257gateway 192.168.0.1 while the third one just activates the interface for 257gateway 192.168.0.1 while the third one just activates the interface for
258rp-pppoe usage: 258rp-pppoe usage:
259</p> 259</p>
260 260
261<pre caption="Examples for /etc/conf.d/net"> 261<pre caption="Examples for /etc/conf.d/net">
262<comment>(For DHCP:)</comment> 262<comment>(For DHCP)</comment>
263iface_eth0="dhcp" 263iface_eth0="dhcp"
264 264
265<comment>(For static IP:)</comment> 265<comment>(For static IP)</comment>
266iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0" 266iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
267gateway="eth0/192.168.0.1" 267gateway="eth0/192.168.0.1"
268 268
269<comment>(For rp-pppoe:)</comment> 269<comment>(For rp-pppoe)</comment>
270iface_eth0="up" 270iface_eth0="up"
271</pre> 271</pre>
272 272
273<p> 273<p>
274If you have several network interfaces, create extra <c>iface_eth</c> variables, 274If you have several network interfaces, create extra <c>iface_eth</c> variables,
275like <c>iface_eth1</c>, <c>iface_eth2</c> etc. The <c>gateway</c> variable 275like <c>iface_eth1</c>, <c>iface_eth2</c> etc. The <c>gateway</c> variable
276shouldn't be reproduced as you can only set one gateway per computer. 276shouldn't be reproduced as you can only set one gateway per computer.
277</p> 277</p>
278 278
279<p> 279<p>
280Now save the configuration and exit to continue. 280Now save the configuration and exit to continue.
281</p> 281</p>
282 282
283</body> 283</body>
284</subsection> 284</subsection>
352link="#doc_chap3">System Information</uri>. PCMCIA-users should read the 352link="#doc_chap3">System Information</uri>. PCMCIA-users should read the
353following topic on PCMCIA. 353following topic on PCMCIA.
354</p> 354</p>
355 355
356</body> 356</body>
357</subsection> 357</subsection>
358<subsection> 358<subsection>
359<title>Optional: Get PCMCIA Working</title> 359<title>Optional: Get PCMCIA Working</title>
360<body> 360<body>
361 361
362<p> 362<p>
363PCMCIA-users should first install the <c>pcmcia-cs</c> package: 363PCMCIA-users should first install the <c>pcmcia-cs</c> package:
364</p> 364</p>
365 365
366<pre caption="Installing pcmcia-cs"> 366<pre caption="Installing pcmcia-cs">
367# <i>emerge --usepkg pcmcia-cs</i> 367# <i>emerge pcmcia-cs</i>
368</pre> 368</pre>
369 369
370<p> 370<p>
371When <c>pcmcia-cs</c> is installed, add <c>pcmcia</c> to the <e>default</e> 371When <c>pcmcia-cs</c> is installed, add <c>pcmcia</c> to the <e>default</e>
372runlevel: 372runlevel:
373</p> 373</p>
374 374
375<pre caption="Adding pcmcia to the default runlevel"> 375<pre caption="Adding pcmcia to the default runlevel">
376# <i>rc-update add pcmcia default</i> 376# <i>rc-update add pcmcia default</i>
377</pre> 377</pre>
378 378
379</body> 379</body>
380</subsection> 380</subsection>
381</section> 381</section>
382<section> 382<section>

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

  ViewVC Help
Powered by ViewVC 1.1.20