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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.58 - (show annotations) (download) (as text)
Thu Feb 13 00:24:10 2003 UTC (14 years, 10 months ago) by zhen
Branch: MAIN
Changes since 1.57: +0 -7 lines
File MIME type: application/xml
removed mirrorselect info

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

  ViewVC Help
Powered by ViewVC 1.1.20