/[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.67 Revision 1.75
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/2.5 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.67 2005/06/24 18:47:21 fox2mike Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.75 2006/02/27 00:55:34 fox2mike Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>2.9</version> 11<version>2.17</version>
12<date>2005-06-24</date> 12<date>2006-02-27</date>
13 13
14<section> 14<section>
15<title>Filesystem Information</title> 15<title>Filesystem Information</title>
16<subsection> 16<subsection>
17<title>What is fstab?</title> 17<title>What is fstab?</title>
78</pre> 78</pre>
79 79
80<p> 80<p>
81Let us take a look at how we write down the options for the <path>/boot</path> 81Let us take a look at how we write down the options for the <path>/boot</path>
82partition. This is just an example, so if your architecture doesn't require a 82partition. This is just an example, so if your architecture doesn't require a
83<path>/boot</path> partition (such as <b>PPC</b>), don't copy it verbatim. 83<path>/boot</path> partition (such as Apple <b>PPC</b> machines), don't copy it
84verbatim.
84</p> 85</p>
85 86
86<p> 87<p>
87In our default x86 partitioning example <path>/boot</path> is the 88In our default x86 partitioning example <path>/boot</path> is the
88<path>/dev/hda1</path> partition, with <c>ext2</c> as filesystem. 89<path>/dev/hda1</path> partition, with <c>ext2</c> as filesystem.
231your Gentoo system permanently. 232your Gentoo system permanently.
232</p> 233</p>
233 234
234<note> 235<note>
235More detailed information about networking, including advanced topics like 236More detailed information about networking, including advanced topics like
236bonding, bridging, 802.11q VLANs or wireless networking is covered in the <uri 237bonding, bridging, 802.1Q VLANs or wireless networking is covered in the <uri
237link="?part=4">Gentoo Network Configuration</uri> section. 238link="?part=4">Gentoo Network Configuration</uri> section.
238</note> 239</note>
239 240
240<p> 241<p>
241All networking information is gathered in <path>/etc/conf.d/net</path>. It uses 242All networking information is gathered in <path>/etc/conf.d/net</path>. It uses
242a straightforward yet not intuitive syntax if you don't know how to set up 243a straightforward yet not intuitive syntax if you don't know how to set up
243networking manually. But don't fear, we'll explain everything :) 244networking manually. But don't fear, we'll explain everything. A fully
244</p> 245commented example that covers many different configurations is available in
245 246<path>/etc/conf.d/net.example</path>.
246<p> 247</p>
248
249<p>
250DHCP is used by default and does not require any further configuration.
251</p>
252
253<p>
254If you need to configure your network connection either because you need
255specific DHCP options or because you do not use DHCP at all, open
247First open <path>/etc/conf.d/net</path> with your favorite editor (<c>nano</c> 256<path>/etc/conf.d/net</path> with your favorite editor (<c>nano</c> is used in
248is used in this example): 257this example):
249</p> 258</p>
250 259
251<pre caption="Opening /etc/conf.d/net for editing"> 260<pre caption="Opening /etc/conf.d/net for editing">
252# <i>nano -w /etc/conf.d/net</i> 261# <i>nano -w /etc/conf.d/net</i>
253</pre> 262</pre>
254 263
255<p> 264<p>
256The first variable you'll find is called <c>config_eth0</c>. As you can probably 265You will see the following file:
257imagine, this variable configured the eth0 network interface. If the interface 266</p>
258needs to automatically obtain an IP address through DHCP, you should set it 267
259like so: 268<pre caption="Default /etc/conf.d/net">
269# This blank configuration will automatically use DHCP for any net.*
270# scripts in /etc/init.d. To create a more complete configuration,
271# please review /etc/conf.d/net.example and save your configuration
272# in /etc/conf.d/net (this file :]!).
273</pre>
274
275<p>
276To enter your own IP address, netmask and gateway, you need
277to set both <c>config_eth0</c> and <c>routes_eth0</c>:
278</p>
279
280<pre caption="Manually setting IP information for eth0">
281config_eth0=( "192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255" )
282routes_eth0=( "default gw 192.168.0.1" )
283</pre>
284
285<p>
286To use DHCP and add specific DHCP options, define <c>config_eth0</c> and
287<c>dhcp_eth0</c>:
260</p> 288</p>
261 289
262<pre caption="Automatically obtaining an IP address for eth0"> 290<pre caption="Automatically obtaining an IP address for eth0">
263config_eth0=( "dhcp" ) 291config_eth0=( "dhcp" )
292dhcp_eth0="nodns nontp nonis"
264</pre> 293</pre>
265 294
266<p>
267However, if you have to enter your own IP address, netmask and gateway, you need
268to set both <c>config_eth0</c> and <c>routes_eth0</c>:
269</p> 295<p>
270 296Please read <path>/etc/conf.d/net.example</path> for a list of all available
271<pre caption="Manually setting IP information for eth0"> 297options.
272config_eth0=( "192.168.0.2 netmask 255.255.255.0" )
273routes_eth0=( "default gw 192.168.0.1" )
274</pre> 298</p>
275 299
276<p> 300<p>
277If you have several network interfaces repeat the above steps for 301If you have several network interfaces repeat the above steps for
278<c>config_eth1</c>, <c>config_eth2</c>, etc. 302<c>config_eth1</c>, <c>config_eth2</c>, etc.
279</p> 303</p>
431When you're finished configuring <path>/etc/rc.conf</path>, save and exit. 455When you're finished configuring <path>/etc/rc.conf</path>, save and exit.
432</p> 456</p>
433 457
434<p> 458<p>
435As you can see, this file is well commented to help you set up the necessary 459As you can see, this file is well commented to help you set up the necessary
436configuration variables. Among other settings, you can configure your console 460configuration variables. You can configure your system to use unicode and
437fonts, your default editor and your display manager (like gdm or kdm). 461define your default editor and your display manager (like gdm or kdm).
438</p> 462</p>
439 463
440<p> 464<p>
441Gentoo uses <path>/etc/conf.d/keymaps</path> to handle keyboard configuration. 465Gentoo uses <path>/etc/conf.d/keymaps</path> to handle keyboard configuration.
442Edit it to configure your keyboard. 466Edit it to configure your keyboard.
451<c>KEYMAP</c>, you will get weird results when typing on your keyboard. 475<c>KEYMAP</c>, you will get weird results when typing on your keyboard.
452</p> 476</p>
453 477
454<note> 478<note>
455Users of USB-based <b>SPARC</b> systems and <b>SPARC</b> clones might need to 479Users of USB-based <b>SPARC</b> systems and <b>SPARC</b> clones might need to
456select an i386 keymap (such as "us") instead of "sunkeymap". 480select an i386 keymap (such as "us") instead of "sunkeymap". <b>PPC</b> uses x86
481keymaps on most systems. Users who want to be able to use ADB keymaps on boot
482have to enable ADB keycode sendings in their kernel and have to set a mac/ppc
483keymap in <path>/etc/conf.d/keymaps</path>.
457</note> 484</note>
458
459<p>
460<b>PPC</b> uses x86 keymaps on most systems. Users who want to be able to use
461ADB keymaps on boot have to enable ADB keycode sendings in their kernel and have
462to set a mac/ppc keymap in <path>/etc/conf.d/keymaps</path>.
463</p>
464 485
465<p> 486<p>
466When you're finished configuring <path>/etc/conf.d/keymaps</path>, save and 487When you're finished configuring <path>/etc/conf.d/keymaps</path>, save and
467exit. 488exit.
468</p> 489</p>
476# <i>nano -w /etc/conf.d/clock</i> 497# <i>nano -w /etc/conf.d/clock</i>
477</pre> 498</pre>
478 499
479<p> 500<p>
480If your hardware clock is not using UTC, you need to add <c>CLOCK="local"</c> to 501If your hardware clock is not using UTC, you need to add <c>CLOCK="local"</c> to
481the file. Otherwise you will notice some clock skew. 502the file. Otherwise you will notice some clock skew. Furthermore, Windows
503assumes that your hardware clock uses local time, so if you want to dualboot,
504you should set this variable appropriately, otherwise your clock will go crazy.
482</p> 505</p>
483 506
484<p> 507<p>
485When you're finished configuring <path>/etc/conf.d/clock</path>, save and 508When you're finished configuring <path>/etc/conf.d/clock</path>, save and
486exit. 509exit.
487</p> 510</p>
488 511
489<p> 512<p>
490If you are not installing Gentoo on an IBM POWER5 or JS20 system, continue with 513If you are not installing Gentoo on IBM PPC64 hardware, continue with
491<uri link="?part=1&amp;chap=9">Installing Necessary System Tools</uri>. 514<uri link="?part=1&amp;chap=9">Installing Necessary System Tools</uri>.
492</p> 515</p>
493 516
494</body> 517</body>
495</subsection> 518</subsection>
496<subsection> 519<subsection>
497<title>Configuring the Console</title> 520<title>Configuring the Console</title>
498<body> 521<body>
499 522
500<note> 523<note>
501The following section applies to the IBM POWER5 and JS20 hardware platforms. 524The following section applies to the IBM PPC64 hardware platforms.
502</note> 525</note>
503 526
504<p> 527<p>
505If you are running Gentoo in an LPAR or on a JS20 blade, you must uncomment 528If you are running Gentoo on IBM PPC64 hardware and using a virtual console
506the hvc line in /etc/inittab for the virtual console to spawn a login prompt. 529you must uncomment the appropriate line in <path>/etc/inittab</path> for the
530virtual console to spawn a login prompt.
507</p> 531</p>
508 532
509<pre caption="Enabling hvc support in /etc/inittab"> 533<pre caption="Enabling hvc or hvsi support in /etc/inittab">
510hvc:12345:respawn:/sbin/agetty -nl /bin/bashlogin 9600 hvc0 vt220 534hvc0:12345:respawn:/sbin/agetty -L 9600 hvc0
535hvsi:12345:respawn:/sbin/agetty -L 19200 hvsi0
536</pre>
537
538<p>
539You should also take this time to verify that the appropriate console is
540listed in <path>/etc/securetty</path>.
511</pre> 541</p>
512 542
513<p> 543<p>
514You may now continue with <uri link="?part=1&amp;chap=9">Installing Necessary 544You may now continue with <uri link="?part=1&amp;chap=9">Installing Necessary
515System Tools</uri>. 545System Tools</uri>.
516</p> 546</p>

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.75

  ViewVC Help
Powered by ViewVC 1.1.20