/[gentoo]/xml/htdocs/doc/en/gentoo-x86-install.xml
Gentoo

Diff of /xml/htdocs/doc/en/gentoo-x86-install.xml

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

Revision 1.15 Revision 1.16
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version="1.0" encoding="UTF-8"?>
2<?xml-stylesheet href="/xsl/guide.xsl" type="text/xsl"?> 2<?xml-stylesheet href="/xsl/guide.xsl" type="text/xsl"?>
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4
5<guide link="/doc/en/gentoo-x86-install.xml"> 4<guide link="/doc/en/gentoo-x86-install.xml">
6 <title>Gentoo Linux 1.4 Installation Instructions</title> 5 <title>Gentoo Linux 1.4 Installation Instructions</title>
7 <author title="Chief Architect"><mail link="drobbins@gentoo.org">Daniel Robbins</mail></author> 6 <author title="Chief Architect">
7 <mail link="drobbins@gentoo.org">Daniel Robbins</mail>
8 </author>
8 <author title="Author">Chris Houser</author> 9 <author title="Author">Chris Houser</author>
9 <author title="Author"><mail link="jerry@gentoo.org">Jerry Alexandratos</mail></author> 10 <author title="Author">
11 <mail link="jerry@gentoo.org">Jerry Alexandratos</mail>
12 </author>
13 <author title="Ghost">
10 <author title="Ghost"><mail link="g2boojum@gentoo.org">Grant Goodyear</mail></author> 14 <mail link="g2boojum@gentoo.org">Grant Goodyear</mail>
11 <author title="Editor"><mail link="zhen@gentoo.org">John P. Davis</mail></author> 15 </author>
16 <author title="Editor">
17 <mail link="zhen@gentoo.org">John P. Davis</mail>
18 </author>
19 <author title="Editor">
12 <author title="Editor"><mail link="Pierre-Henri.Jondot@wanadoo.fr">Pierre-Henri Jondot</mail></author> 20 <mail link="Pierre-Henri.Jondot@wanadoo.fr">Pierre-Henri Jondot</mail>
13 <author title="Editor"><mail link="stocke2@gentoo.org">Eric Stockbridge</mail></author> 21 </author>
14 <author title="Editor"><mail link="rajiv@gentoo.org">Rajiv Manglani</mail></author> 22 <author title="Editor">
15 23 <mail link="stocke2@gentoo.org">Eric Stockbridge</mail>
24 </author>
25 <author title="Editor">
26 <mail link="rajiv@gentoo.org">Rajiv Manglani</mail>
27 </author>
16 <abstract>These instructions step you through the process of installing Gentoo 28 <abstract>These instructions step you through the process of installing Gentoo
17 Linux 1.4_rc1. The Gentoo Linux installation process supports various installation 29 Linux 1.4_rc1. The Gentoo Linux installation process supports various installation
18 approaches, depending upon how much of the system you want to custom-build from 30 approaches, depending upon how much of the system you want to custom-build from
19 scratch. 31 scratch.
20 </abstract> 32 </abstract>
21
22 <version>2.1</version> 33 <version>2.1</version>
23 <date>2 December 2002</date> 34 <date>7 December 2002</date>
24
25 <chapter> 35 <chapter>
26 <title>About the Install</title> 36 <title>About the Install</title>
27 <section> 37 <section>
28 <body> 38 <body>
29
30 <p>This new boot CD will boot from nearly any modern IDE CD-ROM drive, as well 39 <p>This new boot CD will boot from nearly any modern IDE CD-ROM drive, as well
31 as many SCSI CD-ROM, assuming that your CD-ROM and BIOS both support booting. 40 as many SCSI CD-ROM, assuming that your CD-ROM and BIOS both support booting.
32 Included on the CD-ROM is Linux support for IDE (and PCI IDE) 41 Included on the CD-ROM is Linux support for IDE (and PCI IDE)
33 (built-in to the kernel) as well as support for all SCSI devices (available as 42 (built-in to the kernel) as well as support for all SCSI devices (available as
34 modules). In addition, we provide modules for literally every kind of network 43 modules). In addition, we provide modules for literally every kind of network
35 card that Linux supports, as well as tools to allow you to configure your 44 card that Linux supports, as well as tools to allow you to configure your
36 network and establish outbound <c>ssh</c> connections and download files. 45 network and establish outbound <c>ssh</c> connections and download files.
37 </p> 46 </p>
38
39 <p>To install from the build CD, you will need to have a 486+ processor and 47 <p>To install from the build CD, you will need to have a 486+ processor and
40 ideally at least 64 Megabytes of RAM. (Gentoo linux has been successfully 48 ideally at least 64 Megabytes of RAM. (Gentoo linux has been successfully
41 built with 64MB of RAM + 64MB of swap space, but the build process is awfully 49 built with 64MB of RAM + 64MB of swap space, but the build process is awfully
42 slow under those conditions.) To begin the install process, first grab the 50 slow under those conditions.) To begin the install process, first grab the
43 livecd ISO images from 51 livecd ISO images from
44 <uri>http://www.ibiblio.org/gentoo/releases/1.4_rc1/</uri>. The three stages make our life 52 <uri>http://www.ibiblio.org/gentoo/releases/1.4_rc1/</uri>. The three stages make our life
45 easy with Gentoo. The stage1 is for building the entire system from scratch. Stage2 is for building 53 easy with Gentoo. The stage1 is for building the entire system from scratch. Stage2 is for building
46 some of the system from scratch, and stage3 saves a lot of time because it is already 54 some of the system from scratch, and stage3 saves a lot of time because it is already
47 optimized for you specific system. At the moment only the stage1 tarball is 55 optimized for you specific system. At the moment only the stage1 tarball is
48 stored on the livecd, but you will be able to download a stage2 or 56 stored on the livecd, but you will be able to download a stage2 or
49 stage3 tarball optimized for your system after booting the livecd. 57 stage3 tarball optimized for your system after booting the livecd.
50 </p> 58 </p>
51
52 <info>If for some reason your install gets interrupted at some point, you can reboot 59 <info>If for some reason your install gets interrupted at some point, you can reboot
53 and restart. For example, if you have partitioned, installed the stageX tarball, and 60 and restart. For example, if you have partitioned, installed the stageX tarball, and
54 are ready to chroot, you can restart the install if necessary. Just re-boot with the 61 are ready to chroot, you can restart the install if necessary. Just re-boot with the
55 LiveCD, then mount your drives/partitions to <path>/mnt</path> as normal. Basically, you can do 62 LiveCD, then mount your drives/partitions to <path>/mnt</path> as normal. Basically, you can do
56 this at about any point during the install, just not before partitioning for obvious reasons. 63 this at about any point during the install, just not before partitioning for obvious reasons.
57 </info> 64 </info>
58
59 <p>Now, let's quickly review the install process. We'll create partitions, 65 <p>Now, let's quickly review the install process. We'll create partitions,
60 create our filesystems, and extract either a stage1, stage2 or stage3 tarball. 66 create our filesystems, and extract either a stage1, stage2 or stage3 tarball.
61 If we are using a stage1 or stage2 tarball, we will take the appropriate steps 67 If we are using a stage1 or stage2 tarball, we will take the appropriate steps
62 to get our systems to stage3. Once our systems are at stage3, we can configure 68 to get our systems to stage3. Once our systems are at stage3, we can configure
63 them (tweaking config files, installing a bootloader, etc) and boot them and 69 them (tweaking config files, installing a bootloader, etc) and boot them and
64 have a fully-functional Gentoo Linux system. Depending on what stage of the build 70 have a fully-functional Gentoo Linux system. Depending on what stage of the build
65 process you're starting from, here's what's required for installation: 71 process you're starting from, here's what's required for installation:
66 </p> 72 </p>
67 73 <table>
68 <table> 74 <tr>
69 <tr><th>stage tarball</th><th>requirements for installation</th></tr> 75 <th>stage tarball</th>
76 <th>requirements for installation</th>
77 </tr>
78 <tr>
79 <ti>1</ti>
70 <tr><ti>1</ti><ti>partition/filesystem setup, emerge sync, bootstrap, emerge system, emerge linux sources, final configuration</ti></tr> 80 <ti>partition/filesystem setup, emerge sync, bootstrap, emerge system, emerge linux sources, final configuration</ti>
81 </tr>
82 <tr>
83 <ti>2</ti>
71 <tr><ti>2</ti><ti>partition/filesystem setup, emerge sync, emerge system, emerge linux sources, final configuration</ti></tr> 84 <ti>partition/filesystem setup, emerge sync, emerge system, emerge linux sources, final configuration</ti>
85 </tr>
86 <tr>
87 <ti>3</ti>
72 <tr><ti>3</ti><ti>partition/filesystem setup, emerge sync, final configuration</ti></tr> 88 <ti>partition/filesystem setup, emerge sync, final configuration</ti>
73 </table> 89 </tr>
74 90 </table>
75 </body> 91 </body>
76 </section> 92 </section>
77 </chapter> 93 </chapter>
78
79 <chapter> 94 <chapter>
80 <title>Booting</title> 95 <title>Booting</title>
81 <section> 96 <section>
82 <body> 97 <body>
83
84 <p>Start by booting the livecd. You'll be 98 <p>Start by booting the livecd. You'll be
85 greeted with a lot of text output 99 greeted with a lot of text output
86 followed by the normal Gentoo Linux boot sequence. 100 followed by the normal Gentoo Linux boot sequence.
87 Login as "root" (just hit &lt;enter&gt; for the password), 101 Login as &quot;root&quot; (just hit &lt;enter&gt; for the password),
88 and then use the <c>passwd</c> command to change the root 102 and then use the <c>passwd</c> command to change the root
89 password. (This root password is only for this installation session. 103 password. (This root password is only for this installation session.
90 The reason for changing the password is that you will have to connect 104 The reason for changing the password is that you will have to connect
91 to the net to complete the installation. Connecting to the internet with 105 to the net to complete the installation. Connecting to the internet with
92 the default root password is a <i>really</i> bad idea!) 106 the default root password is a <i>really</i> bad idea!)
93 You should have a root ("<c>#</c>") prompt on the current 107 You should have a root (&quot;<c>#</c>&quot;) prompt on the current
94 console, and can also open new consoles by typing alt-f2, alt-f3, etc and then 108 console, and can also open new consoles by typing alt-f2, alt-f3, etc and then
95 hitting enter. 109 hitting enter.
96 </p> 110 </p>
97
98 <p>Next, you will be greeted with instructions for setting up your network, 111 <p>Next, you will be greeted with instructions for setting up your network,
99 and optional PCI autodetection. The PCI autodetection process will automatically 112 and optional PCI autodetection. The PCI autodetection process will automatically
100 load the appropriate kernel modules for many popular PCI SCSI and ethernet 113 load the appropriate kernel modules for many popular PCI SCSI and ethernet
101 devices. After this, you should have a root ("<c>#</c>") prompt on the current 114 devices. After this, you should have a root (&quot;<c>#</c>&quot;) prompt on the current
102 console, and can also open new consoles by typing Alt-F2, Alt-F3, etc and then 115 console, and can also open new consoles by typing Alt-F2, Alt-F3, etc and then
103 hitting enter. 116 hitting enter.
104 </p> 117 </p>
105 118 </body>
106 </body>
107 </section> 119 </section>
108 </chapter> 120 </chapter>
109
110 <chapter> 121 <chapter>
111 <title>Load Kernel Modules</title> 122 <title>Load Kernel Modules</title>
112 <section> 123 <section>
113 <body> 124 <body>
114
115
116 <p>Hopefully you need only type <c>pci-setup</c> at the root prompt to 125 <p>Hopefully you need only type <c>pci-setup</c> at the root prompt to
117 autodetect the hardware on your system and to load the appropriate 126 autodetect the hardware on your system and to load the appropriate
118 kernel modules. 127 kernel modules.
119 </p> 128 </p>
120
121 <p>If the PCI autodetection missed some of your hardware, you 129 <p>If the PCI autodetection missed some of your hardware, you
122 will have to load the appropriate modules manually. 130 will have to load the appropriate modules manually.
123 To view a list of all available network card modules, type <c>ls 131 To view a list of all available network card modules, type <c>ls
124 /lib/modules/*/kernel/drivers/net/*</c>. To load a particular module, 132 /lib/modules/*/kernel/drivers/net/*</c>. To load a particular module,
125 type: 133 type:
126 </p> 134 </p>
127
128 <pre caption = "PCI Modules Configuration"> 135 <pre caption="PCI Modules Configuration">
129# <c>modprobe pcnet32</c> 136# <c>modprobe pcnet32</c>
130<comment>(replace pcnet32 with your NIC module)</comment> 137<comment>(replace pcnet32 with your NIC module)</comment>
131 </pre> 138 </pre>
132
133 <p>Now, if you want to be able to access any SCSI hardware that wasn't detected 139 <p>Now, if you want to be able to access any SCSI hardware that wasn't detected
134 during the PCI autodetection process, you'll need to load the appropriate 140 during the PCI autodetection process, you'll need to load the appropriate
135 modules from /lib/modules, again using <c>modprobe</c>: 141 modules from /lib/modules, again using <c>modprobe</c>:
136 </p> 142 </p>
137
138 <pre caption = "Loading SCSI Modules"> 143 <pre caption="Loading SCSI Modules">
139# <c>modprobe aic7xxx</c> 144# <c>modprobe aic7xxx</c>
140# <c>modprobe sd_mod</c> 145# <c>modprobe sd_mod</c>
141 </pre> 146 </pre>
142
143 <p><c>aic7xxx</c> supports your SCSI controller and <c>sd_mod</c> supports SCSI hard disks. 147 <p><c>aic7xxx</c> supports your SCSI controller and <c>sd_mod</c> supports SCSI hard disks.
144 <note> 148 <note>
145 Support for a SCSI CD-ROMs in build-in in the kernel. 149 Support for a SCSI CD-ROMs in build-in in the kernel.
146 </note> 150 </note></p>
147 </p>
148
149 <p>If you are using hardware RAID, you need to load the 151 <p>If you are using hardware RAID, you need to load the
150 ATA-RAID modules for your RAID controller. 152 ATA-RAID modules for your RAID controller.
151 </p> 153 </p>
152
153 <pre caption = "Loading RAID Modules"> 154 <pre caption="Loading RAID Modules">
154# <c>insmod ataraid</c> 155# <c>insmod ataraid</c>
155# <c>insmod pdcraid</c> 156# <c>insmod pdcraid</c>
156 <comment>(Promise Raid Controller)</comment> 157 <comment>(Promise Raid Controller)</comment>
157# <c>insmod hptraid</c> 158# <c>insmod hptraid</c>
158 <comment>(Highpoint Raid Controller)</comment> 159 <comment>(Highpoint Raid Controller)</comment>
159 </pre> 160 </pre>
160
161 <p>The Gentoo LiveCD should have enabled DMA on your disks, but if it did not, 161 <p>The Gentoo LiveCD should have enabled DMA on your disks, but if it did not,
162 <c>hdparm</c> can be used to set DMA on your drives. </p> 162 <c>hdparm</c> can be used to set DMA on your drives. </p>
163
164 <pre caption = "Setting DMA">
165<comment>Replace hdX with your disk device. </comment> 163 <pre caption="Setting DMA"><comment>Replace hdX with your disk device. </comment>
166# <c>hdparm -d 1 /dev/hdX </c> 164# <c>hdparm -d 1 /dev/hdX </c><comment>Enables DMA </comment>
167<comment>Enables DMA </comment> 165# <c>hdparm -X66 /dev/hdX </c><comment>Enables Ultra-DMA </comment></pre>
168# <c>hdparm -X66 /dev/hdX </c> 166 </body>
169<comment>Enables Ultra-DMA </comment>
170 </pre>
171
172 </body>
173 </section> 167 </section>
174 </chapter> 168 </chapter>
175
176 <chapter> 169 <chapter>
177 <title>Loading PCMCIA Kernel Modules</title> 170 <title>Loading PCMCIA Kernel Modules</title>
178 <section> 171 <section>
179 <body> 172 <body>
180
181 <p>If you have a PCMCIA network card, you will need to do some additional 173 <p>If you have a PCMCIA network card, you will need to do some additional
182 trickery. 174 trickery.
183 </p> 175 </p>
184
185 <warn>To avoid problems with <c>cardmgr</c>, you <e>must</e> run it <e>before</e> you enter the chroot 176 <warn>To avoid problems with <c>cardmgr</c>, you <e>must</e> run it <e>before</e> you enter the chroot
186 portion of the install. </warn> 177 portion of the install. </warn>
187
188 <pre caption = "Loading PCMCIA Modules"> 178 <pre caption="Loading PCMCIA Modules">
189# <i>insmod pcmcia_core</i> 179# <i>insmod pcmcia_core</i>
190# <i>insmod i82365</i> 180# <i>insmod i82365</i>
191# <i>insmod ds</i> 181# <i>insmod ds</i>
192# <i>cardmgr -f</i> 182# <i>cardmgr -f</i>
193 </pre> 183 </pre>
194
195 <p>As cardmgr detects which hardware is present, your speaker should emit a 184 <p>As cardmgr detects which hardware is present, your speaker should emit a
196 few reassuring beeps, and your PCMCIA network card should hum to life. You can 185 few reassuring beeps, and your PCMCIA network card should hum to life. You can
197 of course insert the PCMCIA card after loading cardmgr too, if that's 186 of course insert the PCMCIA card after loading cardmgr too, if that's
198 preferable. (Technically, you need not run 187 preferable. (Technically, you need not run
199 <i>cardmgr</i> if you know exactly which module your PCMCIA card requires. 188 <i>cardmgr</i> if you know exactly which module your PCMCIA card requires.
200 But if you don't, loading all PCMCIA modules and see which sticks won't work, 189 But if you don't, loading all PCMCIA modules and see which sticks won't work,
201 as all PCMCIA modules load obligingly and hang around for a PCMCIA card to 190 as all PCMCIA modules load obligingly and hang around for a PCMCIA card to
202 drop by. <i>cardmgr</i> will also unload the module(s) for any card when you 191 drop by. <i>cardmgr</i> will also unload the module(s) for any card when you
203 remove it). </p> 192 remove it). </p>
204 193 </body>
205 </body>
206 </section> 194 </section>
207 </chapter> 195 </chapter>
208
209 <chapter> 196 <chapter>
210 <title>Configuring Networking</title> 197 <title>Configuring Networking</title>
211 <section> 198 <section>
212 <title> PPPoE configuration</title> 199 <title> PPPoE configuration</title>
213 <body> 200 <body>
214
215 <p>Assuming you need PPPoE to connect to the internet, the livecd (any version) has 201 <p>Assuming you need PPPoE to connect to the internet, the livecd (any version) has
216 made things easy for you by including <i>rp-pppoe</i>. Use the provided <i>adsl-setup </i> 202 made things easy for you by including <i>rp-pppoe</i>. Use the provided <i>adsl-setup </i>
217 script to configure your connection. You will be prompted for the ethernet 203 script to configure your connection. You will be prompted for the ethernet
218 device that is connected to your adsl modem, your username and password, 204 device that is connected to your adsl modem, your username and password,
219 the IPs of your DNS servers, and if you need a basic firewall or not. </p> 205 the IPs of your DNS servers, and if you need a basic firewall or not. </p>
220
221 <pre caption = "Configuring PPPoE"> 206 <pre caption="Configuring PPPoE">
222# <c> adsl-setup </c> 207# <c> adsl-setup </c>
223# <c> adsl-start </c> 208# <c> adsl-start </c>
224 </pre> 209 </pre>
225
226 <p>If something goes wrong, double-check that you correctly typed 210 <p>If something goes wrong, double-check that you correctly typed
227 your username and password by looking at <path>/etc/ppp/pap-secrets</path> or 211 your username and password by looking at <path>/etc/ppp/pap-secrets</path> or
228 <path>/etc/ppp/chap-secrets</path>, and make sure you are using the right ethernet device. </p> 212 <path>/etc/ppp/chap-secrets</path>, and make sure you are using the right ethernet device. </p>
229 213 </body>
230 </body>
231 </section> 214 </section>
232
233 <section> 215 <section>
234 <title> Automatic Network Configuration </title> 216 <title> Automatic Network Configuration </title>
235 <body> 217 <body>
236
237 <p>The Gentoo Linux install lets you configure a working network, allowing you to use 218 <p>The Gentoo Linux install lets you configure a working network, allowing you to use
238 <c>ssh</c>, <c>scp</c> or <c>wget</c> as needed before even beginning the installation process. 219 <c>ssh</c>, <c>scp</c> or <c>wget</c> as needed before even beginning the installation process.
239 Even if you don't need to do these things now, you should go ahead and set up networking now. 220 Even if you don't need to do these things now, you should go ahead and set up networking now.
240 Once networking is up, Portage will be able to use your configured network once you are inside 221 Once networking is up, Portage will be able to use your configured network once you are inside
241 the chroot environment (required for installing Gentoo Linux). 222 the chroot environment (required for installing Gentoo Linux).
242 The simplest way to set up networking is to run our new <c>net-setup</c> 223 The simplest way to set up networking is to run our new <c>net-setup</c>
243 script. </p> 224 script. </p>
244
245 <pre caption = "Net-Setup Script"> 225 <pre caption="Net-Setup Script">
246# <c>net-setup eth0</c> 226# <c>net-setup eth0</c>
247 </pre> 227 </pre>
248
249 <p>Of course, if you prefer, you may still set up networking manually. </p> 228 <p>Of course, if you prefer, you may still set up networking manually. </p>
250 229 </body>
251 </body>
252 </section> 230 </section>
253
254 <section> 231 <section>
255 <title>Manual DHCP Configuration</title> 232 <title>Manual DHCP Configuration</title>
256 <body> 233 <body>
257
258 <p>Network configuration is simple with DHCP; If your ISP is not using 234 <p>Network configuration is simple with DHCP; If your ISP is not using
259 DHCP, skip down to the static configuration section below. </p> 235 DHCP, skip down to the static configuration section below. </p>
260
261 <pre caption="Network configuration with DHCP"> 236 <pre caption="Network configuration with DHCP">
262# <c>dhcpcd eth0</c> 237# <c>dhcpcd eth0</c>
263 </pre> 238 </pre>
264
265 <note>Some ISPs require you to provide a hostname. To do that, 239 <note>Some ISPs require you to provide a hostname. To do that,
266 add a <c>-h myhostname</c> flag to the dhcpcd command line above. 240 add a <c>-h myhostname</c> flag to the dhcpcd command line above.
267 </note> 241 </note>
268
269 <p>If you receive <i>dhcpConfig</i> warnings, don't panic; the errors 242 <p>If you receive <i>dhcpConfig</i> warnings, don't panic; the errors
270 are most likely cosmetic. Skip down to Network testing below.</p> 243 are most likely cosmetic. Skip down to Network testing below.</p>
271 244 </body>
272 </body>
273 </section> 245 </section>
274
275 <section> 246 <section>
276 <title>Manual Static Configuration</title> 247 <title>Manual Static Configuration</title>
277 <body> 248 <body>
278
279 <p>We need to setup just enough networking so that we can download 249 <p>We need to setup just enough networking so that we can download
280 sources for the system build, as well as the required localhost interface. 250 sources for the system build, as well as the required localhost interface.
281 Type in the following commands, replacing 251 Type in the following commands, replacing
282 $IFACE with your network interface (typically <c>eth0</c>), $IPNUM 252 $IFACE with your network interface (typically <c>eth0</c>), $IPNUM
283 with your IP address, $BCAST with your broadcast address, and $NMASK 253 with your IP address, $BCAST with your broadcast address, and $NMASK
284 with your network mask. For the <c>route</c> command, replace 254 with your network mask. For the <c>route</c> command, replace
285 $GTWAY with your default gateway. 255 $GTWAY with your default gateway.
286 </p> 256 </p>
287
288 <pre caption = "Static IP Network Configuration"> 257 <pre caption="Static IP Network Configuration">
289# <c>ifconfig $IFACE $IPNUM broadcast $BCAST netmask $NMASK</c> 258# <c>ifconfig $IFACE $IPNUM broadcast $BCAST netmask $NMASK</c>
290# <c>/sbin/route add -net default gw $GTWAY netmask 0.0.0.0 metric 1</c> 259# <c>/sbin/route add -net default gw $GTWAY netmask 0.0.0.0 metric 1</c>
291 </pre> 260 </pre>
292
293 <p>Now it's time to create the <path>/etc/resolv.conf</path> 261 <p>Now it's time to create the <path>/etc/resolv.conf</path>
294 file so that name resolution (finding Web/FTP sites by name, rather than just by IP address) will work.</p> 262 file so that name resolution (finding Web/FTP sites by name, rather than just by IP address) will work.</p>
295
296 <p>Here's a template to follow for creating your /etc/resolv.conf file: </p> 263 <p>Here's a template to follow for creating your /etc/resolv.conf file: </p>
297
298 <pre caption="/etc/resolv.conf template"> 264 <pre caption="/etc/resolv.conf template">
299domain mydomain.com 265domain mydomain.com
300nameserver 10.0.0.1 266nameserver 10.0.0.1
301nameserver 10.0.0.2 267nameserver 10.0.0.2
302 </pre> 268 </pre>
303
304 <p>Replace <c>10.0.0.1</c> and <c>10.0.0.2</c> with the IP addresses of your 269 <p>Replace <c>10.0.0.1</c> and <c>10.0.0.2</c> with the IP addresses of your
305 primary and secondary DNS servers respectively.</p> 270 primary and secondary DNS servers respectively.</p>
306 </body> 271 </body>
307 </section> 272 </section>
308
309 <section> 273 <section>
310 <title>Proxy Configuration</title> 274 <title>Proxy Configuration</title>
311 <body> 275 <body>
312 <p>If you are behind a proxy, it is necessary to configure your proxy before 276 <p>If you are behind a proxy, it is necessary to configure your proxy before
313 you continue. We will export some variables to set up the proxy accordingly. 277 you continue. We will export some variables to set up the proxy accordingly.
314 </p> 278 </p>
315
316 <pre caption = "Setting a Proxy"> 279 <pre caption="Setting a Proxy">
317# <c>export http_proxy="machine.company.com:1234" </c> 280# <c>export http_proxy=&quot;machine.company.com:1234&quot; </c>
318# <c>export ftp_proxy="$http_proxy" </c> 281# <c>export ftp_proxy=&quot;$http_proxy&quot; </c>
319# <c>export RSYNC_PROXY="$http_proxy" </c> 282# <c>export RSYNC_PROXY=&quot;$http_proxy&quot; </c>
320 </pre> 283 </pre>
321 284 </body>
322 </body>
323 </section> 285 </section>
324
325 <section> 286 <section>
326 <title>Network Testing</title> 287 <title>Network Testing</title>
327 <body> 288 <body>
328 <p>Now that your network has been configured, the <c>/sbin/ifconfig -a</c> command should show 289 <p>Now that your network has been configured, the <c>/sbin/ifconfig -a</c> command should show
329 that your network card is working (look for <e>UP</e> and <e>RUNNING</e> in the output). </p> 290 that your network card is working (look for <e>UP</e> and <e>RUNNING</e> in the output). </p>
330
331 <pre caption="/sbin/ifconfig for a working network card"> 291 <pre caption="/sbin/ifconfig for a working network card">
332eth0 Link encap:Ethernet HWaddr 00:50:BA:8F:61:7A 292eth0 Link encap:Ethernet HWaddr 00:50:BA:8F:61:7A
333 inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0 293 inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
334 inet6 addr: fe80::50:ba8f:617a/10 Scope:Link 294 inet6 addr: fe80::50:ba8f:617a/10 Scope:Link
335 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 295 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
336 RX packets:1498792 errors:0 dropped:0 overruns:0 frame:0 296 RX packets:1498792 errors:0 dropped:0 overruns:0 frame:0
337 TX packets:1284980 errors:0 dropped:0 overruns:0 carrier:0 297 TX packets:1284980 errors:0 dropped:0 overruns:0 carrier:0
338 collisions:1984 txqueuelen:100 298 collisions:1984 txqueuelen:100
339 RX bytes:485691215 (463.1 Mb) TX bytes:123951388 (118.2 Mb) 299 RX bytes:485691215 (463.1 Mb) TX bytes:123951388 (118.2 Mb)
340 Interrupt:11 300 Interrupt:11
341 </pre> 301 </pre>
342
343 <p>You may want to also try pinging your ISP's DNS server (found in <path>/etc/resolv.conf</path>), 302 <p>You may want to also try pinging your ISP's DNS server (found in <path>/etc/resolv.conf</path>),
344 and a website of choice, just to make sure that your packets are reaching the net, DNS name 303 and a website of choice, just to make sure that your packets are reaching the net, DNS name
345 resolution is working correctly, etc. 304 resolution is working correctly, etc.
346 </p> 305 </p>
347
348 <pre caption = "Further Network Testing"> 306 <pre caption="Further Network Testing">
349# <c>ping www.some_website.com </c> 307# <c>ping www.some_website.com </c>
350 </pre> 308 </pre>
351 309 </body>
352 </body>
353 </section> 310 </section>
354
355 <section> 311 <section>
356 <title>Networking is go!</title> 312 <title>Networking is go!</title>
357 <body> 313 <body>
358 <p>Networking should now be configured and useable. You should be able to use the included 314 <p>Networking should now be configured and useable. You should be able to use the included
359 <c>ssh</c>, <c>scp</c> and <c>wget</c> commands to connect to other machines on your LAN or the Internet.</p> 315 <c>ssh</c>, <c>scp</c> and <c>wget</c> commands to connect to other machines on your LAN or the Internet.</p>
360 </body> 316 </body>
361 </section> 317 </section>
362</chapter> 318 </chapter>
363
364 <chapter> 319 <chapter>
365 <title>Partition Configuration</title> 320 <title>Partition Configuration</title>
366 <section> 321 <section>
367 <body> 322 <body>
368
369 <p>Now that the kernel can see the network card and disk controllers, it's time 323 <p>Now that the kernel can see the network card and disk controllers, it's time
370 to set up disk partitions for Gentoo Linux. 324 to set up disk partitions for Gentoo Linux.
371 </p> 325 </p>
372
373 <p>Here's a quick overview of the standard Gentoo Linux partition layout. 326 <p>Here's a quick overview of the standard Gentoo Linux partition layout.
374 We're going to create at least three partitions: a swap partition, a root 327 We're going to create at least three partitions: a swap partition, a root
375 partition (to hold the bulk of Gentoo Linux), and a special boot partition. 328 partition (to hold the bulk of Gentoo Linux), and a special boot partition.
376 The boot partition is designed to hold the GRUB or LILO boot loader information as well as 329 The boot partition is designed to hold the GRUB or LILO boot loader information as well as
377 your Linux kernel(s). The boot partition gives us a safe place to store 330 your Linux kernel(s). The boot partition gives us a safe place to store
378 everything related to booting Linux. During normal day-to-day Gentoo Linux use, 331 everything related to booting Linux. During normal day-to-day Gentoo Linux use,
379 your boot partition should remain <e>unmounted</e>. This prevents your kernel 332 your boot partition should remain <e>unmounted</e>. This prevents your kernel
380 from being made unavailable to GRUB (due to filesystem corruption) in the event 333 from being made unavailable to GRUB (due to filesystem corruption) in the event
381 of a system crash, preventing the chicken-and-egg problem where GRUB can't read 334 of a system crash, preventing the chicken-and-egg problem where GRUB can't read
382 your kernel (since your filesystem isn't consistent) but you can't bring your 335 your kernel (since your filesystem isn't consistent) but you can't bring your
383 filesystem back to a consistent state (since you can't boot!) 336 filesystem back to a consistent state (since you can't boot!)
384 </p> 337 </p>
385
386 <p>Now, on to filesystem types. Right now, you have four filesystem options: 338 <p>Now, on to filesystem types. Right now, you have four filesystem options:
387 XFS, ext2, ext3 (journaling) and ReiserFS. ext2 is the tried and true Linux 339 XFS, ext2, ext3 (journaling) and ReiserFS. ext2 is the tried and true Linux
388 filesystem but doesn't have metadata journaling. ext3 is the new version of 340 filesystem but doesn't have metadata journaling. ext3 is the new version of
389 ext2 with both metadata journaling and ordered data writes, effectively 341 ext2 with both metadata journaling and ordered data writes, effectively
390 providing data journaling as well. ReiserFS is a B*-tree based filesystem 342 providing data journaling as well. ReiserFS is a B*-tree based filesystem
391 that has very good small file performance, and greatly outperforms both ext2 and 343 that has very good small file performance, and greatly outperforms both ext2 and
392 ext3 when dealing with small files (files less than 4k), often by a factor of 344 ext3 when dealing with small files (files less than 4k), often by a factor of
393 10x-15x. ReiserFS also scales extremely well and has metadata journaling. 345 10x-15x. ReiserFS also scales extremely well and has metadata journaling.
394 As of kernel 2.4.18+, ReiserFS is finally rock-solid and highly recommended. 346 As of kernel 2.4.18+, ReiserFS is finally rock-solid and highly recommended.
395 XFS is a filesystem with metadata journaling that 347 XFS is a filesystem with metadata journaling that
396 is fully supported under Gentoo Linux's <path>xfs-sources</path> kernel, but be warned that it 348 is fully supported under Gentoo Linux's <path>xfs-sources</path> kernel, but be warned that it
397 is highly unstable at this time. 349 is highly unstable at this time.
398 </p> 350 </p>
399
400 <p>If you're looking for the most standard filesystem, use ext2. If you're looking 351 <p>If you're looking for the most standard filesystem, use ext2. If you're looking
401 for the most rugged journalled filesystem, use ext3. If you're looking for a 352 for the most rugged journalled filesystem, use ext3. If you're looking for a
402 high-performance filesystem with journaling support, use ReiserFS; both ext3 and ReiserFS are 353 high-performance filesystem with journaling support, use ReiserFS; both ext3 and ReiserFS are
403 mature and refined. Please be careful with XFS; this filesystem has a tendency to fry lots of data 354 mature and refined. Please be careful with XFS; this filesystem has a tendency to fry lots of data
404 if the system crashes or you lose power. Originally, it seemed like a promising filesystem but it 355 if the system crashes or you lose power. Originally, it seemed like a promising filesystem but it
405 now appears that this tendency to lose data is a major achilles' heel. 356 now appears that this tendency to lose data is a major achilles' heel.
406 Here are our basic recommended filesystem 357 Here are our basic recommended filesystem
407 sizes and types: 358 sizes and types:
408 </p> 359 </p>
409 360 <table>
410 <table> 361 <tr>
411 <tr> 362 <th>Partition</th>
412 <th>Partition</th> 363 <th>Size</th>
413 <th>Size</th> 364 <th>Type</th>
414 <th>Type</th> 365 <th>example device</th>
415 <th>example device</th> 366 </tr>
416 </tr> 367 <tr>
417 <tr>
418 <ti>boot partition, containing kernel(s) and boot information</ti> 368 <ti>boot partition, containing kernel(s) and boot information</ti>
419 <ti>100 Megabytes</ti> 369 <ti>100 Megabytes</ti>
420 <ti>ext2/3 highly recommended (easiest); if ReiserFS then mount with <c>-o notail</c></ti> 370 <ti>ext2/3 highly recommended (easiest); if ReiserFS then mount with <c>-o notail</c></ti>
421 <ti>/dev/hda1</ti> 371 <ti>/dev/hda1</ti>
422 </tr> 372 </tr>
423 <tr> 373 <tr>
424 <ti>swap partition (no longer a 128 Megabyte limit)</ti> 374 <ti>swap partition (no longer a 128 Megabyte limit)</ti>
425 <ti>&gt;=2*Amount of RAM in this system is recommended but no longer (as of kernel 2.4.10) required</ti> 375 <ti>&gt;=2*Amount of RAM in this system is recommended but no longer (as of kernel 2.4.10) required</ti>
426 <ti>Linux swap</ti> 376 <ti>Linux swap</ti>
427 <ti>/dev/hda2</ti> 377 <ti>/dev/hda2</ti>
428 </tr> 378 </tr>
429 <tr> 379 <tr>
430 <ti>root partition, containing main filesystem (/usr, /home, etc)</ti> 380 <ti>root partition, containing main filesystem (/usr, /home, etc)</ti>
431 <ti>&gt;=1.5 Gigabytes</ti> 381 <ti>&gt;=1.5 Gigabytes</ti>
432 <ti>ReiserFS, ext3 recommended; ext2 ok</ti> 382 <ti>ReiserFS, ext3 recommended; ext2 ok</ti>
433 <ti>/dev/hda3</ti> 383 <ti>/dev/hda3</ti>
434 </tr> 384 </tr>
435 </table> 385 </table>
436
437 <p>Before creating your partitions, it is a <e>very</e> good idea to initialize the 386 <p>Before creating your partitions, it is a <e>very</e> good idea to initialize the
438 beginning of your HD using <c>dd</c>. Doing this will ensure that you have no issues with 387 beginning of your HD using <c>dd</c>. Doing this will ensure that you have no issues with
439 mounting previously <i>fat32</i> partitions, like <path>/boot</path> 388 mounting previously <i>fat32</i> partitions, like <path>/boot</path>
440 for example. To do this you would do: 389 for example. To do this you would do:
441 </p> 390 </p>
442
443 <pre caption = "Initializing first 1024 Sectors of HD"> 391 <pre caption="Initializing first 1024 Sectors of HD">
444# <c>dd if=/dev/zero of=/dev/hdaBOOT bs=1024 count=1024 </c> 392# <c>dd if=/dev/zero of=/dev/hdaBOOT bs=1024 count=1024 </c>
445<comment>BOOT is the partition that holds your <path>/boot</path>.</comment> 393<comment>BOOT is the partition that holds your <path>/boot</path>.</comment>
446 </pre> 394 </pre>
447
448 <p>At this point, create your partitions using fdisk. Note that your partitions 395 <p>At this point, create your partitions using fdisk. Note that your partitions
449 should be of type 82 if swap and 83 for regular filesystems (whether ReiserFS <e>or</e> ext2/3). </p> 396 should be of type 82 if swap and 83 for regular filesystems (whether ReiserFS <e>or</e> ext2/3). </p>
450
451 <note><i>cfdisk</i> is included on the install CD, and it is *considerably* easier to use than 397 <note><i>cfdisk</i> is included on the install CD, and it is *considerably* easier to use than
452 <i>fdisk</i>. Just type <c>cfdisk</c> to run it. By default cfdisk work with <b>/dev/hda</b>. If /dev/hda is not hard disk you want to partition, give the right value to cfdisk as a parameter. For example: <c>cfdisk /dev/hde</c></note> 398 <i>fdisk</i>. Just type <c>cfdisk</c> to run it. By default cfdisk work with <b>/dev/hda</b>. If /dev/hda is not hard disk you want to partition, give the right value to cfdisk as a parameter. For example: <c>cfdisk /dev/hde</c></note>
453 <note>Changes to the partitions don't reflect on-the-fly, so please reboot after using fdisk or cfdisk.</note> 399 <note>Changes to the partitions don't reflect on-the-fly, so please reboot after using fdisk or cfdisk.</note>
454
455 <note>If you are using RAID your partitions will be a little 400 <note>If you are using RAID your partitions will be a little
456 different. 401 different.
457 You will have the partitions like this: 402 You will have the partitions like this:
458 <path>/dev/ataraid/discX/partY</path> 403 <path>/dev/ataraid/discX/partY</path>
459 X is the arrays you have made, so if you only have made 1 404 X is the arrays you have made, so if you only have made 1
460 array, then it will 405 array, then it will
461 be disc0.Y is the partition number as in <path>/dev/hdaY</path> 406 be disc0.Y is the partition number as in <path>/dev/hdaY</path>
462 </note> 407 </note>
463
464
465 <p>Once you've created your partitions, it's time to initialize 408 <p>Once you've created your partitions, it's time to initialize
466 the filesystems that will be used to house our data. Initialize swap as follows:</p> 409 the filesystems that will be used to house our data. Initialize swap as follows:</p>
467
468 <pre caption= "Initializing Swap"> 410 <pre caption="Initializing Swap">
469# <c>mkswap /dev/hda2</c> 411# <c>mkswap /dev/hda2</c>
470 </pre> 412 </pre>
471
472 <p>You can use the <c>mke2fs</c> command to create ext2 filesystems.</p> 413 <p>You can use the <c>mke2fs</c> command to create ext2 filesystems.</p>
473
474 <pre caption = "Creating an ext2 Filesystem"> 414 <pre caption="Creating an ext2 Filesystem">
475# <i>mke2fs /dev/hda1</i> 415# <i>mke2fs /dev/hda1</i>
476 </pre> 416 </pre>
477
478 <p>To create an XFS filesystem, use the <c>mkfs.xfs</c> command.</p> 417 <p>To create an XFS filesystem, use the <c>mkfs.xfs</c> command.</p>
479
480 <pre caption = "Creating a XFS Filesystem"> 418 <pre caption="Creating a XFS Filesystem">
481# <c>mkfs.xfs /dev/hda3</c> 419# <c>mkfs.xfs /dev/hda3</c>
482 </pre> 420 </pre>
483 421 <note>
484 <note>
485 You may want to add a couple of additional flags to the <c>mkfs.xfs</c> command: <c>-d agcount=3 -l size=32m</c>. 422 You may want to add a couple of additional flags to the <c>mkfs.xfs</c> command: <c>-d agcount=3 -l size=32m</c>.
486 The <c>-d agcount=3</c> command will lower 423 The <c>-d agcount=3</c> command will lower
487 the number of allocation groups. XFS will insist on using at least 1 allocation group per 4 GB of your partition, 424 the number of allocation groups. XFS will insist on using at least 1 allocation group per 4 GB of your partition,
488 so, for example, if you hava a 20 GB partition you will need a minimum agcount of 5. 425 so, for example, if you hava a 20 GB partition you will need a minimum agcount of 5.
489 The <c>-l size=32m</c> command increases the journal size to 32 Mb, increasing performance. 426 The <c>-l size=32m</c> command increases the journal size to 32 Mb, increasing performance.
490 </note> 427 </note>
491 428 <warn>
492 <warn>
493 If you are installing an XFS partition over a previous ReiserFS partition, 429 If you are installing an XFS partition over a previous ReiserFS partition,
494 later attempts to mount may fail without an explicit <c>mount -t xfs</c>. 430 later attempts to mount may fail without an explicit <c>mount -t xfs</c>.
495 The solution is to zero out the partition before creating the XFS filesystem: 431 The solution is to zero out the partition before creating the XFS filesystem:
496 <c>dd if=/dev/zero of=/dev/hd<comment>x</comment> bs=1k</c>. 432 <c>dd if=/dev/zero of=/dev/hd<comment>x</comment> bs=1k</c>.
497 </warn> 433 </warn>
498
499 <p>If you'd like to use ext3, you can create ext3 filesystems using <c>mke2fs -j</c>.</p> 434 <p>If you'd like to use ext3, you can create ext3 filesystems using <c>mke2fs -j</c>.</p>
500
501 <pre caption = "Creating an ext3 Filesystem"> 435 <pre caption="Creating an ext3 Filesystem">
502# <c>mke2fs -j /dev/hda3</c> 436# <c>mke2fs -j /dev/hda3</c>
503 </pre> 437 </pre>
504
505 <p>To create ReiserFS filesystems, use the <c>mkreiserfs</c> command.</p> 438 <p>To create ReiserFS filesystems, use the <c>mkreiserfs</c> command.</p>
506
507 <pre caption = "Creating a ReiserFS Filesystem"> 439 <pre caption="Creating a ReiserFS Filesystem">
508# <c>mkreiserfs /dev/hda3</c> 440# <c>mkreiserfs /dev/hda3</c>
509 </pre> 441 </pre>
510
511 <note>You can find out more about using ext3 under Linux 2.4 at 442 <note>You can find out more about using ext3 under Linux 2.4 at
512 <uri>http://www.zip.com.au/~akpm/linux/ext3/ext3-usage.html</uri>. 443 <uri>http://www.zip.com.au/~akpm/linux/ext3/ext3-usage.html</uri>.
513 </note> 444 </note>
514 445 </body>
515 </body>
516 </section> 446 </section>
517 </chapter> 447 </chapter>
518
519 <chapter> 448 <chapter>
520 <title>Mount Partitions</title> 449 <title>Mount Partitions</title>
521 <section> 450 <section>
522 <body> 451 <body>
523
524 <p>Now, we'll activate our new swap, since we may need the additional virtual memory that 452 <p>Now, we'll activate our new swap, since we may need the additional virtual memory that
525 provides later: 453 provides later:
526 </p> 454 </p>
527
528 <pre caption = "Activating Swap"> 455 <pre caption="Activating Swap">
529# <c>swapon /dev/hda2</c> 456# <c>swapon /dev/hda2</c>
530 </pre> 457 </pre>
531
532 <p>Next, we'll create the <path>/mnt/gentoo</path> and <path>/mnt/gentoo/boot</path> mountpoints, 458 <p>Next, we'll create the <path>/mnt/gentoo</path> and <path>/mnt/gentoo/boot</path> mountpoints,
533 and we'll mount our filesystems to these mountpoints. </p> 459 and we'll mount our filesystems to these mountpoints. </p>
534
535 <pre caption = "Creating Mount Points"> 460 <pre caption="Creating Mount Points">
536# <c>mkdir /mnt/gentoo</c> 461# <c>mkdir /mnt/gentoo</c>
537# <c>mount /dev/hda3 /mnt/gentoo</c> 462# <c>mount /dev/hda3 /mnt/gentoo</c>
538# <c>mkdir /mnt/gentoo/boot</c> 463# <c>mkdir /mnt/gentoo/boot</c>
539# <c>mount /dev/hda1 /mnt/gentoo/boot</c> 464# <c>mount /dev/hda1 /mnt/gentoo/boot</c>
540 </pre> 465 </pre>
541 466 <p>
542 <p>
543 If you are setting up Gentoo 467 If you are setting up Gentoo
544 Linux with a separate <path>/usr</path> or <path>/var</path>, these would get mounted to 468 Linux with a separate <path>/usr</path> or <path>/var</path>, these would get mounted to
545 <path>/mnt/gentoo/usr</path> and <path>/mnt/gentoo/var</path>, respectively. 469 <path>/mnt/gentoo/usr</path> and <path>/mnt/gentoo/var</path>, respectively.
546 </p> 470 </p>
547
548 <impo>If your <e>boot</e> partition (the one holding the kernel) is ReiserFS, be sure to mount it 471 <impo>If your <e>boot</e> partition (the one holding the kernel) is ReiserFS, be sure to mount it
549 with the <c>-o notail</c> option so GRUB gets properly installed. Make sure 472 with the <c>-o notail</c> option so GRUB gets properly installed. Make sure
550 that <c>notail</c> ends up in your new <path>/etc/fstab</path> boot partition entry, too. 473 that <c>notail</c> ends up in your new <path>/etc/fstab</path> boot partition entry, too.
551 We'll get to that in a bit. 474 We'll get to that in a bit.
552 </impo> 475 </impo>
553
554 <impo>If you are having problems mounting your boot partition with ext2, try using 476 <impo>If you are having problems mounting your boot partition with ext2, try using
555 <c>mount /dev/hXX /mnt/gentoo/boot -t ext2 </c> </impo> 477 <c>mount /dev/hXX /mnt/gentoo/boot -t ext2 </c> </impo>
556 </body> 478 </body>
557 </section> 479 </section>
558 </chapter> 480 </chapter>
559
560 <chapter> 481 <chapter>
561 <title>Obtaining the Desired 'stage-x' Tarball</title> 482 <title>Obtaining the Desired 'stage-x' Tarball</title>
562
563 <section> 483 <section>
564 <body> 484 <body>
565
566 <p>If you want to start from a stage1 tarball, then you're already set 485 <p>If you want to start from a stage1 tarball, then you're already set
567 to go; you can find the stage1 tarball in <path>/cdroot/nocompress</path>. 486 to go; you can find the stage1 tarball in <path>/cdroot/nocompress</path>.
568 On the other hand, if you would prefer to start from a stage2 or stage3 487 On the other hand, if you would prefer to start from a stage2 or stage3
569 tarball that has been optimized for your architecture you can download it 488 tarball that has been optimized for your architecture you can download it
570 (into <path>/mnt/gentoo</path> would be the simplest) 489 (into <path>/mnt/gentoo</path> would be the simplest)
571 from one of the Gentoo mirror sites. </p> 490 from one of the Gentoo mirror sites. </p>
572
573 <pre caption = "Downloading Required Stages"> 491 <pre caption="Downloading Required Stages">
574# <c>cd /mnt/gentoo</c> 492# <c>cd /mnt/gentoo</c>
575<comment>Use lynx to get the URL for your tarball</comment> 493<comment>Use lynx to get the URL for your tarball</comment>
576# <c>lynx http://www.ibiblio.org/pub/Linux/distributions/gentoo/releases/1.4_rc1/x86/</c> 494# <c>lynx http://www.ibiblio.org/pub/Linux/distributions/gentoo/releases/1.4_rc1/x86/</c>
577# <c>wget <comment>insert required stage tarball here.</comment></c> 495# <c>wget <comment>insert required stage tarball here.</comment></c>
578 </pre> 496 </pre>
579 497 </body>
580 </body>
581 </section> 498 </section>
582 </chapter> 499 </chapter>
583
584 <chapter> 500 <chapter>
585 <title>Unpacking the Stage Tarballs</title> 501 <title>Unpacking the Stage Tarballs</title>
586 <section> 502 <section>
587 503 <body>
588 <body>
589
590 <p>Now it's time to extract the compressed stage tarball of your choice to <path>/mnt/gentoo</path>. 504 <p>Now it's time to extract the compressed stage tarball of your choice to <path>/mnt/gentoo</path>.
591 Then, we'll <c>chroot</c> over to the new Gentoo Linux build installation. 505 Then, we'll <c>chroot</c> over to the new Gentoo Linux build installation.
592 </p> 506 </p>
593
594 <impo>Be sure to use the <c>p</c> option with <c>tar</c>. Forgetting to do this will 507 <impo>Be sure to use the <c>p</c> option with <c>tar</c>. Forgetting to do this will
595 cause certain files to contain incorrect permissions.</impo> 508 cause certain files to contain incorrect permissions.</impo>
596
597 <p>If you are using the "from scratch, build everything" install method, 509 <p>If you are using the &quot;from scratch, build everything&quot; install method,
598 you will want to use the <path>stage1-ix86-1.4_beta.tbz2</path> image. 510 you will want to use the <path>stage1-ix86-1.4_beta.tbz2</path> image.
599 If you're using one of our bigger CDs, you'll also have a choice of a stage2 and stage3 image. 511 If you're using one of our bigger CDs, you'll also have a choice of a stage2 and stage3 image.
600 These images allow you to save time at the expense of configurability (we've already chosen 512 These images allow you to save time at the expense of configurability (we've already chosen
601 compiler optimizations and default USE variables for you.) 513 compiler optimizations and default USE variables for you.)
602 </p> 514 </p>
603
604 <pre caption = "Unpacking the Stages"> 515 <pre caption="Unpacking the Stages">
605# <c>cd /mnt/gentoo</c> 516# <c>cd /mnt/gentoo</c>
606# <c>tar -xvjpf /path/to/stage?-*.tbz2</c> 517# <c>tar -xvjpf /path/to/stage?-*.tbz2</c>
607# <c>mount -o bind /proc /mnt/gentoo/proc</c> 518# <c>mount -o bind /proc /mnt/gentoo/proc</c>
608# <c>cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf</c> 519# <c>cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf</c>
609 </pre> 520 </pre>
610
611 <pre caption = "Entering the chroot Environment"> 521 <pre caption="Entering the chroot Environment">
612# <c>chroot /mnt/gentoo /bin/bash</c> 522# <c>chroot /mnt/gentoo /bin/bash</c>
613# <c>env-update</c> 523# <c>env-update</c>
614Regenerating /etc/ld.so.cache... 524Regenerating /etc/ld.so.cache...
615# <c>source /etc/profile</c> 525# <c>source /etc/profile</c>
616 </pre> 526 </pre>
617
618 <p>After you execute these commands, you'll be "inside" your new Gentoo Linux environment. 527 <p>After you execute these commands, you'll be &quot;inside&quot; your new Gentoo Linux environment.
619 </p> 528 </p>
620 529 </body>
621 </body>
622 </section> 530 </section>
623 </chapter> 531 </chapter>
624
625 <chapter> 532 <chapter>
626 <title>Getting the Current Portage Tree using Rsync</title> 533 <title>Getting the Current Portage Tree using Rsync</title>
627
628 <section> 534 <section>
629 <body> 535 <body>
630
631 <p>Now, you'll need to run <c>emerge sync</c>. This will make sure that 536 <p>Now, you'll need to run <c>emerge sync</c>. This will make sure that
632 you have the most current copy of the Portage tree. </p> 537 you have the most current copy of the Portage tree. </p>
633
634 <pre caption = "Updating Using Rsync"> 538 <pre caption="Updating Using Rsync">
635# <c>emerge sync</c> 539# <c>emerge sync</c>
636 </pre> 540 </pre>
637
638 <p>The Portage tree will be downloaded and stored in <path>/usr/portage</path>; 541 <p>The Portage tree will be downloaded and stored in <path>/usr/portage</path>;
639 it's about 90Mb in size without tarballs. 542 it's about 90Mb in size without tarballs.
640 </p> 543 </p>
641 544 </body>
642 </body>
643 </section> 545 </section>
644 </chapter> 546 </chapter>
645 <chapter> 547 <chapter>
646 <title>Setting Gentoo optimizations (make.conf)</title> 548 <title>Setting Gentoo optimizations (make.conf)</title>
647 <section> 549 <section>
648 <body> 550 <body>
649
650 <p>Now that you have a working copy of the Portage tree, people using stage1 to 551 <p>Now that you have a working copy of the Portage tree, people using stage1 to
651 install will need to bootstrap their Gentoo Linux system as follows. First 552 install will need to bootstrap their Gentoo Linux system as follows. First
652 edit the file <path>/etc/make.conf</path>. In this file, you should set your 553 edit the file <path>/etc/make.conf</path>. In this file, you should set your
653 <c>USE</c> flags, which specify optional functionality that you would 554 <c>USE</c> flags, which specify optional functionality that you would
654 like to be built into packages; generally, the defaults (an <e>empty</e> 555 like to be built into packages; generally, the defaults (an <e>empty</e>
655 or unset <c>USE</c> variable) are fine. 556 or unset <c>USE</c> variable) are fine.
656 More information on <c>USE</c> flags can be found 557 More information on <c>USE</c> flags can be found
657 <uri link="http://www.gentoo.org/doc/en/use-howto.xml">here</uri>. 558 <uri link="http://www.gentoo.org/doc/en/use-howto.xml">here</uri>.
658 </p> 559 </p>
659
660
661 <p>You also should set appropriate <c>CHOST</c>, <c>CFLAGS</c> and 560 <p>You also should set appropriate <c>CHOST</c>, <c>CFLAGS</c> and
662 <c>CXXFLAGS</c> settings for the kind of system that you are creating 561 <c>CXXFLAGS</c> settings for the kind of system that you are creating
663 (commented examples can be found further down in the file.) Your best friend 562 (commented examples can be found further down in the file.) Your best friend
664 is <path>man gcc</path> to figure out what additional <c>CFLAGS</c> and 563 is <path>man gcc</path> to figure out what additional <c>CFLAGS</c> and
665 <code>CXXFLAGS</code> are available. Search for 'Optimization'. 564 <code>CXXFLAGS</code> are available. Search for 'Optimization'.
666 </p> 565 </p>
667
668 <p>If necessary, you can also set proxy information here if you are behind a 566 <p>If necessary, you can also set proxy information here if you are behind a
669 firewall. 567 firewall.
670 </p> 568 </p>
671
672 <pre caption = "Setting make.conf Options"> 569 <pre caption="Setting make.conf Options">
673# <c>nano -w /etc/make.conf</c> <comment>(Adjust these settings)</comment> 570# <c>nano -w /etc/make.conf</c> <comment>(Adjust these settings)</comment>
674 </pre> 571 </pre>
675 572 <note>
676 <note>
677 People who need to substantially tweak the build process should take a look at 573 People who need to substantially tweak the build process should take a look at
678 the <path>/etc/make.globals</path> file. This file comprises gentoo defaults and 574 the <path>/etc/make.globals</path> file. This file comprises gentoo defaults and
679 should never be touched. If the defaults do not suffice, then new values should 575 should never be touched. If the defaults do not suffice, then new values should
680 be put in <path>/etc/make.conf</path>, as entries in <path>make.conf</path> 576 be put in <path>/etc/make.conf</path>, as entries in <path>make.conf</path>
681 <comment>override</comment> the entries in <path>make.globals</path>. If you're 577 <comment>override</comment> the entries in <path>make.globals</path>. If you're
682 interested in tweaking USE settings, look in <path>/etc/make.profile/make.defaults</path>. 578 interested in tweaking USE settings, look in <path>/etc/make.profile/make.defaults</path>.
683 If you want to turn off any USE settings found here, add an appropriate <c>USE="-foo"</c> 579 If you want to turn off any USE settings found here, add an appropriate <c>USE=&quot;-foo&quot;</c>
684 in /etc/make.conf (to turn off the <c>foo</c> USE setting.) 580 in /etc/make.conf (to turn off the <c>foo</c> USE setting.)
685 </note> 581 </note>
686 </body> 582 </body>
687 </section> 583 </section>
688 </chapter> 584 </chapter>
689
690
691
692 <chapter> 585 <chapter>
693 <title>Progressing from stage1 to stage2</title> 586 <title>Progressing from stage1 to stage2</title>
694 <section> 587 <section>
695 588 <body>
696 <body>
697
698 <p>If you are a stage2 or stage3 tarball, then we've already bootstrapped 589 <p>If you are a stage2 or stage3 tarball, then we've already bootstrapped
699 for you. There is no reason for you to bootstrap again, unless you decided to 590 for you. There is no reason for you to bootstrap again, unless you decided to
700 do an <c>emerge sync</c> and want to ensure that you have an up-to-the-minute 591 do an <c>emerge sync</c> and want to ensure that you have an up-to-the-minute
701 current Gentoo Linux system. Most people using stage2 or stage3 tarballs will 592 current Gentoo Linux system. Most people using stage2 or stage3 tarballs will
702 <i>not</i> want to bootstrap again, since it can take over two hours even on 593 <i>not</i> want to bootstrap again, since it can take over two hours even on
703 very fast machines. 594 very fast machines.
704 </p> 595 </p>
705
706 <p>Now, it's time to start the "bootstrap" process. This process takes about two hours on 596 <p>Now, it's time to start the &quot;bootstrap&quot; process. This process takes about two hours on
707 my 1200Mhz AMD Athlon system. During this time, the extracted build image will be prepped 597 my 1200Mhz AMD Athlon system. During this time, the extracted build image will be prepped
708 for compiling the rest ofthe system. The GNU compiler suite will be built, as well as the GNU C library. 598 for compiling the rest ofthe system. The GNU compiler suite will be built, as well as the GNU C library.
709 These are time consuming builds and make up the bulk of the bootstrap process. 599 These are time consuming builds and make up the bulk of the bootstrap process.
710 </p> 600 </p>
711
712 <pre caption = "Bootstrapping"> 601 <pre caption="Bootstrapping">
713# <c>cd /usr/portage</c> 602# <c>cd /usr/portage</c>
714# <c>scripts/bootstrap.sh</c> 603# <c>scripts/bootstrap.sh</c>
715 </pre> 604 </pre>
716
717 <p>The "bootstrap" process will now begin. 605 <p>The &quot;bootstrap&quot; process will now begin.
718 </p> 606 </p>
719 607 <note>
720 <note>
721 Portage by default uses <c>/var/tmp</c> during package building, often 608 Portage by default uses <c>/var/tmp</c> during package building, often
722 using several hundred megabytes of temporary storage. If you would like to 609 using several hundred megabytes of temporary storage. If you would like to
723 change where Portage stores these temporary files, set a new PORTAGE_TMPDIR <e>before</e> 610 change where Portage stores these temporary files, set a new PORTAGE_TMPDIR <e>before</e>
724 starting the bootstrap process, as follows: 611 starting the bootstrap process, as follows:
725 </note> 612 </note>
726
727 <pre caption = "Changing Portage's Storage Path"> 613 <pre caption="Changing Portage's Storage Path">
728# <c>export PORTAGE_TMPDIR="/otherdir/tmp"</c> 614# <c>export PORTAGE_TMPDIR=&quot;/otherdir/tmp&quot;</c>
729 </pre> 615 </pre>
730
731 <p><c>bootstrap.sh</c> will build <c>binutils</c>, <c>gcc</c>, <c>gettext</c>, 616 <p><c>bootstrap.sh</c> will build <c>binutils</c>, <c>gcc</c>, <c>gettext</c>,
732 and <c>glibc</c>, rebuilding <c>binutils</c>, <c>gcc</c>, and <c>gettext</c> 617 and <c>glibc</c>, rebuilding <c>binutils</c>, <c>gcc</c>, and <c>gettext</c>
733 after <c>glibc</c>. Needless to say, this process takes a while. 618 after <c>glibc</c>. Needless to say, this process takes a while.
734 Have a nice nap. Once this process completes, your system will be in a "stage2" state. 619 Have a nice nap. Once this process completes, your system will be in a &quot;stage2&quot; state.
735 </p> 620 </p>
736 621 </body>
737 </body>
738 </section> 622 </section>
739 </chapter> 623 </chapter>
740
741 <chapter> 624 <chapter>
742 <title>Timezone</title> 625 <title>Timezone</title>
743 <section> 626 <section>
744 627 <body>
745 <body>
746
747 <impo>It is extremely important that this step is completed, no matter which stage 628 <impo>It is extremely important that this step is completed, no matter which stage
748 tarball you use. Major clock drift will be experienced if you do not set localtime correctly, 629 tarball you use. Major clock drift will be experienced if you do not set localtime correctly,
749 let alone subtle issues when emerging packages later. 630 let alone subtle issues when emerging packages later.
750 </impo> 631 </impo>
751
752 <p>At this point, you should have system that's ready for final configuration. 632 <p>At this point, you should have system that's ready for final configuration.
753 We'll start the configuration process by setting the timezone. By setting the timezone before building 633 We'll start the configuration process by setting the timezone. By setting the timezone before building
754 the kernel we ensure that users get reasonable <c>uname -a</c> output. 634 the kernel we ensure that users get reasonable <c>uname -a</c> output.
755 </p> 635 </p>
756
757 <p>Look for your timezone (or GMT if you using Greenwich Mean Time) in 636 <p>Look for your timezone (or GMT if you using Greenwich Mean Time) in
758 <path>/usr/share/zoneinfo</path>. Then, make a symbolic link by typing: 637 <path>/usr/share/zoneinfo</path>. Then, make a symbolic link by typing:
759 </p> 638 </p>
760
761 <pre caption = "Creating a symbolic link for timezome"> 639 <pre caption="Creating a symbolic link for timezome">
762# <c>ln -sf /usr/share/zoneinfo/path/to/timezonefile /etc/localtime</c> 640# <c>ln -sf /usr/share/zoneinfo/path/to/timezonefile /etc/localtime</c>
763 </pre> 641 </pre>
764
765 <p>You might also want to check <path>/etc/rc.conf</path> to make sure your timezone settings 642 <p>You might also want to check <path>/etc/rc.conf</path> to make sure your timezone settings
766 are correct. 643 are correct.
767 </p> 644 </p>
768 645 </body>
769 </body>
770 </section> 646 </section>
771 </chapter> 647 </chapter>
772
773 <chapter> 648 <chapter>
774 <title>Progressing from stage2 to stage3</title> 649 <title>Progressing from stage2 to stage3</title>
775 <section> 650 <section>
776 651 <body>
777 <body>
778 <p>Once your build image has been bootstrapped and you're at stage2 652 <p>Once your build image has been bootstrapped and you're at stage2
779 (again, if you are using a stage3 tarball than these steps are not required) 653 (again, if you are using a stage3 tarball than these steps are not required)
780 it's time to build or install the rest of the base 654 it's time to build or install the rest of the base
781 system. 655 system.
782 </p> 656 </p>
783 657 <note>
784 <note>
785 If you haven't done so, please edit <path>/etc/make.conf</path> to your flavor. 658 If you haven't done so, please edit <path>/etc/make.conf</path> to your flavor.
786 </note> 659 </note>
787
788 <pre caption = "Installing the Rest of the System"> 660 <pre caption="Installing the Rest of the System">
789# <c>export CONFIG_PROTECT=""</c> 661# <c>export CONFIG_PROTECT=&quot;&quot;</c>
790# <c>emerge -p system</c> 662# <c>emerge -p system</c>
791 <comment>[lists the packages to be installed]</comment> 663 <comment>[lists the packages to be installed]</comment>
792# <c>emerge system</c> 664# <c>emerge system</c>
793 </pre> 665 </pre>
794
795 <note>The <c>export CONFIG_PROTECT=""</c> line ensures that any new scripts 666 <note>The <c>export CONFIG_PROTECT=&quot;&quot;</c> line ensures that any new scripts
796 installed to <path>/etc</path> will overwrite the old scripts (stored in 667 installed to <path>/etc</path> will overwrite the old scripts (stored in
797 <path>sys-apps/baselayout</path>), bypassing Portage's new config file 668 <path>sys-apps/baselayout</path>), bypassing Portage's new config file
798 management support. Type <c>emerge --help config</c> for more details.</note> 669 management support. Type <c>emerge --help config</c> for more details.</note>
799
800 <p>It's going to take a while 670 <p>It's going to take a while
801 to finish building the entire base system. Your reward is that it will be 671 to finish building the entire base system. Your reward is that it will be
802 thoroughly optimized for your system. The drawback is that you have to find a 672 thoroughly optimized for your system. The drawback is that you have to find a
803 way to keep yourself occupied for some time to come. The author suggests "Star 673 way to keep yourself occupied for some time to come. The author suggests &quot;Star
804 Wars - Super Bombad Racing" for the PS2. When <c>emerge system</c> completes, 674 Wars - Super Bombad Racing&quot; for the PS2. When <c>emerge system</c> completes,
805 you'll have a stage3 Gentoo Linux system. 675 you'll have a stage3 Gentoo Linux system.
806 </p> 676 </p>
807 677 </body>
808 </body>
809 </section> 678 </section>
810 </chapter> 679 </chapter>
811
812 <chapter> 680 <chapter>
813 <title>Final steps: kernel and system logger</title> 681 <title>Final steps: kernel and system logger</title>
814 <section> 682 <section>
815 <body> 683 <body>
816 684 <note>
817 <note>
818 If you haven't done so, please edit <path>/etc/make.conf</path> to your flavor. 685 If you haven't done so, please edit <path>/etc/make.conf</path> to your flavor.
819 </note> 686 </note>
820
821 <p>You now need to merge Linux source ebuilds. Here are the ones we currently 687 <p>You now need to merge Linux source ebuilds. Here are the ones we currently
822 offer: 688 offer:
823 </p> 689 </p>
824 690 <table>
825<table> 691 <tr>
826<tr><th>ebuild</th><th>description</th></tr> 692 <th>ebuild</th>
827<tr><ti><path>gentoo-sources</path></ti><ti>Our own performance and functionality-enhanced kernel based on -ac.</ti></tr> 693 <th>description</th>
694 </tr>
695 <tr>
696 <ti>
697 <path>gentoo-sources</path>
698 </ti>
699 <ti>Our own performance and functionality-enhanced kernel based on -ac.</ti>
700 </tr>
701 <tr>
702 <ti>
703 <path>xfs-sources</path>
704 </ti>
828<tr><ti><path>xfs-sources</path></ti><ti>A snapshot of the SGI XFS CVS Linux source tree; this is the kernel to run if you want bleeding edge(cvs) xfs support.</ti></tr> 705 <ti>A snapshot of the SGI XFS CVS Linux source tree; this is the kernel to run if you want bleeding edge(cvs) xfs support.</ti>
706 </tr>
707 <tr>
708 <ti>
709 <path>openmosix-sources</path>
710 </ti>
829<tr><ti><path>openmosix-sources</path></ti><ti>A stock Linux kernel source tree patched with support for the GPL <uri link="http://www.openmosix.com">openMosix</uri> load-balancing/clustering technology</ti></tr> 711 <ti>A stock Linux kernel source tree patched with support for the GPL <uri link="http://www.openmosix.com">openMosix</uri> load-balancing/clustering technology</ti>
830<tr><ti><path>usermode-sources</path></ti><ti>A stock Linux kernel source tree patched with support for User-Mode Linux. ("Linux inside Linux" technology)</ti></tr> 712 </tr>
831<tr><ti><path>vanilla-sources</path></ti><ti>A stock Linux kernel source tree, just like you'd get from kernel.org</ti></tr> 713 <tr>
832</table> 714 <ti>
833 715 <path>usermode-sources</path>
716 </ti>
717 <ti>A stock Linux kernel source tree patched with support for User-Mode Linux. (&quot;Linux inside Linux&quot; technology)</ti>
718 </tr>
719 <tr>
720 <ti>
721 <path>vanilla-sources</path>
722 </ti>
723 <ti>A stock Linux kernel source tree, just like you'd get from kernel.org</ti>
724 </tr>
725 </table>
834 <warn>Please note that <i>gentoo-sources</i> is heavily patched and may not be stable. 726 <warn>Please note that <i>gentoo-sources</i> is heavily patched and may not be stable.
835 Using <i>vanilla-sources</i> might be a better idea if you encounter numerous problems. If you are using 727 Using <i>vanilla-sources</i> might be a better idea if you encounter numerous problems. If you are using
836 <i>gentoo-sources</i> beware of <i>grsecurity</i>, especially with <i>X</i>. 728 <i>gentoo-sources</i> beware of <i>grsecurity</i>, especially with <i>X</i>.
837 It is best to disable <i>grsecurity</i>unless you are absolutely sure that you need it. 729 It is best to disable <i>grsecurity</i>unless you are absolutely sure that you need it.
838 </warn> 730 </warn>
839
840 <p>Choose one and then merge as follows:</p> 731 <p>Choose one and then merge as follows:</p>
841
842 <pre caption = "Emerging Kernel Sources"> 732 <pre caption="Emerging Kernel Sources">
843# <c>emerge sys-kernel/gentoo-sources</c> 733# <c>emerge sys-kernel/gentoo-sources</c>
844 </pre> 734 </pre>
845
846 <p>Once you have a Linux kernel source tree available, it's time to compile your own custom kernel. 735 <p>Once you have a Linux kernel source tree available, it's time to compile your own custom kernel.
847 </p> 736 </p>
848
849 <pre caption = "Compiling the Linux Kernel"> 737 <pre caption="Compiling the Linux Kernel">
850# <c>cd /usr/src/linux</c> 738# <c>cd /usr/src/linux</c>
851# <c>make menuconfig</c> 739# <c>make menuconfig</c>
852# <c>make dep &amp;&amp; make clean bzImage modules modules_install</c> 740# <c>make dep &amp;&amp; make clean bzImage modules modules_install</c>
853# <c>mv /boot/bzImage /boot/bzImage.orig</c> 741# <c>mv /boot/bzImage /boot/bzImage.orig</c>
854<comment>[if bzImage already exists]</comment> 742<comment>[if bzImage already exists]</comment>
855# <c>cp /usr/src/linux/arch/i386/boot/bzImage /boot</c> 743# <c>cp /usr/src/linux/arch/i386/boot/bzImage /boot</c>
856 </pre> 744 </pre>
857
858 <warn>For your kernel to function properly, there are several options that you will 745 <warn>For your kernel to function properly, there are several options that you will
859 need to ensure are in the kernel proper -- that is, they should <i>be enabled and not 746 need to ensure are in the kernel proper -- that is, they should <i>be enabled and not
860 compiled as modules</i>. You will need to enable the <i>"Code maturity 747 compiled as modules</i>. You will need to enable the <i>&quot;Code maturity
861 level options --> Prompt for development and/or incomplete code/drivers"</i> 748 level options --&gt; Prompt for development and/or incomplete code/drivers&quot;</i>
862 option to see several of these selections. 749 option to see several of these selections.
863 Under the "File systems" section, be sure to enable the <i>"Device File System"</i> (note that 750 Under the &quot;File systems&quot; section, be sure to enable the <i>&quot;Device File System&quot;</i> (note that
864 you <e>don't</e> need to enable the "/dev/pts file system support" option). You'll also 751 you <e>don't</e> need to enable the &quot;/dev/pts file system support&quot; option). You'll also
865 need to enable the <i>"Virtual Memory Filesystem"</i>. Be sure to enable "ReiserFS" if you have 752 need to enable the <i>&quot;Virtual Memory Filesystem&quot;</i>. Be sure to enable &quot;ReiserFS&quot; if you have
866 any ReiserFS partitions; the same goes for "Ext3". If you're using XFS, enable the 753 any ReiserFS partitions; the same goes for &quot;Ext3&quot;. If you're using XFS, enable the
867 "SGI XFS filesystem support" 754 &quot;SGI XFS filesystem support&quot;
868 option. It's always a good idea to leave ext2 755 option. It's always a good idea to leave ext2
869 enabled whether you are using it or not. Also, most people using IDE hard drives will 756 enabled whether you are using it or not. Also, most people using IDE hard drives will
870 want to enable the "USE DMA by default" option; otherwise, your IDE drives may perform 757 want to enable the &quot;USE DMA by default&quot; option; otherwise, your IDE drives may perform
871 very poorly. Of course, remember to enable "IDE disk" support as well -- otherwise your 758 very poorly. Of course, remember to enable &quot;IDE disk&quot; support as well -- otherwise your
872 kernel won't be able to see your IDE disks. 759 kernel won't be able to see your IDE disks.
873 </warn> 760 </warn>
874
875 <p>If you are using hardware RAID you will need to enable a couple more options in the kernel: 761 <p>If you are using hardware RAID you will need to enable a couple more options in the kernel:
876 For Highpoint RAID controllers select hpt366 chipset support, support for IDE RAID controllers and Highpoint 762 For Highpoint RAID controllers select hpt366 chipset support, support for IDE RAID controllers and Highpoint
877 370 software RAID.For Promise RAID controllers select PROMISE PDC202{46|62|65|67|68|69|70} support, 763 370 software RAID.For Promise RAID controllers select PROMISE PDC202{46|62|65|67|68|69|70} support,
878 support for IDE RAID 764 support for IDE RAID
879 controllers and Support Promise software RAID (Fasttrak(tm)) 765 controllers and Support Promise software RAID (Fasttrak(tm))
880 </p> 766 </p>
881
882 <p>If you use PPPoE to connect to Internet, you will need the following 767 <p>If you use PPPoE to connect to Internet, you will need the following
883 options in the kernel (built-in or as preferably as modules) : 768 options in the kernel (built-in or as preferably as modules) :
884 "PPP (point-to-point protocol) support", "PPP support for async serial ports", 769 &quot;PPP (point-to-point protocol) support&quot;, &quot;PPP support for async serial ports&quot;,
885 "PPP support for sync tty ports". The two compression options won't harm but 770 &quot;PPP support for sync tty ports&quot;. The two compression options won't harm but
886 are not definitely needed, neither does the "PPP over Ethernet" option, 771 are not definitely needed, neither does the &quot;PPP over Ethernet&quot; option,
887 that might only be used by <i>rp-pppoe</i> when configured to do kernel mode PPPoE. 772 that might only be used by <i>rp-pppoe</i> when configured to do kernel mode PPPoE.
888 </p> 773 </p>
889
890 <p>If you have an IDE cd burner, then you need to enable SCSI emulation in the 774 <p>If you have an IDE cd burner, then you need to enable SCSI emulation in the
891 kernel. Turn on "ATA/IDE/MFM/RLL support" ---> "IDE, ATA and ATAPI Block 775 kernel. Turn on &quot;ATA/IDE/MFM/RLL support&quot; ---&gt; &quot;IDE, ATA and ATAPI Block
892 devices" ---> "SCSI emulation support" (I usually make it a module), then 776 devices&quot; ---&gt; &quot;SCSI emulation support&quot; (I usually make it a module), then
893 under "SCSI support" enable "SCSI support", "SCSI CD-ROM support" and 777 under &quot;SCSI support&quot; enable &quot;SCSI support&quot;, &quot;SCSI CD-ROM support&quot; and
894 "SCSI generic support" (again, I usually compile them as modules). If you 778 &quot;SCSI generic support&quot; (again, I usually compile them as modules). If you
895 also choose to use modules, then <c>echo -e "ide-scsi\nsg\nsr_mod" 779 also choose to use modules, then <c>echo -e &quot;ide-scsi\nsg\nsr_mod&quot;
896 >> /etc/modules.autoload</c> to have them automatically added at boot time. 780 &gt;&gt; /etc/modules.autoload</c> to have them automatically added at boot time.
897 </p> 781 </p>
898 782 <note>
899 <note>
900 For those who prefer it, 783 For those who prefer it,
901 it is now possible to install Gentoo Linux with a 2.2 kernel. 784 it is now possible to install Gentoo Linux with a 2.2 kernel.
902 Such stability will come at a price: 785 Such stability will come at a price:
903 you will lose many of the nifty features that 786 you will lose many of the nifty features that
904 are new to the 2.4 series kernels (such as XFS and tmpfs 787 are new to the 2.4 series kernels (such as XFS and tmpfs
905 filesystems, iptables, and more), although the 2.2 kernel sources can be 788 filesystems, iptables, and more), although the 2.2 kernel sources can be
906 patched with Reiserfs and devfs support. 789 patched with Reiserfs and devfs support.
907 Gentoo linux bootscripts require either tmpfs or ramdisk support in the kernel, so 790 Gentoo linux bootscripts require either tmpfs or ramdisk support in the kernel, so
908 2.2 kernel users need to make sure that ramdisk support is compiled in (ie, not a module). 791 2.2 kernel users need to make sure that ramdisk support is compiled in (ie, not a module).
909 It is <comment>vital</comment> that a <e>gentoo=notmpfs</e> flag be added to the kernel 792 It is <comment>vital</comment> that a <e>gentoo=notmpfs</e> flag be added to the kernel
910 line in <path>/boot/grub/grub.conf</path> for the 2.2 kernel so that a ramdisk is mounted 793 line in <path>/boot/grub/grub.conf</path> for the 2.2 kernel so that a ramdisk is mounted
911 for the bootscripts instead of tmpfs. If you choose not to use devfs, then 794 for the bootscripts instead of tmpfs. If you choose not to use devfs, then
912 <e>gentoo=notmpfs,nodevfs</e> should be used instead. 795 <e>gentoo=notmpfs,nodevfs</e> should be used instead.
913 </note> 796 </note>
914
915 <p>Your new custom kernel (and modules) are now installed. Now you need to choose a system 797 <p>Your new custom kernel (and modules) are now installed. Now you need to choose a system
916 logger that you would like to install. We offer sysklogd, which is the traditional set 798 logger that you would like to install. We offer sysklogd, which is the traditional set
917 of system logging daemons. We also have msyslog and syslog-ng as well as metalog. Power users seem 799 of system logging daemons. We also have msyslog and syslog-ng as well as metalog. Power users seem
918 to gravitate away from sysklogd (not very good performance) and towards the 800 to gravitate away from sysklogd (not very good performance) and towards the
919 newer alternatives. 801 newer alternatives.
920 If in doubt, you may want to try metalog, since it seems to be quite popular. 802 If in doubt, you may want to try metalog, since it seems to be quite popular.
921 To merge your logger of choice, type <e>one</e> of the next four lines: 803 To merge your logger of choice, type <e>one</e> of the next four lines:
922 </p> 804 </p>
923
924
925 <pre caption = "Emerging System Logger of Choice"> 805 <pre caption="Emerging System Logger of Choice">
926# <c>emerge app-admin/sysklogd</c> 806# <c>emerge app-admin/sysklogd</c>
927# <c>rc-update add sysklogd default</c> 807# <c>rc-update add sysklogd default</c>
928<comment>or</comment> 808<comment>or</comment>
929# <c>emerge app-admin/syslog-ng</c> 809# <c>emerge app-admin/syslog-ng</c>
930# <c>rc-update add syslog-ng default</c> 810# <c>rc-update add syslog-ng default</c>
931<comment>or</comment> 811<comment>or</comment>
932# <c>emerge app-admin/metalog</c> 812# <c>emerge app-admin/metalog</c>
933# <c>rc-update add metalog default</c> 813# <c>rc-update add metalog default</c>
934<comment>or</comment> 814<comment>or</comment>
935# <c>emerge app-admin/msyslog</c> 815# <c>emerge app-admin/msyslog</c>
936# <c>rc-update add msyslog default</c> 816# <c>rc-update add msyslog default</c>
937 </pre> 817 </pre>
938 818 <warn>
939 <warn>
940 In the case of syslog-ng you need to create 819 In the case of syslog-ng you need to create
941 <path>/etc/syslog-ng/syslog-ng.conf</path>. 820 <path>/etc/syslog-ng/syslog-ng.conf</path>.
942 See <path>/etc/syslog-ng</path> 821 See <path>/etc/syslog-ng</path>
943 for a sample configuration file. 822 for a sample configuration file.
944 </warn> 823 </warn>
945 824 <impo>
946 <impo>
947 Metalog flushes output to the disk in blocks, so messages aren't immediately recorded into 825 Metalog flushes output to the disk in blocks, so messages aren't immediately recorded into
948 the system logs. If you are trying to debug a daemon, this performance-enhancing behavior 826 the system logs. If you are trying to debug a daemon, this performance-enhancing behavior
949 is less than helpful. When your Gentoo Linux system is up and running, you can send 827 is less than helpful. When your Gentoo Linux system is up and running, you can send
950 metalog a USR1 signal to temporarily turn off this message buffering (meaning that 828 metalog a USR1 signal to temporarily turn off this message buffering (meaning that
951 <i>tail -f <path>/var/log/everything/current</path></i> will now work 829 <i>tail -f <path>/var/log/everything/current</path></i> will now work
952 in real time, as expected), 830 in real time, as expected),
953 and a USR2 signal to turn buffering back on 831 and a USR2 signal to turn buffering back on
954 again. 832 again.
955 </impo> 833 </impo>
956
957 <p>Now, you may optionally choose a cron package that you'd like to use. 834 <p>Now, you may optionally choose a cron package that you'd like to use.
958 Right now, we offer dcron, fcron and vcron. If you don't know which one to choose, 835 Right now, we offer dcron, fcron and vcron. If you don't know which one to choose,
959 you might as well grab vcron. They can be installed as follows: 836 you might as well grab vcron. They can be installed as follows:
960 </p> 837 </p>
961
962 <pre caption = "Choosing a CRON Daemon"> 838 <pre caption="Choosing a CRON Daemon">
963# <c>emerge sys-apps/dcron</c> 839# <c>emerge sys-apps/dcron</c>
964# <c>crontab /etc/crontab</c> 840# <c>crontab /etc/crontab</c>
965<comment>or</comment> 841<comment>or</comment>
966# <c>emerge sys-apps/fcron</c> 842# <c>emerge sys-apps/fcron</c>
967# <c>crontab /etc/crontab</c> 843# <c>crontab /etc/crontab</c>
968<comment>or</comment> 844<comment>or</comment>
969# <c>emerge sys-apps/vcron</c> 845# <c>emerge sys-apps/vcron</c>
970<comment>You do not need to run <c>crontab /etc/crontab</c> if using vcron. </comment> 846<comment>You do not need to run <c>crontab /etc/crontab</c> if using vcron. </comment>
971<comment>Don't forget to add your *cron to the proper init level. </comment> 847<comment>Don't forget to add your *cron to the proper init level. </comment>
972# <c>rc-update add *cron default </c> 848# <c>rc-update add *cron default </c>
973 </pre> 849 </pre>
974
975 <p>For more information how how cron works under Gentoo Linux, 850 <p>For more information how how cron works under Gentoo Linux,
976 see <uri link="http://lists.gentoo.org/pipermail/gentoo-announce/2002-April/000151.html">this announcement</uri>.</p> 851 see <uri link="http://lists.gentoo.org/pipermail/gentoo-announce/2002-April/000151.html">this announcement</uri>.</p>
977 <p>For more information on starting programs and daemons at startup, see the 852 <p>For more information on starting programs and daemons at startup, see the
978 <uri link="/doc/rc-scripts.html">rc-script guide</uri>. 853 <uri link="/doc/rc-scripts.html">rc-script guide</uri>.
979 </p> 854 </p>
980 855 </body>
981 </body>
982 </section> 856 </section>
983 </chapter> 857 </chapter>
984
985 <chapter> 858 <chapter>
986 <title>Final steps: Install Additional Packages</title> 859 <title>Final steps: Install Additional Packages</title>
987 <section> 860 <section>
988 <body> 861 <body>
989
990 <p>If you need rp-pppoe to connect to the net, be aware that at this point 862 <p>If you need rp-pppoe to connect to the net, be aware that at this point
991 it has not been installed. It would be the good time to do it. </p> 863 it has not been installed. It would be the good time to do it. </p>
992
993 <pre caption = "Installing rp-pppoe"> 864 <pre caption="Installing rp-pppoe">
994# <c>emerge rp-pppoe</c> 865# <c>emerge rp-pppoe</c>
995 </pre> 866 </pre>
996
997 <note> Please note that the rp-pppoe is built but not configured. 867 <note> Please note that the rp-pppoe is built but not configured.
998 You will have to do it again using <c>adsl-setup</c> when you boot into your Gentoo system 868 You will have to do it again using <c>adsl-setup</c> when you boot into your Gentoo system
999 for the first time. 869 for the first time.
1000 </note> 870 </note>
1001
1002
1003 <p>You may need to install some additional packages in the Portage tree 871 <p>You may need to install some additional packages in the Portage tree
1004 if you are using any optional features like XFS, ReiserFS or LVM. If you're 872 if you are using any optional features like XFS, ReiserFS or LVM. If you're
1005 using XFS, you should emerge the <c>xfsprogs</c> ebuild: 873 using XFS, you should emerge the <c>xfsprogs</c> ebuild:
1006 </p> 874 </p>
1007
1008 <pre caption = "Emerging Filesystem Tools"> 875 <pre caption="Emerging Filesystem Tools">
1009# <c>emerge sys-apps/xfsprogs</c> 876# <c>emerge sys-apps/xfsprogs</c>
1010<comment>If you'd like to use ReiserFS, you should emerge the ReiserFS tools: </comment> 877<comment>If you'd like to use ReiserFS, you should emerge the ReiserFS tools: </comment>
1011# <c> emerge sys-apps/reiserfsprogs</c> 878# <c> emerge sys-apps/reiserfsprogs</c>
1012<comment>If you're using LVM, you should emerge the <c>lvm-user</c> package: </comment> 879<comment>If you're using LVM, you should emerge the <c>lvm-user</c> package: </comment>
1013# <c>emerge --usepkg sys-apps/lvm-user</c> 880# <c>emerge --usepkg sys-apps/lvm-user</c>
1014 </pre> 881 </pre>
1015
1016
1017 <p>If you're a laptop user and wish to use your PCMCIA slots on your first 882 <p>If you're a laptop user and wish to use your PCMCIA slots on your first
1018 real reboot, you'll want to make sure you install the <i>pcmcia-cs</i> package. 883 real reboot, you'll want to make sure you install the <i>pcmcia-cs</i> package.
1019 </p> 884 </p>
1020
1021 <pre caption = "Emerging PCMCIA-cs"> 885 <pre caption="Emerging PCMCIA-cs">
1022# <c>emerge sys-apps/pcmcia-cs</c> 886# <c>emerge sys-apps/pcmcia-cs</c>
1023 </pre> 887 </pre>
1024
1025 <warn>You will have to re-emerge <i>pcmcia-cs</i> after installation to get PCMCIA 888 <warn>You will have to re-emerge <i>pcmcia-cs</i> after installation to get PCMCIA
1026 to work. 889 to work.
1027 </warn> 890 </warn>
1028 891 </body>
1029 </body>
1030 </section> 892 </section>
1031 </chapter> 893 </chapter>
1032
1033 <chapter> 894 <chapter>
1034 <title>Final steps: /etc/fstab</title> 895 <title>Final steps: /etc/fstab</title>
1035 <section> 896 <section>
1036 897 <body>
1037 <body>
1038
1039 <p>Your Gentoo Linux system is almost ready for use. All we need to do now is configure 898 <p>Your Gentoo Linux system is almost ready for use. All we need to do now is configure
1040 a few important system files and install the GRUB boot loader. 899 a few important system files and install the GRUB boot loader.
1041 The first file we need to 900 The first file we need to
1042 configure is <path>/etc/fstab</path>. Remember that you should use 901 configure is <path>/etc/fstab</path>. Remember that you should use
1043 the <c>notail</c> option for your boot partition if you chose to create a ReiserFS filesystem on it. 902 the <c>notail</c> option for your boot partition if you chose to create a ReiserFS filesystem on it.
1044 Remember to specify <c>ext2</c>, <c>ext3</c> or <c>reiserfs</c> filesystem types as appropriate. 903 Remember to specify <c>ext2</c>, <c>ext3</c> or <c>reiserfs</c> filesystem types as appropriate.
1045 </p> 904 </p>
1046
1047 <p>Use something like the <path>/etc/fstab</path> listed below, but of course be sure to replace "BOOT", 905 <p>Use something like the <path>/etc/fstab</path> listed below, but of course be sure to replace &quot;BOOT&quot;,
1048 "ROOT" and "SWAP" with the actual block devices you are using (such as <c>hda1</c>, etc.)</p> 906 &quot;ROOT&quot; and &quot;SWAP&quot; with the actual block devices you are using (such as <c>hda1</c>, etc.)</p>
1049 <pre caption = "Editing fstab"> 907 <pre caption="Editing fstab"><comment>
1050<comment>
1051# /etc/fstab: static file system information. 908# /etc/fstab: static file system information.
1052# 909#
1053# noatime turns of atimes for increased performance (atimes normally aren't 910# noatime turns of atimes for increased performance (atimes normally aren't
1054# needed; notail increases performance of ReiserFS (at the expense of storage 911# needed; notail increases performance of ReiserFS (at the expense of storage
1055# efficiency). It's safe to drop the noatime options if you want and to 912# efficiency). It's safe to drop the noatime options if you want and to
1056# switch between notail and tail freely. 913# switch between notail and tail freely.
1057 914
1058# &lt;fs&gt; &lt;mountpoint&gt; &lt;type&gt; &lt;opts&gt; &lt;dump/pass&gt; 915# &lt;fs&gt; &lt;mountpoint&gt; &lt;type&gt; &lt;opts&gt; &lt;dump/pass&gt;
1059 916
1060# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. 917# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
1061</comment> 918</comment>
1062/dev/BOOT /boot ext2 noauto,noatime 1 2 919/dev/BOOT /boot ext2 noauto,noatime 1 2
1063/dev/ROOT / ext3 noatime 0 1 920/dev/ROOT / ext3 noatime 0 1
1064/dev/SWAP none swap sw 0 0 921/dev/SWAP none swap sw 0 0
1065/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0 922/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
1066proc /proc proc defaults 0 0 923proc /proc proc defaults 0 0
1067 </pre> 924 </pre>
1068
1069 <warn>Please notice that <i>/boot</i> is NOT mounted at boottime. 925 <warn>Please notice that <i>/boot</i> is NOT mounted at boottime.
1070 This is to protect the data in <i>/boot</i> from 926 This is to protect the data in <i>/boot</i> from
1071 corruption. If you need to access <i>/boot</i>, please mount it! 927 corruption. If you need to access <i>/boot</i>, please mount it!
1072 </warn> 928 </warn>
1073 929 </body>
1074 </body>
1075 </section> 930 </section>
1076 931 </chapter>
1077 <section> 932 <chapter>
1078 <title>Final steps: Root Password</title> 933 <title>Final steps: Root Password</title>
1079 934 <section>
1080 <body> 935 <body>
1081
1082 <p>Before you forget, set the root password by typing: </p> 936 <p>Before you forget, set the root password by typing: </p>
1083
1084 <pre caption = "Setting the root Password"> 937 <pre caption="Setting the root Password">
1085# <i>passwd</i> 938# <c>passwd</c>
1086 </pre> 939 </pre>
1087 940 </body>
1088 </body>
1089 </section> 941 </section>
1090 942 </chapter>
1091 <section> 943 <chapter>
1092 <title>Final steps: /etc/hostname</title> 944 <title>Final steps: /etc/hostname</title>
1093 945 <section>
1094 <body> 946 <body>
1095 <p>Edit this file so that it contains your fully-qualified domain name on a single line, 947 <p>Edit this file so that it contains your fully-qualified domain name on a single line,
1096 i.e. <c>mymachine.mydomain.com</c>. 948 i.e. <c>mymachine.mydomain.com</c>.
1097 </p> 949 </p>
1098
1099 <pre caption = "Configuring Hostname"> 950 <pre caption="Configuring Hostname">
1100# <c>echo mymachine.mydomain.com > /etc/hostname</c> 951# <c>echo mymachine.mydomain.com &gt; /etc/hostname</c>
1101 </pre> 952 </pre>
1102 953 </body>
1103 </body>
1104 </section> 954 </section>
1105 955 </chapter>
1106 <section> 956 <chapter>
1107 <title>Final steps: /etc/hosts</title> 957 <title>Final steps: /etc/hosts</title>
1108 958 <section>
1109 <body> 959 <body>
1110 <p>This file contains a list of ip addresses and their associated hostnames. 960 <p>This file contains a list of ip addresses and their associated hostnames.
1111 It's used by the system to resolve the IP addresses 961 It's used by the system to resolve the IP addresses
1112 of any hostnames that may not be in your nameservers. Here's a template for this file: 962 of any hostnames that may not be in your nameservers. Here's a template for this file:
1113 </p> 963 </p>
1114
1115 <pre caption = "Hosts Template"> 964 <pre caption="Hosts Template">
1116127.0.0.1 localhost 965127.0.0.1 localhost
1117<comment># the next line contains your IP for your local LAN, and your associated machine name</comment> 966<comment># the next line contains your IP for your local LAN, and your associated machine name</comment>
1118192.168.1.1 mymachine.mydomain.com mymachine 967192.168.1.1 mymachine.mydomain.com mymachine
1119 </pre> 968 </pre>
1120
1121 <note>If you are on a DHCP network, it might be helpful to set <i>localhost</i> to your machine's 969 <note>If you are on a DHCP network, it might be helpful to set <i>localhost</i> to your machine's
1122 actual hostname. This will help GNOME and many other programs in name resolution. 970 actual hostname. This will help GNOME and many other programs in name resolution.
1123 </note> 971 </note>
1124 972 </body>
1125 </body>
1126 </section> 973 </section>
1127 974 </chapter>
1128 <section> 975 <chapter>
1129 <title>Final Network Configuration</title> 976 <title>Final Network Configuration</title>
1130 977 <section>
1131 <body> 978 <body>
1132
1133
1134 <p>Add the names of any modules that are necessary for the proper functioning of your system to 979 <p>Add the names of any modules that are necessary for the proper functioning of your system to
1135 <path>/etc/modules.autoload</path> file (you can also add any options you 980 <path>/etc/modules.autoload</path> file (you can also add any options you
1136 need to the same line.) When Gentoo Linux boots, these modules will be automatically 981 need to the same line.) When Gentoo Linux boots, these modules will be automatically
1137 loaded. Of particular importance is your ethernet card module, if you happened to compile 982 loaded. Of particular importance is your ethernet card module, if you happened to compile
1138 it as a module: 983 it as a module:
1139 </p> 984 </p>
1140
1141 <pre caption="/etc/modules.autoload">
1142<comment>This is assuming that you are using a 3com card. Check <path>/lib/modules/`uname -r`/kernel/drivers/net</path> for your 985 <pre caption="/etc/modules.autoload"><comment>This is assuming that you are using a 3com card. Check <path>/lib/modules/`uname -r`/kernel/drivers/net</path> for your
1143card. </comment> 986card. </comment>
11443c59x 9873c59x
1145 </pre> 988 </pre>
1146
1147 <p>Edit the <path>/etc/conf.d/net</path> script to get your network configured for your 989 <p>Edit the <path>/etc/conf.d/net</path> script to get your network configured for your
1148 first boot: </p> 990 first boot: </p>
1149
1150 <pre caption = "Boottime Network Configuration"> 991 <pre caption="Boottime Network Configuration">
1151# <c>nano -w /etc/conf.d/net</c> 992# <c>nano -w /etc/conf.d/net</c>
1152# <c>rc-update add net.eth0 default</c> 993# <c>rc-update add net.eth0 default</c>
1153 </pre> 994 </pre>
1154
1155
1156 <p>If you have multiple network cards you need to create additional <path>net.eth<comment>x</comment></path> 995 <p>If you have multiple network cards you need to create additional <path>net.eth<comment>x</comment></path>
1157 scripts for each one (<comment>x</comment> = 1, 2, ...): </p> 996 scripts for each one (<comment>x</comment> = 1, 2, ...): </p>
1158
1159 <pre caption="Multiple Network Interfaces"> 997 <pre caption="Multiple Network Interfaces">
1160# <c>cd /etc/init.d</c> 998# <c>cd /etc/init.d</c>
1161# <c>cp net.eth0 net.eth<comment>x</comment></c> 999# <c>cp net.eth0 net.eth<comment>x</comment></c>
1162# <c>rc-update add net.eth<comment>x</comment> default</c> 1000# <c>rc-update add net.eth<comment>x</comment> default</c>
1163 </pre> 1001 </pre>
1164
1165
1166 <p>If you have a PCMCIA card installed, have a quick look into 1002 <p>If you have a PCMCIA card installed, have a quick look into
1167 <path>/etc/init.d/pcmcia</path> to verify that things seem all right for your setup, 1003 <path>/etc/init.d/pcmcia</path> to verify that things seem all right for your setup,
1168 then add this line to the top of <path>/etc/init.d/ethx</path>: 1004 then add this line to the top of <path>/etc/init.d/ethx</path>:
1169 </p> 1005 </p>
1170
1171 <pre caption = "PCMCIA depend in /etc/init.d/net.ethx"> 1006 <pre caption="PCMCIA depend in /etc/init.d/net.ethx">
1172depend() { 1007depend() {
1173 need pcmcia 1008 need pcmcia
1174} 1009}
1175 </pre> 1010 </pre>
1176
1177 <p>This makes sure that the PCMCIA drivers are autoloaded whenever your network is loaded. 1011 <p>This makes sure that the PCMCIA drivers are autoloaded whenever your network is loaded.
1178 </p> 1012 </p>
1179 1013 </body>
1180 </body>
1181 </section> 1014 </section>
1182 1015 </chapter>
1183 <section> 1016 <chapter>
1184 <title>Final steps: configure basic settings (including the international keymap setting)</title> 1017 <title>Final steps: Configure Basic Settings (including the international keymap setting)</title>
1185 1018 <section>
1186 <body> 1019 <body>
1187
1188 <pre caption="Basic Configuration"> 1020 <pre caption="Basic Configuration">
1189# <c>nano -w /etc/rc.conf</c> 1021# <c>nano -w /etc/rc.conf</c>
1190 </pre> 1022 </pre>
1191
1192 <p>Follow the directions in the file to configure the basic settings. 1023 <p>Follow the directions in the file to configure the basic settings.
1193 All users will want to make sure that <c>CLOCK</c> is set to his/her 1024 All users will want to make sure that <c>CLOCK</c> is set to his/her
1194 liking. International keyboard users will want to set the <c>KEYMAP</c> 1025 liking. International keyboard users will want to set the <c>KEYMAP</c>
1195 variable (browse <path>/usr/share/keymaps</path> to see the various 1026 variable (browse <path>/usr/share/keymaps</path> to see the various
1196 possibilities). 1027 possibilities).
1197 </p> 1028 </p>
1198 1029 </body>
1199 </body>
1200 </section> 1030 </section>
1201 1031 </chapter>
1202 <section> 1032 <chapter>
1203 <title>Final steps: Configure GRUB</title> 1033 <title>Final steps: Configure GRUB</title>
1204 1034 <section>
1205 <body> 1035 <body>
1206
1207 <p>The most critical part of understanding GRUB is getting comfortable with how GRUB 1036 <p>The most critical part of understanding GRUB is getting comfortable with how GRUB
1208 refers to hard drives and partitions. Your Linux partition <path>/dev/hda1</path> is called 1037 refers to hard drives and partitions. Your Linux partition <path>/dev/hda1</path> is called
1209 <path>(hd0,0)</path> under GRUB. Notice the parenthesis around the hd0,0 - they are required. 1038 <path>(hd0,0)</path> under GRUB. Notice the parenthesis around the hd0,0 - they are required.
1210 Hard drives count from zero rather than "a", and partitions start at zero rather than one. 1039 Hard drives count from zero rather than &quot;a&quot;, and partitions start at zero rather than one.
1211 Be aware too that with the hd devices, only harddrives are counted, not atapi-ide devices such as 1040 Be aware too that with the hd devices, only harddrives are counted, not atapi-ide devices such as
1212 cdrom players, burners, and that the same construct can be used with scsi drives. 1041 cdrom players, burners, and that the same construct can be used with scsi drives.
1213 (Normally they get higher numbers than ide drives except when the bios is configured 1042 (Normally they get higher numbers than ide drives except when the bios is configured
1214 to boot from scsi devices.) Assuming you have a harddrive on /dev/hda, a cdrom player on /dev/hdb, 1043 to boot from scsi devices.) Assuming you have a harddrive on /dev/hda, a cdrom player on /dev/hdb,
1215 a burner on /dev/hdc and a second hardrive on /dev/hdd, for example, and no scsi harddrive 1044 a burner on /dev/hdc and a second hardrive on /dev/hdd, for example, and no scsi harddrive
1216 <path>/dev/hdd7</path> gets translated to <path>(hd1,6)</path>. 1045 <path>/dev/hdd7</path> gets translated to <path>(hd1,6)</path>.
1217 1046
1218 It might sound tricky, and tricky it is indeed, but as we will see, grub 1047 It might sound tricky, and tricky it is indeed, but as we will see, grub
1219 offers a tab completion mechanism that comes handy for those of you having 1048 offers a tab completion mechanism that comes handy for those of you having
1220 a lot of harddrives and partitions and who are a little lost in the 1049 a lot of harddrives and partitions and who are a little lost in the
1221 grub numbering scheme. Having gotten the feel for that, 1050 grub numbering scheme. Having gotten the feel for that,
1222 it's time to install GRUB. 1051 it's time to install GRUB.
1223 </p> 1052 </p>
1224
1225 <p>The easiest way to install GRUB is to simply type <c>grub</c> at your chrooted shell prompt: </p> 1053 <p>The easiest way to install GRUB is to simply type <c>grub</c> at your chrooted shell prompt: </p>
1226
1227 <pre caption = "Installing GRUB"> 1054 <pre caption="Installing GRUB">
1228# <c>grub</c> 1055# <c>grub</c>
1229 </pre> 1056 </pre>
1230
1231 <impo>If you are using hardware RAID this part will not work at 1057 <impo>If you are using hardware RAID this part will not work at
1232 this time. 1058 this time.
1233 Skip to the section on making your <path>grub.conf</path>. After that we will complete the 1059 Skip to the section on making your <path>grub.conf</path>. After that we will complete the
1234 grub setup for RAID controllers 1060 grub setup for RAID controllers
1235 </impo> 1061 </impo>
1236
1237 <p>You'll be presented with the <c>grub&gt;</c> grub 1062 <p>You'll be presented with the <c>grub&gt;</c> grub
1238 command-line prompt. Now, you need to type in the 1063 command-line prompt. Now, you need to type in the
1239 right commands to install the GRUB boot record onto your hard drive. In my example configuration, 1064 right commands to install the GRUB boot record onto your hard drive. In my example configuration,
1240 I want to install the GRUB boot record on my hard drive's MBR (master boot record), so that 1065 I want to install the GRUB boot record on my hard drive's MBR (master boot record), so that
1241 the first thing I see when I turn on the computer is the GRUB prompt. In my case, the commands 1066 the first thing I see when I turn on the computer is the GRUB prompt. In my case, the commands
1242 I want to type are: 1067 I want to type are:
1243 </p> 1068 </p>
1244
1245 <pre caption = "GRUB Commands"> 1069 <pre caption="GRUB Commands">
1246grub&gt; <c>root (hd0,0)</c> 1070grub&gt; <c>root (hd0,0)</c>
1247grub&gt; <c>setup (hd0)</c> 1071grub&gt; <c>setup (hd0)</c>
1248grub&gt; <c>quit</c> 1072grub&gt; <c>quit</c>
1249 </pre> 1073 </pre>
1250
1251 <p>Here's how the two commands work. The first <c>root ( )</c> command tells GRUB 1074 <p>Here's how the two commands work. The first <c>root ( )</c> command tells GRUB
1252 the location of your boot partition (in our example, <path>/dev/hda1</path> or 1075 the location of your boot partition (in our example, <path>/dev/hda1</path> or
1253 <path>(hd0,0)</path> in GRUB terminology. Then, the second <c>setup ( ) 1076 <path>(hd0,0)</path> in GRUB terminology. Then, the second <c>setup ( )
1254 </c> command tells GRUB where to install the 1077 </c> command tells GRUB where to install the
1255 boot record - it will be configured to look for its special files at the <c>root 1078 boot record - it will be configured to look for its special files at the <c>root
1256 ( )</c> location that you specified. In my case, I want the boot record on the 1079 ( )</c> location that you specified. In my case, I want the boot record on the
1257 MBR of the hard drive, so I simply specify <path>/dev/hda</path> (also known as <path>(hd0)</path>). 1080 MBR of the hard drive, so I simply specify <path>/dev/hda</path> (also known as <path>(hd0)</path>).
1258 If I were using another boot loader and wanted to set up GRUB as a secondary boot-loader, I 1081 If I were using another boot loader and wanted to set up GRUB as a secondary boot-loader, I
1259 could install GRUB to the boot record of a particular partition. In that case, 1082 could install GRUB to the boot record of a particular partition. In that case,
1260 I'd specify a particular partition rather than the entire disk. Once the GRUB 1083 I'd specify a particular partition rather than the entire disk. Once the GRUB
1261 boot record has been successfully installed, you can type <c>quit</c> to quit GRUB. 1084 boot record has been successfully installed, you can type <c>quit</c> to quit GRUB.
1262 1085
1263 <note> The tab completion mechanism of grub can be used from within grub, 1086 <note> The tab completion mechanism of grub can be used from within grub,
1264 assuming you wrote <c> root (</c> and that you hit the TAB key, you would 1087 assuming you wrote <c> root (</c> and that you hit the TAB key, you would
1265 be prompted with a list of the available devices (not only harddrives), 1088 be prompted with a list of the available devices (not only harddrives),
1266 hitting the TAB key having written <c> root (hd</c>, grub would print the 1089 hitting the TAB key having written <c> root (hd</c>, grub would print the
1267 available harddrives and hitting the TAB key after writing <c> root (hd0,</c> 1090 available harddrives and hitting the TAB key after writing <c> root (hd0,</c>
1268 would make grub print the list of partitions on the first harddrive. 1091 would make grub print the list of partitions on the first harddrive.
1269 1092
1270 Checking the syntax of the grub location with completion should really help 1093 Checking the syntax of the grub location with completion should really help
1271 to make the right choice. 1094 to make the right choice.
1272 </note> 1095 </note>
1273 1096
1274 Gentoo Linux is now 1097 Gentoo Linux is now
1275 installed, but we need to create the <path>/boot/grub/grub.conf</path> file so that 1098 installed, but we need to create the <path>/boot/grub/grub.conf</path> file so that
1276 we get a nice GRUB boot menu when the system reboots. Here's how to do it. 1099 we get a nice GRUB boot menu when the system reboots. Here's how to do it.
1277 </p> 1100 </p>
1278
1279 <impo>To ensure backwards compatibility with GRUB, make sure to make a link from 1101 <impo>To ensure backwards compatibility with GRUB, make sure to make a link from
1280 <i>grub.conf</i> to <i>menu.lst</i>. You can do this by doing 1102 <i>grub.conf</i> to <i>menu.lst</i>. You can do this by doing
1281 <c>ln -s /boot/grub/grub.conf /boot/grub/menu.lst </c>. </impo> 1103 <c>ln -s /boot/grub/grub.conf /boot/grub/menu.lst </c>. </impo>
1282
1283 <p>Now, create the grub.conf file (<c>nano -w /boot/grub/grub.conf</c>), and add the following to it: 1104 <p>Now, create the grub.conf file (<c>nano -w /boot/grub/grub.conf</c>), and add the following to it:
1284 </p> 1105 </p>
1285
1286 <pre caption = "Grub.conf for GRUB"> 1106 <pre caption="Grub.conf for GRUB">
1287default 0 1107default 0
1288timeout 30 1108timeout 30
1289splashimage=(hd0,0)/boot/grub/splash.xpm.gz 1109splashimage=(hd0,0)/boot/grub/splash.xpm.gz
1290 1110
1291title=My example Gentoo Linux 1111title=My example Gentoo Linux
1292root (hd0,0) 1112root (hd0,0)
1293kernel /boot/bzImage root=/dev/hda3 1113kernel /boot/bzImage root=/dev/hda3
1294 1114
1295<comment> #Below is for setup using hardware RAID</comment> 1115<comment> #Below is for setup using hardware RAID</comment>
1296title=My Gentoo Linux on RAID 1116title=My Gentoo Linux on RAID
1297root (hd0,0) 1117root (hd0,0)
1298kernel /boot/bzImage root=/dev/ataraid/discX/partY 1118kernel /boot/bzImage root=/dev/ataraid/discX/partY
1299 1119
1300<comment># Below needed only for people who dual-boot</comment> 1120<comment># Below needed only for people who dual-boot</comment>
1301title=Windows NT Workstation 1121title=Windows NT Workstation
1302root (hd0,5) 1122root (hd0,5)
1303chainloader +1 1123chainloader +1
1304 </pre> 1124 </pre>
1305 1125 <note>
1306 <note>
1307 (hd0,0) should be written without any spaces inside the parentheses. 1126 (hd0,0) should be written without any spaces inside the parentheses.
1308 </note> 1127 </note>
1309 1128 <impo>
1310 <impo>
1311 If you set up scsi emulation for an IDE cd burner earlier, then to get it to 1129 If you set up scsi emulation for an IDE cd burner earlier, then to get it to
1312 actually work you need to add an "hdx=ide-scsi" fragment to the kernel 1130 actually work you need to add an &quot;hdx=ide-scsi&quot; fragment to the kernel
1313 line in grub.conf (where "hdx" should be the device for your cd burner). 1131 line in grub.conf (where &quot;hdx&quot; should be the device for your cd burner).
1314 </impo> 1132 </impo>
1315
1316 <p>After saving this file, Gentoo Linux installation is complete. Selecting the first option will 1133 <p>After saving this file, Gentoo Linux installation is complete. Selecting the first option will
1317 tell GRUB to boot Gentoo Linux without a fuss. The second part of the grub.conf file is optional, 1134 tell GRUB to boot Gentoo Linux without a fuss. The second part of the grub.conf file is optional,
1318 and shows you how to use GRUB to boot a bootable Windows partition. 1135 and shows you how to use GRUB to boot a bootable Windows partition.
1319 </p> 1136 </p>
1320
1321 <note>Above, <path>(hd0,0)</path> should point to your "boot" partition 1137 <note>Above, <path>(hd0,0)</path> should point to your &quot;boot&quot; partition
1322 (<path>/dev/hda1</path> in our example config) and <path>/dev/hda3</path> should point to 1138 (<path>/dev/hda1</path> in our example config) and <path>/dev/hda3</path> should point to
1323 your root filesystem. <path>(hd0,5)</path> contains the NT boot 1139 your root filesystem. <path>(hd0,5)</path> contains the NT boot
1324 loader. 1140 loader.
1325 </note> 1141 </note>
1326 <note> 1142 <note>
1327 The path to the kernel image is relative to the boot partition. If for example you have separated boot partition <path>(hd0,0)</path> and root partition <path>(hd0,1)</path>, all paths in the grub.conf file above will become <path>/bzImage</path>. 1143 The path to the kernel image is relative to the boot partition. If for example you have separated boot partition <path>(hd0,0)</path> and root partition <path>(hd0,1)</path>, all paths in the grub.conf file above will become <path>/bzImage</path>.
1328 </note> 1144 </note>
1329
1330 <p>If you need to pass any additional options to the kernel, simply 1145 <p>If you need to pass any additional options to the kernel, simply
1331 add them to the end of the <c>kernel</c> command. We're already passing one option 1146 add them to the end of the <c>kernel</c> command. We're already passing one option
1332 (<c>root=/dev/hda3</c>), but you can pass others as well. In particular, you can 1147 (<c>root=/dev/hda3</c>), but you can pass others as well. In particular, you can
1333 turn off devfs by default (not recommended unless you know what you're doing) by 1148 turn off devfs by default (not recommended unless you know what you're doing) by
1334 adding the <c>gentoo=nodevfs</c> option to the <c>kernel</c> command. 1149 adding the <c>gentoo=nodevfs</c> option to the <c>kernel</c> command.
1335 </p> 1150 </p>
1336
1337 <note>Unlike in earlier versions of Gentoo Linux, you no longer have to add 1151 <note>Unlike in earlier versions of Gentoo Linux, you no longer have to add
1338 <c>devfs=mount</c> to the end of the <c>kernel</c> line to enable devfs. In rc6 1152 <c>devfs=mount</c> to the end of the <c>kernel</c> line to enable devfs. In rc6
1339 devfs is enabled by default. 1153 devfs is enabled by default.
1340 </note> 1154 </note>
1155 </body>
1156 </section>
1157 </chapter>
1158 <chapter>
1159 <title>Final steps: Configure LILO</title>
1160 <section>
1161 <body>
1162 <p>While GRUB may be the new alternative for most people, it is not always the most stable.
1163 LILO, the LInuxLOader, is the tried and true workhorse of Linux bootloaders. If you want stability
1164 and semi-ease of configure, give LILO a try.
1165 </p>
1166 <p>The first step is to emerge LILO:
1167 </p>
1168 <pre caption="Emerging LILO">
1169# <c>emerge lilo</c>
1170 </pre>
1171 <p>Now it is time to configure LILO. I will give you a small <i>lilo.conf</i> to use, and I will explain
1172 the different parts of the file.
1173 </p>
1174 <pre caption="Example lilo.conf">
1175boot=/dev/hda
1176map=/boot/map
1177install=/boot/boot.b
1178prompt
1179timeout=50
1180message=/boot/message
1181lba32
1182default=linux
1341 1183
1342 <p>If you are using hardware RAID, you must make a GRUB boot 1184image=/boot/vmlinuz-2.4.20
1185 label=linux
1186 initrd=/boot/initrd-2.4.20.img
1187 read-only
1188 root=/dev/hda5
1189
1190#For dual booting windows/other OS
1191other=/dev/hda1
1192 label=dos
1193
1194 </pre>
1195 <li><i>boot=/dev/hda</i> tells LILO to install itself on the first hard disk on the first IDE controller. </li>
1196 <li><i>map=/boot/map</i> states the map file. In normal use, this should not be modified. </li>
1197 <li><i>install=/boot/boot.b</i> tells LILO to install the specified file as the new boot sector.
1198 In normal use, this should not be altered. If the install line is missing, LILO will
1199 assume a default of /boot/boot.b as the file to be used. </li>
1200 <li>The existence of <i>prompt</i> tells LILO to show you whatever is referenced in the message line.
1201 While it is not recommended that you remove the prompt line, if you do remove it, you can still
1202 get a prompt by holding down the [Shift] key while your machine starts to boot. </li>
1203 <li><i>timeout=50</i> sets the amount of time that LILO will wait for user input before proceeding
1204 with booting the default line entry. This is measured in tenths of a second, with 50 as the default. </li>
1205 <li><i>message=/boot/message</i> refers to the screen that LILO displays to let you select the
1206 operating system or kernel to boot. </li>
1207 <li><i>lba32</i> describes the hard disk geometry to LILO. Another common entry here is linear. You should
1208 not change this line unless you are very aware of what you are doing. Otherwise, you could put
1209 your system in an unbootable state. </li>
1210 <li><i>default=linux</i> refers to the default operating system for LILO to boot from the
1211 options listed below this line. The name linux refers to the label line below in each of the boot options. </li>
1212 <li><i>image=/boot/vmlinuz-2.4.20</i> specifies the linux kernel to boot with this particular boot option. </li>
1213 <li><i>label=linux</i> names the operating system option in the LILO screen. In this case,
1214 it is also the name referred to by the default line. </li>
1215 <li><i>initrd=/boot/initrd-2.4.20.img</i> refers to the initial ram disk image that is used at boot time
1216 to actually initialize and start the devices that makes booting the kernel possible. The initial
1217 ram disk is a collection of machine-specific drivers necessary to operate a SCSI card, hard drive, or any
1218 other device needed to load the kernel. You should never try to share initial ram disks between machines. </li>
1219 <li><i>read-only</i> specifies that the root partition (see the root line below) is read-only and cannot be
1220 altered during the boot process. </li>
1221 <li><i>root=/dev/hda5</i> tells LILO what disk partition to use as the root partition. </li>
1222 <note>Thanks to <uri link="http://www.redhat.com">Redhat.com</uri> for this information.
1223 </note>
1224 <p>After you have edited your <i>lilo.conf</i> file, it is time to run LILO to load the information
1225 into the MBR:
1226 </p>
1227 <pre caption="Running LILO">
1228# <c>/sbin/lilo</c>
1229 </pre>
1230 <p>LILO is configured, and now your machine is ready to boot into Gentoo Linux!
1231 </p>
1232 </body>
1233 </section>
1234 </chapter>
1235 <chapter>
1236 <title>Final steps: Bootdisks</title>
1237 <section>
1238 <title>GRUB Bootdisks</title>
1239 <body>
1240 <p>It is always a good idea to make a bootdisk the first
1241 time you install any Linux distribution. This is a security
1242 blanket, and generally not a bad thing to do. If you are using hardware RAID, you <e>must</e> make a GRUB boot
1343 disk. With hardware RAID 1243 disk. With hardware RAID
1344 if you try to install grub from your chrooted shell it will fail. So we 1244 if you try to install grub from your chrooted shell it will fail. So we
1345 will make a GRUB 1245 will make a GRUB
1346 boot disk, and when you reboot the first time we will install GRUB 1246 boot disk, and when you reboot the first time we will install GRUB
1347 to the MBR. Make your 1247 to the MBR. Make your
1348 bootdisk like this: 1248 bootdisk like this:
1349 </p> 1249 </p>
1350
1351 <pre caption = "Creating a RAID Bootdisk"> 1250 <pre caption="Creating a GRUB Bootdisk">
1352# <c>mke2fs /dev/fd0</c> 1251# <c>mke2fs /dev/fd0</c>
1353# <c>mount /dev/fd0 /mnt/floppy</c> 1252# <c>mount /dev/fd0 /mnt/floppy</c>
1354# <c>mkdir -p /mnt/floppy/boot/grub</c> 1253# <c>mkdir -p /mnt/floppy/boot/grub</c>
1355# <c>cp /usr/share/grub/i386-pc/stage1 /mnt/floppy/boot/grub/</c> 1254# <c>cp /usr/share/grub/i386-pc/stage1 /mnt/floppy/boot/grub/</c>
1356# <c>cp /usr/share/grub/i386-pc/stage2 /mnt/floppy/boot/grub/</c> 1255# <c>cp /usr/share/grub/i386-pc/stage2 /mnt/floppy/boot/grub/</c>
1357 1256
1358# <c>grub</c> 1257# <c>grub</c>
1359 1258
1360grub&gt; <c>root (fd0)</c> 1259grub&gt; <c>root (fd0)</c>
1361grub&gt; <c>setup (fd0)</c> 1260grub&gt; <c>setup (fd0)</c>
1362grub&gt; <c>quit</c> 1261grub&gt; <c>quit</c>
1363 </pre> 1262 </pre>
1364 1263 </body>
1365
1366 </body>
1367 </section> 1264 </section>
1265 <section>
1266 <title>LILO Bootdisks</title>
1267 <body>
1268 <p>If you are using LILO, it is also a good idea to make a bootdisk:
1269 </p>
1270 <p>To be added</p>
1271 </body>
1272 </section>
1368 </chapter> 1273 </chapter>
1369
1370 <chapter> 1274 <chapter>
1371 <title>Installation Complete!</title> 1275 <title>Installation Complete!</title>
1372 <section> 1276 <section>
1373 1277 <body>
1374 <body>
1375 <p>Now, Gentoo Linux is installed. The only remaining step is to exit the chrooted shell, 1278 <p>Now, Gentoo Linux is installed. The only remaining step is to exit the chrooted shell,
1376 udpate necessary configuration files, 1279 udpate necessary configuration files,
1377 safely unmount your partitions 1280 safely unmount your partitions
1378 and reboot the system: 1281 and reboot the system:
1379 </p> 1282 </p>
1380
1381 <pre caption = "Rebooting the System"> 1283 <pre caption="Rebooting the System">
1382# <c>etc-update</c> 1284# <c>etc-update</c>
1383# <c>exit</c> 1285# <c>exit</c>
1384<codenote>This exits the chrooted shell; you can also type <c>^D</c></codenote> 1286<codenote>This exits the chrooted shell; you can also type <c>^D</c></codenote>
1385# <c>cd / </c> 1287# <c>cd / </c>
1386# <c>umount /mnt/gentoo/boot</c> 1288# <c>umount /mnt/gentoo/boot</c>
1387# <c>umount /mnt/gentoo/proc</c> 1289# <c>umount /mnt/gentoo/proc</c>
1388# <c>umount /mnt/gentoo</c> 1290# <c>umount /mnt/gentoo</c>
1389# <c>reboot</c> 1291# <c>reboot</c>
1390 </pre> 1292 </pre>
1391 1293 <note>
1392 <note>
1393 After rebooting, it is a good idea to run the <c>update-modules</c> command to create 1294 After rebooting, it is a good idea to run the <c>update-modules</c> command to create
1394 the <path>/etc/modules.conf</path> file. Instead of modifying this file directly, you should 1295 the <path>/etc/modules.conf</path> file. Instead of modifying this file directly, you should
1395 generally make changes to the files in <path>/etc/modules.d</path>. 1296 generally make changes to the files in <path>/etc/modules.d</path>.
1396 </note> 1297 </note>
1397
1398 <impo>Remember if you are running hardware RAID, you must 1298 <impo>Remember if you are running hardware RAID, you must
1399 use the bootdisk for the first reboot. 1299 use the bootdisk for the first reboot.
1400 then go back and install grub the way everyone else did the first 1300 then go back and install grub the way everyone else did the first
1401 time. You are done, congratulations</impo> 1301 time. You are done, congratulations</impo>
1402
1403 <p>If you have any questions or would like to get involved with Gentoo Linux development, 1302 <p>If you have any questions or would like to get involved with Gentoo Linux development,
1404 consider joining our gentoo-user and gentoo-dev mailing lists 1303 consider joining our gentoo-user and gentoo-dev mailing lists
1405 (there's a "click to subscribe" link on our <uri link="http://www.gentoo.org">main page</uri>). 1304 (there's a &quot;click to subscribe&quot; link on our <uri link="http://www.gentoo.org">main page</uri>).
1406 We also have a handy <uri link="http://www.gentoo.org/doc/en/desktop.xml">Desktop configuration guide</uri> 1305 We also have a handy <uri link="http://www.gentoo.org/doc/en/desktop.xml">Desktop configuration guide</uri>
1407 that will 1306 that will
1408 help you to continue configuring your new Gentoo Linux system, and a useful 1307 help you to continue configuring your new Gentoo Linux system, and a useful
1409 <uri link="http://www.gentoo.org/doc/en/portage-user.xml">Portage user guide</uri> 1308 <uri link="http://www.gentoo.org/doc/en/portage-user.xml">Portage user guide</uri>
1410 to help familiarize you with Portage basics. You can find the rest of the Gentoo Documentation 1309 to help familiarize you with Portage basics. You can find the rest of the Gentoo Documentation
1411 <uri link = "http://www.gentoo.org/main/en/docs.xml">here</uri>. If you have any other questions 1310 <uri link="http://www.gentoo.org/main/en/docs.xml">here</uri>. If you have any other questions
1412 involving installation or anything for that matter, please check the Gentoo Linux 1311 involving installation or anything for that matter, please check the Gentoo Linux
1413 <uri link = "http://www.gentoo.org/doc/en/faq.xml">FAQ</uri>. 1312 <uri link="http://www.gentoo.org/doc/en/faq.xml">FAQ</uri>.
1414 Enjoy and welcome to Gentoo Linux! 1313 Enjoy and welcome to Gentoo Linux!
1415 </p> 1314 </p>
1416 1315 </body>
1417 </body>
1418 </section> 1316 </section>
1419 </chapter> 1317 </chapter>
1420
1421 <chapter> 1318 <chapter>
1422 <title>Gentoo-Stats</title> 1319 <title>Gentoo-Stats</title>
1423 <section> 1320 <section>
1424 1321 <body>
1425 <body>
1426
1427 <p>The Gentoo Linux usage statistics program was started as an attempt to give the developers 1322 <p>The Gentoo Linux usage statistics program was started as an attempt to give the developers
1428 a way to find out about their user base. It collects information about Gentoo Linux usage to help 1323 a way to find out about their user base. It collects information about Gentoo Linux usage to help
1429 us in set priorities our development. Installing it is completely optional, and it would be greatly 1324 us in set priorities our development. Installing it is completely optional, and it would be greatly
1430 appreciated if you decide to use it. Compiled statistics can be viewed at <uri>http://stats.gentoo.org/</uri>. 1325 appreciated if you decide to use it. Compiled statistics can be viewed at <uri>http://stats.gentoo.org/</uri>.
1431 </p> 1326 </p>
1432
1433 <p>The gentoo-stats server will assign a unique ID to your system. 1327 <p>The gentoo-stats server will assign a unique ID to your system.
1434 This ID is used to make sure that each system is counted only once. The ID will not be used 1328 This ID is used to make sure that each system is counted only once. The ID will not be used
1435 to individually identify your system, nor will it be mached against an IP address or 1329 to individually identify your system, nor will it be mached against an IP address or
1436 other personal information. Every precaution has been taken to assure your privacy in the 1330 other personal information. Every precaution has been taken to assure your privacy in the
1437 development of this system. The following are the things that we are monitoring 1331 development of this system. The following are the things that we are monitoring
1438 right now through our "gentoo-stats" program: 1332 right now through our &quot;gentoo-stats&quot; program:
1439 </p> 1333 </p>
1440 <ul> 1334 <ul>
1441 <li>installed packages and their version numbers</li> 1335 <li>installed packages and their version numbers</li>
1442 <li>CPU information: speed (MHz), vendor name, model name, CPU flags (like "mmx" or "3dnow")</li> 1336 <li>CPU information: speed (MHz), vendor name, model name, CPU flags (like &quot;mmx&quot; or &quot;3dnow&quot;)</li>
1443 <li>memory information (total available physical RAM, total available swap space)</li> 1337 <li>memory information (total available physical RAM, total available swap space)</li>
1444 <li>PCI cards and network controller chips</li> 1338 <li>PCI cards and network controller chips</li>
1445 <li>the Gentoo Linux profile your machine is using (that is, where the /etc/make.profile link is pointing to).</li> 1339 <li>the Gentoo Linux profile your machine is using (that is, where the /etc/make.profile link is pointing to).</li>
1446 </ul> 1340 </ul>
1447
1448 <p>We are aware that disclosure of sensitive information is a threat to most Gentoo Linux users 1341 <p>We are aware that disclosure of sensitive information is a threat to most Gentoo Linux users
1449 (just as it is to the developers). 1342 (just as it is to the developers).
1450 </p> 1343 </p>
1451 1344 <ul>
1452 <ul>
1453 <li>Unless you modify the gentoo-stats program, it will never transmit sensitive 1345 <li>Unless you modify the gentoo-stats program, it will never transmit sensitive
1454 information such as your passwords, configuration data, shoe size...</li> 1346 information such as your passwords, configuration data, shoe size...</li>
1455 <li>Transmission of your e-mail addresses is optional and turned off by default.</li> 1347 <li>Transmission of your e-mail addresses is optional and turned off by default.</li>
1456 <li>The IP address your data transmission originates from will never be logged 1348 <li>The IP address your data transmission originates from will never be logged
1457 in such a way that we can identify you. There are no "IP address/system ID" pairs.</li> 1349 in such a way that we can identify you. There are no &quot;IP address/system ID&quot; pairs.</li>
1458 </ul> 1350 </ul>
1459
1460 <p>The installation is easy - just run the following commands: 1351 <p>The installation is easy - just run the following commands:
1461 </p> 1352 </p>
1462
1463 <pre caption="Installing gentoo-stats"> 1353 <pre caption="Installing gentoo-stats">
1464# <c>emerge gentoo-stats</c> <codenote>Installs gentoo-stats</codenote> 1354# <c>emerge gentoo-stats</c> <codenote>Installs gentoo-stats</codenote>
1465# <c>gentoo-stats --new</c> <codenote>Obtains a new system ID</codenote> 1355# <c>gentoo-stats --new</c> <codenote>Obtains a new system ID</codenote>
1466 </pre> 1356 </pre>
1467
1468 <p>The second command above will request a new system ID and enter it into 1357 <p>The second command above will request a new system ID and enter it into
1469 <path>/etc/gentoo-stats/gentoo-stats.conf</path> automatically. You can view this file 1358 <path>/etc/gentoo-stats/gentoo-stats.conf</path> automatically. You can view this file
1470 to see additional configuration options. 1359 to see additional configuration options.
1471 </p> 1360 </p>
1472
1473 <p>After that, the program should be run on a regular schedule 1361 <p>After that, the program should be run on a regular schedule
1474 (gentoo-stats does not have to be run as root). Add this line to your <path>crontab</path>: 1362 (gentoo-stats does not have to be run as root). Add this line to your <path>crontab</path>:
1475 </p> 1363 </p>
1476
1477 <pre caption="Updating gentoo-stats with cron"> 1364 <pre caption="Updating gentoo-stats with cron">
1478<c>0 0 * * 0,4 /usr/sbin/gentoo-stats --update > /dev/null</c> 1365 <c>0 0 * * 0,4 /usr/sbin/gentoo-stats --update &gt; /dev/null</c>
1479 </pre> 1366 </pre>
1480
1481 <p>The <c>gentoo-stats</c> program is a simple perl script which can be 1367 <p>The <c>gentoo-stats</c> program is a simple perl script which can be
1482 viewed with your favortive pager or editor: <path>/usr/sbin/gentoo-stats</path>. </p> 1368 viewed with your favortive pager or editor: <path>/usr/sbin/gentoo-stats</path>. </p>
1483 1369 </body>
1484
1485 </body>
1486 </section> 1370 </section>
1487</chapter> 1371 </chapter>
1488
1489
1490
1491
1492</guide> 1372</guide>

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

  ViewVC Help
Powered by ViewVC 1.1.20