/[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.49 Revision 1.59
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.49 2004/10/23 11:04:27 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.59 2005/04/21 13:27:19 swift Exp $ -->
8 8
9<sections> 9<sections>
10
11<version>2.2</version>
12<date>2005-04-20</date>
13
10<section> 14<section>
11<title>Filesystem Information</title> 15<title>Filesystem Information</title>
12<subsection> 16<subsection>
13<title>What is fstab?</title> 17<title>What is fstab?</title>
14<body> 18<body>
122(required) and for your CD-ROM drive (and of course, if you have other 126(required) and for your CD-ROM drive (and of course, if you have other
123partitions or drives, for those too): 127partitions or drives, for those too):
124</p> 128</p>
125 129
126<pre caption="A full /etc/fstab example"> 130<pre caption="A full /etc/fstab example">
127/dev/hda1 /boot ext2 noauto,noatime 1 2 131/dev/hda1 /boot ext2 defaults,noatime 1 2
128/dev/hda2 none swap sw 0 0 132/dev/hda2 none swap sw 0 0
129/dev/hda3 / ext3 noatime 0 1 133/dev/hda3 / ext3 noatime 0 1
130 134
131none /proc proc defaults 0 0 135none /proc proc defaults 0 0
132none /dev/shm tmpfs nodev,nosuid,noexec 0 0 136none /dev/shm tmpfs nodev,nosuid,noexec 0 0
147too: 151too:
148</p> 152</p>
149 153
150<pre caption="Adding openprom filesystem to /etc/fstab"> 154<pre caption="Adding openprom filesystem to /etc/fstab">
151none /proc/openprom openpromfs defaults 0 0 155none /proc/openprom openpromfs defaults 0 0
152</pre>
153
154<p>
155If you need <c>usbfs</c>, add the following line to <path>/etc/fstab</path>:
156</p>
157
158<pre caption="Adding usbfs filesystem to /etc/fstab">
159none /proc/bus/usb usbfs defaults 0 0
160</pre> 156</pre>
161 157
162<p> 158<p>
163Double-check your <path>/etc/fstab</path>, save and quit to continue. 159Double-check your <path>/etc/fstab</path>, save and quit to continue.
164</p> 160</p>
238</p> 234</p>
239 235
240<pre caption="Opening /etc/conf.d/net for editing"> 236<pre caption="Opening /etc/conf.d/net for editing">
241# <i>nano -w /etc/conf.d/net</i> 237# <i>nano -w /etc/conf.d/net</i>
242</pre> 238</pre>
239
240<!-- Old baselayout - current stable -->
243 241
244<p> 242<p>
245The first variable you'll find is <c>iface_eth0</c>. It uses the following 243The first variable you'll find is <c>iface_eth0</c>. It uses the following
246syntax: 244syntax:
247</p> 245</p>
290If you have several network interfaces, create extra <c>iface_eth</c> variables, 288If you have several network interfaces, create extra <c>iface_eth</c> variables,
291like <c>iface_eth1</c>, <c>iface_eth2</c> etc. The <c>gateway</c> variable 289like <c>iface_eth1</c>, <c>iface_eth2</c> etc. The <c>gateway</c> variable
292shouldn't be reproduced as you can only set one gateway per computer. 290shouldn't be reproduced as you can only set one gateway per computer.
293</p> 291</p>
294 292
293<!-- New baselayout - current testing
294
295<p>
296The first variable you'll find is called <c>config_eth0</c>. As you can probably
297imagine, this variable configured the eth0 network interface. If the interface
298needs to automatically obtain an IP through DHCP, you should set it like so:
299</p>
300
301<pre caption="Automatically obtaining an IP for eth0">
302config_eth0=( "dhcp" )
303</pre>
304
305<p>
306However, if you have to enter your own IP address, netmask and gateway, you need
307to set both <c>config_eth0</c> and <c>routes_eth0</c>:
308</p>
309
310<pre caption="Manually setting IP information for eth0">
311config_eth0=( "192.168.0.2 netmask 255.255.255.0" )
312routes_eth0=( "default gw 192.168.0.1" )
313</pre>
314
315<p>
316If you have several network interfaces repeat the above steps for
317<c>config_eth1</c>, <c>config_eth2</c>, etc.
318</p>
319
320-->
321
295<p> 322<p>
296Now save the configuration and exit to continue. 323Now save the configuration and exit to continue.
297</p> 324</p>
298 325
299</body> 326</body>
351</pre> 378</pre>
352 379
353<p> 380<p>
354If your system is the only system (or the nameservers handle all name 381If your system is the only system (or the nameservers handle all name
355resolution) a single line is sufficient. For instance, if you want to call your 382resolution) a single line is sufficient. For instance, if you want to call your
356system <c>tux.homenetwork</c>: 383system <c>tux</c>:
357</p> 384</p>
358 385
359<pre caption="/etc/hosts for lonely or fully integrated PCs"> 386<pre caption="/etc/hosts for lonely or fully integrated PCs">
360127.0.0.1 tux.homenetwork tux localhost 387127.0.0.1 localhost tux
361</pre> 388</pre>
362 389
363<p> 390<p>
364Save and exit the editor to continue. 391Save and exit the editor to continue.
365</p> 392</p>
458ADB keymaps on boot have to enable ADB keycode sendings in their kernel and have 485ADB keymaps on boot have to enable ADB keycode sendings in their kernel and have
459to set a mac/ppc keymap in <path>rc.conf</path>. 486to set a mac/ppc keymap in <path>rc.conf</path>.
460</p> 487</p>
461 488
462<p> 489<p>
463When you're finished configuring <path>/etc/rc.conf</path>, save and exit, then 490When you're finished configuring <path>/etc/rc.conf</path>, save and exit.
491</p>
492
493<p>
494If you are not installing Gentoo on an IBM POWER5 or JS20 system, continue with
495<uri link="?part=1&amp;chap=9">Installing Necessary System Tools</uri>.
496</p>
497
498</body>
499</subsection>
500<subsection>
501<title>Configuring the Console</title>
502<body>
503
504<note>
505The following section applies to the IBM POWER5 and JS20 hardware platforms.
506</note>
507
508<p>
509If you are running gentoo in an LPAR or on a JS20 blade, you must uncomment
510the hvc line in /etc/inittab for the virtual console to spawn a login prompt.
511</p>
512
513<pre caption="Enabling hvc support in /etc/inittab">
514hvc:12345:respawn:/sbin/agetty -nl /bin/bashlogin 9600 hvc0 vt220
515</pre>
516
517<p>
464continue with <uri link="?part=1&amp;chap=9">Installing Necessary System 518You may now continue with <uri link="?part=1&amp;chap=9">Installing Necessary
465Tools</uri>. 519System Tools</uri>.
466</p> 520</p>
467 521
468</body> 522</body>
469</subsection> 523</subsection>
470</section> 524</section>

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.59

  ViewVC Help
Powered by ViewVC 1.1.20