Gentoo Archives: gentoo-doc-cvs

From: Shyam Mani <fox2mike@×××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: handbook-alpha.xml handbook-amd64.xml handbook-hppa.xml handbook-ppc.xml handbook-ppc64.xml handbook-sparc.xml handbook-x86.xml hb-install-about.xml hb-install-alpha-bootloader.xml hb-install-alpha-disk.xml hb-install-alpha-kernel.xml hb-install-alpha-medium.xml hb-install-amd64-bootloader.xml hb-install-amd64-disk.xml hb-install-amd64-kernel.xml hb-install-amd64-medium.xml hb-install-config.xml hb-install-finalise.xml hb-install-gli-dialog.xml hb-install-gtkfe.xml hb-install-hppa-bootloader.xml hb-install-hppa-disk.xml hb-install-hppa-kernel.xml hb-install-hppa-medium.xml hb-install-network.xml hb-install-next.xml hb-install-ppc-bootloader.xml hb-install-ppc-disk.xml hb-install-ppc-kernel.xml hb-install-ppc-medium.xml hb-install-ppc64-bootloader.xml hb-install-ppc64-disk.xml hb-install-ppc64-kernel.xml hb-install-ppc64-medium.xml hb-install-sparc-bootloader.xml hb-install-sparc-disk.xml hb-install-sparc-kernel.xml hb-install-sparc-mediu! m.xml hb-install-s tage.xml hb-install-system.xml hb-install-tools.xml hb-install-x86-medium.xml hb-installer-about.xml index.xml
Date: Wed, 09 Aug 2006 16:37:08
Message-Id: 20060809163516.B14AD64319@smtp.gentoo.org
1 fox2mike 06/08/09 16:35:15
2
3 Modified: hb-install-gli-dialog.xml hb-install-gtkfe.xml
4 Added: handbook-alpha.xml handbook-amd64.xml
5 handbook-hppa.xml handbook-ppc.xml
6 handbook-ppc64.xml handbook-sparc.xml
7 handbook-x86.xml hb-install-about.xml
8 hb-install-alpha-bootloader.xml
9 hb-install-alpha-disk.xml
10 hb-install-alpha-kernel.xml
11 hb-install-alpha-medium.xml
12 hb-install-amd64-bootloader.xml
13 hb-install-amd64-disk.xml
14 hb-install-amd64-kernel.xml
15 hb-install-amd64-medium.xml hb-install-config.xml
16 hb-install-finalise.xml
17 hb-install-hppa-bootloader.xml
18 hb-install-hppa-disk.xml hb-install-hppa-kernel.xml
19 hb-install-hppa-medium.xml hb-install-network.xml
20 hb-install-next.xml hb-install-ppc-bootloader.xml
21 hb-install-ppc-disk.xml hb-install-ppc-kernel.xml
22 hb-install-ppc-medium.xml
23 hb-install-ppc64-bootloader.xml
24 hb-install-ppc64-disk.xml
25 hb-install-ppc64-kernel.xml
26 hb-install-ppc64-medium.xml
27 hb-install-sparc-bootloader.xml
28 hb-install-sparc-disk.xml
29 hb-install-sparc-kernel.xml
30 hb-install-sparc-medium.xml hb-install-stage.xml
31 hb-install-system.xml hb-install-tools.xml
32 hb-install-x86-medium.xml hb-installer-about.xml
33 index.xml
34 Log:
35 Prep for 2006.1 - Project Mayhem
36
37 Revision Changes Path
38 1.2 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-gli-dialog.xml
39
40 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-gli-dialog.xml?rev=1.2&view=markup
41 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-gli-dialog.xml?rev=1.2&content-type=text/plain
42 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-gli-dialog.xml?r1=1.1&r2=1.2
43
44 Index: hb-install-gli-dialog.xml
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-gli-dialog.xml,v
47 retrieving revision 1.1
48 retrieving revision 1.2
49 diff -u -r1.1 -r1.2
50 --- hb-install-gli-dialog.xml 25 Jun 2006 14:04:32 -0000 1.1
51 +++ hb-install-gli-dialog.xml 9 Aug 2006 16:35:14 -0000 1.2
52 @@ -1,6 +1,6 @@
53 <?xml version='1.0' encoding='UTF-8'?>
54 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
55 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-gli-dialog.xml,v 1.1 2006/06/25 14:04:32 nightmorph Exp $ -->
56 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-gli-dialog.xml,v 1.2 2006/08/09 16:35:14 fox2mike Exp $ -->
57
58 <!-- The content of this document is licensed under the CC-BY-SA license -->
59 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
60 @@ -8,7 +8,7 @@
61 <sections>
62
63 <version>1.0</version>
64 -<date>2006-06-25</date>
65 +<date>2006-02-27</date>
66
67 <section>
68 <title>Welcome</title>
69 @@ -43,38 +43,6 @@
70 </section>
71
72 <section>
73 -<title>Preinstallation Configuration</title>
74 -<subsection>
75 -<title>Optional: Manual Network Configuration</title>
76 -<body>
77 -
78 -<p>
79 -Even though you will be installing without a connection to the internet, you
80 -can manually set up connections to your local area network (LAN), in case you
81 -want to install Gentoo from another machine on your LAN.
82 -</p>
83 -
84 -<p>
85 -If you wish to enable SSH access to the machine (for remote installation), you
86 -can start <c>sshd</c> and specify a root password.
87 -</p>
88 -
89 -</body>
90 -</subsection>
91 -<subsection>
92 -<title>Optional: Load Additional Kernel Modules</title>
93 -<body>
94 -
95 -<p>
96 -If you need to load more kernel modules to support your hardware, enter their
97 -names, each separated by a space.
98 -</p>
99 -
100 -</body>
101 -</subsection>
102 -</section>
103 -
104 -<section>
105 <title>Partitioning</title>
106 <subsection>
107 <title>Preparing the disks</title>
108 @@ -110,7 +78,8 @@
109
110 <p>
111 This screen lets you set up and use any existing network mounts during and
112 -after installation. At this time, only NFS is supported.
113 +after installation. Select <c>New</c> to begin configuration. At this time, only NFS
114 +is supported.
115 </p>
116
117 </body>
118 @@ -125,7 +94,7 @@
119
120 <p>
121 Since you are performing an installation <e>without</e> an internet connection,
122 -you <e>must</e> select <c>3+GRP</c> from the stage options present. Then, on the next
123 +you <e>must</e> select <c>GRP</c> from the stage options present. Then, on the next
124 screen, select <c>Create from CD</c>. Everything you need to build your system will
125 then be generated from the files on the LiveCD.
126 </p>
127 @@ -140,65 +109,6 @@
128 </section>
129
130 <section>
131 -<title>Portage Tree</title>
132 -<subsection>
133 -<title>Obtaining a Portage tree</title>
134 -<body>
135 -
136 -<p>
137 -You must choose <c>Snapshot</c> on this screen. The installer will automatically
138 -install a Portage tree from the LiveCD once you select Snapshot; you do not
139 -need to specify a snapshot URI.
140 -</p>
141 -
142 -</body>
143 -</subsection>
144 -</section>
145 -
146 -<section>
147 -<title>make.conf</title>
148 -<subsection>
149 -<title>USE flags</title>
150 -<body>
151 -
152 -<p>
153 -Since you are performing a GRP/networkless install, you will not be allowed to
154 -select USE flags before installation. However, you are free to set your own USE
155 -flags in <path>/etc/make.conf</path> after you have rebooted into your finished
156 -system.
157 -</p>
158 -
159 -<p>
160 -Next, select <c>Stable</c> and proceed to the next screen.
161 -</p>
162 -
163 -</body>
164 -</subsection>
165 -<subsection>
166 -<title>CFLAGS</title>
167 -<body>
168 -
169 -<p>
170 -Select your processor type in the CFLAGS section along with any custom
171 -optimizations you may want, such as <c>-O2</c> and <c>-pipe</c>.
172 -</p>
173 -
174 -</body>
175 -</subsection>
176 -<subsection>
177 -<title>Features</title>
178 -<body>
179 -
180 -<p>
181 -Any other options you wish to set for future use should be selected now. Read
182 -through the available FEATURES and make your choices.
183 -</p>
184 -
185 -</body>
186 -</subsection>
187 -</section>
188 -
189 -<section>
190 <title>Kernel Sources</title>
191 <subsection>
192 <title>Using the LiveCD kernel</title>
193 @@ -226,10 +136,12 @@
194 <body>
195
196 <p>
197 -This screen allows to you choose your bootloader. Next, select your boot device
198 -and (optionally) specify any additional boot options.
199 +This screen allows to you choose your bootloader. The installer will
200 +automatically configure your choice.
201 </p>
202
203 +<!-- do we need to cover all the stuff about lilo/grub and kernel parameter
204 +lines and/or block devices here? -->
205 </body>
206 </subsection>
207 </section>
208 @@ -282,8 +194,8 @@
209 </p>
210
211 <impo>
212 -As you are installing Gentoo without an internet connection, you cannot add any
213 -extra packages other than those marked <c>(GRP)</c>.
214 +As you are installing Gentoo without an internet connection, you cannot add
215 +any extra packages other than those shown in the installer.
216 </impo>
217
218 </body>
219 @@ -291,39 +203,6 @@
220 </section>
221
222 <section>
223 -<title>Startup Services</title>
224 -<subsection>
225 -<body>
226 -
227 -<p>
228 -This screen allows you to choose various services to load at system boot. Study
229 -the available options and their descriptions carefully, and then select your
230 -desired services. For example, if you have chosen to install <c>xorg-x11</c>
231 -and want to boot straight into a graphical desktop, then you would select
232 -"xdm" from the list.
233 -</p>
234 -
235 -</body>
236 -</subsection>
237 -</section>
238 -
239 -<section>
240 -<title>Other Settings</title>
241 -<subsection>
242 -<title>Miscellaneous options</title>
243 -<body>
244 -
245 -<p>
246 -Now you will be able to change various settings, including keyboard layout,
247 -graphical display manager, the default editor, and whether to set your hardware
248 -clock to UTC or local time.
249 -</p>
250 -
251 -</body>
252 -</subsection>
253 -</section>
254 -
255 -<section>
256 <title>Users</title>
257 <subsection>
258 <title>Adding users and groups</title>
259
260
261
262 1.2 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-gtkfe.xml
263
264 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-gtkfe.xml?rev=1.2&view=markup
265 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-gtkfe.xml?rev=1.2&content-type=text/plain
266 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-gtkfe.xml?r1=1.1&r2=1.2
267
268 Index: hb-install-gtkfe.xml
269 ===================================================================
270 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-gtkfe.xml,v
271 retrieving revision 1.1
272 retrieving revision 1.2
273 diff -u -r1.1 -r1.2
274 --- hb-install-gtkfe.xml 25 Jun 2006 14:12:59 -0000 1.1
275 +++ hb-install-gtkfe.xml 9 Aug 2006 16:35:14 -0000 1.2
276 @@ -1,6 +1,6 @@
277 <?xml version='1.0' encoding='UTF-8'?>
278 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
279 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-gtkfe.xml,v 1.1 2006/06/25 14:12:59 nightmorph Exp $ -->
280 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-gtkfe.xml,v 1.2 2006/08/09 16:35:14 fox2mike Exp $ -->
281
282 <!-- The content of this document is licensed under the CC-BY-SA license -->
283 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
284 @@ -8,7 +8,7 @@
285 <sections>
286
287 <version>1.0</version>
288 -<date>2006-06-25</date>
289 +<date>2006-02-27</date>
290
291 <section>
292 <title>Welcome</title>
293 @@ -72,7 +72,6 @@
294 <b>Normal</b>. This feature is still experimental and changing it will leave you
295 with an unbootable system!
296 </warn>
297 -<!-- still experimental for 2006.1? -->
298
299 </body>
300 </subsection>
301
302
303
304 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/handbook-alpha.xml
305
306 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-alpha.xml?rev=1.1&view=markup
307 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-alpha.xml?rev=1.1&content-type=text/plain
308
309 Index: handbook-alpha.xml
310 ===================================================================
311 <?xml version='1.0' encoding='UTF-8'?>
312 <!DOCTYPE book SYSTEM "/dtd/book.dtd">
313
314 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-alpha.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
315
316 <book link="/doc/en/handbook/2006.1/handbook-alpha.xml">
317 <title>Gentoo Linux 2006.1 Alpha Handbook</title>
318
319 <author title="Author">
320 <mail link="swift@g.o">Sven Vermeulen</mail>
321 </author>
322 <author title="Author">
323 <mail link="uberlord@g.o">Roy Marples</mail>
324 </author>
325 <author title="Author">
326 <mail link="drobbins@g.o">Daniel Robbins</mail>
327 </author>
328 <author title="Author">
329 <mail link="chouser@g.o">Chris Houser</mail>
330 </author>
331 <author title="Author">
332 <mail link="jerry@g.o">Jerry Alexandratos</mail>
333 </author>
334 <author title="Gentoo x86 Developer">
335 <mail link="seemant@g.o">Seemant Kulleen</mail>
336 </author>
337 <author title="Gentoo Alpha Developer">
338 <mail link="taviso@g.o">Tavis Ormandy</mail>
339 </author><!-- Does not want to be listed on the rendered page
340 <author title="Gentoo Developer">
341 Aron Griffis
342 </author>
343 -->
344 <author title="Gentoo AMD64 Developer">
345 <mail link="jhuebel@g.o">Jason Huebel</mail>
346 </author>
347 <author title="Gentoo HPPA developer">
348 <mail link="gmsoft@g.o">Guy Martin</mail>
349 </author>
350 <author title="Gentoo PPC developer">
351 <mail link="pvdabeel@g.o">Pieter Van den Abeele</mail>
352 </author>
353 <author title="Gentoo SPARC developer">
354 <mail link="blademan@g.o">Joe Kallar</mail>
355 </author>
356 <author title="Editor">
357 <mail link="zhen@g.o">John P. Davis</mail>
358 </author>
359 <author title="Editor">Pierre-Henri Jondot</author>
360 <author title="Editor">
361 <mail link="stocke2@g.o">Eric Stockbridge</mail>
362 </author>
363 <author title="Editor">
364 <mail link="rajiv@g.o">Rajiv Manglani</mail>
365 </author>
366 <author title="Editor">
367 <mail link="seo@g.o">Jungmin Seo</mail>
368 </author>
369 <author title="Editor">
370 <mail link="zhware@g.o">Stoyan Zhekov</mail>
371 </author>
372 <author title="Editor">
373 <mail link="jhhudso@g.o">Jared Hudson</mail>
374 </author>
375 <author title="Editor">
376 <mail link="peitolm@g.o">Colin Morey</mail>
377 </author>
378 <author title="Editor">
379 <mail link="peesh@g.o">Jorge Paulo</mail>
380 </author>
381 <author title="Editor">
382 <mail link="carl@g.o">Carl Anderson</mail>
383 </author>
384 <author title="Editor">
385 <mail link="avenj@g.o">Jon Portnoy</mail>
386 </author>
387 <author title="Editor">
388 <mail link="klasikahl@g.o">Zack Gilburd</mail>
389 </author>
390 <author title="Editor">
391 <mail link="jmorgan@g.o">Jack Morgan</mail>
392 </author>
393 <author title="Editor">
394 <mail link="bennyc@g.o">Benny Chuang</mail>
395 </author>
396 <author title="Editor">
397 <mail link="erwin@g.o">Erwin</mail>
398 </author>
399 <author title="Editor">
400 <mail link="kumba@g.o">Joshua Kinard</mail>
401 </author>
402 <author title="Editor">
403 <mail link="dertobi123@g.o">Tobias Scherbaum</mail>
404 </author>
405 <author title="Editor">
406 <mail link="neysx@g.o">Xavier Neys</mail>
407 </author>
408 <author title="Reviewer">
409 <mail link="g2boojum@g.o">Grant Goodyear</mail>
410 </author>
411 <author title="Reviewer">
412 <mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail>
413 </author>
414 <author title="Reviewer">
415 <mail link="dberkholz@g.o">Donnie Berkholz</mail>
416 </author>
417 <author title="Reviewer">
418 <mail link="antifa@g.o">Ken Nowack</mail>
419 </author>
420 <author title="Contributor">
421 <mail link="pylon@g.o">Lars Weiler</mail>
422 </author>
423
424 <abstract>
425 This is the Gentoo Handbook, an effort to centralise Gentoo/Linux information.
426 This handbook contains the installation instructions for a networkless
427 installation on Alpha systems and parts about working with Gentoo and Portage.
428 </abstract>
429
430 <!-- The content of this document is licensed under the CC-BY-SA license -->
431 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
432 <license/>
433
434 <version>6.0</version>
435 <date>2006-02-27</date>
436
437 <part>
438 <title>Installing Gentoo</title>
439 <abstract>
440 In this part you learn how to install Gentoo on your system.
441 </abstract>
442
443 <chapter>
444 <title>About the Gentoo Linux Installation</title>
445 <abstract>
446 Users not familiar with Gentoo do not always know that choice is what
447 Gentoo is all about.
448 </abstract>
449 <include href="hb-install-about.xml"/>
450 </chapter>
451
452 <chapter>
453 <title>Booting the Universal Installation CD</title>
454 <abstract>
455 Using our Universal Installation CD you can boot up your system into a running
456 environment that allows you to install Gentoo.
457 </abstract>
458 <include href="hb-install-alpha-medium.xml"/>
459 </chapter>
460
461 <chapter>
462 <title>Configuring your Network</title>
463 <abstract>
464 If you need networking, this is the place where the network (and Internet
465 connection) is configured.
466 </abstract>
467 <include href="hb-install-network.xml"/>
468 </chapter>
469
470 <chapter>
471 <title>Preparing the Disks</title>
472 <abstract>
473 To be able to install Gentoo, you must create the necessary partitions.
474 This chapter describes how to partition a disk for future usage.
475 </abstract>
476 <include href="hb-install-alpha-disk.xml"/>
477 </chapter>
478
479 <chapter>
480 <title>Installing the Gentoo Installation Files</title>
481 <abstract>
482 In this chapter we describe how you extract a stage3 file and how to configure
483 Portage.
484 </abstract>
485 <include href="hb-install-stage.xml"/>
486 </chapter>
487
488 <chapter>
489 <title>Chrooting into the Gentoo Base System</title>
490 <abstract>
491 Now that the stage3 file is extracted, we chroot into the new system and modify
492 the USE variable.
493 </abstract>
494 <include href="hb-install-system.xml"/>
495 </chapter>
496
497 <chapter>
498 <title>Configuring the Kernel</title>
499 <abstract>
500 The Linux kernel is the core of every distribution. This chapter
501 explains how to configure your kernel.
502 </abstract>
503 <include href="hb-install-alpha-kernel.xml"/>
504 </chapter>
505
506 <chapter>
507 <title>Configuring your System</title>
508 <abstract>
509 You need to edit some important configuration files. In this chapter
510 you receive an overview of these files and an explanation on how to
511 proceed.
512 </abstract>
513 <include href="hb-install-config.xml"/>
514 </chapter>
515
516 <chapter>
517 <title>Installing Necessary System Tools</title>
518 <abstract>
519 As mentioned before, Gentoo is about customization. In this chapter we help you
520 choose and install some important tools.
521 </abstract>
522 <include href="hb-install-tools.xml"/>
523 </chapter>
524
525 <chapter>
526 <title>Configuring the Bootloader</title>
527 <abstract>
528 Several bootloaders exist. Each one of them has its own way of
529 configuration. In this chapter we'll describe all possibilities for you
530 and step you through the process of configuring a bootloader to your
531 needs.
532 </abstract>
533 <include href="hb-install-alpha-bootloader.xml"/>
534 </chapter>
535
536 <chapter>
537 <title>Finalizing your Gentoo Installation</title>
538 <abstract>
539 You're almost done. We'll just create one (or more) users for your
540 system and (optionally) install the prebuild packages.
541 </abstract>
542 <include href="hb-install-finalise.xml"/>
543 </chapter>
544
545 <chapter>
546 <title>Where to go from here?</title>
547 <abstract>
548 Now you have your Gentoo system, but what's next?
549 </abstract>
550 <include href="hb-install-next.xml"/>
551 </chapter>
552 </part>
553
554 <part>
555 <title>Working with Gentoo</title>
556 <abstract>
557 Learn how to work with Gentoo: installing software, altering variables, changing
558 Portage behaviour etc.
559 </abstract>
560
561 <chapter>
562 <title>A Portage Introduction</title>
563 <abstract>
564 This chapter explains the "simple" steps a user definitely needs to know to
565 maintain the software on his system.
566 </abstract>
567 <include href="../hb-working-portage.xml"/>
568 </chapter>
569
570 <chapter>
571 <title>USE flags</title>
572 <abstract>
573 USE-flags are a very important aspect of Gentoo. In this chapter, you learn to
574 work with USE-flags and understand how USE-flags interact with your system.
575 </abstract>
576 <include href="../hb-working-use.xml"/>
577 </chapter>
578
579 <chapter>
580 <title>Portage Features</title>
581 <abstract>
582 Discover the features Portage has, such as support for distributed compiling,
583 ccache and more.
584 </abstract>
585 <include href="../hb-working-features.xml"/>
586 </chapter>
587
588 <chapter>
589 <title>Initscripts</title>
590 <abstract>
591 Gentoo uses a special initscript format which, amongst other features, allows
592 dependency-driven decisions and virtual initscripts. This chapter explains all
593 these aspects and explains how to deal with these scripts.
594 </abstract>
595 <include href="../hb-working-rcscripts.xml"/>
596 </chapter>
597
598 <chapter>
599 <title>Environment Variables</title>
600 <abstract>
601 With Gentoo you can easily manage the environment variables for your system.
602 This chapter explains how you do that, and also describes frequently used
603 variables.
604 </abstract>
605 <include href="../hb-working-variables.xml"/>
606 </chapter>
607 </part>
608
609 <part>
610 <title>Working with Portage</title>
611 <abstract>
612 "Working with Portage" provides an in-depth coverage of Portage, Gentoo's
613 Software Management Tool.
614 </abstract>
615
616 <chapter>
617 <title>Files and Directories</title>
618 <abstract>
619 Once you want to know Portage in-depth you need to know where it stores its
620 files and data.
621 </abstract>
622 <include href="../hb-portage-files.xml"/>
623 </chapter>
624
625 <chapter>
626 <title>Configuring through Variables</title>
627 <abstract>
628 Portage is completely configurable through various variables you can set in the
629 configuration file or as environment variable.
630 </abstract>
631 <include href="../hb-portage-configuration.xml"/>
632 </chapter>
633
634 <chapter>
635 <title>Mixing Software Branches</title>
636 <abstract>
637 Gentoo provides software separated in several branches, depending on stability
638 and architectural support. "Mixing Software Branches" inform you how these
639 branches can be configured and how you can override this separation
640 individually.
641 </abstract>
642 <include href="../hb-portage-branches.xml"/>
643 </chapter>
644
645 <chapter>
646 <title>Additional Portage Tools</title>
647 <abstract>
648 Portage comes with a few extra tools that might make your Gentoo experience even
649 better. Read on to discover how to use dispatch-conf and other tools.
650 </abstract>
651 <include href="../hb-portage-tools.xml"/>
652 </chapter>
653
654 <chapter>
655 <title>Diverting from the Official Tree</title>
656 <abstract>
657 "Diverting from the Official Tree" gives you some tips and tricks on how to use
658 your own Portage tree, how to synchronise only the categories you want, inject
659 packages and more.
660 </abstract>
661 <include href="../hb-portage-diverttree.xml"/>
662 </chapter>
663
664 <chapter>
665 <title>The Ebuild Application</title>
666 <abstract>
667 In "The Ebuild Application" you are informed about the steps Portage takes while
668 installing software and how you can do this yourself using the ebuild
669 application.
670 </abstract>
671 <include href="../hb-portage-ebuild.xml"/>
672 </chapter>
673 </part>
674
675 <part>
676 <title>Gentoo Network Configuration</title>
677 <abstract>A comprehensive guide to Networking in Gentoo.</abstract>
678
679 <chapter>
680 <title>Getting Started</title>
681 <abstract>
682 A guide to quickly get your network interface up and running in most common
683 environments.
684 </abstract>
685 <include href="../hb-net-start.xml"/>
686 </chapter>
687
688 <chapter>
689 <title>Advanced Configuration</title>
690 <abstract>
691 Here we learn about how the configuration works - you need to know this
692 before we learn about modular networking.
693 </abstract>
694 <include href="../hb-net-advanced.xml"/>
695 </chapter>
696
697 <chapter>
698 <title>Modular Networking</title>
699 <abstract>
700 Gentoo provides you flexible networking - here you are told about choosing
701 different DHCP clients, setting up bonding, bridging, VLANs and more.
702 </abstract>
703 <include href="../hb-net-modules.xml"/>
704 </chapter>
705
706 <chapter>
707 <title>Wireless Networking</title>
708 <abstract>
709 Wireless isn't straight-forward. Hopefully we'll get you working!
710 </abstract>
711 <include href="../hb-net-wireless.xml"/>
712 </chapter>
713
714 <chapter>
715 <title>Adding Functionality</title>
716 <abstract>
717 If you're feeling adventurous, you can add your own functions to networking.
718 </abstract>
719 <include href="../hb-net-functions.xml"/>
720 </chapter>
721
722 <chapter>
723 <title>Network Management</title>
724 <abstract>
725 For laptop users or people who move their computer around different networks.
726 </abstract>
727 <include href="../hb-net-management.xml"/>
728 </chapter>
729 </part>
730
731 </book>
732
733
734
735 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/handbook-amd64.xml
736
737 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-amd64.xml?rev=1.1&view=markup
738 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-amd64.xml?rev=1.1&content-type=text/plain
739
740 Index: handbook-amd64.xml
741 ===================================================================
742 <?xml version='1.0' encoding='UTF-8'?>
743 <!DOCTYPE book SYSTEM "/dtd/book.dtd">
744
745 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-amd64.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
746
747 <book link="/doc/en/handbook/2006.1/handbook-amd64.xml">
748 <title>Gentoo Linux 2006.1 AMD64 Handbook</title>
749
750 <author title="Author">
751 <mail link="swift@g.o">Sven Vermeulen</mail>
752 </author>
753 <author title="Author">
754 <mail link="uberlord@g.o">Roy Marples</mail>
755 </author>
756 <author title="Author">
757 <mail link="drobbins@g.o">Daniel Robbins</mail>
758 </author>
759 <author title="Author">
760 <mail link="chouser@g.o">Chris Houser</mail>
761 </author>
762 <author title="Author">
763 <mail link="jerry@g.o">Jerry Alexandratos</mail>
764 </author>
765 <author title="Gentoo x86 Developer">
766 <mail link="seemant@g.o">Seemant Kulleen</mail>
767 </author>
768 <author title="Gentoo Alpha Developer">
769 <mail link="taviso@g.o">Tavis Ormandy</mail>
770 </author><!-- Does not want to be listed on the rendered page
771 <author title="Gentoo Developer">
772 Aron Griffis
773 </author>
774 -->
775 <author title="Gentoo AMD64 Developer">
776 <mail link="jhuebel@g.o">Jason Huebel</mail>
777 </author>
778 <author title="Gentoo HPPA developer">
779 <mail link="gmsoft@g.o">Guy Martin</mail>
780 </author>
781 <author title="Gentoo PPC developer">
782 <mail link="pvdabeel@g.o">Pieter Van den Abeele</mail>
783 </author>
784 <author title="Gentoo SPARC developer">
785 <mail link="blademan@g.o">Joe Kallar</mail>
786 </author>
787 <author title="Editor">
788 <mail link="zhen@g.o">John P. Davis</mail>
789 </author>
790 <author title="Editor">Pierre-Henri Jondot</author>
791 <author title="Editor">
792 <mail link="stocke2@g.o">Eric Stockbridge</mail>
793 </author>
794 <author title="Editor">
795 <mail link="rajiv@g.o">Rajiv Manglani</mail>
796 </author>
797 <author title="Editor">
798 <mail link="seo@g.o">Jungmin Seo</mail>
799 </author>
800 <author title="Editor">
801 <mail link="zhware@g.o">Stoyan Zhekov</mail>
802 </author>
803 <author title="Editor">
804 <mail link="jhhudso@g.o">Jared Hudson</mail>
805 </author>
806 <author title="Editor">
807 <mail link="peitolm@g.o">Colin Morey</mail>
808 </author>
809 <author title="Editor">
810 <mail link="peesh@g.o">Jorge Paulo</mail>
811 </author>
812 <author title="Editor">
813 <mail link="carl@g.o">Carl Anderson</mail>
814 </author>
815 <author title="Editor">
816 <mail link="avenj@g.o">Jon Portnoy</mail>
817 </author>
818 <author title="Editor">
819 <mail link="klasikahl@g.o">Zack Gilburd</mail>
820 </author>
821 <author title="Editor">
822 <mail link="jmorgan@g.o">Jack Morgan</mail>
823 </author>
824 <author title="Editor">
825 <mail link="bennyc@g.o">Benny Chuang</mail>
826 </author>
827 <author title="Editor">
828 <mail link="erwin@g.o">Erwin</mail>
829 </author>
830 <author title="Editor">
831 <mail link="kumba@g.o">Joshua Kinard</mail>
832 </author>
833 <author title="Editor">
834 <mail link="dertobi123@g.o">Tobias Scherbaum</mail>
835 </author>
836 <author title="Editor">
837 <mail link="neysx@g.o">Xavier Neys</mail>
838 </author>
839 <author title="Reviewer">
840 <mail link="g2boojum@g.o">Grant Goodyear</mail>
841 </author>
842 <author title="Reviewer">
843 <mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail>
844 </author>
845 <author title="Reviewer">
846 <mail link="dberkholz@g.o">Donnie Berkholz</mail>
847 </author>
848 <author title="Reviewer">
849 <mail link="antifa@g.o">Ken Nowack</mail>
850 </author>
851 <author title="Contributor">
852 <mail link="pylon@g.o">Lars Weiler</mail>
853 </author>
854
855 <abstract>
856 This is the Gentoo Handbook, an effort to centralise Gentoo/Linux information.
857 This handbook contains the installation instructions for a networkless
858 installation on AMD64 systems and parts about working with Gentoo and Portage.
859 </abstract>
860
861 <!-- The content of this document is licensed under the CC-BY-SA license -->
862 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
863 <license/>
864
865 <version>6.0</version>
866 <date>2006-02-27</date>
867
868 <part>
869 <title>Installing Gentoo</title>
870 <abstract>
871 In this part you learn how to install Gentoo on your system.
872 </abstract>
873
874 <chapter>
875 <title>About the Gentoo Linux Installation</title>
876 <abstract>
877 Users not familiar with Gentoo do not always know that choice is what
878 Gentoo is all about.
879 </abstract>
880 <include href="hb-install-about.xml"/>
881 </chapter>
882
883 <chapter>
884 <title>Booting the Universal Installation CD</title>
885 <abstract>
886 Using our Universal Installation CD you can boot up your system into a running
887 environment that allows you to install Gentoo.
888 </abstract>
889 <include href="hb-install-amd64-medium.xml"/>
890 </chapter>
891
892 <chapter>
893 <title>Configuring your Network</title>
894 <abstract>
895 If you need networking, this is the place where the network (and Internet
896 connection) is configured.
897 </abstract>
898 <include href="hb-install-network.xml"/>
899 </chapter>
900
901 <chapter>
902 <title>Preparing the Disks</title>
903 <abstract>
904 To be able to install Gentoo, you must create the necessary partitions.
905 This chapter describes how to partition a disk for future usage.
906 </abstract>
907 <include href="hb-install-amd64-disk.xml"/>
908 </chapter>
909
910 <chapter>
911 <title>Installing the Gentoo Installation Files</title>
912 <abstract>
913 In this chapter we describe how you extract a stage3 file and how to configure
914 Portage.
915 </abstract>
916 <include href="hb-install-stage.xml"/>
917 </chapter>
918
919 <chapter>
920 <title>Chrooting into the Gentoo Base System</title>
921 <abstract>
922 Now that the stage3 file is extracted, we chroot into the new system and modify
923 the USE variable.
924 </abstract>
925 <include href="hb-install-system.xml"/>
926 </chapter>
927
928 <chapter>
929 <title>Configuring the Kernel</title>
930 <abstract>
931 The Linux kernel is the core of every distribution. This chapter
932 explains how to configure your kernel.
933 </abstract>
934 <include href="hb-install-amd64-kernel.xml"/>
935 </chapter>
936
937 <chapter>
938 <title>Configuring your System</title>
939 <abstract>
940 You need to edit some important configuration files. In this chapter
941 you receive an overview of these files and an explanation on how to
942 proceed.
943 </abstract>
944 <include href="hb-install-config.xml"/>
945 </chapter>
946
947 <chapter>
948 <title>Installing Necessary System Tools</title>
949 <abstract>
950 As mentioned before, Gentoo is about customization. In this chapter we help you
951 choose and install some important tools.
952 </abstract>
953 <include href="hb-install-tools.xml"/>
954 </chapter>
955
956 <chapter>
957 <title>Configuring the Bootloader</title>
958 <abstract>
959 In this chapter we'll describe the GRUB bootloader
960 and step you through the process of configuring GRUB to your
961 needs.
962 </abstract>
963 <include href="hb-install-amd64-bootloader.xml"/>
964 </chapter>
965
966 <chapter>
967 <title>Finalizing your Gentoo Installation</title>
968 <abstract>
969 You're almost done. We'll just create one (or more) users for your
970 system and (optionally) install the prebuild packages.
971 </abstract>
972 <include href="hb-install-finalise.xml"/>
973 </chapter>
974
975 <chapter>
976 <title>Where to go from here?</title>
977 <abstract>
978 Now you have your Gentoo system, but what's next?
979 </abstract>
980 <include href="hb-install-next.xml"/>
981 </chapter>
982 </part>
983
984 <part>
985 <title>Working with Gentoo</title>
986 <abstract>
987 Learn how to work with Gentoo: installing software, altering variables, changing
988 Portage behaviour etc.
989 </abstract>
990
991 <chapter>
992 <title>A Portage Introduction</title>
993 <abstract>
994 This chapter explains the "simple" steps a user definitely needs to know to
995 maintain the software on his system.
996 </abstract>
997 <include href="../hb-working-portage.xml"/>
998 </chapter>
999
1000 <chapter>
1001 <title>USE flags</title>
1002 <abstract>
1003 USE-flags are a very important aspect of Gentoo. In this chapter, you learn to
1004 work with USE-flags and understand how USE-flags interact with your system.
1005 </abstract>
1006 <include href="../hb-working-use.xml"/>
1007 </chapter>
1008
1009 <chapter>
1010 <title>Portage Features</title>
1011 <abstract>
1012 Discover the features Portage has, such as support for distributed compiling,
1013 ccache and more.
1014 </abstract>
1015 <include href="../hb-working-features.xml"/>
1016 </chapter>
1017
1018 <chapter>
1019 <title>Initscripts</title>
1020 <abstract>
1021 Gentoo uses a special initscript format which, amongst other features, allows
1022 dependency-driven decisions and virtual initscripts. This chapter explains all
1023 these aspects and explains how to deal with these scripts.
1024 </abstract>
1025 <include href="../hb-working-rcscripts.xml"/>
1026 </chapter>
1027
1028 <chapter>
1029 <title>Environment Variables</title>
1030 <abstract>
1031 With Gentoo you can easily manage the environment variables for your system.
1032 This chapter explains how you do that, and also describes frequently used
1033 variables.
1034 </abstract>
1035 <include href="../hb-working-variables.xml"/>
1036 </chapter>
1037 </part>
1038
1039 <part>
1040 <title>Working with Portage</title>
1041 <abstract>
1042 "Working with Portage" provides an in-depth coverage of Portage, Gentoo's
1043 Software Management Tool.
1044 </abstract>
1045
1046 <chapter>
1047 <title>Files and Directories</title>
1048 <abstract>
1049 Once you want to know Portage in-depth you need to know where it stores its
1050 files and data.
1051 </abstract>
1052 <include href="../hb-portage-files.xml"/>
1053 </chapter>
1054
1055 <chapter>
1056 <title>Configuring through Variables</title>
1057 <abstract>
1058 Portage is completely configurable through various variables you can set in the
1059 configuration file or as environment variable.
1060 </abstract>
1061 <include href="../hb-portage-configuration.xml"/>
1062 </chapter>
1063
1064 <chapter>
1065 <title>Mixing Software Branches</title>
1066 <abstract>
1067 Gentoo provides software separated in several branches, depending on stability
1068 and architectural support. "Mixing Software Branches" inform you how these
1069 branches can be configured and how you can override this separation
1070 individually.
1071 </abstract>
1072 <include href="../hb-portage-branches.xml"/>
1073 </chapter>
1074
1075 <chapter>
1076 <title>Additional Portage Tools</title>
1077 <abstract>
1078 Portage comes with a few extra tools that might make your Gentoo experience even
1079 better. Read on to discover how to use dispatch-conf and other tools.
1080 </abstract>
1081 <include href="../hb-portage-tools.xml"/>
1082 </chapter>
1083
1084 <chapter>
1085 <title>Diverting from the Official Tree</title>
1086 <abstract>
1087 "Diverting from the Official Tree" gives you some tips and tricks on how to use
1088 your own Portage tree, how to synchronise only the categories you want, inject
1089 packages and more.
1090 </abstract>
1091 <include href="../hb-portage-diverttree.xml"/>
1092 </chapter>
1093
1094 <chapter>
1095 <title>The Ebuild Application</title>
1096 <abstract>
1097 In "The Ebuild Application" you are informed about the steps Portage takes while
1098 installing software and how you can do this yourself using the ebuild
1099 application.
1100 </abstract>
1101 <include href="../hb-portage-ebuild.xml"/>
1102 </chapter>
1103 </part>
1104
1105 <part>
1106 <title>Gentoo Network Configuration</title>
1107 <abstract>A comprehensive guide to Networking in Gentoo.</abstract>
1108
1109 <chapter>
1110 <title>Getting Started</title>
1111 <abstract>
1112 A guide to quickly get your network interface up and running in most common
1113 environments.
1114 </abstract>
1115 <include href="../hb-net-start.xml"/>
1116 </chapter>
1117
1118 <chapter>
1119 <title>Advanced Configuration</title>
1120 <abstract>
1121 Here we learn about how the configuration works - you need to know this
1122 before we learn about modular networking.
1123 </abstract>
1124 <include href="../hb-net-advanced.xml"/>
1125 </chapter>
1126
1127 <chapter>
1128 <title>Modular Networking</title>
1129 <abstract>
1130 Gentoo provides you flexible networking - here you are told about choosing
1131 different DHCP clients, setting up bonding, bridging, VLANs and more.
1132 </abstract>
1133 <include href="../hb-net-modules.xml"/>
1134 </chapter>
1135
1136 <chapter>
1137 <title>Wireless Networking</title>
1138 <abstract>
1139 Wireless isn't straight-forward. Hopefully we'll get you working!
1140 </abstract>
1141 <include href="../hb-net-wireless.xml"/>
1142 </chapter>
1143
1144 <chapter>
1145 <title>Adding Functionality</title>
1146 <abstract>
1147 If you're feeling adventurous, you can add your own functions to networking.
1148 </abstract>
1149 <include href="../hb-net-functions.xml"/>
1150 </chapter>
1151
1152 <chapter>
1153 <title>Network Management</title>
1154 <abstract>
1155 For laptop users or people who move their computer around different networks.
1156 </abstract>
1157 <include href="../hb-net-management.xml"/>
1158 </chapter>
1159 </part>
1160
1161 </book>
1162
1163
1164
1165 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/handbook-hppa.xml
1166
1167 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-hppa.xml?rev=1.1&view=markup
1168 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-hppa.xml?rev=1.1&content-type=text/plain
1169
1170 Index: handbook-hppa.xml
1171 ===================================================================
1172 <?xml version='1.0' encoding='UTF-8'?>
1173 <!DOCTYPE book SYSTEM "/dtd/book.dtd">
1174
1175 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-hppa.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
1176
1177 <book link="/doc/en/handbook/2006.1/handbook-hppa.xml">
1178 <title>Gentoo Linux 2006.1 HPPA Handbook</title>
1179
1180 <author title="Author">
1181 <mail link="swift@g.o">Sven Vermeulen</mail>
1182 </author>
1183 <author title="Author">
1184 <mail link="uberlord@g.o">Roy Marples</mail>
1185 </author>
1186 <author title="Author">
1187 <mail link="drobbins@g.o">Daniel Robbins</mail>
1188 </author>
1189 <author title="Author">
1190 <mail link="chouser@g.o">Chris Houser</mail>
1191 </author>
1192 <author title="Author">
1193 <mail link="jerry@g.o">Jerry Alexandratos</mail>
1194 </author>
1195 <author title="Gentoo x86 Developer">
1196 <mail link="seemant@g.o">Seemant Kulleen</mail>
1197 </author>
1198 <author title="Gentoo Alpha Developer">
1199 <mail link="taviso@g.o">Tavis Ormandy</mail>
1200 </author><!-- Does not want to be listed on the rendered page
1201 <author title="Gentoo Developer">
1202 Aron Griffis
1203 </author>
1204 -->
1205 <author title="Gentoo AMD64 Developer">
1206 <mail link="jhuebel@g.o">Jason Huebel</mail>
1207 </author>
1208 <author title="Gentoo HPPA developer">
1209 <mail link="gmsoft@g.o">Guy Martin</mail>
1210 </author>
1211 <author title="Gentoo PPC developer">
1212 <mail link="pvdabeel@g.o">Pieter Van den Abeele</mail>
1213 </author>
1214 <author title="Gentoo SPARC developer">
1215 <mail link="blademan@g.o">Joe Kallar</mail>
1216 </author>
1217 <author title="Editor">
1218 <mail link="zhen@g.o">John P. Davis</mail>
1219 </author>
1220 <author title="Editor">Pierre-Henri Jondot</author>
1221 <author title="Editor">
1222 <mail link="stocke2@g.o">Eric Stockbridge</mail>
1223 </author>
1224 <author title="Editor">
1225 <mail link="rajiv@g.o">Rajiv Manglani</mail>
1226 </author>
1227 <author title="Editor">
1228 <mail link="seo@g.o">Jungmin Seo</mail>
1229 </author>
1230 <author title="Editor">
1231 <mail link="zhware@g.o">Stoyan Zhekov</mail>
1232 </author>
1233 <author title="Editor">
1234 <mail link="jhhudso@g.o">Jared Hudson</mail>
1235 </author>
1236 <author title="Editor">
1237 <mail link="peitolm@g.o">Colin Morey</mail>
1238 </author>
1239 <author title="Editor">
1240 <mail link="peesh@g.o">Jorge Paulo</mail>
1241 </author>
1242 <author title="Editor">
1243 <mail link="carl@g.o">Carl Anderson</mail>
1244 </author>
1245 <author title="Editor">
1246 <mail link="avenj@g.o">Jon Portnoy</mail>
1247 </author>
1248 <author title="Editor">
1249 <mail link="klasikahl@g.o">Zack Gilburd</mail>
1250 </author>
1251 <author title="Editor">
1252 <mail link="jmorgan@g.o">Jack Morgan</mail>
1253 </author>
1254 <author title="Editor">
1255 <mail link="bennyc@g.o">Benny Chuang</mail>
1256 </author>
1257 <author title="Editor">
1258 <mail link="erwin@g.o">Erwin</mail>
1259 </author>
1260 <author title="Editor">
1261 <mail link="kumba@g.o">Joshua Kinard</mail>
1262 </author>
1263 <author title="Editor">
1264 <mail link="dertobi123@g.o">Tobias Scherbaum</mail>
1265 </author>
1266 <author title="Editor">
1267 <mail link="neysx@g.o">Xavier Neys</mail>
1268 </author>
1269 <author title="Reviewer">
1270 <mail link="g2boojum@g.o">Grant Goodyear</mail>
1271 </author>
1272 <author title="Reviewer">
1273 <mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail>
1274 </author>
1275 <author title="Reviewer">
1276 <mail link="dberkholz@g.o">Donnie Berkholz</mail>
1277 </author>
1278 <author title="Reviewer">
1279 <mail link="antifa@g.o">Ken Nowack</mail>
1280 </author>
1281 <author title="Contributor">
1282 <mail link="pylon@g.o">Lars Weiler</mail>
1283 </author>
1284
1285 <abstract>
1286 This is the Gentoo Handbook, an effort to centralise Gentoo/Linux information.
1287 This handbook contains the installation instructions for a networkless
1288 installation on HPPA systems and parts about working with Gentoo and Portage.
1289 </abstract>
1290
1291 <!-- The content of this document is licensed under the CC-BY-SA license -->
1292 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
1293 <license/>
1294
1295 <version>6.0</version>
1296 <date>2006-02-27</date>
1297
1298 <part>
1299 <title>Installing Gentoo</title>
1300 <abstract>
1301 In this part you learn how to install Gentoo on your system.
1302 </abstract>
1303
1304 <chapter>
1305 <title>About the Gentoo Linux Installation</title>
1306 <abstract>
1307 Users not familiar with Gentoo do not always know that choice is what
1308 Gentoo is all about.
1309 </abstract>
1310 <include href="hb-install-about.xml"/>
1311 </chapter>
1312
1313 <chapter>
1314 <title>Booting the Universal Installation CD</title>
1315 <abstract>
1316 Using our Universal Installation CD you can boot up your system into a running
1317 environment that allows you to install Gentoo.
1318 </abstract>
1319 <include href="hb-install-hppa-medium.xml"/>
1320 </chapter>
1321
1322 <chapter>
1323 <title>Configuring your Network</title>
1324 <abstract>
1325 If you need networking, this is the place where the network (and Internet
1326 connection) is configured.
1327 </abstract>
1328 <include href="hb-install-network.xml"/>
1329 </chapter>
1330
1331 <chapter>
1332 <title>Preparing the Disks</title>
1333 <abstract>
1334 To be able to install Gentoo, you must create the necessary partitions.
1335 This chapter describes how to partition a disk for future usage.
1336 </abstract>
1337 <include href="hb-install-hppa-disk.xml"/>
1338 </chapter>
1339
1340 <chapter>
1341 <title>Installing the Gentoo Installation Files</title>
1342 <abstract>
1343 Gentoo installs work through so-called stage-files. In this chapter we
1344 describe how you extract a stage-file and configure Portage.
1345 </abstract>
1346 <include href="hb-install-stage.xml"/>
1347 </chapter>
1348
1349 <chapter>
1350 <title>Chrooting into the Gentoo Base System</title>
1351 <abstract>
1352 Now that the stage3 file is extracted, we chroot into the new system and modify
1353 the USE variable.
1354 </abstract>
1355 <include href="hb-install-system.xml"/>
1356 </chapter>
1357
1358 <chapter>
1359 <title>Configuring the Kernel</title>
1360 <abstract>
1361 The Linux kernel is the core of every distribution. This chapter
1362 explains how to configure your kernel.
1363 </abstract>
1364 <include href="hb-install-hppa-kernel.xml"/>
1365 </chapter>
1366
1367 <chapter>
1368 <title>Configuring your System</title>
1369 <abstract>
1370 You need to edit some important configuration files. In this chapter
1371 you receive an overview of these files and an explanation on how to
1372 proceed.
1373 </abstract>
1374 <include href="hb-install-config.xml"/>
1375 </chapter>
1376
1377 <chapter>
1378 <title>Installing Necessary System Tools</title>
1379 <abstract>
1380 As mentioned before, Gentoo is about customization. In this chapter we help you
1381 choose and install some important tools.
1382 </abstract>
1383 <include href="hb-install-tools.xml"/>
1384 </chapter>
1385
1386 <chapter>
1387 <title>Configuring the Bootloader</title>
1388 <abstract>
1389 In this chapter we'll describe the PALO bootloader
1390 and step you through the process of configuring PALO to your
1391 needs.
1392 </abstract>
1393 <include href="hb-install-hppa-bootloader.xml"/>
1394 </chapter>
1395
1396 <chapter>
1397 <title>Finalizing your Gentoo Installation</title>
1398 <abstract>
1399 You're almost done. We'll just create one (or more) users for your
1400 system and (optionally) install prebuilt packages.
1401 </abstract>
1402 <include href="hb-install-finalise.xml"/>
1403 </chapter>
1404
1405 <chapter>
1406 <title>Where to go from here?</title>
1407 <abstract>
1408 Now you have your Gentoo system, but what's next?
1409 </abstract>
1410 <include href="hb-install-next.xml"/>
1411 </chapter>
1412 </part>
1413
1414 <part>
1415 <title>Working with Gentoo</title>
1416 <abstract>
1417 Learn how to work with Gentoo: installing software, altering variables, changing
1418 Portage behaviour etc.
1419 </abstract>
1420
1421 <chapter>
1422 <title>A Portage Introduction</title>
1423 <abstract>
1424 This chapter explains the "simple" steps a user definitely needs to know to
1425 maintain the software on his system.
1426 </abstract>
1427 <include href="../hb-working-portage.xml"/>
1428 </chapter>
1429
1430 <chapter>
1431 <title>USE flags</title>
1432 <abstract>
1433 USE-flags are a very important aspect of Gentoo. In this chapter, you learn to
1434 work with USE-flags and understand how USE-flags interact with your system.
1435 </abstract>
1436 <include href="../hb-working-use.xml"/>
1437 </chapter>
1438
1439 <chapter>
1440 <title>Portage Features</title>
1441 <abstract>
1442 Discover the features Portage has, such as support for distributed compiling,
1443 ccache and more.
1444 </abstract>
1445 <include href="../hb-working-features.xml"/>
1446 </chapter>
1447
1448 <chapter>
1449 <title>Initscripts</title>
1450 <abstract>
1451 Gentoo uses a special initscript format which, amongst other features, allows
1452 dependency-driven decisions and virtual initscripts. This chapter explains all
1453 these aspects and explains how to deal with these scripts.
1454 </abstract>
1455 <include href="../hb-working-rcscripts.xml"/>
1456 </chapter>
1457
1458 <chapter>
1459 <title>Environment Variables</title>
1460 <abstract>
1461 With Gentoo you can easily manage the environment variables for your system.
1462 This chapter explains how you do that, and also describes frequently used
1463 variables.
1464 </abstract>
1465 <include href="../hb-working-variables.xml"/>
1466 </chapter>
1467 </part>
1468
1469 <part>
1470 <title>Working with Portage</title>
1471 <abstract>
1472 "Working with Portage" provides an in-depth coverage of Portage, Gentoo's
1473 Software Management Tool.
1474 </abstract>
1475
1476 <chapter>
1477 <title>Files and Directories</title>
1478 <abstract>
1479 Once you want to know Portage in-depth you need to know where it stores its
1480 files and data.
1481 </abstract>
1482 <include href="../hb-portage-files.xml"/>
1483 </chapter>
1484
1485 <chapter>
1486 <title>Configuring through Variables</title>
1487 <abstract>
1488 Portage is completely configurable through various variables you can set in the
1489 configuration file or as environment variable.
1490 </abstract>
1491 <include href="../hb-portage-configuration.xml"/>
1492 </chapter>
1493
1494 <chapter>
1495 <title>Mixing Software Branches</title>
1496 <abstract>
1497 Gentoo provides software separated in several branches, depending on stability
1498 and architectural support. "Mixing Software Branches" inform you how these
1499 branches can be configured and how you can override this separation
1500 individually.
1501 </abstract>
1502 <include href="../hb-portage-branches.xml"/>
1503 </chapter>
1504
1505 <chapter>
1506 <title>Additional Portage Tools</title>
1507 <abstract>
1508 Portage comes with a few extra tools that might make your Gentoo experience even
1509 better. Read on to discover how to use dispatch-conf and other tools.
1510 </abstract>
1511 <include href="../hb-portage-tools.xml"/>
1512 </chapter>
1513
1514 <chapter>
1515 <title>Diverting from the Official Tree</title>
1516 <abstract>
1517 "Diverting from the Official Tree" gives you some tips and tricks on how to use
1518 your own Portage tree, how to synchronise only the categories you want, inject
1519 packages and more.
1520 </abstract>
1521 <include href="../hb-portage-diverttree.xml"/>
1522 </chapter>
1523
1524 <chapter>
1525 <title>The Ebuild Application</title>
1526 <abstract>
1527 In "The Ebuild Application" you are informed about the steps Portage takes while
1528 installing software and how you can do this yourself using the ebuild
1529 application.
1530 </abstract>
1531 <include href="../hb-portage-ebuild.xml"/>
1532 </chapter>
1533 </part>
1534
1535 <part>
1536 <title>Gentoo Network Configuration</title>
1537 <abstract>A comprehensive guide to Networking in Gentoo.</abstract>
1538
1539 <chapter>
1540 <title>Getting Started</title>
1541 <abstract>
1542 A guide to quickly get your network interface up and running in most common
1543 environments.
1544 </abstract>
1545 <include href="../hb-net-start.xml"/>
1546 </chapter>
1547
1548 <chapter>
1549 <title>Advanced Configuration</title>
1550 <abstract>
1551 Here we learn about how the configuration works - you need to know this
1552 before we learn about modular networking.
1553 </abstract>
1554 <include href="../hb-net-advanced.xml"/>
1555 </chapter>
1556
1557 <chapter>
1558 <title>Modular Networking</title>
1559 <abstract>
1560 Gentoo provides you flexible networking - here you are told about choosing
1561 different DHCP clients, setting up bonding, bridging, VLANs and more.
1562 </abstract>
1563 <include href="../hb-net-modules.xml"/>
1564 </chapter>
1565
1566 <chapter>
1567 <title>Wireless Networking</title>
1568 <abstract>
1569 Wireless isn't straight-forward. Hopefully we'll get you working!
1570 </abstract>
1571 <include href="../hb-net-wireless.xml"/>
1572 </chapter>
1573
1574 <chapter>
1575 <title>Adding Functionality</title>
1576 <abstract>
1577 If you're feeling adventurous, you can add your own functions to networking.
1578 </abstract>
1579 <include href="../hb-net-functions.xml"/>
1580 </chapter>
1581
1582 <chapter>
1583 <title>Network Management</title>
1584 <abstract>
1585 For laptop users or people who move their computer around different networks.
1586 </abstract>
1587 <include href="../hb-net-management.xml"/>
1588 </chapter>
1589 </part>
1590
1591 </book>
1592
1593
1594
1595 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/handbook-ppc.xml
1596
1597 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-ppc.xml?rev=1.1&view=markup
1598 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-ppc.xml?rev=1.1&content-type=text/plain
1599
1600 Index: handbook-ppc.xml
1601 ===================================================================
1602 <?xml version='1.0' encoding='UTF-8'?>
1603 <!DOCTYPE book SYSTEM "/dtd/book.dtd">
1604
1605 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-ppc.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
1606
1607 <book link="/doc/en/handbook/2006.1/handbook-ppc.xml">
1608 <title>Gentoo Linux 2006.1 PPC Handbook</title>
1609
1610 <author title="Author">
1611 <mail link="swift@g.o">Sven Vermeulen</mail>
1612 </author>
1613 <author title="Author">
1614 <mail link="uberlord@g.o">Roy Marples</mail>
1615 </author>
1616 <author title="Author">
1617 <mail link="drobbins@g.o">Daniel Robbins</mail>
1618 </author>
1619 <author title="Author">
1620 <mail link="chouser@g.o">Chris Houser</mail>
1621 </author>
1622 <author title="Author">
1623 <mail link="jerry@g.o">Jerry Alexandratos</mail>
1624 </author>
1625 <author title="Gentoo x86 Developer">
1626 <mail link="seemant@g.o">Seemant Kulleen</mail>
1627 </author>
1628 <author title="Gentoo Alpha Developer">
1629 <mail link="taviso@g.o">Tavis Ormandy</mail>
1630 </author><!-- Does not want to be listed on the rendered page
1631 <author title="Gentoo Developer">
1632 Aron Griffis
1633 </author>
1634 -->
1635 <author title="Gentoo AMD64 Developer">
1636 <mail link="jhuebel@g.o">Jason Huebel</mail>
1637 </author>
1638 <author title="Gentoo HPPA developer">
1639 <mail link="gmsoft@g.o">Guy Martin</mail>
1640 </author>
1641 <author title="Gentoo PPC developer">
1642 <mail link="pvdabeel@g.o">Pieter Van den Abeele</mail>
1643 </author>
1644 <author title="Gentoo SPARC developer">
1645 <mail link="blademan@g.o">Joe Kallar</mail>
1646 </author>
1647 <author title="Editor">
1648 <mail link="zhen@g.o">John P. Davis</mail>
1649 </author>
1650 <author title="Editor">Pierre-Henri Jondot</author>
1651 <author title="Editor">
1652 <mail link="stocke2@g.o">Eric Stockbridge</mail>
1653 </author>
1654 <author title="Editor">
1655 <mail link="rajiv@g.o">Rajiv Manglani</mail>
1656 </author>
1657 <author title="Editor">
1658 <mail link="seo@g.o">Jungmin Seo</mail>
1659 </author>
1660 <author title="Editor">
1661 <mail link="zhware@g.o">Stoyan Zhekov</mail>
1662 </author>
1663 <author title="Editor">
1664 <mail link="jhhudso@g.o">Jared Hudson</mail>
1665 </author>
1666 <author title="Editor">
1667 <mail link="peitolm@g.o">Colin Morey</mail>
1668 </author>
1669 <author title="Editor">
1670 <mail link="peesh@g.o">Jorge Paulo</mail>
1671 </author>
1672 <author title="Editor">
1673 <mail link="carl@g.o">Carl Anderson</mail>
1674 </author>
1675 <author title="Editor">
1676 <mail link="avenj@g.o">Jon Portnoy</mail>
1677 </author>
1678 <author title="Editor">
1679 <mail link="klasikahl@g.o">Zack Gilburd</mail>
1680 </author>
1681 <author title="Editor">
1682 <mail link="jmorgan@g.o">Jack Morgan</mail>
1683 </author>
1684 <author title="Editor">
1685 <mail link="bennyc@g.o">Benny Chuang</mail>
1686 </author>
1687 <author title="Editor">
1688 <mail link="erwin@g.o">Erwin</mail>
1689 </author>
1690 <author title="Editor">
1691 <mail link="kumba@g.o">Joshua Kinard</mail>
1692 </author>
1693 <author title="Editor">
1694 <mail link="dertobi123@g.o">Tobias Scherbaum</mail>
1695 </author>
1696 <author title="Editor">
1697 <mail link="pylon@g.o">Lars Weiler</mail>
1698 </author>
1699 <author title="Editor">
1700 <mail link="sejo@g.o">Jochen Maes </mail>
1701 </author>
1702 <author title="Editor">
1703 <mail link="neysx@g.o">Xavier Neys</mail>
1704 </author>
1705 <author title="Editor">
1706 <mail link="josejx@g.o">Joseph Jezak</mail>
1707 </author>
1708 <author title="Reviewer">
1709 <mail link="g2boojum@g.o">Grant Goodyear</mail>
1710 </author>
1711 <author title="Reviewer">
1712 <mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail>
1713 </author>
1714 <author title="Reviewer">
1715 <mail link="dberkholz@g.o">Donnie Berkholz</mail>
1716 </author>
1717 <author title="Reviewer">
1718 <mail link="antifa@g.o">Ken Nowack</mail>
1719 </author>
1720
1721 <abstract>
1722 This is the Gentoo Handbook, an effort to centralise Gentoo/Linux information.
1723 This handbook contains the installation instructions for a networkless
1724 installation on PPC systems and parts about working with Gentoo and Portage.
1725 </abstract>
1726
1727 <!-- The content of this document is licensed under the CC-BY-SA license -->
1728 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
1729 <license/>
1730
1731 <version>6.0</version>
1732 <date>2006-02-27</date>
1733
1734 <part>
1735 <title>Installing Gentoo</title>
1736 <abstract>
1737 In this part you learn how to install Gentoo on your system.
1738 </abstract>
1739
1740 <chapter>
1741 <title>About the Gentoo Linux Installation</title>
1742 <abstract>
1743 Users not familiar with Gentoo do not always know that choice is what
1744 Gentoo is all about.
1745 </abstract>
1746 <include href="hb-install-about.xml"/>
1747 </chapter>
1748
1749 <chapter>
1750 <title>Booting the Universal Installation CD</title>
1751 <abstract>
1752 Using our Universal Installation CD you can boot up your system into a running
1753 environment that allows you to install Gentoo.
1754 </abstract>
1755 <include href="hb-install-ppc-medium.xml"/>
1756 </chapter>
1757
1758 <chapter>
1759 <title>Configuring your Network</title>
1760 <abstract>
1761 If you need networking, this is the place where the network (and Internet
1762 connection) is configured.
1763 </abstract>
1764 <include href="hb-install-network.xml"/>
1765 </chapter>
1766
1767 <chapter>
1768 <title>Preparing the Disks</title>
1769 <abstract>
1770 To be able to install Gentoo, you must create the necessary partitions.
1771 This chapter describes how to partition a disk for future usage.
1772 </abstract>
1773 <include href="hb-install-ppc-disk.xml"/>
1774 </chapter>
1775
1776 <chapter>
1777 <title>Installing the Gentoo Installation Files</title>
1778 <abstract>
1779 In this chapter we describe how you extract a stage3 file and how to configure
1780 Portage.
1781 </abstract>
1782 <include href="hb-install-stage.xml"/>
1783 </chapter>
1784
1785 <chapter>
1786 <title>Chrooting into the Gentoo Base System</title>
1787 <abstract>
1788 Now that the stage3 file is extracted, we chroot into the new system and modify
1789 the USE variable.
1790 </abstract>
1791 <include href="hb-install-system.xml"/>
1792 </chapter>
1793
1794 <chapter>
1795 <title>Configuring the Kernel</title>
1796 <abstract>
1797 The Linux kernel is the core of every distribution. This chapter
1798 explains how to configure your kernel.
1799 </abstract>
1800 <include href="hb-install-ppc-kernel.xml"/>
1801 </chapter>
1802
1803 <chapter>
1804 <title>Configuring your System</title>
1805 <abstract>
1806 You need to edit some important configuration files. In this chapter
1807 you receive an overview of these files and an explanation on how to
1808 proceed.
1809 </abstract>
1810 <include href="hb-install-config.xml"/>
1811 </chapter>
1812
1813 <chapter>
1814 <title>Installing Necessary System Tools</title>
1815 <abstract>
1816 As mentioned before, Gentoo is about customization. In this chapter we help you
1817 choose and install some important tools.
1818 </abstract>
1819 <include href="hb-install-tools.xml"/>
1820 </chapter>
1821
1822 <chapter>
1823 <title>Configuring the Bootloader</title>
1824 <abstract>
1825 Several bootloaders exist. Each one of them has its own way of
1826 configuration. In this chapter we'll describe all possibilities for you
1827 and step you through the process of configuring a bootloader to your
1828 needs.
1829 </abstract>
1830 <include href="hb-install-ppc-bootloader.xml"/>
1831 </chapter>
1832
1833 <chapter>
1834 <title>Finalizing your Gentoo Installation</title>
1835 <abstract>
1836 You're almost done. We'll just create one (or more) users for your
1837 system and (optionally) install prebuilt packages.
1838 </abstract>
1839 <include href="hb-install-finalise.xml"/>
1840 </chapter>
1841
1842 <chapter>
1843 <title>Where to go from here?</title>
1844 <abstract>
1845 Now you have your Gentoo system, but what's next?
1846 </abstract>
1847 <include href="hb-install-next.xml"/>
1848 </chapter>
1849 </part>
1850
1851 <part>
1852 <title>Working with Gentoo</title>
1853 <abstract>
1854 Learn how to work with Gentoo: installing software, altering variables, changing
1855 Portage behaviour etc.
1856 </abstract>
1857
1858 <chapter>
1859 <title>A Portage Introduction</title>
1860 <abstract>
1861 This chapter explains the "simple" steps a user definitely needs to know to
1862 maintain the software on his system.
1863 </abstract>
1864 <include href="../hb-working-portage.xml"/>
1865 </chapter>
1866
1867 <chapter>
1868 <title>USE flags</title>
1869 <abstract>
1870 USE-flags are a very important aspect of Gentoo. In this chapter, you learn to
1871 work with USE-flags and understand how USE-flags interact with your system.
1872 </abstract>
1873 <include href="../hb-working-use.xml"/>
1874 </chapter>
1875
1876 <chapter>
1877 <title>Portage Features</title>
1878 <abstract>
1879 Discover the features Portage has, such as support for distributed compiling,
1880 ccache and more.
1881 </abstract>
1882 <include href="../hb-working-features.xml"/>
1883 </chapter>
1884
1885 <chapter>
1886 <title>Initscripts</title>
1887 <abstract>
1888 Gentoo uses a special initscript format which, amongst other features, allows
1889 dependency-driven decisions and virtual initscripts. This chapter explains all
1890 these aspects and explains how to deal with these scripts.
1891 </abstract>
1892 <include href="../hb-working-rcscripts.xml"/>
1893 </chapter>
1894
1895 <chapter>
1896 <title>Environment Variables</title>
1897 <abstract>
1898 With Gentoo you can easily manage the environment variables for your system.
1899 This chapter explains how you do that, and also describes frequently used
1900 variables.
1901 </abstract>
1902 <include href="../hb-working-variables.xml"/>
1903 </chapter>
1904 </part>
1905
1906 <part>
1907 <title>Working with Portage</title>
1908 <abstract>
1909 "Working with Portage" provides an in-depth coverage of Portage, Gentoo's
1910 Software Management Tool.
1911 </abstract>
1912
1913 <chapter>
1914 <title>Files and Directories</title>
1915 <abstract>
1916 Once you want to know Portage in-depth you need to know where it stores its
1917 files and data.
1918 </abstract>
1919 <include href="../hb-portage-files.xml"/>
1920 </chapter>
1921
1922 <chapter>
1923 <title>Configuring through Variables</title>
1924 <abstract>
1925 Portage is completely configurable through various variables you can set in the
1926 configuration file or as environment variable.
1927 </abstract>
1928 <include href="../hb-portage-configuration.xml"/>
1929 </chapter>
1930
1931 <chapter>
1932 <title>Mixing Software Branches</title>
1933 <abstract>
1934 Gentoo provides software separated in several branches, depending on stability
1935 and architectural support. "Mixing Software Branches" inform you how these
1936 branches can be configured and how you can override this separation
1937 individually.
1938 </abstract>
1939 <include href="../hb-portage-branches.xml"/>
1940 </chapter>
1941
1942 <chapter>
1943 <title>Additional Portage Tools</title>
1944 <abstract>
1945 Portage comes with a few extra tools that might make your Gentoo experience even
1946 better. Read on to discover how to use dispatch-conf and other tools.
1947 </abstract>
1948 <include href="../hb-portage-tools.xml"/>
1949 </chapter>
1950
1951 <chapter>
1952 <title>Diverting from the Official Tree</title>
1953 <abstract>
1954 "Diverting from the Official Tree" gives you some tips and tricks on how to use
1955 your own Portage tree, how to synchronise only the categories you want, inject
1956 packages and more.
1957 </abstract>
1958 <include href="../hb-portage-diverttree.xml"/>
1959 </chapter>
1960
1961 <chapter>
1962 <title>The Ebuild Application</title>
1963 <abstract>
1964 In "The Ebuild Application" you are informed about the steps Portage takes while
1965 installing software and how you can do this yourself using the ebuild
1966 application.
1967 </abstract>
1968 <include href="../hb-portage-ebuild.xml"/>
1969 </chapter>
1970 </part>
1971
1972 <part>
1973 <title>Gentoo Network Configuration</title>
1974 <abstract>A comprehensive guide to Networking in Gentoo.</abstract>
1975
1976 <chapter>
1977 <title>Getting Started</title>
1978 <abstract>
1979 A guide to quickly get your network interface up and running in most common
1980 environments.
1981 </abstract>
1982 <include href="../hb-net-start.xml"/>
1983 </chapter>
1984
1985 <chapter>
1986 <title>Advanced Configuration</title>
1987 <abstract>
1988 Here we learn about how the configuration works - you need to know this
1989 before we learn about modular networking.
1990 </abstract>
1991 <include href="../hb-net-advanced.xml"/>
1992 </chapter>
1993
1994 <chapter>
1995 <title>Modular Networking</title>
1996 <abstract>
1997 Gentoo provides you flexible networking - here you are told about choosing
1998 different DHCP clients, setting up bonding, bridging, VLANs and more.
1999 </abstract>
2000 <include href="../hb-net-modules.xml"/>
2001 </chapter>
2002
2003 <chapter>
2004 <title>Wireless Networking</title>
2005 <abstract>
2006 Wireless isn't straight-forward. Hopefully we'll get you working!
2007 </abstract>
2008 <include href="../hb-net-wireless.xml"/>
2009 </chapter>
2010
2011 <chapter>
2012 <title>Adding Functionality</title>
2013 <abstract>
2014 If you're feeling adventurous, you can add your own functions to networking.
2015 </abstract>
2016 <include href="../hb-net-functions.xml"/>
2017 </chapter>
2018
2019 <chapter>
2020 <title>Network Management</title>
2021 <abstract>
2022 For laptop users or people who move their computer around different networks.
2023 </abstract>
2024 <include href="../hb-net-management.xml"/>
2025 </chapter>
2026 </part>
2027
2028 </book>
2029
2030
2031
2032 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/handbook-ppc64.xml
2033
2034 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-ppc64.xml?rev=1.1&view=markup
2035 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-ppc64.xml?rev=1.1&content-type=text/plain
2036
2037 Index: handbook-ppc64.xml
2038 ===================================================================
2039 <?xml version='1.0' encoding='UTF-8'?>
2040 <!DOCTYPE book SYSTEM "/dtd/book.dtd">
2041
2042 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-ppc64.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
2043
2044 <book link="/doc/en/handbook/2006.1/handbook-ppc64.xml">
2045 <title>Gentoo Linux 2006.1 PPC64 Handbook</title>
2046
2047 <author title="Author">
2048 <mail link="swift@g.o">Sven Vermeulen</mail>
2049 </author>
2050 <author title="Author">
2051 <mail link="uberlord@g.o">Roy Marples</mail>
2052 </author>
2053 <author title="Author">
2054 <mail link="drobbins@g.o">Daniel Robbins</mail>
2055 </author>
2056 <author title="Author">
2057 <mail link="chouser@g.o">Chris Houser</mail>
2058 </author>
2059 <author title="Author">
2060 <mail link="jerry@g.o">Jerry Alexandratos</mail>
2061 </author>
2062 <author title="Gentoo x86 Developer">
2063 <mail link="seemant@g.o">Seemant Kulleen</mail>
2064 </author>
2065 <author title="Gentoo Alpha Developer">
2066 <mail link="taviso@g.o">Tavis Ormandy</mail>
2067 </author><!-- Does not want to be listed on the rendered page
2068 <author title="Gentoo Developer">
2069 Aron Griffis
2070 </author>
2071 -->
2072 <author title="Gentoo AMD64 Developer">
2073 <mail link="jhuebel@g.o">Jason Huebel</mail>
2074 </author>
2075 <author title="Gentoo HPPA developer">
2076 <mail link="gmsoft@g.o">Guy Martin</mail>
2077 </author>
2078 <author title="Gentoo PPC developer">
2079 <mail link="pvdabeel@g.o">Pieter Van den Abeele</mail>
2080 </author>
2081 <author title="Gentoo SPARC developer">
2082 <mail link="blademan@g.o">Joe Kallar</mail>
2083 </author>
2084 <author title="Editor">
2085 <mail link="zhen@g.o">John P. Davis</mail>
2086 </author>
2087 <author title="Editor">Pierre-Henri Jondot</author>
2088 <author title="Editor">
2089 <mail link="stocke2@g.o">Eric Stockbridge</mail>
2090 </author>
2091 <author title="Editor">
2092 <mail link="rajiv@g.o">Rajiv Manglani</mail>
2093 </author>
2094 <author title="Editor">
2095 <mail link="seo@g.o">Jungmin Seo</mail>
2096 </author>
2097 <author title="Editor">
2098 <mail link="zhware@g.o">Stoyan Zhekov</mail>
2099 </author>
2100 <author title="Editor">
2101 <mail link="jhhudso@g.o">Jared Hudson</mail>
2102 </author>
2103 <author title="Editor">
2104 <mail link="peitolm@g.o">Colin Morey</mail>
2105 </author>
2106 <author title="Editor">
2107 <mail link="peesh@g.o">Jorge Paulo</mail>
2108 </author>
2109 <author title="Editor">
2110 <mail link="carl@g.o">Carl Anderson</mail>
2111 </author>
2112 <author title="Editor">
2113 <mail link="avenj@g.o">Jon Portnoy</mail>
2114 </author>
2115 <author title="Editor">
2116 <mail link="klasikahl@g.o">Zack Gilburd</mail>
2117 </author>
2118 <author title="Editor">
2119 <mail link="jmorgan@g.o">Jack Morgan</mail>
2120 </author>
2121 <author title="Editor">
2122 <mail link="bennyc@g.o">Benny Chuang</mail>
2123 </author>
2124 <author title="Editor">
2125 <mail link="erwin@g.o">Erwin</mail>
2126 </author>
2127 <author title="Editor">
2128 <mail link="kumba@g.o">Joshua Kinard</mail>
2129 </author>
2130 <author title="Editor">
2131 <mail link="neysx@g.o">Xavier Neys</mail>
2132 </author>
2133 <author title="Reviewer">
2134 <mail link="g2boojum@g.o">Grant Goodyear</mail>
2135 </author>
2136 <author title="Reviewer">
2137 <mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail>
2138 </author>
2139 <author title="Reviewer">
2140 <mail link="dberkholz@g.o">Donnie Berkholz</mail>
2141 </author>
2142 <author title="Reviewer">
2143 <mail link="antifa@g.o">Ken Nowack</mail>
2144 </author>
2145 <author title="Contributor">
2146 <mail link="pylon@g.o">Lars Weiler</mail>
2147 </author>
2148 <author title="Editor">
2149 <mail link="dertobi123@g.o">Tobias Scherbaum</mail>
2150 </author>
2151
2152 <abstract>
2153 This is the Gentoo Handbook, an effort to centralise Gentoo/Linux information.
2154 This handbook contains the installation instructions for a networkless
2155 installation on PPC64 systems and parts about working with Gentoo and Portage.
2156 </abstract>
2157
2158 <!-- The content of this document is licensed under the CC-BY-SA license -->
2159 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
2160 <license/>
2161
2162 <version>6.0</version>
2163 <date>2006-02-27</date>
2164
2165 <part>
2166 <title>Installing Gentoo</title>
2167 <abstract>
2168 In this part you learn how to install Gentoo on your system.
2169 </abstract>
2170
2171 <chapter>
2172 <title>About the Gentoo Linux Installation</title>
2173 <abstract>
2174 Users not familiar with Gentoo do not always know that choice is what
2175 Gentoo is all about.
2176 </abstract>
2177 <include href="hb-install-about.xml"/>
2178 </chapter>
2179
2180 <chapter>
2181 <title>Booting the Universal Installation CD</title>
2182 <abstract>
2183 Using our Universal Installation CD you can boot up your system into a running
2184 environment that allows you to install Gentoo.
2185 </abstract>
2186 <include href="hb-install-ppc64-medium.xml"/>
2187 </chapter>
2188
2189 <chapter>
2190 <title>Configuring your Network</title>
2191 <abstract>
2192 If you need networking, this is the place where the network (and Internet
2193 connection) is configured.
2194 </abstract>
2195 <include href="hb-install-network.xml"/>
2196 </chapter>
2197
2198 <chapter>
2199 <title>Preparing the Disks</title>
2200 <abstract>
2201 To be able to install Gentoo, you must create the necessary partitions.
2202 This chapter describes how to partition a disk for future usage.
2203 </abstract>
2204 <include href="hb-install-ppc64-disk.xml"/>
2205 </chapter>
2206
2207 <chapter>
2208 <title>Installing the Gentoo Installation Files</title>
2209 <abstract>
2210 In this chapter we describe how you extract a stage3 file and how to configure
2211 Portage.
2212 </abstract>
2213 <include href="hb-install-stage.xml"/>
2214 </chapter>
2215
2216 <chapter>
2217 <title>Chrooting into the Gentoo Base System</title>
2218 <abstract>
2219 Now that the stage3 file is extracted, we chroot into the new system and modify
2220 the USE variable.
2221 </abstract>
2222 <include href="hb-install-system.xml"/>
2223 </chapter>
2224
2225 <chapter>
2226 <title>Configuring the Kernel</title>
2227 <abstract>
2228 The Linux kernel is the core of every distribution. This chapter
2229 explains how to configure your kernel.
2230 </abstract>
2231 <include href="hb-install-ppc64-kernel.xml"/>
2232 </chapter>
2233
2234 <chapter>
2235 <title>Configuring your System</title>
2236 <abstract>
2237 You need to edit some important configuration files. In this chapter
2238 you receive an overview of these files and an explanation on how to
2239 proceed.
2240 </abstract>
2241 <include href="hb-install-config.xml"/>
2242 </chapter>
2243
2244 <chapter>
2245 <title>Installing Necessary System Tools</title>
2246 <abstract>
2247 As mentioned before, Gentoo is about customization. In this chapter we help you
2248 choose and install some important tools.
2249 </abstract>
2250 <include href="hb-install-tools.xml"/>
2251 </chapter>
2252
2253 <chapter>
2254 <title>Configuring the Bootloader</title>
2255 <abstract>
2256 Several bootloaders exist. Each one of them has its own way of
2257 configuration. In this chapter we'll describe all possibilities for you
2258 and step you through the process of configuring a bootloader to your
2259 needs.
2260 </abstract>
2261 <include href="hb-install-ppc64-bootloader.xml"/>
2262 </chapter>
2263
2264
2265 <chapter>
2266 <title>Finalizing your Gentoo Installation</title>
2267 <abstract>
2268 You're almost done. We'll just create one (or more) users for your
2269 system and (optionally) install prebuilt packages.
2270 </abstract>
2271 <include href="hb-install-finalise.xml"/>
2272 </chapter>
2273
2274 <chapter>
2275 <title>Where to go from here?</title>
2276 <abstract>
2277 Now you have your Gentoo system, but what's next?
2278 </abstract>
2279 <include href="hb-install-next.xml"/>
2280 </chapter>
2281 </part>
2282
2283 <part>
2284 <title>Working with Gentoo</title>
2285 <abstract>
2286 Learn how to work with Gentoo: installing software, altering variables, changing
2287 Portage behaviour etc.
2288 </abstract>
2289
2290 <chapter>
2291 <title>A Portage Introduction</title>
2292 <abstract>
2293 This chapter explains the "simple" steps a user definitely needs to know to
2294 maintain the software on his system.
2295 </abstract>
2296 <include href="../hb-working-portage.xml"/>
2297 </chapter>
2298
2299 <chapter>
2300 <title>USE flags</title>
2301 <abstract>
2302 USE-flags are a very important aspect of Gentoo. In this chapter, you learn to
2303 work with USE-flags and understand how USE-flags interact with your system.
2304 </abstract>
2305 <include href="../hb-working-use.xml"/>
2306 </chapter>
2307
2308 <chapter>
2309 <title>Portage Features</title>
2310 <abstract>
2311 Discover the features Portage has, such as support for distributed compiling,
2312 ccache and more.
2313 </abstract>
2314 <include href="../hb-working-features.xml"/>
2315 </chapter>
2316
2317 <chapter>
2318 <title>Initscripts</title>
2319 <abstract>
2320 Gentoo uses a special initscript format which, amongst other features, allows
2321 dependency-driven decisions and virtual initscripts. This chapter explains all
2322 these aspects and explains how to deal with these scripts.
2323 </abstract>
2324 <include href="../hb-working-rcscripts.xml"/>
2325 </chapter>
2326
2327 <chapter>
2328 <title>Environment Variables</title>
2329 <abstract>
2330 With Gentoo you can easily manage the environment variables for your system.
2331 This chapter explains how you do that, and also describes frequently used
2332 variables.
2333 </abstract>
2334 <include href="../hb-working-variables.xml"/>
2335 </chapter>
2336 </part>
2337
2338 <part>
2339 <title>Working with Portage</title>
2340 <abstract>
2341 "Working with Portage" provides an in-depth coverage of Portage, Gentoo's
2342 Software Management Tool.
2343 </abstract>
2344
2345 <chapter>
2346 <title>Files and Directories</title>
2347 <abstract>
2348 Once you want to know Portage in-depth you need to know where it stores its
2349 files and data.
2350 </abstract>
2351 <include href="../hb-portage-files.xml"/>
2352 </chapter>
2353
2354 <chapter>
2355 <title>Configuring through Variables</title>
2356 <abstract>
2357 Portage is completely configurable through various variables you can set in the
2358 configuration file or as environment variable.
2359 </abstract>
2360 <include href="../hb-portage-configuration.xml"/>
2361 </chapter>
2362
2363 <chapter>
2364 <title>Mixing Software Branches</title>
2365 <abstract>
2366 Gentoo provides software separated in several branches, depending on stability
2367 and architectural support. "Mixing Software Branches" inform you how these
2368 branches can be configured and how you can override this separation
2369 individually.
2370 </abstract>
2371 <include href="../hb-portage-branches.xml"/>
2372 </chapter>
2373
2374 <chapter>
2375 <title>Additional Portage Tools</title>
2376 <abstract>
2377 Portage comes with a few extra tools that might make your Gentoo experience even
2378 better. Read on to discover how to use dispatch-conf and other tools.
2379 </abstract>
2380 <include href="../hb-portage-tools.xml"/>
2381 </chapter>
2382
2383 <chapter>
2384 <title>Diverting from the Official Tree</title>
2385 <abstract>
2386 "Diverting from the Official Tree" gives you some tips and tricks on how to use
2387 your own Portage tree, how to synchronise only the categories you want, inject
2388 packages and more.
2389 </abstract>
2390 <include href="../hb-portage-diverttree.xml"/>
2391 </chapter>
2392
2393 <chapter>
2394 <title>The Ebuild Application</title>
2395 <abstract>
2396 In "The Ebuild Application" you are informed about the steps Portage takes while
2397 installing software and how you can do this yourself using the ebuild
2398 application.
2399 </abstract>
2400 <include href="../hb-portage-ebuild.xml"/>
2401 </chapter>
2402 </part>
2403
2404 <part>
2405 <title>Gentoo Network Configuration</title>
2406 <abstract>A comprehensive guide to Networking in Gentoo.</abstract>
2407
2408 <chapter>
2409 <title>Getting Started</title>
2410 <abstract>
2411 A guide to quickly get your network interface up and running in most common
2412 environments.
2413 </abstract>
2414 <include href="../hb-net-start.xml"/>
2415 </chapter>
2416
2417 <chapter>
2418 <title>Advanced Configuration</title>
2419 <abstract>
2420 Here we learn about how the configuration works - you need to know this
2421 before we learn about modular networking.
2422 </abstract>
2423 <include href="../hb-net-advanced.xml"/>
2424 </chapter>
2425
2426 <chapter>
2427 <title>Modular Networking</title>
2428 <abstract>
2429 Gentoo provides you flexible networking - here you are told about choosing
2430 different DHCP clients, setting up bonding, bridging, VLANs and more.
2431 </abstract>
2432 <include href="../hb-net-modules.xml"/>
2433 </chapter>
2434
2435 <chapter>
2436 <title>Wireless Networking</title>
2437 <abstract>
2438 Wireless isn't straight-forward. Hopefully we'll get you working!
2439 </abstract>
2440 <include href="../hb-net-wireless.xml"/>
2441 </chapter>
2442
2443 <chapter>
2444 <title>Adding Functionality</title>
2445 <abstract>
2446 If you're feeling adventurous, you can add your own functions to networking.
2447 </abstract>
2448 <include href="../hb-net-functions.xml"/>
2449 </chapter>
2450
2451 <chapter>
2452 <title>Network Management</title>
2453 <abstract>
2454 For laptop users or people who move their computer around different networks.
2455 </abstract>
2456 <include href="../hb-net-management.xml"/>
2457 </chapter>
2458 </part>
2459
2460 </book>
2461
2462
2463
2464 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/handbook-sparc.xml
2465
2466 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-sparc.xml?rev=1.1&view=markup
2467 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-sparc.xml?rev=1.1&content-type=text/plain
2468
2469 Index: handbook-sparc.xml
2470 ===================================================================
2471 <?xml version='1.0' encoding='UTF-8'?>
2472 <!DOCTYPE book SYSTEM "/dtd/book.dtd">
2473
2474 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-sparc.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
2475
2476 <book link="/doc/en/handbook/2006.1/handbook-sparc.xml">
2477 <title>Gentoo Linux 2006.1 SPARC Handbook</title>
2478
2479 <author title="Author">
2480 <mail link="swift@g.o">Sven Vermeulen</mail>
2481 </author>
2482 <author title="Author">
2483 <mail link="uberlord@g.o">Roy Marples</mail>
2484 </author>
2485 <author title="Author">
2486 <mail link="drobbins@g.o">Daniel Robbins</mail>
2487 </author>
2488 <author title="Author">
2489 <mail link="chouser@g.o">Chris Houser</mail>
2490 </author>
2491 <author title="Author">
2492 <mail link="jerry@g.o">Jerry Alexandratos</mail>
2493 </author>
2494 <author title="Gentoo x86 Developer">
2495 <mail link="seemant@g.o">Seemant Kulleen</mail>
2496 </author>
2497 <author title="Gentoo Alpha Developer">
2498 <mail link="taviso@g.o">Tavis Ormandy</mail>
2499 </author><!-- Does not want to be listed on the rendered page
2500 <author title="Gentoo Developer">
2501 Aron Griffis
2502 </author>
2503 -->
2504 <author title="Gentoo AMD64 Developer">
2505 <mail link="jhuebel@g.o">Jason Huebel</mail>
2506 </author>
2507 <author title="Gentoo HPPA developer">
2508 <mail link="gmsoft@g.o">Guy Martin</mail>
2509 </author>
2510 <author title="Gentoo PPC developer">
2511 <mail link="pvdabeel@g.o">Pieter Van den Abeele</mail>
2512 </author>
2513 <author title="Gentoo SPARC developer">
2514 <mail link="blademan@g.o">Joe Kallar</mail>
2515 </author>
2516 <author title="Editor">
2517 <mail link="zhen@g.o">John P. Davis</mail>
2518 </author>
2519 <author title="Editor">Pierre-Henri Jondot</author>
2520 <author title="Editor">
2521 <mail link="stocke2@g.o">Eric Stockbridge</mail>
2522 </author>
2523 <author title="Editor">
2524 <mail link="rajiv@g.o">Rajiv Manglani</mail>
2525 </author>
2526 <author title="Editor">
2527 <mail link="seo@g.o">Jungmin Seo</mail>
2528 </author>
2529 <author title="Editor">
2530 <mail link="zhware@g.o">Stoyan Zhekov</mail>
2531 </author>
2532 <author title="Editor">
2533 <mail link="jhhudso@g.o">Jared Hudson</mail>
2534 </author>
2535 <author title="Editor">
2536 <mail link="peitolm@g.o">Colin Morey</mail>
2537 </author>
2538 <author title="Editor">
2539 <mail link="peesh@g.o">Jorge Paulo</mail>
2540 </author>
2541 <author title="Editor">
2542 <mail link="carl@g.o">Carl Anderson</mail>
2543 </author>
2544 <author title="Editor">
2545 <mail link="avenj@g.o">Jon Portnoy</mail>
2546 </author>
2547 <author title="Editor">
2548 <mail link="klasikahl@g.o">Zack Gilburd</mail>
2549 </author>
2550 <author title="Editor">
2551 <mail link="jmorgan@g.o">Jack Morgan</mail>
2552 </author>
2553 <author title="Editor">
2554 <mail link="bennyc@g.o">Benny Chuang</mail>
2555 </author>
2556 <author title="Editor">
2557 <mail link="erwin@g.o">Erwin</mail>
2558 </author>
2559 <author title="Editor">
2560 <mail link="kumba@g.o">Joshua Kinard</mail>
2561 </author>
2562 <author title="Editor">
2563 <mail link="dertobi123@g.o">Tobias Scherbaum</mail>
2564 </author>
2565 <author title="Editor">
2566 <mail link="neysx@g.o">Xavier Neys</mail>
2567 </author>
2568 <author title="Reviewer">
2569 <mail link="g2boojum@g.o">Grant Goodyear</mail>
2570 </author>
2571 <author title="Reviewer">
2572 <mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail>
2573 </author>
2574 <author title="Reviewer">
2575 <mail link="dberkholz@g.o">Donnie Berkholz</mail>
2576 </author>
2577 <author title="Reviewer">
2578 <mail link="antifa@g.o">Ken Nowack</mail>
2579 </author>
2580 <author title="Contributor">
2581 <mail link="pylon@g.o">Lars Weiler</mail>
2582 </author>
2583
2584 <abstract>
2585 This is the Gentoo Handbook, an effort to centralise Gentoo/Linux information.
2586 This handbook contains the installation instructions for a networkless
2587 installation on Sparc systems and parts about working with Gentoo and Portage.
2588 </abstract>
2589
2590 <!-- The content of this document is licensed under the CC-BY-SA license -->
2591 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
2592 <license/>
2593
2594 <version>6.0</version>
2595 <date>2006-02-27</date>
2596
2597 <part>
2598 <title>Installing Gentoo</title>
2599 <abstract>
2600 In this part you learn how to install Gentoo on your system.
2601 </abstract>
2602
2603 <chapter>
2604 <title>About the Gentoo Linux Installation</title>
2605 <abstract>
2606 Users not familiar with Gentoo do not always know that choice is what
2607 Gentoo is all about.
2608 </abstract>
2609 <include href="hb-install-about.xml"/>
2610 </chapter>
2611
2612 <chapter>
2613 <title>Booting the Universal Installation CD</title>
2614 <abstract>
2615 Using our Universal Installation CD you can boot up your system into a running
2616 environment that allows you to install Gentoo.
2617 </abstract>
2618 <include href="hb-install-sparc-medium.xml"/>
2619 </chapter>
2620
2621 <chapter>
2622 <title>Configuring your Network</title>
2623 <abstract>
2624 If you need networking, this is the place where the network (and Internet
2625 connection) is configured.
2626 </abstract>
2627 <include href="hb-install-network.xml"/>
2628 </chapter>
2629
2630 <chapter>
2631 <title>Preparing the Disks</title>
2632 <abstract>
2633 To be able to install Gentoo, you must create the necessary partitions.
2634 This chapter describes how to partition a disk for future usage.
2635 </abstract>
2636 <include href="hb-install-sparc-disk.xml"/>
2637 </chapter>
2638
2639 <chapter>
2640 <title>Installing the Gentoo Installation Files</title>
2641 <abstract>
2642 In this chapter we describe how you extract a stage3 file and how to configure
2643 Portage.
2644 </abstract>
2645 <include href="hb-install-stage.xml"/>
2646 </chapter>
2647
2648 <chapter>
2649 <title>Chrooting into the Gentoo Base System</title>
2650 <abstract>
2651 Now that the stage3 file is extracted, we chroot into the new system and modify
2652 the USE variable.
2653 </abstract>
2654 <include href="hb-install-system.xml"/>
2655 </chapter>
2656
2657 <chapter>
2658 <title>Configuring the Kernel</title>
2659 <abstract>
2660 The Linux kernel is the core of every distribution. This chapter
2661 explains how to configure your kernel.
2662 </abstract>
2663 <include href="hb-install-sparc-kernel.xml"/>
2664 </chapter>
2665
2666 <chapter>
2667 <title>Configuring your System</title>
2668 <abstract>
2669 You need to edit some important configuration files. In this chapter
2670 you receive an overview of these files and an explanation on how to
2671 proceed.
2672 </abstract>
2673 <include href="hb-install-config.xml"/>
2674 </chapter>
2675
2676 <chapter>
2677 <title>Installing Necessary System Tools</title>
2678 <abstract>
2679 As mentioned before, Gentoo is about customization. In this chapter we help you
2680 choose and install some important tools.
2681 </abstract>
2682 <include href="hb-install-tools.xml"/>
2683 </chapter>
2684
2685 <chapter>
2686 <title>Configuring the Bootloader</title>
2687 <abstract>
2688 The SPARC architecture uses the SILO bootloader to fire up your Linux system. In
2689 this chapter we step you through the process of configuring this bootloader to
2690 your needs.
2691 </abstract>
2692 <include href="hb-install-sparc-bootloader.xml"/>
2693 </chapter>
2694
2695 <chapter>
2696 <title>Finalizing your Gentoo Installation</title>
2697 <abstract>
2698 You're almost done. We'll just create one (or more) users for your
2699 system and (optionally) install prebuilt packages.
2700 </abstract>
2701 <include href="hb-install-finalise.xml"/>
2702 </chapter>
2703
2704 <chapter>
2705 <title>Where to go from here?</title>
2706 <abstract>
2707 Now you have your Gentoo system, but what's next?
2708 </abstract>
2709 <include href="hb-install-next.xml"/>
2710 </chapter>
2711 </part>
2712
2713 <part>
2714 <title>Working with Gentoo</title>
2715 <abstract>
2716 Learn how to work with Gentoo: installing software, altering variables, changing
2717 Portage behaviour etc.
2718 </abstract>
2719
2720 <chapter>
2721 <title>A Portage Introduction</title>
2722 <abstract>
2723 This chapter explains the "simple" steps a user definitely needs to know to
2724 maintain the software on his system.
2725 </abstract>
2726 <include href="../hb-working-portage.xml"/>
2727 </chapter>
2728
2729 <chapter>
2730 <title>USE flags</title>
2731 <abstract>
2732 USE-flags are a very important aspect of Gentoo. In this chapter, you learn to
2733 work with USE-flags and understand how USE-flags interact with your system.
2734 </abstract>
2735 <include href="../hb-working-use.xml"/>
2736 </chapter>
2737
2738 <chapter>
2739 <title>Portage Features</title>
2740 <abstract>
2741 Discover the features Portage has, such as support for distributed compiling,
2742 ccache and more.
2743 </abstract>
2744 <include href="../hb-working-features.xml"/>
2745 </chapter>
2746
2747 <chapter>
2748 <title>Initscripts</title>
2749 <abstract>
2750 Gentoo uses a special initscript format which, amongst other features, allows
2751 dependency-driven decisions and virtual initscripts. This chapter explains all
2752 these aspects and explains how to deal with these scripts.
2753 </abstract>
2754 <include href="../hb-working-rcscripts.xml"/>
2755 </chapter>
2756
2757 <chapter>
2758 <title>Environment Variables</title>
2759 <abstract>
2760 With Gentoo you can easily manage the environment variables for your system.
2761 This chapter explains how you do that, and also describes frequently used
2762 variables.
2763 </abstract>
2764 <include href="../hb-working-variables.xml"/>
2765 </chapter>
2766 </part>
2767
2768 <part>
2769 <title>Working with Portage</title>
2770 <abstract>
2771 "Working with Portage" provides an in-depth coverage of Portage, Gentoo's
2772 Software Management Tool.
2773 </abstract>
2774
2775 <chapter>
2776 <title>Files and Directories</title>
2777 <abstract>
2778 Once you want to know Portage in-depth you need to know where it stores its
2779 files and data.
2780 </abstract>
2781 <include href="../hb-portage-files.xml"/>
2782 </chapter>
2783
2784 <chapter>
2785 <title>Configuring through Variables</title>
2786 <abstract>
2787 Portage is completely configurable through various variables you can set in the
2788 configuration file or as environment variable.
2789 </abstract>
2790 <include href="../hb-portage-configuration.xml"/>
2791 </chapter>
2792
2793 <chapter>
2794 <title>Mixing Software Branches</title>
2795 <abstract>
2796 Gentoo provides software separated in several branches, depending on stability
2797 and architectural support. "Mixing Software Branches" inform you how these
2798 branches can be configured and how you can override this separation
2799 individually.
2800 </abstract>
2801 <include href="../hb-portage-branches.xml"/>
2802 </chapter>
2803
2804 <chapter>
2805 <title>Additional Portage Tools</title>
2806 <abstract>
2807 Portage comes with a few extra tools that might make your Gentoo experience even
2808 better. Read on to discover how to use dispatch-conf and other tools.
2809 </abstract>
2810 <include href="../hb-portage-tools.xml"/>
2811 </chapter>
2812
2813 <chapter>
2814 <title>Diverting from the Official Tree</title>
2815 <abstract>
2816 "Diverting from the Official Tree" gives you some tips and tricks on how to use
2817 your own Portage tree, how to synchronise only the categories you want, inject
2818 packages and more.
2819 </abstract>
2820 <include href="../hb-portage-diverttree.xml"/>
2821 </chapter>
2822
2823 <chapter>
2824 <title>The Ebuild Application</title>
2825 <abstract>
2826 In "The Ebuild Application" you are informed about the steps Portage takes while
2827 installing software and how you can do this yourself using the ebuild
2828 application.
2829 </abstract>
2830 <include href="../hb-portage-ebuild.xml"/>
2831 </chapter>
2832 </part>
2833
2834 <part>
2835 <title>Gentoo Network Configuration</title>
2836 <abstract>A comprehensive guide to Networking in Gentoo.</abstract>
2837
2838 <chapter>
2839 <title>Getting Started</title>
2840 <abstract>
2841 A guide to quickly get your network interface up and running in most common
2842 environments.
2843 </abstract>
2844 <include href="../hb-net-start.xml"/>
2845 </chapter>
2846
2847 <chapter>
2848 <title>Advanced Configuration</title>
2849 <abstract>
2850 Here we learn about how the configuration works - you need to know this
2851 before we learn about modular networking.
2852 </abstract>
2853 <include href="../hb-net-advanced.xml"/>
2854 </chapter>
2855
2856 <chapter>
2857 <title>Modular Networking</title>
2858 <abstract>
2859 Gentoo provides you flexible networking - here you are told about choosing
2860 different DHCP clients, setting up bonding, bridging, VLANs and more.
2861 </abstract>
2862 <include href="../hb-net-modules.xml"/>
2863 </chapter>
2864
2865 <chapter>
2866 <title>Wireless Networking</title>
2867 <abstract>
2868 Wireless isn't straight-forward. Hopefully we'll get you working!
2869 </abstract>
2870 <include href="../hb-net-wireless.xml"/>
2871 </chapter>
2872
2873 <chapter>
2874 <title>Adding Functionality</title>
2875 <abstract>
2876 If you're feeling adventurous, you can add your own functions to networking.
2877 </abstract>
2878 <include href="../hb-net-functions.xml"/>
2879 </chapter>
2880
2881 <chapter>
2882 <title>Network Management</title>
2883 <abstract>
2884 For laptop users or people who move their computer around different networks.
2885 </abstract>
2886 <include href="../hb-net-management.xml"/>
2887 </chapter>
2888 </part>
2889
2890 </book>
2891
2892
2893
2894 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/handbook-x86.xml
2895
2896 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-x86.xml?rev=1.1&view=markup
2897 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-x86.xml?rev=1.1&content-type=text/plain
2898
2899 Index: handbook-x86.xml
2900 ===================================================================
2901 <?xml version='1.0' encoding='UTF-8'?>
2902 <!DOCTYPE book SYSTEM "/dtd/book.dtd">
2903
2904 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/handbook-x86.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
2905
2906 <book link="/doc/en/handbook/2006.1/handbook-x86.xml">
2907 <title>Gentoo Linux 2006.1 x86 Handbook</title>
2908
2909 <author title="Author">
2910 <mail link="swift@g.o">Sven Vermeulen</mail>
2911 </author>
2912 <author title="Author">
2913 <mail link="uberlord@g.o">Roy Marples</mail>
2914 </author>
2915 <author title="Author">
2916 <mail link="drobbins@g.o">Daniel Robbins</mail>
2917 </author>
2918 <author title="Author">
2919 <mail link="chouser@g.o">Chris Houser</mail>
2920 </author>
2921 <author title="Author">
2922 <mail link="jerry@g.o">Jerry Alexandratos</mail>
2923 </author>
2924 <author title="Author">
2925 <mail link="nightmorph@g.o">Joshua Saddler</mail>
2926 </author>
2927 <author title="Gentoo x86 Developer">
2928 <mail link="seemant@g.o">Seemant Kulleen</mail>
2929 </author>
2930 <author title="Gentoo Alpha Developer">
2931 <mail link="taviso@g.o">Tavis Ormandy</mail>
2932 </author><!-- Does not want to be listed on the rendered page
2933 <author title="Gentoo Developer">
2934 Aron Griffis
2935 </author>
2936 -->
2937 <author title="Gentoo AMD64 Developer">
2938 <mail link="jhuebel@g.o">Jason Huebel</mail>
2939 </author>
2940 <author title="Gentoo HPPA developer">
2941 <mail link="gmsoft@g.o">Guy Martin</mail>
2942 </author>
2943 <author title="Gentoo PPC developer">
2944 <mail link="pvdabeel@g.o">Pieter Van den Abeele</mail>
2945 </author>
2946 <author title="Gentoo SPARC developer">
2947 <mail link="blademan@g.o">Joe Kallar</mail>
2948 </author>
2949 <author title="Editor">
2950 <mail link="zhen@g.o">John P. Davis</mail>
2951 </author>
2952 <author title="Editor">Pierre-Henri Jondot</author>
2953 <author title="Editor">
2954 <mail link="stocke2@g.o">Eric Stockbridge</mail>
2955 </author>
2956 <author title="Editor">
2957 <mail link="rajiv@g.o">Rajiv Manglani</mail>
2958 </author>
2959 <author title="Editor">
2960 <mail link="seo@g.o">Jungmin Seo</mail>
2961 </author>
2962 <author title="Editor">
2963 <mail link="zhware@g.o">Stoyan Zhekov</mail>
2964 </author>
2965 <author title="Editor">
2966 <mail link="jhhudso@g.o">Jared Hudson</mail>
2967 </author>
2968 <author title="Editor">
2969 <mail link="peitolm@g.o">Colin Morey</mail>
2970 </author>
2971 <author title="Editor">
2972 <mail link="peesh@g.o">Jorge Paulo</mail>
2973 </author>
2974 <author title="Editor">
2975 <mail link="carl@g.o">Carl Anderson</mail>
2976 </author>
2977 <author title="Editor">
2978 <mail link="avenj@g.o">Jon Portnoy</mail>
2979 </author>
2980 <author title="Editor">
2981 <mail link="klasikahl@g.o">Zack Gilburd</mail>
2982 </author>
2983 <author title="Editor">
2984 <mail link="jmorgan@g.o">Jack Morgan</mail>
2985 </author>
2986 <author title="Editor">
2987 <mail link="bennyc@g.o">Benny Chuang</mail>
2988 </author>
2989 <author title="Editor">
2990 <mail link="erwin@g.o">Erwin</mail>
2991 </author>
2992 <author title="Editor">
2993 <mail link="kumba@g.o">Joshua Kinard</mail>
2994 </author>
2995 <author title="Editor">
2996 <mail link="dertobi123@g.o">Tobias Scherbaum</mail>
2997 </author>
2998 <author title="Editor">
2999 <mail link="neysx@g.o">Xavier Neys</mail>
3000 </author>
3001 <author title="Editor">
3002 <mail link="fox2mike@g.o">Shyam Mani</mail>
3003 </author>
3004 <author title="Reviewer">
3005 <mail link="g2boojum@g.o">Grant Goodyear</mail>
3006 </author>
3007 <author title="Reviewer">
3008 <mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail>
3009 </author>
3010 <author title="Reviewer">
3011 <mail link="dberkholz@g.o">Donnie Berkholz</mail>
3012 </author>
3013 <author title="Reviewer">
3014 <mail link="antifa@g.o">Ken Nowack</mail>
3015 </author>
3016 <author title="Contributor">
3017 <mail link="pylon@g.o">Lars Weiler</mail>
3018 </author>
3019
3020 <abstract>
3021 This is the Gentoo Handbook, an effort to centralise Gentoo/Linux information.
3022 This handbook contains the installation instructions for a networkless
3023 installation on x86 systems and parts about working with Gentoo and Portage.
3024 </abstract>
3025
3026 <!-- The content of this document is licensed under the CC-BY-SA license -->
3027 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
3028 <license/>
3029
3030 <version>6.0</version>
3031 <date>2006-02-27</date>
3032
3033 <part>
3034 <title>Installing Gentoo</title>
3035 <abstract>
3036 In this part you learn how to install Gentoo on your system.
3037 </abstract>
3038
3039 <chapter>
3040 <title>About the Gentoo Linux Installation</title>
3041 <abstract>
3042 Users not familiar with Gentoo do not always know that choice is what
3043 Gentoo is all about.
3044 </abstract>
3045 <include href="hb-installer-about.xml"/>
3046 </chapter>
3047
3048 <chapter>
3049 <title>Booting the Installer LiveCD</title>
3050 <abstract>
3051 Using our Installer LiveCD you can boot up your system into a running
3052 environment that allows you to install Gentoo.
3053 </abstract>
3054 <include href="hb-install-x86-medium.xml"/>
3055 </chapter>
3056
3057 <chapter>
3058 <title>Using the GTK+ based Gentoo Linux Installer</title>
3059 <abstract>
3060 You now have an option of using our graphical installer to install Gentoo.
3061 Configure the options you need through an easy to use GUI and you're ready to
3062 go.
3063 </abstract>
3064 <include href="hb-install-gtkfe.xml" />
3065 </chapter>
3066
3067 <chapter>
3068 <title>Using the Dialog based Gentoo Linux Installer</title>
3069 <abstract>
3070 You also have an option of using our text based installer to install Gentoo.
3071 Configure the options you need through an easy to use set of menus and you're
3072 ready to go.
3073 </abstract>
3074 <include href="hb-install-gli-dialog.xml" />
3075 </chapter>
3076
3077 <chapter>
3078 <title>Where to go from here?</title>
3079 <abstract>
3080 Now you have your Gentoo system, but what's next?
3081 </abstract>
3082 <include href="hb-install-next.xml"/>
3083 </chapter>
3084 </part>
3085
3086 <part>
3087 <title>Working with Gentoo</title>
3088 <abstract>
3089 Learn how to work with Gentoo: installing software, altering variables, changing
3090 Portage behaviour etc.
3091 </abstract>
3092
3093 <chapter>
3094 <title>A Portage Introduction</title>
3095 <abstract>
3096 This chapter explains the "simple" steps a user definitely needs to know to
3097 maintain the software on his system.
3098 </abstract>
3099 <include href="../hb-working-portage.xml"/>
3100 </chapter>
3101
3102 <chapter>
3103 <title>USE flags</title>
3104 <abstract>
3105 USE-flags are a very important aspect of Gentoo. In this chapter, you learn to
3106 work with USE-flags and understand how USE-flags interact with your system.
3107 </abstract>
3108 <include href="../hb-working-use.xml"/>
3109 </chapter>
3110
3111 <chapter>
3112 <title>Portage Features</title>
3113 <abstract>
3114 Discover the features Portage has, such as support for distributed compiling,
3115 ccache and more.
3116 </abstract>
3117 <include href="../hb-working-features.xml"/>
3118 </chapter>
3119
3120 <chapter>
3121 <title>Initscripts</title>
3122 <abstract>
3123 Gentoo uses a special initscript format which, amongst other features, allows
3124 dependency-driven decisions and virtual initscripts. This chapter explains all
3125 these aspects and explains how to deal with these scripts.
3126 </abstract>
3127 <include href="../hb-working-rcscripts.xml"/>
3128 </chapter>
3129
3130 <chapter>
3131 <title>Environment Variables</title>
3132 <abstract>
3133 With Gentoo you can easily manage the environment variables for your system.
3134 This chapter explains how you do that, and also describes frequently used
3135 variables.
3136 </abstract>
3137 <include href="../hb-working-variables.xml"/>
3138 </chapter>
3139 </part>
3140
3141 <part>
3142 <title>Working with Portage</title>
3143 <abstract>
3144 "Working with Portage" provides an in-depth coverage of Portage, Gentoo's
3145 Software Management Tool.
3146 </abstract>
3147
3148 <chapter>
3149 <title>Files and Directories</title>
3150 <abstract>
3151 Once you want to know Portage in-depth you need to know where it stores its
3152 files and data.
3153 </abstract>
3154 <include href="../hb-portage-files.xml"/>
3155 </chapter>
3156
3157 <chapter>
3158 <title>Configuring through Variables</title>
3159 <abstract>
3160 Portage is completely configurable through various variables you can set in the
3161 configuration file or as environment variable.
3162 </abstract>
3163 <include href="../hb-portage-configuration.xml"/>
3164 </chapter>
3165
3166 <chapter>
3167 <title>Mixing Software Branches</title>
3168 <abstract>
3169 Gentoo provides software separated in several branches, depending on stability
3170 and architectural support. "Mixing Software Branches" inform you how these
3171 branches can be configured and how you can override this separation
3172 individually.
3173 </abstract>
3174 <include href="../hb-portage-branches.xml"/>
3175 </chapter>
3176
3177 <chapter>
3178 <title>Additional Portage Tools</title>
3179 <abstract>
3180 Portage comes with a few extra tools that might make your Gentoo experience even
3181 better. Read on to discover how to use dispatch-conf and other tools.
3182 </abstract>
3183 <include href="../hb-portage-tools.xml"/>
3184 </chapter>
3185
3186 <chapter>
3187 <title>Diverting from the Official Tree</title>
3188 <abstract>
3189 "Diverting from the Official Tree" gives you some tips and tricks on how to use
3190 your own Portage tree, how to synchronise only the categories you want, inject
3191 packages and more.
3192 </abstract>
3193 <include href="../hb-portage-diverttree.xml"/>
3194 </chapter>
3195
3196 <chapter>
3197 <title>The Ebuild Application</title>
3198 <abstract>
3199 In "The Ebuild Application" you are informed about the steps Portage takes while
3200 installing software and how you can do this yourself using the ebuild
3201 application.
3202 </abstract>
3203 <include href="../hb-portage-ebuild.xml"/>
3204 </chapter>
3205 </part>
3206
3207 <part>
3208 <title>Gentoo Network Configuration</title>
3209 <abstract>A comprehensive guide to Networking in Gentoo.</abstract>
3210
3211 <chapter>
3212 <title>Getting Started</title>
3213 <abstract>
3214 A guide to quickly get your network interface up and running in most common
3215 environments.
3216 </abstract>
3217 <include href="../hb-net-start.xml"/>
3218 </chapter>
3219
3220 <chapter>
3221 <title>Advanced Configuration</title>
3222 <abstract>
3223 Here we learn about how the configuration works - you need to know this
3224 before we learn about modular networking.
3225 </abstract>
3226 <include href="../hb-net-advanced.xml"/>
3227 </chapter>
3228
3229 <chapter>
3230 <title>Modular Networking</title>
3231 <abstract>
3232 Gentoo provides you flexible networking - here you are told about choosing
3233 different DHCP clients, setting up bonding, bridging, VLANs and more.
3234 </abstract>
3235 <include href="../hb-net-modules.xml"/>
3236 </chapter>
3237
3238 <chapter>
3239 <title>Wireless Networking</title>
3240 <abstract>
3241 Wireless isn't straight-forward. Hopefully we'll get you working!
3242 </abstract>
3243 <include href="../hb-net-wireless.xml"/>
3244 </chapter>
3245
3246 <chapter>
3247 <title>Adding Functionality</title>
3248 <abstract>
3249 If you're feeling adventurous, you can add your own functions to networking.
3250 </abstract>
3251 <include href="../hb-net-functions.xml"/>
3252 </chapter>
3253
3254 <chapter>
3255 <title>Network Management</title>
3256 <abstract>
3257 For laptop users or people who move their computer around different networks.
3258 </abstract>
3259 <include href="../hb-net-management.xml"/>
3260 </chapter>
3261 </part>
3262
3263 </book>
3264
3265
3266
3267 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-about.xml
3268
3269 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-about.xml?rev=1.1&view=markup
3270 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-about.xml?rev=1.1&content-type=text/plain
3271
3272 Index: hb-install-about.xml
3273 ===================================================================
3274 <?xml version='1.0' encoding='UTF-8'?>
3275 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3276
3277 <!-- The content of this document is licensed under the CC-BY-SA license -->
3278 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
3279
3280 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-about.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
3281
3282 <sections>
3283
3284 <version>6.0</version>
3285 <date>2006-02-27</date>
3286
3287 <section>
3288 <title>Introduction</title>
3289 <subsection>
3290 <title>Welcome!</title>
3291 <body>
3292
3293 <p>
3294 First of all, <e>welcome</e> to Gentoo. You are about to enter the world
3295 of customization and performance. When installing Gentoo, this is made clear to
3296 you several times -- you can choose how much you want to compile yourself, how
3297 to install Gentoo, what system logger you want, etc.
3298 </p>
3299
3300 <p>
3301 Gentoo is a fast, modern meta-distribution with a clean and flexible
3302 design. Gentoo is built around free software and doesn't hide from its
3303 users what is beneath the hood. Portage, the package maintenance system
3304 which Gentoo uses, is written in Python, meaning you can easily view and
3305 modify the source code. Gentoo's packaging system uses source code
3306 (although support for precompiled packages is included too) and
3307 configuring Gentoo happens through regular text files. In other words,
3308 openness everywhere.
3309 </p>
3310
3311 <p>
3312 It is very important that you understand that <e>empowerment</e> is what makes
3313 Gentoo run. We try not to force anything on our users and try our best to
3314 empower you to make the choices you wish. If you feel a change should be made,
3315 please file a <uri link="http://bugs.gentoo.org">bug report</uri> about it.
3316 </p>
3317
3318 </body>
3319 </subsection>
3320 <subsection>
3321 <title>How is the Installation Structured?</title>
3322 <body>
3323
3324 <p>
3325 The Gentoo Installation can be seen as a 10-step procedure,
3326 corresponding to chapters 2 - 11. Every step results in
3327 a certain state:
3328 </p>
3329
3330 <ul>
3331 <li>
3332 After step 1, you are in a working environment ready to install Gentoo
3333 </li>
3334 <li>
3335 After step 2, your internet connection is prepared in case you need it (this
3336 is however optional)
3337 </li>
3338 <li>
3339 After step 3, your hard disks are initialized to house your Gentoo
3340 installation
3341 </li>
3342 <li>
3343 After step 4, your installation environment is prepared and you are
3344 ready to chroot into the new environment
3345 </li>
3346 <li>
3347 After step 5, core packages, which are the same on all Gentoo
3348 installations, are installed
3349 </li>
3350 <li>
3351 After step 6, you have compiled your Linux kernel
3352 </li>
3353 <li>
3354 After step 7, you have written most of your Gentoo system
3355 configuration files
3356 </li>
3357 <li>
3358 After step 8, necessary system tools (which you can choose from a nice
3359 list) are installed
3360 </li>
3361 <li>
3362 After step 9, your choice of bootloader has been installed and
3363 configured and you are logged in into your new Gentoo installation
3364 </li>
3365 <li>
3366 After step 10, your Gentoo Linux environment is ready to be explored
3367 </li>
3368 </ul>
3369
3370 <p>
3371 When you are given a certain choice, we try our best to explain what the pros
3372 and cons are. We will continue then with a default
3373 choice, identified by &quot;Default: &quot; in the title. The other
3374 possibilities are marked by &quot;Alternative: &quot;. Do <e>not</e>
3375 think that the default is what we recommend. It is however what we
3376 believe most users will use.
3377 </p>
3378
3379 <p>
3380 Sometimes you can pursue an optional step. Such steps are marked as
3381 &quot;Optional: &quot; and are therefore not needed to install Gentoo.
3382 However, some optional steps are dependant on a previous decision you
3383 made. We will inform you when this happens, both when you make the
3384 decision, and right before the optional step is described.
3385 </p>
3386
3387 </body>
3388 </subsection>
3389 <subsection>
3390 <title>What are my Options?</title>
3391 <body>
3392
3393 <p>
3394 You can install Gentoo in many different ways. You can download and install from
3395 one of our Installation CDs, from an existing distribution,
3396 from a bootable CD (such as Knoppix), from a netbooted environment, from a
3397 rescue floppy, etc.
3398 </p>
3399
3400 <p>
3401 This document covers the installation using a Gentoo Linux Installation CD, a
3402 bootable CD that contains everything you need to get Gentoo Linux up and
3403 running. There are two types of Installation CDs, the InstallCD and the
3404 Installer LiveCD. The InstallCD is a minimal environment which contains only
3405 those packages necessary for installing Gentoo Linux. The LiveCD is a complete
3406 Gentoo Linux environment and can be used for multiple tasks, one of which is
3407 installing Gentoo Linux. The LiveCD is not available on all architectures at
3408 this time. If your architecture does not have a LiveCD, then this document will
3409 refer to the Universal InstallCD for you.
3410 </p>
3411
3412 <p>
3413 This installation approach however does not immediately use the latest version
3414 of the available packages; if you want this you should check out the
3415 Installation Instructions inside our <uri
3416 link="/doc/en/handbook/index.xml">Gentoo Linux Handbooks</uri>.
3417 </p>
3418
3419 <p>
3420 For help on the other installation approaches,
3421 please read our <uri link="/doc/en/altinstall.xml">Alternative Installation
3422 Guide</uri>. We also provide a <uri
3423 link="/doc/en/gentoo-x86-tipsntricks.xml">Gentoo Installation Tips &amp;
3424 Tricks</uri> document that might be useful to read as well. If you feel that
3425 the current installation instructions are too elaborate, feel free to use our
3426 Quick Installation Guide available from our <uri
3427 link="/doc/en/index.xml">Documentation Resources</uri> if your architecture
3428 has such a document available.
3429 </p>
3430
3431 </body>
3432 </subsection>
3433 <subsection>
3434 <title>Troubles?</title>
3435 <body>
3436
3437 <p>
3438 If you find a problem in the installation (or in the installation
3439 documentation), please check the errata from our <uri
3440 link="/proj/en/releng/">Gentoo Release Engineering Project</uri>,
3441 visit our <uri link="http://bugs.gentoo.org">bug tracking
3442 system</uri> and check if the bug is known. If not, please create a bug report
3443 for it so we can take care of it. Do not be afraid of the developers who are
3444 assigned to (your) bugs -- they generally don't eat people.
3445 </p>
3446
3447 <p>
3448 Note though that, although the document you are now reading is
3449 architecture-specific, it will contain references to other architectures as
3450 well. This is due to the fact that large parts of the Gentoo Handbook use source
3451 code that is common for all architectures (to avoid duplication of efforts and
3452 starvation of development resources). We will try to keep this to a minimum
3453 to avoid confusion.
3454 </p>
3455
3456 <p>
3457 If you are uncertain if the problem is a user-problem (some error you
3458 made despite having read the documentation carefully) or a
3459 software-problem (some error we made despite having tested the
3460 installation/documentation carefully) you are free to join #gentoo on
3461 irc.freenode.net. Of course, you are welcome otherwise too :)
3462 </p>
3463
3464 <p>
3465 If you have a question regarding Gentoo, check out our <uri
3466 link="/doc/en/faq.xml">Frequently Asked
3467 Questions</uri>, available from the <uri
3468 link="/doc/en/">Gentoo Documentation</uri>. You can
3469 also view the <uri
3470 link="http://forums.gentoo.org/viewforum.php?f=40">FAQs</uri> on our
3471 <uri link="http://forums.gentoo.org">forums</uri>. If you can't find the answer
3472 there ask on #gentoo, our IRC-channel on irc.freenode.net. Yes, several of
3473 us are freaks who sit on IRC :-)
3474 </p>
3475
3476 </body>
3477 </subsection>
3478 </section>
3479 <section>
3480 <title>Fast Installation using the Gentoo Reference Platform</title>
3481 <subsection>
3482 <title>What is the Gentoo Reference Platform?</title>
3483 <body>
3484
3485 <p>
3486 The Gentoo Reference Platform, from now on abbreviated to GRP, is a snapshot of
3487 prebuilt packages users (that means you!) can install during the installation
3488 of Gentoo to speed up the installation process. The GRP consists of all
3489 packages required to have a fully functional Gentoo installation. They are not
3490 just the ones you need to have a base installation up to speed in no time, but
3491 all lengthier builds (such as xorg-x11, GNOME, OpenOffice, Mozilla, ...)
3492 are available as GRP packages too.
3493 </p>
3494
3495 <p>
3496 However, these prebuilt packages aren't maintained during the lifetime of the
3497 Gentoo distribution. They are snapshots released at every Gentoo release and
3498 make it possible to have a functional environment in a short amount of time. You
3499 can then upgrade your system in the background while working in your Gentoo
3500 environment.
3501 </p>
3502
3503 </body>
3504 </subsection>
3505 <subsection>
3506 <title>How Portage Handles GRP Packages</title>
3507 <body>
3508
3509 <p>
3510 Your Portage tree - the collection of <e>ebuilds</e> (files that contain all
3511 information about a package, such as its description, homepage, sourcecode URLs,
3512 compilation instructions, dependencies, etc.) - must be synchronised with the
3513 GRP set: the versions of the available ebuilds and their accompanying GRP
3514 packages must match.
3515 </p>
3516
3517 <p>
3518 For this reason you can only benefit from the GRP packages Gentoo provides while
3519 performing the current installation approach. GRP is not available for those
3520 interested in performing an installation using the latest versions of all
3521 available packages.
3522 </p>
3523
3524 </body>
3525 </subsection>
3526 <subsection>
3527 <title>Is GRP Available?</title>
3528 <body>
3529
3530 <p>
3531 Not all architectures provide GRP packages. That doesn't mean GRP isn't
3532 supported on the other architectures, but it means that we don't have the
3533 resources to build and test the GRP packages.
3534 </p>
3535
3536 <p>
3537 At present we provide GRP packages for the following architectures:
3538 </p>
3539
3540 <ul>
3541 <li>
3542 The <b>amd64</b> architecture (amd64)
3543 </li>
3544 <li>
3545 The <b>ppc</b> architecture (ppc32, ppc64)
3546 </li>
3547 <li>
3548 The <b>sparc</b> architecture (sparc64)
3549 </li>
3550 <li>
3551 The <b>x86</b> architecture (athlon, athlon-xp, athlon-mp, pentium-pro,
3552 pentium2, pentium3, pentium4 and pentium-m) Note: The packages are for i686
3553 and are available on the Installer LiveCD.
3554 </li>
3555 </ul>
3556
3557 <p>
3558 If your architecture (or subarchitecture) isn't on this list, you are not
3559 able to opt for a GRP installation.
3560 </p>
3561
3562 <p>
3563 Now that this introduction is over, let's continue with <uri
3564 link="?part=1&amp;chap=2">Booting the Universal InstallCD/Installer
3565 LiveCD</uri>.
3566 </p>
3567
3568 </body>
3569 </subsection>
3570 </section>
3571 </sections>
3572
3573
3574
3575 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-alpha-bootloader.xml
3576
3577 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-alpha-bootloader.xml?rev=1.1&view=markup
3578 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-alpha-bootloader.xml?rev=1.1&content-type=text/plain
3579
3580 Index: hb-install-alpha-bootloader.xml
3581 ===================================================================
3582 <?xml version='1.0' encoding='UTF-8'?>
3583 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3584
3585 <!-- The content of this document is licensed under the CC-BY-SA license -->
3586 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
3587
3588 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-alpha-bootloader.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
3589
3590 <sections>
3591
3592 <version>6.1</version>
3593 <date>2006-06-20</date>
3594
3595 <section>
3596 <title>Making your Choice</title>
3597 <subsection>
3598 <title>Introduction</title>
3599 <body>
3600
3601 <p>
3602 Now that your kernel is configured and compiled and the necessary system
3603 configuration files are filled in correctly, it is time to install a
3604 program that will fire up your kernel when you start the system. Such a
3605 program is called a <e>bootloader</e>.
3606 </p>
3607
3608 <p>
3609 Several bootloaders exist for Linux/Alpha. You must choose one of the supported
3610 bootloaders, not all. You have the choice between <uri link="#aboot">aBoot</uri>
3611 and <uri link="#milo">MILO</uri>.
3612 </p>
3613
3614 </body>
3615 </subsection>
3616 </section>
3617 <section id="aboot">
3618 <title>Default: Using aboot</title>
3619 <body>
3620
3621 <note>
3622 <c>aboot</c> only supports booting from <b>ext2</b> and <b>ext3</b>
3623 partitions.
3624 </note>
3625
3626 <p>
3627 We first install aboot on our system. Of course we use <c>emerge</c> to
3628 do so:
3629 </p>
3630
3631 <pre caption = "Installing aboot">
3632 # <i>emerge --usepkg aboot</i>
3633 </pre>
3634
3635 <p>
3636 The next step is to make our bootdisk bootable. This will start
3637 <c>aboot</c> when you boot your system. We make our bootdisk bootable by
3638 writing the <c>aboot</c> bootloader to the start of the disk.
3639 </p>
3640
3641 <pre caption = "Making your bootdisk bootable">
3642 # <i>swriteboot -f3 /dev/sda /boot/bootlx</i>
3643 # <i>abootconf /dev/sda 2</i>
3644 </pre>
3645
3646 <note>
3647 If you use a different partitioning scheme than the one we use
3648 throughout this chapter, you have to change the commands accordingly.
3649 Please read the appropriate manual pages (<c>man 8 swriteboot</c> and
3650 <c>man 8 abootconf</c>). Also, if your root filesystem uses the JFS filesystem,
3651 make sure to pass the <c>ro</c> kernel option so that it can replay its log
3652 before it gets mounted read-write.
3653 </note>
3654
3655 <p>
3656 Additionally, you can make Gentoo boot automatically by setting up the
3657 aboot configuration file and some SRM variables. You can try setting
3658 these variables from Linux, but it may be easier to do so from the SRM
3659 console itself.
3660 </p>
3661
3662 <pre caption = "Automatically booting Gentoo">
3663 # <i>echo '0:2/boot/vmlinux.gz root=/dev/sda2' &gt; /etc/aboot.conf</i>
3664 # <i>cd /proc/srm_environment/named_variables</i>
3665 # <i>echo -n 0 &gt; boot_osflags</i>
3666 # <i>echo -n '' &gt; boot_file</i>
3667 # <i>echo -n 'BOOT' &gt; auto_action</i>
3668 # <i>echo -n 'dkc100' &gt; bootdef_dev</i>
3669 <comment>(Substitute dkc100 with whatever your boot device is)</comment>
3670 </pre>
3671
3672 <p>
3673 If you need to get into the SRM console again in the future (to recover
3674 your Gentoo install, play with some variables, or whatever), just hit
3675 CTRL+C to abort the automatic loading process.
3676 </p>
3677
3678 <p>
3679 If you're installing using a serial console, don't forget to include
3680 the serial console boot flag in <path>aboot.conf</path>. See
3681 <path>/etc/aboot.conf.example</path> for some further information.
3682 </p>
3683
3684 <p>
3685 Aboot is now configured and ready to use. Continue with <uri
3686 link="#reboot">Rebooting the System</uri>.
3687 </p>
3688
3689 </body>
3690 </section>
3691 <section id="milo">
3692 <title>Alternative: Using MILO</title>
3693 <body>
3694
3695 <p>
3696 Before continuing, you should decide on how to use MILO. In this
3697 section, we will assume that you want to make a MILO boot floppy. If you
3698 are going to boot from an MS-DOS partition on your hard disk, you should
3699 amend the commands appropriately.
3700 </p>
3701
3702 <p>
3703 To install MILO, we use <c>emerge</c>.
3704 </p>
3705
3706 <pre caption = "Installing MILO">
3707 # <i>emerge --usepkg milo</i>
3708 </pre>
3709
3710 <p>
3711 After MILO has been installed, the MILO images should be in
3712 <path>/opt/milo</path>. The commands below make a bootfloppy for use
3713 with MILO. Remember to use the correct image for your Alpha-system.
3714 </p>
3715
3716 <pre caption = "Installing MILO on a floppy">
3717 <comment>(First insert a blank floppy)</comment>
3718 # <i>fdformat /dev/fd0</i>
3719 # <i>mformat a:</i>
3720 # <i>mcopy /opt/milo/milo-2.2-18-gentoo-ruffian a:\milo</i>
3721 # <i>mcopy /opt/milo/linload.exe a:\lilnload.exe</i>
3722 <comment>(Only if you have a Ruffian:</comment>
3723 # <i>mcopy /opt/milo/ldmilo.exe a:\ldmilo.exe</i>
3724 <comment>)</comment>
3725 # <i>echo -ne '\125\252' | dd of=/dev/fd0 bs=1 seek=510 count=2</i>
3726 </pre>
3727
3728 <p>
3729 Your MILO boot floppy is now ready to boot Gentoo Linux. You may need to
3730 set environment variables in your ARCS Firmware to get MILO to start;
3731 this is all explained in the <uri
3732 link="http://tldp.org/HOWTO/MILO-HOWTO/">MILO-HOWTO</uri> with some examples
3733 on common systems, and examples of the commands to use in interactive mode.
3734 </p>
3735
3736 <p>
3737 Not reading the <uri link="http://tldp.org/HOWTO/MILO-HOWTO/">MILO-HOWTO</uri>
3738 is a <e>bad</e> idea.
3739 </p>
3740
3741 <p>
3742 Now continue with <uri link="#reboot">Rebooting the System</uri>.
3743 </p>
3744
3745 </body>
3746 </section>
3747 <section id="reboot">
3748 <title>Rebooting the System</title>
3749 <subsection>
3750 <body>
3751
3752 <p>
3753 Exit the chrooted environment and unmount all mounted partitions. Then type in
3754 that one magical command you have been waiting for: <c>reboot</c>.
3755 </p>
3756
3757 <pre caption="Exiting the chroot, unmounting all partitions and rebooting">
3758 # <i>exit</i>
3759 cdimage ~# <i>cd</i>
3760 cdimage ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo</i>
3761 cdimage ~# <i>reboot</i>
3762 </pre>
3763
3764 <p>
3765 Of course, don't forget to remove the bootable CD, otherwise the CD will be
3766 booted again instead of your new Gentoo system.
3767 </p>
3768
3769 <p>
3770 Once rebooted in your Gentoo installation, finish up with <uri
3771 link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
3772 </p>
3773
3774 </body>
3775 </subsection>
3776 </section>
3777
3778 </sections>
3779
3780
3781
3782 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-alpha-disk.xml
3783
3784 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-alpha-disk.xml?rev=1.1&view=markup
3785 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-alpha-disk.xml?rev=1.1&content-type=text/plain
3786
3787 Index: hb-install-alpha-disk.xml
3788 ===================================================================
3789 <?xml version='1.0' encoding='UTF-8'?>
3790 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3791
3792 <!-- The content of this document is licensed under the CC-BY-SA license -->
3793 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
3794
3795 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-alpha-disk.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
3796
3797 <sections>
3798
3799 <version>6.1</version>
3800 <date>2006-06-20</date>
3801
3802 <section>
3803 <title>Introduction to Block Devices</title>
3804 <subsection>
3805 <title>Block Devices</title>
3806 <body>
3807
3808 <p>
3809 We'll take a good look at disk-oriented aspects of Gentoo Linux
3810 and Linux in general, including Linux filesystems, partitions and block devices.
3811 Then, once you're familiar with the ins and outs of disks and filesystems,
3812 you'll be guided through the process of setting up partitions and filesystems
3813 for your Gentoo Linux installation.
3814 </p>
3815
3816 <p>
3817 To begin, we'll introduce <e>block devices</e>. The most famous block device is
3818 probably the one that represents the first SCSI HD in a Linux system, namely
3819 <path>/dev/sda</path>.
3820 </p>
3821
3822 <p>
3823 The block devices above represent an abstract interface to the disk. User
3824 programs can use these block devices to interact with your disk without worrying
3825 about whether your drives are IDE, SCSI or something else. The program can
3826 simply address the storage on the disk as a bunch of contiguous,
3827 randomly-accessible 512-byte blocks.
3828 </p>
3829
3830 </body>
3831 </subsection>
3832 <subsection>
3833 <title>Slices</title>
3834 <body>
3835
3836 <p>
3837 Although it is theoretically possible to use a full disk to house your Linux
3838 system, this is almost never done in practice. Instead, full disk block devices
3839 are split up in smaller, more manageable block devices. On Alpha systems,
3840 these are called <e>slices</e>.
3841 </p>
3842
3843 </body>
3844 </subsection>
3845 </section>
3846 <section>
3847 <title>Designing a Partitioning Scheme</title>
3848 <subsection>
3849 <title>Default Partitioning Scheme</title>
3850 <body>
3851
3852 <p>
3853 As an example we use the following slice layout:
3854 </p>
3855
3856 <table>
3857 <tr>
3858 <th>Slice</th>
3859 <th>Description</th>
3860 </tr>
3861 <tr>
3862 <ti><path>/dev/sda1</path></ti>
3863 <ti>Swap slice</ti>
3864 </tr>
3865 <tr>
3866 <ti><path>/dev/sda2</path></ti>
3867 <ti>Root slice</ti>
3868 </tr>
3869 <tr>
3870 <ti><path>/dev/sda3</path></ti>
3871 <ti>Full disk (required)</ti>
3872 </tr>
3873 </table>
3874
3875
3876 <p>
3877 If you are interested in knowing how big a partition should be, or even how
3878 many partitions (or volumes) you need, read on. Otherwise continue now with
3879 <uri link="#fdisk_SRM">Using fdisk to Partition your Disk (SRM only)</uri>
3880 or <uri link="#fdisk_ARC">Using fdisk to Partition your Disk (ARC/AlphaBIOS
3881 only)</uri>.
3882 </p>
3883
3884 </body>
3885 </subsection>
3886 <subsection>
3887 <title>How Many and How Big?</title>
3888 <body>
3889
3890 <p>
3891 The number of partitions is highly dependent on your environment. For instance,
3892 if you have lots of users, you will most likely want to have your
3893 <path>/home</path> separate as it increases security and makes backups easier.
3894 If you are installing Gentoo to perform as a mailserver, your
3895 <path>/var</path> should be separate as all mails are stored inside
3896 <path>/var</path>. A good choice of filesystem will then maximise your
3897 performance. Gameservers will have a separate <path>/opt</path> as most gaming
3898 servers are installed there. The reason is similar for <path>/home</path>:
3899 security and backups. You will definitely want to keep <path>/usr</path> big:
3900 not only will it contain the majority of applications, the Portage tree alone
3901 takes around 500 Mbyte excluding the various sources that are stored in it.
3902 </p>
3903
3904 <p>
3905 As you can see, it very much depends on what you want to achieve. Separate
3906 partitions or volumes have the following advantages:
3907 </p>
3908
3909 <ul>
3910 <li>
3911 You can choose the best performing filesystem for each partition or volume
3912 </li>
3913 <li>
3914 Your entire system cannot run out of free space if one defunct tool is
3915 continuously writing files to a partition or volume
3916 </li>
3917 <li>
3918 If necessary, file system checks are reduced in time, as multiple checks can
3919 be done in parallel (although this advantage is more with multiple disks than
3920 it is with multiple partitions)
3921 </li>
3922 <li>
3923 Security can be enhanced by mounting some partitions or volumes read-only,
3924 nosuid (setuid bits are ignored), noexec (executable bits are ignored) etc.
3925 </li>
3926 </ul>
3927
3928 <p>
3929 However, multiple partitions have one big disadvantage: if not configured
3930 properly, you might result in having a system with lots
3931 of free space on one partition and none on another.
3932 </p>
3933
3934 </body>
3935 </subsection>
3936 </section>
3937 <section id="fdisk_SRM">
3938 <title>Using fdisk to Partition your Disk (SRM only)</title>
3939 <subsection>
3940 <body>
3941
3942 <p>
3943 The following parts explain how to create the example slice layout described
3944 previously, namely:
3945 </p>
3946
3947 <table>
3948 <tr>
3949 <th>Slice</th>
3950 <th>Description</th>
3951 </tr>
3952 <tr>
3953 <ti><path>/dev/sda1</path></ti>
3954 <ti>Swap slice</ti>
3955 </tr>
3956 <tr>
3957 <ti><path>/dev/sda2</path></ti>
3958 <ti>Root slice</ti>
3959 </tr>
3960 <tr>
3961 <ti><path>/dev/sda3</path></ti>
3962 <ti>Full disk (required)</ti>
3963 </tr>
3964 </table>
3965
3966 <p>
3967 Change your slice layout according to your own preference.
3968 </p>
3969
3970
3971 </body>
3972 </subsection>
3973 <subsection>
3974 <title>Identifying Available Disks</title>
3975 <body>
3976
3977 <p>
3978 To figure out what disks you have running, use the following commands:
3979 </p>
3980
3981 <pre caption="Identifying available disks">
3982 # <i>dmesg | grep 'drive$'</i> <comment>(For IDE disks)</comment>
3983 # <i>dmesg | grep 'scsi'</i> <comment>(For SCSI disks)</comment>
3984 </pre>
3985
3986 <p>
3987 >From this output you should be able to see what disks were detected and their
3988 respective <path>/dev</path> entry. In the following parts we assume that the
3989 disk is a SCSI disk on <path>/dev/sda</path>.
3990 </p>
3991
3992 <p>
3993 Now fire up <c>fdisk</c>:
3994 </p>
3995
3996 <pre caption="Starting fdisk">
3997 # <i>fdisk /dev/sda</i>
3998 </pre>
3999
4000 </body>
4001 </subsection>
4002 <subsection>
4003 <title>Deleting All Slices</title>
4004 <body>
4005
4006 <p>
4007 If your hard drive is completely blank, then you'll have to first create
4008 a BSD disklabel.
4009 </p>
4010
4011 <pre caption="Creating a BSD disklabel">
4012 Command (m for help): <i>b</i>
4013 /dev/sda contains no disklabel.
4014 Do you want to create a disklabel? (y/n) <i>y</i>
4015 <comment>A bunch of drive-specific info will show here</comment>
4016 3 partitions:
4017 # start end size fstype [fsize bsize cpg]
4018 c: 1 5290* 5289* unused 0 0
4019 </pre>
4020
4021 <p>
4022 We start with deleting all slices <e>except</e> the 'c'-slice (a requirement
4023 for using BSD disklabels). The following shows how to delete a slice (in
4024 the example we use 'a'). Repeat the process to delete all other slices
4025 (again, except the 'c'-slice).
4026 </p>
4027
4028 <p>
4029 Use <c>p</c> to view all existing slices. <c>d</c> is used to delete a slice.
4030 </p>
4031
4032 <pre caption="Deleting a slice">
4033 BSD disklabel command (m for help): <i>p</i>
4034
4035 8 partitions:
4036 # start end size fstype [fsize bsize cpg]
4037 a: 1 235* 234* 4.2BSD 1024 8192 16
4038 b: 235* 469* 234* swap
4039 c: 1 5290* 5289* unused 0 0
4040 d: 469* 2076* 1607* unused 0 0
4041 e: 2076* 3683* 1607* unused 0 0
4042 f: 3683* 5290* 1607* unused 0 0
4043 g: 469* 1749* 1280 4.2BSD 1024 8192 16
4044 h: 1749* 5290* 3541* unused 0 0
4045
4046 BSD disklabel command (m for help): <i>d</i>
4047 Partition (a-h): <i>a</i>
4048 </pre>
4049
4050 <p>
4051 After repeating this process for all slices, a listing should show you something
4052 similar to this:
4053 </p>
4054
4055 <pre caption="Viewing an empty scheme">
4056 BSD disklabel command (m for help): <i>p</i>
4057
4058 3 partitions:
4059 # start end size fstype [fsize bsize cpg]
4060 c: 1 5290* 5289* unused 0 0
4061 </pre>
4062
4063 </body>
4064 </subsection>
4065 <subsection>
4066 <title>Creating the Swap Slice</title>
4067 <body>
4068
4069 <p>
4070 On Alpha based systems you don't need a separate boot partition. However, the
4071 first cylinder cannot be used as the <c>aboot</c> image will be placed there.
4072 </p>
4073
4074 <p>
4075 We will create a swap slice starting at the third cylinder, with a total
4076 size of 1 GB. Use <c>n</c> to create a new slice. After creating the slice,
4077 we will change its type to <c>1</c> (one), meaning <e>swap</e>.
4078 </p>
4079
4080 <pre caption="Creating the swap slice">
4081 BSD disklabel command (m for help): <i>n</i>
4082 Partition (a-p): <i>a</i>
4083 First cylinder (1-5290, default 1): <i>3</i>
4084 Last cylinder or +size or +sizeM or +sizeK (3-5290, default 5290): <i>+1024M</i>
4085
4086 BSD disklabel command (m for help): <i>t</i>
4087 Partition (a-c): <i>a</i>
4088 Hex code (type L to list codes): <i>1</i>
4089 </pre>
4090
4091 <p>
4092 After these steps you should see a layout similar to the following:
4093 </p>
4094
4095 <pre caption="Slice layout after creating the swap slice">
4096 BSD disklabel command (m for help): <i>p</i>
4097
4098 3 partitions:
4099 # start end size fstype [fsize bsize cpg]
4100 a: 3 1003 1001 swap
4101 c: 1 5290* 5289* unused 0 0
4102 </pre>
4103
4104 </body>
4105 </subsection>
4106 <subsection>
4107 <title>Create the Root Slice</title>
4108 <body>
4109
4110 <p>
4111 We will now create the root slice, starting from the first cylinder <e>after</e>
4112 the swap slice. Use the <c>p</c> command to view where the swap slice ends. In
4113 our example, this is at 1003, making the root partition start at 1004.
4114 </p>
4115
4116 <p>
4117 Another problem is that there is currently a bug in <c>fdisk</c> making it think
4118 the number of available cylinders is one above the real number of cylinders. In
4119 other words, when you are asked for the last cylinder, decrease the cylinder
4120 number (in this example: 5290) with one.
4121 </p>
4122
4123 <p>
4124 When the partition is created, we change the type to <c>8</c>, for <e>ext2</e>.
4125 </p>
4126
4127 <pre caption="Creating the root slice">
4128 D disklabel command (m for help): <i>n</i>
4129 Partition (a-p): <i>b</i>
4130 First cylinder (1-5290, default 1): <i>1004</i>
4131 Last cylinder or +size or +sizeM or +sizeK (1004-5290, default 5290): <i>5289</i>
4132
4133 BSD disklabel command (m for help): <i>t</i>
4134 Partition (a-c): <i>b</i>
4135 Hex code (type L to list codes): <i>8</i>
4136 </pre>
4137
4138 <p>
4139 Your slice layout should now be similar to this:
4140 </p>
4141
4142 <pre caption="Viewing the slice layout">
4143 BSD disklabel command (m for help): <i>p</i>
4144
4145 3 partitions:
4146 # start end size fstype [fsize bsize cpg]
4147 a: 3 1003 1001 swap
4148 b: 1004 5289 4286 ext2
4149 c: 1 5290* 5289* unused 0 0
4150 </pre>
4151
4152 </body>
4153 </subsection>
4154 <subsection>
4155 <title>Save the Slice Layout and Exit</title>
4156 <body>
4157
4158 <p>
4159 Save <c>fdisk</c> by typing <c>w</c>. This will also save your slice layout.
4160 </p>
4161
4162 <pre caption="Save and exit fdisk">
4163 Command (m for help): <i>w</i>
4164 </pre>
4165
4166 <p>
4167 Now that your slices are created, you can now continue with <uri
4168 link="#filesystems">Creating Filesystems</uri>.
4169 </p>
4170
4171 </body>
4172 </subsection>
4173 </section>
4174 <section id="fdisk_ARC">
4175 <title>Using fdisk to Partition your Disk (ARC/AlphaBIOS only)</title>
4176 <subsection>
4177 <body>
4178
4179 <p>
4180 The following parts explain how to partition the disk with a layout
4181 similar to the one described previously, namely:
4182 </p>
4183
4184 <table>
4185 <tr>
4186 <th>Partition</th>
4187 <th>Description</th>
4188 </tr>
4189 <tr>
4190 <ti><path>/dev/sda1</path></ti>
4191 <ti>Boot partition</ti>
4192 </tr>
4193 <tr>
4194 <ti><path>/dev/sda2</path></ti>
4195 <ti>Swap partition</ti>
4196 </tr>
4197 <tr>
4198 <ti><path>/dev/sda3</path></ti>
4199 <ti>Root partition</ti>
4200 </tr>
4201 </table>
4202
4203 <p>
4204 Change your partition layout according to your own preference.
4205 </p>
4206
4207 </body>
4208 </subsection>
4209 <subsection>
4210 <title>Identifying Available Disks</title>
4211 <body>
4212
4213 <p>
4214 To figure out what disks you have running, use the following commands:
4215 </p>
4216
4217 <pre caption="Identifying available disks">
4218 # <i>dmesg | grep 'drive$'</i> <comment>(For IDE disks)</comment>
4219 # <i>dmesg | grep 'scsi'</i> <comment>(For SCSI disks)</comment>
4220 </pre>
4221
4222 <p>
4223 >From this output you should be able to see what disks were detected and their
4224 respective <path>/dev</path> entry. In the following parts we assume that the
4225 disk is a SCSI disk on <path>/dev/sda</path>.
4226 </p>
4227
4228 <p>
4229 Now fire up <c>fdisk</c>:
4230 </p>
4231
4232 <pre caption="Starting fdisk">
4233 # <i>fdisk /dev/sda</i>
4234 </pre>
4235
4236 </body>
4237 </subsection>
4238 <subsection>
4239 <title>Deleting All Partitions</title>
4240 <body>
4241
4242 <p>
4243 If your hard drive is completely blank, then you'll have to first create
4244 a DOS disklabel.
4245 </p>
4246
4247 <pre caption="Creating a DOS disklabel">
4248 Command (m for help): <i>o</i>
4249 Building a new DOS disklabel.
4250 </pre>
4251
4252 <p>
4253 We start with deleting all partitions. The following shows how to delete
4254 a partition (in the example we use '1'). Repeat the process to delete all
4255 other partitions.
4256 </p>
4257
4258 <p>
4259 Use <c>p</c> to view all existing partitions. <c>d</c> is used to delete a
4260 partition.
4261 </p>
4262
4263 <pre caption="Deleting a partition">
4264 command (m for help): <i>p</i>
4265
4266 Disk /dev/sda: 9150 MB, 9150996480 bytes
4267 64 heads, 32 sectors/track, 8727 cylinders
4268 Units = cylinders of 2048 * 512 = 1048576 bytes
4269
4270 Device Boot Start End Blocks Id System
4271 /dev/sda1 1 478 489456 83 Linux
4272 /dev/sda2 479 8727 8446976 5 Extended
4273 /dev/sda5 479 1433 977904 83 Linux Swap
4274 /dev/sda6 1434 8727 7469040 83 Linux
4275
4276 command (m for help): <i>d</i>
4277 Partition number (1-6): <i>1</i>
4278 </pre>
4279
4280
4281 </body>
4282 </subsection>
4283 <subsection>
4284 <title>Creating the Boot Partition</title>
4285 <body>
4286
4287 <p>
4288 On Alpha systems which use MILO to boot, we have to create a small vfat
4289 boot partition.
4290 </p>
4291
4292 <pre caption="Creating the boot partition">
4293 Command (m for help): <i>n</i>
4294 Command action
4295 e extended
4296 p primary partition (1-4)
4297 <i>p</i>
4298 Partition number (1-4): <i>1</i>
4299 First cylinder (1-8727, default 1): <i>1</i>
4300 Last cylinder or +size or +sizeM or +sizeK (1-8727, default 8727): <i>+16M</i>
4301
4302 Command (m for help): <i>t</i>
4303 Selected partition 1
4304 Hex code (type L to list codes): <i>6</i>
4305 Changed system type of partition 1 to 6 (FAT16)
4306 </pre>
4307
4308 </body>
4309 </subsection>
4310 <subsection>
4311 <title>Creating the Swap Partition</title>
4312 <body>
4313
4314 <p>
4315 We will create a swap partition starting at the third cylinder, with a total
4316 size of 1 GB. Use <c>n</c> to create a new partition.
4317 </p>
4318
4319 <pre caption="Creating the swap partition">
4320 Command (m for help): <i>n</i>
4321 Command action
4322 e extended
4323 p primary partition (1-4)
4324 <i>p</i>
4325 Partition number (1-4): <i>2</i>
4326 First cylinder (17-8727, default 17): <i>17</i>
4327 Last cylinder or +size or +sizeM or +sizeK (17-8727, default 8727): <i>+1000M</i>
4328
4329 Command (m for help): <i>t</i>
4330 Partition number (1-4): <i>1</i>
4331 Hex code (type L to list codes): <i>82</i>
4332 Changed system type of partition 2 to 82 (Linux swap)
4333 </pre>
4334
4335 <p>
4336 After these steps you should see a layout similar to the following:
4337 </p>
4338
4339 <pre caption="Partition listing after creating a swap partition">
4340 Command (m for help): <i>p</i>
4341
4342 Disk /dev/sda: 9150 MB, 9150996480 bytes
4343 64 heads, 32 sectors/track, 8727 cylinders
4344 Units = cylinders of 2048 * 512 = 1048576 bytes
4345
4346 Device Boot Start End Blocks Id System
4347 /dev/sda1 1 16 16368 6 FAT16
4348 /dev/sda2 17 971 977920 82 Linux swap
4349 </pre>
4350
4351 </body>
4352 </subsection>
4353 <subsection>
4354 <title>Creating the Root Partition</title>
4355 <body>
4356
4357 <p>
4358 We will now create the root partition. Again, just use the <c>n</c> command.
4359 </p>
4360
4361 <pre caption="Creating the root partition">
4362 Command (m for help): <i>n</i>
4363 Command action
4364 e extended
4365 p primary partition (1-4)
4366 <i>p</i>
4367 Partition number (1-4): <i>3</i>
4368 First cylinder (972-8727, default 972): <i>972</i>
4369 Last cylinder or +size or +sizeM or +sizeK (972-8727, default 8727): <i>8727</i>
4370 </pre>
4371
4372 <p>
4373 After these steps you should see a layout similar to the following:
4374 </p>
4375
4376 <pre caption="Partition listing after creating the root partition">
4377 Command (m for help): <i>p</i>
4378
4379 Disk /dev/sda: 9150 MB, 9150996480 bytes
4380 64 heads, 32 sectors/track, 8727 cylinders
4381 Units = cylinders of 2048 * 512 = 1048576 bytes
4382
4383 Device Boot Start End Blocks Id System
4384 /dev/sda1 1 16 16368 6 FAT16
4385 /dev/sda2 17 971 977920 82 Linux swap
4386 /dev/sda3 972 8727 7942144 83 Linux
4387 </pre>
4388
4389 </body>
4390 </subsection>
4391 <subsection>
4392 <title>Save the Partition Layout and Exit</title>
4393 <body>
4394
4395 <p>
4396 Save <c>fdisk</c> by typing <c>w</c>. This will also save your partition layout.
4397 </p>
4398
4399 <pre caption="Save and exit fdisk">
4400 Command (m for help): <i>w</i>
4401 </pre>
4402
4403 <p>
4404 Now that your partitions are created, you can now continue with <uri
4405 link="#filesystems">Creating Filesystems</uri>.
4406 </p>
4407
4408 </body>
4409 </subsection>
4410 </section>
4411 <section id="filesystems">
4412 <title>Creating Filesystems</title>
4413 <subsection>
4414 <title>Introduction</title>
4415 <body>
4416
4417 <p>
4418 Now that your partitions are created, it is time to place a filesystem on them.
4419 If you don't care about what filesystem to choose and are happy with what we use
4420 as default in this handbook, continue with <uri
4421 link="#filesystems-apply">Applying a Filesystem to a Partition</uri>.
4422 Otherwise read on to learn about the available filesystems...
4423 </p>
4424
4425 </body>
4426 </subsection>
4427 <subsection>
4428 <title>Filesystems?</title>
4429 <body>
4430
4431 <p>
4432 Several filesystems are available. Most of them are found stable on the
4433 Alpha architecture.
4434 </p>
4435
4436 <note>
4437 <c>aboot</c> only supports booting from <b>ext2</b> and <b>ext3</b>
4438 partitions.
4439 </note>
4440
4441 <p>
4442 <b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata
4443 journaling, which means that routine ext2 filesystem checks at startup time can
4444 be quite time-consuming. There is now quite a selection of newer-generation
4445 journaled filesystems that can be checked for consistency very quickly and are
4446 thus generally preferred over their non-journaled counterparts. Journaled
4447 filesystems prevent long delays when you boot your system and your filesystem
4448 happens to be in an inconsistent state.
4449 </p>
4450
4451 <p>
4452 <b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata
4453 journaling for fast recovery in addition to other enhanced journaling modes like
4454 full data and ordered data journaling. ext3 is a very good and reliable
4455 filesystem. It has an additional hashed b-tree indexing option that enables
4456 high performance in almost all situations. You can enable this indexing by
4457 adding <c>-O dir_index</c> to the <c>mke2fs</c> command. In short, ext3 is an
4458 excellent filesystem.
4459 </p>
4460
4461 <p>
4462 <b>ReiserFS</b> is a B*-tree based filesystem that has very good overall
4463 performance and greatly outperforms both ext2 and ext3 when dealing with small
4464 files (files less than 4k), often by a factor of 10x-15x. ReiserFS also scales
4465 extremely well and has metadata journaling. As of kernel 2.4.18+, ReiserFS is
4466 solid and usable as both general-purpose filesystem and for extreme cases such
4467 as the creation of large filesystems, the use of many small files, very large
4468 files and directories containing tens of thousands of files.
4469 </p>
4470
4471 <p>
4472 <b>XFS</b> is a filesystem with metadata journaling which comes with a robust
4473 feature-set and is optimized for scalability. We only recommend using this
4474 filesystem on Linux systems with high-end SCSI and/or fibre channel storage and
4475 an uninterruptible power supply. Because XFS aggressively caches in-transit data
4476 in RAM, improperly designed programs (those that don't take proper precautions
4477 when writing files to disk and there are quite a few of them) can lose a good
4478 deal of data if the system goes down unexpectedly.
4479 </p>
4480
4481 <p>
4482 <b>JFS</b> is IBM's high-performance journaling filesystem. It has recently
4483 become production-ready and there hasn't been a sufficient track record to
4484 comment positively nor negatively on its general stability at this point.
4485 </p>
4486
4487 </body>
4488 </subsection>
4489 <subsection id="filesystems-apply">
4490 <title>Applying a Filesystem to a Partition</title>
4491 <body>
4492
4493 <p>
4494 To create a filesystem on a partition or volume, there are tools available for
4495 each possible filesystem:
4496 </p>
4497
4498 <table>
4499 <tr>
4500 <th>Filesystem</th>
4501 <th>Creation Command</th>
4502 </tr>
4503 <tr>
4504 <ti>ext2</ti>
4505 <ti><c>mke2fs</c></ti>
4506 </tr>
4507 <tr>
4508 <ti>ext3</ti>
4509 <ti><c>mke2fs -j</c></ti>
4510 </tr>
4511 <tr>
4512 <ti>reiserfs</ti>
4513 <ti><c>mkreiserfs</c></ti>
4514 </tr>
4515 <tr>
4516 <ti>xfs</ti>
4517 <ti><c>mkfs.xfs</c></ti>
4518 </tr>
4519 <tr>
4520 <ti>jfs</ti>
4521 <ti><c>mkfs.jfs</c></ti>
4522 </tr>
4523 </table>
4524
4525 <p>
4526 For instance, to have the root partition (<path>/dev/sda2</path> in our example)
4527 in ext3, you would use:
4528 </p>
4529
4530 <pre caption="Applying a filesystem on a partition">
4531 # <i>mke2fs -j /dev/sda2</i>
4532 </pre>
4533
4534 <p>
4535 Now create the filesystems on your newly created partitions (or logical
4536 volumes).
4537 </p>
4538
4539 </body>
4540 </subsection>
4541 <subsection>
4542 <title>Activating the Swap Partition</title>
4543 <body>
4544
4545 <p>
4546 <c>mkswap</c> is the command that is used to initialize swap partitions:
4547 </p>
4548
4549 <pre caption="Creating a Swap signature">
4550 # <i>mkswap /dev/sda1</i>
4551 </pre>
4552
4553 <p>
4554 To activate the swap partition, use <c>swapon</c>:
4555 </p>
4556
4557 <pre caption="Activating the swap partition">
4558 # <i>swapon /dev/sda1</i>
4559 </pre>
4560
4561 <p>
4562 Create and activate the swap with the commands mentioned above.
4563 </p>
4564
4565 </body>
4566 </subsection>
4567 </section>
4568 <section>
4569 <title>Mounting</title>
4570 <body>
4571
4572 <p>
4573 Now that your partitions are initialized and are housing a filesystem, it is
4574 time to mount those partitions. Use the <c>mount</c> command. Don't forget to
4575 create the necessary mount directories for every partition you created. As an
4576 example we mount the root and boot partition:
4577 </p>
4578
4579 <pre caption="Mounting partitions">
4580 # <i>mount /dev/sda2 /mnt/gentoo</i>
4581 </pre>
4582
4583 <note>
4584 If you want your <path>/tmp</path> to reside on a separate partition, be sure to
4585 change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This
4586 also holds for <path>/var/tmp</path>.
4587 </note>
4588
4589 <p>
4590 We will also have to mount the proc filesystem (a virtual interface with the
4591 kernel) on <path>/proc</path>. But first we will need to place our files on the partitions.
4592 </p>
4593
4594 <p>
4595 Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
4596 Installation Files</uri>.
4597 </p>
4598
4599 </body>
4600 </section>
4601 </sections>
4602
4603
4604
4605 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-alpha-kernel.xml
4606
4607 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-alpha-kernel.xml?rev=1.1&view=markup
4608 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-alpha-kernel.xml?rev=1.1&content-type=text/plain
4609
4610 Index: hb-install-alpha-kernel.xml
4611 ===================================================================
4612 <?xml version='1.0' encoding='UTF-8'?>
4613 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
4614
4615 <!-- The content of this document is licensed under the CC-BY-SA license -->
4616 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
4617
4618 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-alpha-kernel.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
4619
4620 <sections>
4621
4622 <version>6.0</version>
4623 <date>2006-02-27</date>
4624
4625 <section>
4626 <title>Timezone</title>
4627 <body>
4628
4629 <p>
4630 You first need to select your timezone so that your system knows where it is
4631 located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy
4632 it to <path>/etc/localtime</path>. Please avoid the
4633 <path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not
4634 indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8.
4635 </p>
4636
4637 <pre caption="Setting the timezone information">
4638 # <i>ls /usr/share/zoneinfo</i>
4639 <comment>(Suppose you want to use GMT)</comment>
4640 # <i>cp /usr/share/zoneinfo/GMT /etc/localtime</i>
4641 </pre>
4642
4643 </body>
4644 </section>
4645 <section>
4646 <title>Installing the Sources</title>
4647 <subsection>
4648 <title>Choosing a Kernel</title>
4649 <body>
4650
4651 <p>
4652 The core around which all distributions are built is the Linux kernel. It is the
4653 layer between the user programs and your system hardware. Gentoo provides its
4654 users several possible kernel sources. A full listing with description is
4655 available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel
4656 Guide</uri>.
4657 </p>
4658
4659 <p>
4660 For alpha-based systems we have <c>vanilla-sources</c> (the default 2.6 kernel source).
4661 </p>
4662
4663 <p>
4664 Choose your kernel source and install it using <c>emerge</c>. The
4665 <c>USE="-doc"</c> is necessary to avoid installing xorg-x11 or other
4666 dependencies at this point. <c>USE="symlink"</c> is not necessary for a new
4667 install, but ensures proper creation of the <path>/usr/src/linux</path>
4668 symlink.
4669 </p>
4670
4671 <p>
4672 In the next example we install the <c>vanilla-sources</c>.
4673 Of course substitute with your choice of sources, this is merely an example:
4674 </p>
4675
4676 <pre caption="Installing a kernel source">
4677 # <i>USE="-doc symlink" emerge vanilla-sources</i>
4678 </pre>
4679
4680 <p>
4681 When you take a look in <path>/usr/src</path> you should see a symlink called
4682 <path>linux</path> pointing to your kernel source. In this case, the installed
4683 kernel source points to <c>vanilla-sources-2.6.11.2</c>. Your version may be
4684 different, so keep this in mind.
4685 </p>
4686
4687 <pre caption="Viewing the kernel source symlink">
4688 # <i>ls -l /usr/src/linux</i>
4689 lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-2.6.11.2
4690 </pre>
4691
4692 <p>
4693 Now it is time to configure and compile your kernel source. You
4694 can use <c>genkernel</c> for this, which will build a generic kernel as used
4695 by the Installation CD. We explain the "manual" configuration first though, as it is
4696 the best way to optimize your environment.
4697 </p>
4698
4699 <p>
4700 If you want to manually configure your kernel, continue now with <uri
4701 link="#manual">Default: Manual Configuration</uri>. If you want to use
4702 <c>genkernel</c> you should read <uri link="#genkernel">Alternative: Using
4703 genkernel</uri> instead.
4704 </p>
4705
4706 </body>
4707 </subsection>
4708 </section>
4709 <section id="manual">
4710 <title>Default: Manual Configuration</title>
4711 <subsection>
4712 <title>Introduction</title>
4713 <body>
4714
4715 <p>
4716 Manually configuring a kernel is often seen as the most difficult procedure a
4717 Linux user ever has to perform. Nothing is less true -- after configuring a
4718 couple of kernels you don't even remember that it was difficult ;)
4719 </p>
4720
4721 <p>
4722 However, one thing <e>is</e> true: you must know your system when you start
4723 configuring a kernel manually. You can run <c>lsmod</c> to see what kernel
4724 modules the Installation CD uses (it might provide you with a nice hint on
4725 what to enable).
4726 </p>
4727
4728 <p>
4729 Now go to your kernel source directory and execute <c>make menuconfig</c>. This
4730 will fire up an ncurses-based configuration menu.
4731 </p>
4732
4733 <pre caption="Invoking menuconfig">
4734 # <i>cd /usr/src/linux</i>
4735 # <i>make menuconfig</i>
4736 </pre>
4737
4738 <p>
4739 You will be greeted with several configuration sections. We'll first list some
4740 options you must activate (otherwise Gentoo will not function, or not function
4741 properly without additional tweaks).
4742 </p>
4743
4744 </body>
4745 </subsection>
4746 <subsection>
4747 <title>Activating Required Options</title>
4748 <body>
4749
4750 <p>
4751 First of all, activate the use of development and experimental code/drivers.
4752 You need this, otherwise some very important code/drivers won't show up:
4753 </p>
4754
4755 <pre caption="Selecting experimental code/drivers, General setup">
4756 Code maturity level options ---&gt;
4757 [*] Prompt for development and/or incomplete code/drivers
4758 General setup ---&gt;
4759 [*] Support for hot-pluggable devices
4760 </pre>
4761
4762 <p>
4763 Now go to <c>File Systems</c> and select support for the filesystems you use.
4764 <e>Don't</e> compile them as modules, otherwise your Gentoo system will not be
4765 able to mount your partitions. Also select <c>Virtual memory</c>, <c>/proc
4766 file system</c>, (<c>/dev file system</c> + <c>Automatically mount at boot</c> only for 2.4 kernel):
4767 </p>
4768
4769 <pre caption="Selecting necessary file systems">
4770 <comment>(With a 2.4.x kernel)</comment>
4771 File systems ---&gt;
4772 [*] Virtual memory file system support (former shm fs)
4773 [*] /proc file system support
4774 [*] /dev file system support (EXPERIMENTAL)
4775 [*] Automatically mount at boot
4776 [ ] /dev/pts file system for Unix98 PTYs
4777
4778 <comment>(With a 2.6.x kernel)</comment>
4779 File systems ---&gt;
4780 Pseudo Filesystems ---&gt;
4781 [*] /proc file system support
4782 [*] Virtual memory file system support (former shm fs)
4783
4784 <comment>(Select one or more of the following options as needed by your system)</comment>
4785 &lt;*&gt; Reiserfs support
4786 &lt;*&gt; Ext3 journalling file system support
4787 &lt;*&gt; JFS filesystem support
4788 &lt;*&gt; Second extended fs support
4789 &lt;*&gt; XFS filesystem support
4790 </pre>
4791
4792 <p>
4793 If you are using PPPoE to connect to the Internet or you are using a dial-up
4794 modem, you will need the following options in the kernel:
4795 </p>
4796
4797 <pre caption="Selecting PPPoE necessary drivers">
4798 <comment>(With a 2.4.x kernel)</comment>
4799 Network device support ---&gt;
4800 &lt;*&gt; PPP (point-to-point protocol) support
4801 &lt;*&gt; PPP support for async serial ports
4802 &lt;*&gt; PPP support for sync tty ports
4803
4804 <comment>(With a 2.6.x kernel)</comment>
4805 Device Drivers ---&gt;
4806 Networking support ---&gt;
4807 &lt;*&gt; PPP (point-to-point protocol) support
4808 &lt;*&gt; PPP support for async serial ports
4809 &lt;*&gt; PPP support for sync tty ports
4810 </pre>
4811
4812 <p>
4813 The two compression options won't harm but are not definitely needed, neither
4814 does the <c>PPP over Ethernet</c> option, that might only be used by
4815 <c>rp-pppoe</c> when configured to do kernel mode PPPoE.
4816 </p>
4817
4818 <p>
4819 If you require it, don't forget to include support in the kernel for your
4820 ethernet card.
4821 </p>
4822
4823 <p>
4824 The following options are recommended as well:
4825 </p>
4826
4827 <pre caption="Recommended Alpha options">
4828 General setup ---&gt;
4829 &lt;*&gt; SRM environment through procfs
4830 &lt;*&gt; Configure uac policy via sysctl
4831
4832 Plug and Play configuration ---&gt;
4833 &lt;*&gt; Plug and Play support
4834 &lt;M&gt; ISA Plug and Play support
4835
4836 SCSI support ---&gt;
4837 SCSI low-level drivers ---&gt;
4838 &lt;*&gt; SYM53C8XX Version 2 SCSI support (NEW)
4839 &lt;*&gt; Qlogic ISP SCSI support
4840
4841 Network device support ---&gt;
4842 Ethernet (10 or 100 Mbit) ---&gt;
4843 &lt;M&gt; DECchip Tulip (dc21x4x) PCI support
4844 &lt;M&gt; Generic DECchip &amp; DIGITAL EtherWORKS PCI/EISA
4845 &lt;M&gt; EtherExpressPro/100 support (eepro100)
4846 &lt;M&gt; EtherExpressPro/100 support (e100)
4847 Ethernet (1000 Mbit) ---&gt;
4848 &lt;M&gt; Alteon AceNIC
4849 [*] Omit support for old Tigon I
4850 &lt;M&gt; Broadcom Tigon3
4851 [*] FDDI driver support
4852 &lt;M&gt; Digital DEFEA and DEFPA
4853 &lt;*&gt; PPP support
4854 &lt;*&gt; PPP Deflate compression
4855
4856 Character devices ---&gt;
4857 [*] Support for console on serial port
4858 [*] Direct Rendering Manager
4859
4860 File systems ---&gt;
4861 &lt;*&gt; Kernel automounter version 4 support
4862 Network File Systems ---&gt;
4863 &lt;*&gt; NFS
4864 [*] NFSv3 client
4865 &lt;*&gt; NFS server
4866 [*] NFSv3 server
4867 Partition Types ---&gt;
4868 [*] Advanced partition selection
4869 [*] Alpha OSF partition support
4870 Native Language Support
4871 &lt;*&gt; NLS ISO 8859-1
4872
4873 Sound ---&gt;
4874 &lt;M&gt; Sound card support
4875 &lt;M&gt; OSS sound modules
4876 [*] Verbose initialisation
4877 [*] Persistent DMA buffers
4878 &lt;M&gt; 100% Sound Blaster compatibles
4879 </pre>
4880
4881 <p>
4882 When you've finished configuring the kernel, continue with <uri
4883 link="#compiling">Compiling and Installing</uri>.
4884 </p>
4885
4886 </body>
4887 </subsection>
4888 <subsection id="compiling">
4889 <title>Compiling and Installing</title>
4890 <body>
4891
4892 <p>
4893 Now that your kernel is configured, it is time to compile and install it. Exit
4894 the configuration and start the compilation process:
4895 </p>
4896
4897 <pre caption="Compiling the kernel">
4898 <comment>(For 2.4 kernel)</comment>
4899 # <i>make dep &amp;&amp; make vmlinux modules modules_install</i>
4900
4901 <comment>(For 2.6 kernel)</comment>
4902 # <i>make &amp;&amp; make modules_install</i>
4903
4904 <comment>(For all kernels)</comment>
4905 # <i>make boot</i>
4906 </pre>
4907
4908 <p>
4909 When the kernel has finished compiling, copy the kernel image to
4910 <path>/boot</path>. Recent kernels might create <path>vmlinux</path> instead of
4911 <path>vmlinux.gz</path>. Keep this in mind when you copy your kernel image.
4912 </p>
4913
4914 <pre caption="Installing the kernel">
4915 # <i>cp arch/alpha/boot/vmlinux.gz /boot/</i>
4916 </pre>
4917
4918 <p>
4919 Now continue with <uri link="#kernel_modules">Installing Separate Kernel
4920 Modules</uri>.
4921 </p>
4922
4923 </body>
4924 </subsection>
4925 </section>
4926 <section id="genkernel">
4927 <title>Alternative: Using genkernel</title>
4928 <body>
4929
4930 <p>
4931 If you are reading this section, you have chosen to use our <c>genkernel</c>
4932 script to configure your kernel for you.
4933 </p>
4934
4935 <p>
4936 Now that your kernel source tree is installed, it's now time to compile your
4937 kernel by using our <c>genkernel</c> script to automatically build a kernel for
4938 you. <c>genkernel</c> works by configuring a kernel nearly identically to the
4939 way our Installation CD kernel is configured. This means that when you use
4940 <c>genkernel</c> to build your kernel, your system will generally detect all
4941 your hardware at boot-time, just like our Installation CD does. Because genkernel
4942 doesn't require any manual kernel configuration, it is an ideal solution for
4943 those users who may not be comfortable compiling their own kernels.
4944 </p>
4945
4946 <p>
4947 Now, let's see how to use genkernel. First, emerge the genkernel ebuild:
4948 </p>
4949
4950 <pre caption="Emerging genkernel">
4951 # <i>emerge genkernel</i>
4952 </pre>
4953
4954 <p>
4955 Now, compile your kernel sources by running <c>genkernel all</c>.
4956 Be aware though, as <c>genkernel</c> compiles a kernel that supports almost all
4957 hardware, this compilation will take quite a while to finish!
4958 </p>
4959
4960 <p>
4961 Note that, if your boot partition doesn't use ext2 or ext3 as filesystem you
4962 need to manually configure your kernel using <c>genkernel --menuconfig all</c>
4963 and add support for your filesystem <e>in</e> the kernel (i.e. <e>not</e> as a
4964 module).
4965 </p>
4966
4967 <pre caption="Running genkernel">
4968 # <i>genkernel all</i>
4969 GenKernel v3.0.1_beta10
4970 * ARCH: Alpha
4971 * KERNEL VER: 2.6.11.2
4972 * kernel: configuring source
4973 * kernel: running mrproper
4974 <comment>(Output removed to increase readability)</comment>
4975 * Kernel compiled successfully!
4976 * Required Kernel Params:
4977 * : root=/dev/ram0 init=/linuxrc real_root=/dev/$ROOT
4978 * where $ROOT is the devicenode for your root partition as
4979 * you should have specified in /etc/fstab
4980 *
4981 * You MUST tell your bootloader to use the generated initrd
4982 *
4983 * Recommended Kernel Params:
4984 * : vga=0x317 splash=verbose
4985 *
4986 * Do NOT report kernel bugs (configs included) as genkernel bugs.
4987 * Make sure you have the latest genkernel before reporting bugs
4988 *
4989 * For more info see /usr/share/genkernel/README
4990 </pre>
4991
4992 <p>
4993 Once <c>genkernel</c> completes, a kernel, full set of modules and
4994 <e>initial root disk</e> (initrd) will be created. We will use the kernel
4995 and initrd when configuring a boot loader later in this document. Write
4996 down the names of the kernel and initrd as you will need it when writing
4997 the bootloader configuration file. The initrd will be started immediately after
4998 booting to perform hardware autodetection (just like on the Installation CD) before
4999 your "real" system starts up.
5000 </p>
5001
5002 <pre caption="Checking the created kernel image name and initrd">
5003 # <i>ls /boot/kernel* /boot/initramfs*</i>
5004 </pre>
5005
5006 <p>
5007 Now, let's perform one more step to get our system to be more like the Installation CD -- let's emerge <c>coldplug</c>. While the initrd autodetects hardware that
5008 is needed to boot your system, <c>coldplug</c> autodetects everything else.
5009 To emerge and enable <c>coldplug</c>, type the following:
5010 </p>
5011
5012 <pre caption="Emerging and enabling coldplug">
5013 # <i>emerge coldplug</i>
5014 # <i>rc-update add coldplug boot</i>
5015 </pre>
5016
5017 </body>
5018 </section>
5019 <section id="kernel_modules">
5020 <title>Installing Separate Kernel Modules</title>
5021 <subsection>
5022 <title>Installing Extra Modules</title>
5023 <body>
5024
5025 <p>
5026 If appropriate, you should emerge ebuilds for any additional hardware that is
5027 on your system. Here is a list of kernel-related ebuilds that you could emerge:
5028 </p>
5029
5030 <table>
5031 <tcolumn width="1in"/>
5032 <tcolumn width="4in"/>
5033 <tcolumn width="2in"/>
5034 <tr>
5035 <th>Ebuild</th>
5036 <th>Purpose</th>
5037 <th>Command</th>
5038 </tr>
5039 <tr>
5040 <ti>x11-drm</ti>
5041 <ti>
5042 Accelerated graphics for ATI Radeon up to 9200, Rage128, Matrox, Voodoo and
5043 other cards for xorg-x11. Please check the <c>IUSE_VIDEO_CARDS</c> variable
5044 in the <path>/usr/portage/x11-base/x11-drm</path> ebuilds to see what you
5045 need to fill in as <c>yourcard</c>.
5046 </ti>
5047 <ti><c>VIDEO_CARDS="yourcard" emerge x11-drm</c></ti>
5048 </tr>
5049 </table>
5050
5051 <p>
5052 Beware though, some of these ebuilds might deal with big dependencies. To verify
5053 what packages will be installed by emerging an ebuild, use <c>emerge
5054 --pretend</c>. For instance, for the <c>x11-drm</c> package:
5055 </p>
5056
5057 <pre caption="View full installation package listing">
5058 # <i>emerge --pretend x11-drm</i>
5059 </pre>
5060
5061 </body>
5062 </subsection>
5063 <subsection>
5064 <title>Configuring the Modules</title>
5065 <body>
5066
5067 <p>
5068 You should list the modules you want automatically loaded in
5069 <path>/etc/modules.autoload.d/kernel-2.4</path> (or <path>kernel-2.6</path>).
5070 You can add extra options to the modules too if you want.
5071 </p>
5072
5073 <p>
5074 To view all available modules, run the following <c>find</c> command. Don't
5075 forget to substitute "&lt;kernel version&gt;" with the version of the kernel you
5076 just compiled:
5077 </p>
5078
5079 <pre caption="Viewing all available modules">
5080 # <i>find /lib/modules/&lt;kernel version&gt;/ -type f -iname '*.o' -or -iname '*.ko'</i>
5081 </pre>
5082
5083 <p>
5084 For instance, to automatically load the <c>3c59x.o</c> module, edit the
5085 <path>kernel-2.4</path> or <path>kernel-2.6</path> file and enter the module
5086 name in it.
5087 </p>
5088
5089 <pre caption="Editing /etc/modules.autoload.d/kernel-2.4">
5090 <comment>(Example for 2.4 kernels)</comment>
5091 # <i>nano -w /etc/modules.autoload.d/kernel-2.4</i>
5092 </pre>
5093
5094 <pre caption="/etc/modules.autoload.d/kernel-2.4 or kernel-2.6">
5095 3c59x
5096 </pre>
5097
5098 <p>
5099 Continue the installation with <uri link="?part=1&amp;chap=8">Configuring
5100 your System</uri>.
5101 </p>
5102
5103 </body>
5104 </subsection>
5105 </section>
5106 </sections>
5107
5108
5109
5110 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-alpha-medium.xml
5111
5112 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-alpha-medium.xml?rev=1.1&view=markup
5113 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-alpha-medium.xml?rev=1.1&content-type=text/plain
5114
5115 Index: hb-install-alpha-medium.xml
5116 ===================================================================
5117 <?xml version='1.0' encoding='UTF-8'?>
5118 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
5119
5120 <!-- The content of this document is licensed under the CC-BY-SA license -->
5121 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
5122
5123 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-alpha-medium.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
5124
5125 <sections>
5126
5127 <version>6.0</version>
5128 <date>2006-02-27</date>
5129
5130 <section>
5131 <title>Hardware Requirements</title>
5132 <subsection>
5133 <title>Introduction</title>
5134 <body>
5135
5136 <p>
5137 Before we start, we first list what hardware requirements you need to
5138 successfully install Gentoo on your box.
5139 </p>
5140
5141 </body>
5142 </subsection>
5143 <subsection>
5144 <title>Hardware Requirements</title>
5145 <body>
5146
5147 <table>
5148 <tr>
5149 <th>CPU</th>
5150 <ti>
5151 Please check with the <uri
5152 link="http://www.alphalinux.org/faq/FAQ-5.html">Alpha/Linux FAQ</uri>
5153 </ti>
5154 </tr>
5155 <tr>
5156 <th>Memory</th>
5157 <ti>64 MB</ti>
5158 </tr>
5159 <tr>
5160 <th>Diskspace</th>
5161 <ti>1.5 GB (excluding swap space)</ti>
5162 </tr>
5163 <tr>
5164 <th>Swap space</th>
5165 <ti>At least 256 MB</ti>
5166 </tr>
5167 </table>
5168
5169 </body>
5170 </subsection>
5171 </section>
5172 <!-- Copy/paste from the hb-install-x86-medium.xml file but no Universal
5173 Installation CD.
5174 Also s/x86/alpha -->
5175 <!-- START -->
5176 <section>
5177 <title>The Gentoo Universal Installation CD</title>
5178 <subsection>
5179 <title>Introduction</title>
5180 <body>
5181
5182 <p>
5183 Gentoo Linux can be installed using a <e>stage3</e> tarball file.
5184 Such a tarball is an archive that contains a minimal environment from
5185 which you can succesfully install Gentoo Linux onto your system.
5186 </p>
5187
5188 <p>
5189 Installations using a stage1 or stage2 tarball file are not documented in the
5190 Gentoo Handbook - please read the <uri link="/doc/en/faq.xml#stage12">Gentoo
5191 FAQ</uri> on these matters.
5192 </p>
5193
5194 </body>
5195 </subsection>
5196 <subsection>
5197 <title>Gentoo Universal Installation CD</title>
5198 <body>
5199
5200 <p>
5201 An Installation CD is a bootable medium which contains a self-sustained Gentoo
5202 environment. It allows you to boot Linux from the CD. During the boot process
5203 your hardware is detected and the appropriate drivers are loaded. The Gentoo
5204 Installation CDs are maintained by Gentoo developers.
5205 </p>
5206
5207 <p>
5208 There currently are two Installation CDs available:
5209 </p>
5210
5211 <ul>
5212 <li>
5213 The Universal Installation CD contains everything you need to install
5214 Gentoo. It provides stage3 files for common architectures, source code
5215 for the extra applications you need to choose from and, of course, the
5216 installation instructions for your architecture.
5217 </li>
5218 <li>
5219 The Minimal Installation CD contains only a minimal environment that allows
5220 you to boot up and configure your network so you can connect to the
5221 Internet. It does not contain any additional files and cannot be used
5222 during the current installation approach.
5223 </li>
5224 </ul>
5225
5226 <p>
5227 Gentoo also provides a Package CD. This is not an Installation CD but an
5228 additional resource that you can exploit during the installation of your Gentoo
5229 system. It contains prebuilt packages (also known as the GRP set) that allow
5230 you to easily and quickly install additional applications (such as
5231 OpenOffice.org, KDE, GNOME, ...) immediately after the Gentoo installation and
5232 right before you update your Portage tree.
5233 </p>
5234
5235 <p>
5236 The use of the Package CD is covered later in this document.
5237 </p>
5238
5239 </body>
5240 </subsection>
5241 </section>
5242 <!-- STOP -->
5243 <section>
5244 <title>Download, Burn and Boot the Gentoo Universal Installation CD</title>
5245 <subsection>
5246 <title>Downloading and Burning the Installation CD</title>
5247 <body>
5248
5249 <p>
5250 You can download the Universal Installation CD (and, if you want to, the
5251 Packages CD as well) from one of our <uri
5252 link="/main/en/mirrors.xml">mirrors</uri>. The Installation CD is located in
5253 the <path>releases/alpha/2006.1/installcd</path> directory.
5254 <!-- No packages for alpha
5255 the Package CD is located in the <path>releases/alpha/2006.1/packagecd</path>
5256 directory.
5257 -->
5258 </p>
5259
5260 <p>
5261 Inside those directories you'll find ISO-files. Those are full CD images which
5262 you can write on a CD-R.
5263 </p>
5264
5265 <p>
5266 After downloading the file, you can verify its integrity to see if it is
5267 corrupted or not:
5268 </p>
5269
5270 <ul>
5271 <li>
5272 You can check its MD5 checksum and compare it with the MD5 checksum we
5273 provide (for instance with the <c>md5sum</c> tool under Linux/Unix or
5274 <uri link="http://www.etree.org/md5com.html">md5sum</uri> for Windows)
5275 </li>
5276 <li>
5277 You can verify the cryptographic signature that we provide. You need to
5278 obtain the public key we use (17072058) before you proceed though.
5279 </li>
5280 </ul>
5281
5282 <p>
5283 To fetch our public key using the GnuPG application, run the following command:
5284 </p>
5285
5286 <pre caption="Obtaining the public key">
5287 $ <i>gpg --keyserver subkeys.pgp.net --recv-keys 17072058</i>
5288 </pre>
5289
5290 <p>
5291 Now verify the signature:
5292 </p>
5293
5294 <pre caption="Verify the cryptographic signature">
5295 $ <i>gpg --verify &lt;signature file&gt; &lt;downloaded iso&gt;</i>
5296 </pre>
5297
5298 <p>
5299 To burn the downloaded ISO(s), you have to select raw-burning. How you
5300 do this is highly program-dependent. We will discuss <c>cdrecord</c> and
5301 <c>K3B</c> here; more information can be found in our <uri
5302 link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>.
5303 </p>
5304
5305 <ul>
5306 <li>
5307 With cdrecord, you simply type <c>cdrecord dev=/dev/hdc &lt;downloaded iso
5308 file&gt;</c> (replace <path>/dev/hdc</path> with your CD-RW drive's device
5309 path).
5310 </li>
5311 <li>
5312 With K3B, select <c>Tools</c> &gt; <c>CD</c> &gt; <c>Burn Image</c>. Then
5313 you can locate your ISO file within the 'Image to Burn' area. Finally click
5314 <c>Start</c>.
5315 </li>
5316 </ul>
5317
5318 </body>
5319 </subsection>
5320 <subsection>
5321 <title>Booting the Universal Installation CD</title>
5322 <body>
5323
5324 <p>
5325 When your Alpha is powered on, the first thing that gets started is the
5326 firmware. It is loosely synonymous with the BIOS software on PC systems. There
5327 are two types of firmware on Alpha systems: SRM (<e>Systems Reference
5328 Manual</e>) and ARC (<e>Advanced Risc Console</e>).
5329 </p>
5330
5331 <p>
5332 SRM is based on the Alpha Console Subsystem specification, which provides an
5333 operating environment for OpenVMS, Tru64 UNIX, and Linux operating systems. ARC
5334 is based on the Advanced RISC Computing (ARC) specification, which provides
5335 an operating environment for Windows NT. You can find a
5336 <uri link="http://www.alphalinux.org/faq/SRM-HOWTO/">detailed guide</uri> on
5337 using SRM over at the Alpha Linux website.
5338 </p>
5339
5340 <p>
5341 If your Alpha system supports both SRC and ARCs (ARC, AlphaBIOS, ARCSBIOS) you
5342 should follow <uri link="http://www.alphalinux.org/faq/x31.html">these
5343 instructions</uri> for switching to SRM. If your system already uses SRM, you
5344 are all set. If your system can only use ARCs (Ruffian, nautilus, xl, etc.) you
5345 will need to choose <c>MILO</c> later on when we are talking about bootloaders.
5346 </p>
5347
5348 <p>
5349 Now to boot an Alpha Installation CD, put the CD-ROM in the tray and reboot the system.
5350 You can use SRM to boot the Installation CD. If you cannot do that, you will have to use
5351 <c>MILO</c>. If you don't have <c>MILO</c> installed already, use one of the
5352 precompiled <c>MILO</c> images available on <uri
5353 link="http://dev.gentoo.org/~taviso/milo/">taviso's homepage</uri>.
5354 </p>
5355
5356 <pre caption="Booting a CD-ROM using SRM">
5357 <comment>(List available hardware drives)</comment>
5358 &gt;&gt;&gt; <i>show device</i>
5359 dkb0.0.1.4.0 DKB0 TOSHIBA CDROM
5360 <comment>(...)</comment>
5361 <comment>(Substitute dkb0 with your CD-ROM drive device)</comment>
5362 &gt;&gt;&gt; <i>boot dkb0 -flags 0</i>
5363 <comment>To boot the 2.4 kernel instead of the default 2.6 kernel use:</comment>
5364 &gt;&gt;&gt; <i>boot dkb -flags 1</i>
5365 </pre>
5366
5367 <pre caption="Booting a CD-ROM using MILO">
5368 <comment>(Substitute hdb with your CD-ROM drive device)</comment>
5369 MILO&gt; <i>boot hdb:/boot/gentoo_2.6 initrd=/boot/gentoo_2_6.igz root=/dev/ram0 init=/linuxrc looptype=zisofs loop=/zisofs cdroot</i>
5370 <comment>To boot the 2.4 kernel instead of the default 2.6 kernel use:</comment>
5371 MILO&gt; <i>boot hdb:/boot/gentoo_2.4 initrd=/boot/gentoo_2_4.igz root=/dev/ram0 init=/linuxrc looptype=zisofs loop=/zisofs cdroot</i>
5372 </pre>
5373
5374 <note>
5375 The default Alpha profile uses nptl and requires a 2.6 kernel. If your system
5376 cannot support nptl (or you do not want to use nptl), you should use the 2.4
5377 kernel. Alternatively, if you prefer to compile your system without nptl, you
5378 will be given the chance to select a stage built without nptl in <uri
5379 link="?part=1&amp;chap=5">Installing a Stage Tarball</uri>.
5380 </note>
5381
5382 <p>
5383 You should have a root ("#") prompt on the current console and can also switch
5384 to other consoles by pressing Alt-F2, Alt-F3 and Alt-F4. Get back to the one you
5385 started on by pressing Alt-F1.
5386 </p>
5387
5388 <p>
5389 Now continue with <uri link="#hardware">Extra Hardware Configuration</uri>.
5390 </p>
5391
5392 </body>
5393 </subsection>
5394 <subsection id="hardware">
5395 <title>Extra Hardware Configuration</title>
5396 <body>
5397
5398 <p>
5399 When the Installation CD boots, it tries to detect all your hardware devices and
5400 loads the appropriate kernel modules to support your hardware. In the
5401 vast majority of cases, it does a very good job. However, in some cases (the
5402 SPARC Installation CDs don't even do autodetection), it may not auto-load the kernel
5403 modules you need. If the PCI auto-detection missed some of your system's
5404 hardware, you will have to load the appropriate kernel modules manually.
5405 </p>
5406
5407 <p>
5408 In the next example we try to load the <c>8139too</c> module (support for
5409 certain kinds of network interfaces):
5410 </p>
5411
5412 <pre caption="Loading kernel modules">
5413 # <i>modprobe 8139too</i>
5414 </pre>
5415
5416 <p>
5417 If you need PCMCIA support, you should start the <c>pcmcia</c> init script:
5418 </p>
5419
5420 <pre caption="Starting the PCMCIA init script">
5421 # <i>/etc/init.d/pcmcia start</i>
5422 </pre>
5423
5424 </body>
5425 </subsection>
5426 <subsection>
5427 <title>Optional: Tweaking Hard Disk Performance</title>
5428 <body>
5429
5430 <p>
5431 If you are an advanced user, you might want to tweak the IDE hard disk
5432 performance using <c>hdparm</c>. With the <c>-tT</c> options you can
5433 test the performance of your disk (execute it several times to get a
5434 more precise impression):
5435 </p>
5436
5437 <pre caption="Testing disk performance">
5438 # <i>hdparm -tT /dev/hda</i>
5439 </pre>
5440
5441 <p>
5442 To tweak, you can use any of the following examples (or experiment
5443 yourself) which use <path>/dev/hda</path> as disk (substitute with your
5444 disk):
5445 </p>
5446
5447 <pre caption="Tweaking hard disk performance">
5448 <comment>Activate DMA:</comment> # <i>hdparm -d 1 /dev/hda</i>
5449 <comment>Activate DMA + Safe Performance-enhancing Options:</comment> # <i>hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda</i>
5450 </pre>
5451
5452 </body>
5453 </subsection>
5454 <subsection id="useraccounts">
5455 <title>Optional: User Accounts</title>
5456 <body>
5457
5458 <p>
5459 If you plan on giving other people access to your installation
5460 environment or you want to chat using <c>irssi</c> without root privileges (for
5461 security reasons), you need to create the necessary user accounts and change
5462 the root password.
5463 </p>
5464
5465 <p>
5466 To change the root password, use the <c>passwd</c> utility:
5467 </p>
5468
5469 <pre caption="Changing the root password">
5470 # <i>passwd</i>
5471 New password: <comment>(Enter your new password)</comment>
5472 Re-enter password: <comment>(Re-enter your password)</comment>
5473 </pre>
5474
5475 <p>
5476 To create a user account, we first enter their credentials, followed by
5477 its password. We use <c>useradd</c> and <c>passwd</c> for these tasks.
5478 In the next example, we create a user called &quot;john&quot;.
5479 </p>
5480
5481 <pre caption="Creating a user account">
5482 # <i>useradd -m -G users john</i>
5483 # <i>passwd john</i>
5484 New password: <comment>(Enter john's password)</comment>
5485 Re-enter password: <comment>(Re-enter john's password)</comment>
5486 </pre>
5487
5488 <p>
5489 You can change your user id from root to the newly created user by using
5490 <c>su</c>:
5491 </p>
5492
5493 <pre caption="Changing user id">
5494 # <i>su - john</i>
5495 </pre>
5496
5497 </body>
5498 </subsection>
5499 <subsection>
5500 <title>Optional: Viewing Documentation while Installing</title>
5501 <body>
5502
5503 <p>
5504 If you want to view the Gentoo Handbook (either from-CD or online) during the
5505 installation, make sure you have created a user account (see <uri
5506 link="#useraccounts">Optional: User Accounts</uri>). Then press <c>Alt-F2</c> to
5507 go to a new terminal and log in.
5508 </p>
5509
5510 <p>
5511 If you want to view the documentation on the CD you can immediately run
5512 <c>lynx</c> to read it:
5513 </p>
5514
5515 <pre caption="Viewing the on-CD documentation">
5516 # <i>lynx /mnt/cdrom/docs/html/index.html</i>
5517 </pre>
5518
5519 <p>
5520 However, it is preferred that you use the online Gentoo Handbook as it will be
5521 more recent than the one provided on the CD. You can view it using <c>lynx</c>
5522 as well, but only after having completed the <e>Configuring your Network</e>
5523 chapter (otherwise you won't be able to go on the Internet to view the
5524 document):
5525 </p>
5526
5527 <pre caption="Viewing the Online Documentation">
5528 # <i>lynx http://www.gentoo.org/doc/en/handbook/handbook-alpha.xml</i>
5529 </pre>
5530
5531 <p>
5532 You can go back to your original terminal by pressing <c>Alt-F1</c>.
5533 </p>
5534
5535 </body>
5536 </subsection>
5537 <subsection>
5538 <title>Optional: Starting the SSH Daemon</title>
5539 <body>
5540
5541 <p>
5542 If you want to allow other users to access your computer during the
5543 Gentoo installation (perhaps because those users are going to help you
5544 install Gentoo, or even do it for you), you need to create a user
5545 account for them and perhaps even provide them with your root password
5546 (<e>only</e> do that <e>if</e> you <b>fully trust</b> that user).
5547 </p>
5548
5549 <p>
5550 To fire up the SSH daemon, execute the following command:
5551 </p>
5552
5553 <pre caption="Starting the SSH daemon">
5554 # <i>/etc/init.d/sshd start</i>
5555 </pre>
5556
5557 <p>
5558 To be able to use sshd, you first need to set up your networking. Continue with
5559 the chapter on <uri link="?part=1&amp;chap=3">Configuring your Network</uri>.
5560 </p>
5561
5562 </body>
5563 </subsection>
5564 </section>
5565 </sections>
5566
5567
5568
5569 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-amd64-bootloader.xml
5570
5571 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-amd64-bootloader.xml?rev=1.1&view=markup
5572 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-amd64-bootloader.xml?rev=1.1&content-type=text/plain
5573
5574 Index: hb-install-amd64-bootloader.xml
5575 ===================================================================
5576 <?xml version='1.0' encoding='UTF-8'?>
5577 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
5578
5579 <!-- The content of this document is licensed under the CC-BY-SA license -->
5580 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
5581
5582 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-amd64-bootloader.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
5583
5584 <sections>
5585
5586 <version>6.2</version>
5587 <date>2006-05-28</date>
5588
5589 <section>
5590 <title>Making your Choice</title>
5591 <subsection>
5592 <title>Introduction</title>
5593 <body>
5594
5595 <p>
5596 Now that your kernel is configured and compiled and the necessary system
5597 configuration files are filled in correctly, it is time to install a
5598 program that will fire up your kernel when you start the system. Such a
5599 program is called a <e>bootloader</e>.
5600 </p>
5601
5602 </body>
5603 </subsection>
5604 <subsection>
5605 <title>Optional: Framebuffer</title>
5606 <body>
5607
5608 <!--
5609 Verbatim copy from x86 bootloader framebuffer explanation, minus the section on
5610 vesafb-tng
5611 -->
5612
5613 <p>
5614 <e>If</e> you have configured your kernel with framebuffer support (or you used
5615 <c>genkernel</c>'s default kernel configuration), you can activate it by adding
5616 a <c>vga</c> and/or a <c>video</c> statement to your bootloader configuration
5617 file.
5618 </p>
5619
5620 <p>
5621 64-bit systems must use the the <c>vesafb</c> driver, and so will need to set
5622 the <c>vga</c> statement. The <c>vga</c> statement controls the resolution and
5623 color depth of your framebuffer screen for <c>vesafb</c>. As stated in
5624 <path>/usr/src/linux/Documentation/fb/vesafb.txt</path> (which gets installed
5625 when you install a kernel source package), you need to pass the VESA number
5626 corresponding to the requested resolution and color depth to it.
5627 </p>
5628
5629 <p>
5630 The following table lists the available resolutions and colordepths and matches
5631 those against the value that you need to pass on to the <c>vga</c> statement.
5632 </p>
5633
5634 <table>
5635 <tr>
5636 <ti></ti>
5637 <th>640x480</th>
5638 <th>800x600</th>
5639 <th>1024x768</th>
5640 <th>1280x1024</th>
5641 </tr>
5642 <tr>
5643 <th>256</th>
5644 <ti>0x301</ti>
5645 <ti>0x303</ti>
5646 <ti>0x305</ti>
5647 <ti>0x307</ti>
5648 </tr>
5649 <tr>
5650 <th>32k</th>
5651 <ti>0x310</ti>
5652 <ti>0x313</ti>
5653 <ti>0x316</ti>
5654 <ti>0x319</ti>
5655 </tr>
5656 <tr>
5657 <th>64k</th>
5658 <ti>0x311</ti>
5659 <ti>0x314</ti>
5660 <ti>0x317</ti>
5661 <ti>0x31A</ti>
5662 </tr>
5663 <tr>
5664 <th>16M</th>
5665 <ti>0x312</ti>
5666 <ti>0x315</ti>
5667 <ti>0x318</ti>
5668 <ti>0x31B</ti>
5669 </tr>
5670 </table>
5671
5672 <p>
5673 The <c>video</c> statement controls framebuffer display options. It needs to be
5674 given the framebuffer driver (<c>vesafb</c> for 2.6 kernels, or <c>vesa</c> for
5675 2.4 kernels) followed by the control statements you wish to enable. All
5676 variables are listed in <path>/usr/src/linux/Documentation/fb/vesafb.txt</path>,
5677 but we'll inform you about three most-used options:
5678 </p>
5679
5680 <table>
5681 <tr>
5682 <th>Control</th>
5683 <th>Description</th>
5684 </tr>
5685 <tr>
5686 <ti>ywrap</ti>
5687 <ti>
5688 Assume that the graphical card can wrap around its memory (i.e. continue at
5689 the beginning when it has approached the end)
5690 </ti>
5691 </tr>
5692 <tr>
5693 <ti>mtrr:n</ti>
5694 <ti>
5695 Setup MTRR registers. <c>n</c> can be:
5696 0 - disabled
5697 1 - uncachable
5698 2 - write-back
5699 3 - write-combining
5700 4 - write-through
5701 </ti>
5702 </tr>
5703 </table>
5704
5705 <p>
5706 The result of those two statements could be something like <c>vga=0x318
5707 video=vesafb:mtrr:3,ywrap</c> or
5708 <c>video=vesafb:mtrr:3,ywrap,1024x768-32@85</c>. Remember (or write down) this
5709 setting; you will need it shortly.
5710 </p>
5711
5712 <p>
5713 While LILO does work on AMD64, Gentoo only supports using GRUB. Now continue by
5714 its installation.
5715 </p>
5716
5717 </body>
5718 </subsection>
5719 </section>
5720 <section>
5721 <title>Using GRUB</title>
5722 <subsection>
5723 <title>Understanding GRUB's terminology</title>
5724 <body>
5725
5726 <p>
5727 The most critical part of understanding GRUB is getting comfortable with how
5728 GRUB refers to hard drives and partitions. Your Linux partition
5729 <path>/dev/hda1</path> (for IDE drives) or <path>/dev/sda1</path> (for
5730 SATA/SCSI drives) will most likely be called <path>(hd0,0)</path> under GRUB.
5731 Notice the parenthesis around the <path>hd0,0</path> - they are required.
5732 </p>
5733
5734 <p>
5735 Hard drives count from zero rather than "a" and partitions start at zero
5736 rather than one. Be aware too that with the hd devices, only hard drives are
5737 counted, not atapi-ide devices such as cdrom players and burners. Also, the
5738 same construct is used with SCSI drives. (Normally they get higher numbers
5739 than IDE drives except when the BIOS is configured to boot from SCSI devices.)
5740 When you ask the BIOS to boot from a different hard disk (for instance your
5741 primary slave), <e>that</e> harddisk is seen as <path>hd0</path>.
5742 </p>
5743
5744 <p>
5745 Assuming you have a hard drive on <path>/dev/hda</path>, a cdrom player on
5746 <path>/dev/hdb</path>, a burner on <path>/dev/hdc</path>, a second hard drive
5747 on <path>/dev/hdd</path> and no SCSI hard drive, <path>/dev/hdd7</path> gets
5748 translated to <path>(hd1,6)</path>. It might sound tricky and tricky it is
5749 indeed, but as we will see, GRUB offers a tab completion mechanism
5750 that comes handy for those of you having a lot of hard drives and
5751 partitions and who are a little lost in the GRUB numbering scheme.
5752 </p>
5753
5754 <p>
5755 Having gotten the feel for that, it is time to install GRUB.
5756 </p>
5757
5758 </body>
5759 </subsection>
5760 <subsection>
5761 <title>Installing GRUB</title>
5762 <body>
5763
5764 <p>
5765 To install GRUB, let's first emerge it.
5766 </p>
5767
5768 <pre caption="Installing GRUB">
5769 # <i>emerge grub</i>
5770 </pre>
5771
5772 <p>
5773 Although GRUB is now installed, we still need to write up a
5774 configuration file for it and install GRUB in the MBR so that GRUB
5775 automatically boots your newly created kernel. Create
5776 <path>/boot/grub/grub.conf</path> with <c>nano</c> (or, if applicable, another
5777 editor):
5778 </p>
5779
5780 <pre caption="Creating /boot/grub/grub.conf">
5781 # <i>nano -w /boot/grub/grub.conf</i>
5782 </pre>
5783
5784 <p>
5785 Now we are going to write up a <path>grub.conf</path>. Below you'll
5786 find two possible <path>grub.conf</path> for the partitioning example we use
5787 in this guide, with kernel image <path>kernel-2.6.12-gentoo-r10</path>. We've
5788 only extensively commented the first <path>grub.conf</path>.
5789 </p>
5790
5791 <ul>
5792 <li>
5793 The first <path>grub.conf</path> is for people who have not used
5794 <c>genkernel</c> to build their kernel
5795 </li>
5796 <li>
5797 The second <path>grub.conf</path> is for people who have used
5798 <c>genkernel</c> to build their kernel
5799 </li>
5800 </ul>
5801
5802 <note>
5803 If your root filesystem is JFS, you <e>must</e> add " ro" to the <c>kernel</c>
5804 line since JFS needs to replay its log before it allows read-write mounting.
5805 </note>
5806
5807 <pre caption="grub.conf for non-genkernel users">
5808 <comment># Which listing to boot as default. 0 is the first, 1 the second etc.</comment>
5809 default 0
5810 <comment># How many seconds to wait before the default listing is booted.</comment>
5811 timeout 30
5812 <comment># Nice, fat splash-image to spice things up :)
5813 # Comment out if you don't have a graphics card installed</comment>
5814 splashimage=(hd0,0)/boot/grub/splash.xpm.gz
5815
5816 title=Gentoo Linux 2.6.12
5817 <comment># Partition where the kernel image (or operating system) is located</comment>
5818 root (hd0,0)
5819 kernel /boot/kernel-2.6.12-gentoo-r10 root=/dev/hda3
5820
5821 <comment># The next four lines are only if you dualboot with a Windows system.</comment>
5822 <comment># In this case, Windows is hosted on /dev/hda6.</comment>
5823 title=Windows XP
5824 rootnoverify (hd0,5)
5825 makeactive
5826 chainloader +1
5827 </pre>
5828
5829 <pre caption="grub.conf for genkernel users">
5830 default 0
5831 timeout 30
5832 splashimage=(hd0,0)/boot/grub/splash.xpm.gz
5833
5834 title=Gentoo Linux 2.6.12
5835 root (hd0,0)
5836 kernel /boot/kernel-2.6.12-gentoo-r10 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev
5837 initrd /boot/initramfs-genkernel-amd64-2.6.12-gentoo-r10
5838
5839 <comment># Only in case you want to dual-boot</comment>
5840 title=Windows XP
5841 rootnoverify (hd0,5)
5842 makeactive
5843 chainloader +1
5844 </pre>
5845
5846 <p>
5847 If you used a different partitioning scheme and/or kernel image, adjust
5848 accordingly. However, make sure that anything that follows a GRUB-device (such
5849 as <path>(hd0,0)</path>) is relative to the mountpoint, not the root. In other
5850 words, <path>(hd0,0)/grub/splash.xpm.gz</path> is in reality
5851 <path>/boot/grub/splash.xpm.gz</path> since <path>(hd0,0)</path> is
5852 <path>/boot</path>.
5853 </p>
5854
5855 <p>
5856 Besides, if you chose to use a different partitioning scheme and did not put
5857 <path>/boot</path> in a separate partition, the <path>/boot</path> prefix used
5858 in the above code samples is really <e>required</e>. If you followed our
5859 suggested partitioning plan, the <path>/boot</path> prefix it not required, but
5860 a <path>boot</path> symlink makes it work. In short, the above examples should
5861 work whether you defined a separate <path>/boot</path> partition or not.
5862 </p>
5863
5864 <p>
5865 If you need to pass any additional options to the kernel, simply add
5866 them to the end of the kernel command. We're already passing one option
5867 (<c>root=/dev/hda3</c> or <c>real_root=/dev/hda3</c>), but you can pass others
5868 as well, such as the <c>video</c> statement for framebuffer as we discussed
5869 previously.
5870 </p>
5871
5872 <p>
5873 <c>genkernel</c> users should know that their kernels use the same boot options
5874 as is used for the Installation CD. For instance, if you have SCSI devices, you
5875 should add <c>doscsi</c> as kernel option.
5876 </p>
5877
5878 <p>
5879 Now save the <path>grub.conf</path> file and exit. We still need to install GRUB
5880 in the MBR (Master Boot Record) though.
5881 </p>
5882
5883 <p>
5884 The GRUB developers recommend the use of <c>grub-install</c>. However, if for
5885 some reason <c>grub-install</c> fails to work correctly you still have the
5886 option to manually install GRUB.
5887 </p>
5888
5889 <p>
5890 Continue with <uri link="#grub-install-auto">Default: Setting up GRUB using
5891 grub-install</uri> or <uri link="#grub-install-manual">Alternative: Setting up
5892 GRUB using manual instructions</uri>.
5893 </p>
5894
5895 </body>
5896 </subsection>
5897 <subsection id="grub-install-auto">
5898 <title>Default: Setting up GRUB using grub-install</title>
5899 <body>
5900
5901 <p>
5902 To install GRUB you will need to issue the <c>grub-install</c> command.
5903 However, <c>grub-install</c> won't work off-the-shelf since we are inside a
5904 chrooted environment. We need to create <path>/etc/mtab</path> which lists all
5905 mounted filesystems. Fortunately, there is an easy way to accomplish this -
5906 just copy over <path>/proc/mounts</path> to <path>/etc/mtab</path>, excluding
5907 the <c>rootfs</c> line if you haven't created a separate boot partition. The
5908 following command will work in both cases:
5909 </p>
5910
5911 <pre caption="Creating /etc/mtab">
5912 # <i>grep -v rootfs /proc/mounts &gt; /etc/mtab</i>
5913 </pre>
5914
5915 <p>
5916 Now we can install GRUB using <c>grub-install</c>:
5917 </p>
5918
5919 <pre caption="Running grub-install">
5920 # <i>grub-install /dev/hda</i>
5921 </pre>
5922
5923 <p>
5924 If you have more questions regarding GRUB, please consult the <uri
5925 link="http://www.gnu.org/software/grub/grub-faq.html">GRUB FAQ</uri> or the <uri
5926 link="http://www.gnu.org/software/grub/manual/">GRUB Manual</uri>.
5927 </p>
5928
5929 <p>
5930 Continue with <uri link="#reboot">Rebooting the System</uri>.
5931 </p>
5932
5933 </body>
5934 </subsection>
5935 <subsection id="grub-install-manual">
5936 <title>Alternative: Setting up GRUB using manual instructions</title>
5937 <body>
5938
5939 <p>
5940 To start configuring GRUB, you type in <c>grub</c>. You'll be presented
5941 with the <path>grub&gt;</path> grub command-line prompt. Now, you need to type
5942 in the right commands to install the GRUB boot record onto your hard drive.
5943 </p>
5944
5945 <pre caption=" Starting the GRUB shell">
5946 # <i>grub</i>
5947 </pre>
5948
5949 <note>
5950 If your system does not have any floppy drives, add the <c>--no-floppy</c>
5951 option to the above command to prevent grub from probing the (non-existing)
5952 floppy drives.
5953 </note>
5954
5955 <p>
5956 In the example configuration we want to install GRUB so that it reads its
5957 information from the boot-partition <path>/dev/hda1</path>, and installs the
5958 GRUB boot record on the hard drive's MBR (master boot record) so that the first
5959 thing we see when we turn on the computer is the GRUB prompt. Of course, if you
5960 haven't followed the example configuration during the installation,
5961 change the commands accordingly.
5962 </p>
5963
5964 <p>
5965 The tab completion mechanism of GRUB can be used from within GRUB.
5966 For instance, if you type in "<c>root (</c>" followed by a TAB, you will
5967 be presented with a list of devices (such as <path>hd0</path>). If you
5968 type in "<c>root (hd0,</c>" followed by a TAB, you will receive a list
5969 of available partitions to choose from (such as <path>hd0,0</path>).
5970 </p>
5971
5972 <p>
5973 By using the tab completion, setting up GRUB should be not that hard.
5974 Now go on, configure GRUB, shall we? :-)
5975 </p>
5976
5977 <pre caption=" Installing GRUB in the MBR">
5978 grub&gt; <i>root (hd0,0)</i> <comment>(Specify where your /boot partition resides)</comment>
5979 grub&gt; <i>setup (hd0)</i> <comment>(Install GRUB in the MBR)</comment>
5980 grub&gt; <i>quit</i> <comment>(Exit the GRUB shell)</comment>
5981 </pre>
5982
5983 <note>
5984 If you want to install GRUB in a certain partition instead of the MBR,
5985 you have to alter the <c>setup</c> command so it points to the right
5986 partition. For instance, if you want GRUB installed in
5987 <path>/dev/hda3</path>, then the command becomes <c>setup (hd0,2)</c>.
5988 Few users however want to do this.
5989 </note>
5990
5991 <p>
5992 If you have more questions regarding GRUB, please consult the <uri
5993 link="http://www.gnu.org/software/grub/grub-faq.html">GRUB FAQ</uri> or the <uri
5994 link="http://www.gnu.org/software/grub/manual/">GRUB Manual</uri>.
5995 </p>
5996
5997 <p>
5998 Continue with <uri link="#reboot">Rebooting the System</uri>.
5999 </p>
6000
6001 </body>
6002 </subsection>
6003 </section>
6004 <section id="reboot">
6005 <title>Rebooting the System</title>
6006 <subsection>
6007 <body>
6008
6009 <p>
6010 Exit the chrooted environment and unmount all mounted partitions. Then type in
6011 that one magical command you have been waiting for: <c>reboot</c>.
6012 </p>
6013
6014 <pre caption="Unmounting all partitions and rebooting">
6015 # <i>exit</i>
6016 # <i>cd</i>
6017 # <i>umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo</i>
6018 # <i>reboot</i>
6019 </pre>
6020
6021 <p>
6022 Of course, don't forget to remove the bootable CD, otherwise the CD will be
6023 booted again instead of your new Gentoo system.
6024 </p>
6025
6026 <p>
6027 Once rebooted in your Gentoo installation, finish up with <uri
6028 link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
6029 </p>
6030
6031 </body>
6032 </subsection>
6033 </section>
6034 </sections>
6035
6036
6037
6038 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-amd64-disk.xml
6039
6040 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-amd64-disk.xml?rev=1.1&view=markup
6041 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-amd64-disk.xml?rev=1.1&content-type=text/plain
6042
6043 Index: hb-install-amd64-disk.xml
6044 ===================================================================
6045 <?xml version='1.0' encoding='UTF-8'?>
6046 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
6047
6048 <!-- The content of this document is licensed under the CC-BY-SA license -->
6049 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6050
6051 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-amd64-disk.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
6052
6053 <sections>
6054
6055 <version>6.0</version>
6056 <date>2006-02-27</date>
6057
6058 <section>
6059 <title>Introduction to Block Devices</title>
6060 <subsection>
6061 <title>Block Devices</title>
6062 <body>
6063
6064 <p>
6065 We'll take a good look at disk-oriented aspects of Gentoo Linux
6066 and Linux in general, including Linux filesystems, partitions and block devices.
6067 Then, once you're familiar with the ins and outs of disks and filesystems,
6068 you'll be guided through the process of setting up partitions and filesystems
6069 for your Gentoo Linux installation.
6070 </p>
6071
6072 <p>
6073 To begin, we'll introduce <e>block devices</e>. The most famous block device is
6074 probably the one that represents the first IDE drive in a Linux system, namely
6075 <path>/dev/hda</path>. If your system uses SCSI drives, then your first hard
6076 drive would be <path>/dev/sda</path>.
6077 </p>
6078
6079 <p>
6080 The block devices above represent an abstract interface to the disk. User
6081 programs can use these block devices to interact with your disk without worrying
6082 about whether your drives are IDE, SCSI or something else. The program can
6083 simply address the storage on the disk as a bunch of contiguous,
6084 randomly-accessible 512-byte blocks.
6085 </p>
6086
6087 </body>
6088 </subsection>
6089 <subsection>
6090 <title>Partitions and Slices</title>
6091 <body>
6092
6093 <p>
6094 Although it is theoretically possible to use a full disk to house your Linux
6095 system, this is almost never done in practice. Instead, full disk block devices
6096 are split up in smaller, more manageable block devices. On amd64 systems,
6097 these are called <e>partitions</e>.
6098 </p>
6099
6100 </body>
6101 </subsection>
6102 <subsection>
6103 <title>Partitions</title>
6104 <body>
6105
6106 <p>
6107 Partitions are divided in three types:
6108 <e>primary</e>, <e>extended</e> and <e>logical</e>.
6109 </p>
6110
6111 <p>
6112 A <e>primary</e> partition is a partition which has its information stored in
6113 the MBR (master boot record). As an MBR is very small (512 bytes) only four
6114 primary partitions can be defined (for instance, <path>/dev/hda1</path> to
6115 <path>/dev/hda4</path>).
6116 </p>
6117
6118 <p>
6119 An <e>extended</e> partition is a special primary partition (meaning the
6120 extended partition must be one of the four possible primary partitions) which
6121 contains more partitions. Such a partition didn't exist originally, but as
6122 four partitions were too few, it was brought to life to extend the formatting
6123 scheme without losing backward compatibility.
6124 </p>
6125
6126 <p>
6127 A <e>logical</e> partition is a partition inside the extended partition. Their
6128 definitions aren't placed inside the MBR, but are declared inside the extended
6129 partition.
6130 </p>
6131
6132 </body>
6133 </subsection>
6134 </section>
6135 <section>
6136 <title>Designing a Partitioning Scheme</title>
6137 <subsection>
6138 <title>Default Partitioning Scheme</title>
6139 <body>
6140
6141 <p>
6142 If you are not interested in drawing up a partitioning scheme for your system,
6143 you can use the partitioning scheme we use throughout this book:
6144 </p>
6145
6146 <table>
6147 <tr>
6148 <th>Partition</th>
6149 <th>Filesystem</th>
6150 <th>Size</th>
6151 <th>Description</th>
6152 </tr>
6153 <tr>
6154 <ti><path>/dev/hda1</path></ti>
6155 <ti>ext2</ti>
6156 <ti>32M</ti>
6157 <ti>Boot partition</ti>
6158 </tr>
6159 <tr>
6160 <ti><path>/dev/hda2</path></ti>
6161 <ti>(swap)</ti>
6162 <ti>512M</ti>
6163 <ti>Swap partition</ti>
6164 </tr>
6165 <tr>
6166 <ti><path>/dev/hda3</path></ti>
6167 <ti>ext3</ti>
6168 <ti>Rest of the disk</ti>
6169 <ti>Root partition</ti>
6170 </tr>
6171 </table>
6172
6173 <p>
6174 If you are interested in knowing how big a partition (or logical
6175 volume) should be, or even how many partitions (or volumes) you need, read on.
6176 Otherwise continue with <uri link="#fdisk">Using fdisk to Partition your
6177 Disk</uri>.
6178 </p>
6179
6180 </body>
6181 </subsection>
6182 <subsection>
6183 <title>How Many and How Big?</title>
6184 <body>
6185
6186 <p>
6187 The number of partitions is highly dependent on your environment. For instance,
6188 if you have lots of users, you will most likely want to have your
6189 <path>/home</path> separate as it increases security and makes backups easier.
6190 If you are installing Gentoo to perform as a mailserver, your
6191 <path>/var</path> should be separate as all mails are stored inside
6192 <path>/var</path>. A good choice of filesystem will then maximise your
6193 performance. Gameservers will have a separate <path>/opt</path> as most gaming
6194 servers are installed there. The reason is similar for <path>/home</path>:
6195 security and backups. You will definitely want to keep <path>/usr</path> big:
6196 not only will it contain the majority of applications, the Portage tree alone
6197 takes around 500 Mbyte excluding the various sources that are stored in it.
6198 </p>
6199
6200 <p>
6201 As you can see, it very much depends on what you want to achieve. Separate
6202 partitions or volumes have the following advantages:
6203 </p>
6204
6205 <ul>
6206 <li>
6207 You can choose the best performing filesystem for each partition or volume
6208 </li>
6209 <li>
6210 Your entire system cannot run out of free space if one defunct tool is
6211 continuously writing files to a partition or volume
6212 </li>
6213 <li>
6214 If necessary, file system checks are reduced in time, as multiple checks can
6215 be done in parallel (although this advantage is more with multiple disks than
6216 it is with multiple partitions)
6217 </li>
6218 <li>
6219 Security can be enhanced by mounting some partitions or volumes read-only,
6220 nosuid (setuid bits are ignored), noexec (executable bits are ignored) etc.
6221 </li>
6222 </ul>
6223
6224 <p>
6225 However, multiple partitions have one big disadvantage: if not configured
6226 properly, you might result in having a system with lots
6227 of free space on one partition and none on another. There is also a 15-partition
6228 limit for SCSI and SATA.
6229 </p>
6230
6231 <p>
6232 As an example partitioning, we show you one for a 20GB disk, used as a
6233 demonstration laptop (containing webserver, mailserver, gnome, ...):
6234 </p>
6235
6236 <pre caption="Filesystem usage example">
6237 Filesystem Type Size Used Avail Use% Mounted on
6238 /dev/hda5 ext3 509M 132M 351M 28% /
6239 /dev/hda2 ext3 5.0G 3.0G 1.8G 63% /home
6240 /dev/hda7 ext3 7.9G 6.2G 1.3G 83% /usr
6241 /dev/hda8 ext3 1011M 483M 477M 51% /opt
6242 /dev/hda9 ext3 2.0G 607M 1.3G 32% /var
6243 /dev/hda1 ext2 51M 17M 31M 36% /boot
6244 /dev/hda6 swap 516M 12M 504M 2% &lt;not mounted&gt;
6245 <comment>(Unpartitioned space for future usage: 2 GB)</comment>
6246 </pre>
6247
6248 <p>
6249 <path>/usr</path> is rather full (83% used) here, but once
6250 all software is installed, <path>/usr</path> doesn't tend to grow that much.
6251 Although allocating a few gigabytes of disk space for <path>/var</path> may
6252 seem excessive, remember that Portage uses this partition by default for
6253 compiling packages. If you want to keep <path>/var</path> at a more reasonable
6254 size, such as 1GB, you will need to alter your <c>PORTAGE_TMPDIR</c> variable
6255 in <path>/etc/make.conf</path> to point to the partition with enough free space
6256 for compiling extremely large packages such as OpenOffice.
6257 </p>
6258
6259 </body>
6260 </subsection>
6261 </section>
6262 <section id="fdisk">
6263 <title>Using fdisk to Partition your Disk</title>
6264 <subsection>
6265 <body>
6266
6267 <p>
6268 The following parts explain how to create the example partition layout
6269 described previously, namely:
6270 </p>
6271
6272 <table>
6273 <tr>
6274 <th>Partition</th>
6275 <th>Description</th>
6276 </tr>
6277 <tr>
6278 <ti><path>/dev/hda1</path></ti>
6279 <ti>Boot partition</ti>
6280 </tr>
6281 <tr>
6282 <ti><path>/dev/hda2</path></ti>
6283 <ti>Swap partition</ti>
6284 </tr>
6285 <tr>
6286 <ti><path>/dev/hda3</path></ti>
6287 <ti>Root partition</ti>
6288 </tr>
6289 </table>
6290
6291 <p>
6292 Change your partition layout according to your own preference.
6293 </p>
6294
6295 </body>
6296 </subsection>
6297 <subsection>
6298 <title>Viewing the Current Partition Layout</title>
6299 <body>
6300
6301 <p>
6302 <c>fdisk</c> is a popular and powerful tool to split your disk into partitions.
6303 Fire up <c>fdisk</c> on your disk (in our example, we use
6304 <path>/dev/hda</path>):
6305 </p>
6306
6307 <pre caption="Starting fdisk">
6308 # <i>fdisk /dev/hda</i>
6309 </pre>
6310
6311 <p>
6312 Once in <c>fdisk</c>, you'll be greeted with a prompt that looks like this:
6313 </p>
6314
6315 <pre caption="fdisk prompt">
6316 Command (m for help):
6317 </pre>
6318
6319 <p>
6320 Type <c>p</c> to display your disk's current partition configuration:
6321 </p>
6322
6323 <pre caption="An example partition configuration">
6324 Command (m for help): <i>p</i>
6325
6326 Disk /dev/hda: 240 heads, 63 sectors, 2184 cylinders
6327 Units = cylinders of 15120 * 512 bytes
6328
6329 Device Boot Start End Blocks Id System
6330 /dev/hda1 1 14 105808+ 83 Linux
6331 /dev/hda2 15 49 264600 82 Linux swap
6332 /dev/hda3 50 70 158760 83 Linux
6333 /dev/hda4 71 2184 15981840 5 Extended
6334 /dev/hda5 71 209 1050808+ 83 Linux
6335 /dev/hda6 210 348 1050808+ 83 Linux
6336 /dev/hda7 349 626 2101648+ 83 Linux
6337 /dev/hda8 627 904 2101648+ 83 Linux
6338 /dev/hda9 905 2184 9676768+ 83 Linux
6339
6340 Command (m for help):
6341 </pre>
6342
6343 <p>
6344 This particular disk is configured to house seven Linux filesystems (each with a
6345 corresponding partition listed as "Linux") as well as a swap partition (listed
6346 as "Linux swap").
6347 </p>
6348
6349 </body>
6350 </subsection>
6351 <subsection>
6352 <title>Removing all Partitions</title>
6353 <body>
6354
6355 <p>
6356 We will first remove all existing partitions from the disk. Type <c>d</c> to
6357 delete a partition. For instance, to delete an existing <path>/dev/hda1</path>:
6358 </p>
6359
6360 <pre caption="Deleting a partition">
6361 Command (m for help): <i>d</i>
6362 Partition number (1-4): <i>1</i>
6363 </pre>
6364
6365 <p>
6366 The partition has been scheduled for deletion. It will no longer show up if you
6367 type <c>p</c>, but it will not be erased until your changes have been saved. If
6368 you made a mistake and want to abort without saving your changes, type <c>q</c>
6369 immediately and hit enter and your partition will not be deleted.
6370 </p>
6371
6372 <p>
6373 Now, assuming that you do indeed want to wipe out all the partitions on your
6374 system, repeatedly type <c>p</c> to print out a partition listing and then type
6375 <c>d</c> and the number of the partition to delete it. Eventually, you'll end
6376 up with a partition table with nothing in it:
6377 </p>
6378
6379 <pre caption="An empty partition table">
6380 Disk /dev/hda: 30.0 GB, 30005821440 bytes
6381 240 heads, 63 sectors/track, 3876 cylinders
6382 Units = cylinders of 15120 * 512 = 7741440 bytes
6383
6384 Device Boot Start End Blocks Id System
6385
6386 Command (m for help):
6387 </pre>
6388
6389 <p>
6390 Now that the in-memory partition table is empty, we're ready to create the
6391 partitions. We will use a default partitioning scheme as discussed previously.
6392 Of course, don't follow these instructions to the letter if you don't want the
6393 same partitioning scheme!
6394 </p>
6395
6396 </body>
6397 </subsection>
6398 <subsection>
6399 <title>Creating the Boot Partition</title>
6400 <body>
6401
6402 <p>
6403 We first create a small boot partition. Type <c>n</c> to create a new partition,
6404 then <c>p</c> to select a primary partition, followed by <c>1</c> to select the
6405 first primary partition. When prompted for the first cylinder, hit enter. When
6406 prompted for the last cylinder, type <c>+32M</c> to create a partition 32 Mbyte
6407 in size:
6408 </p>
6409
6410 <pre caption="Creating the boot partition">
6411 Command (m for help): <i>n</i>
6412 Command action
6413 e extended
6414 p primary partition (1-4)
6415 <i>p</i>
6416 Partition number (1-4): <i>1</i>
6417 First cylinder (1-3876, default 1): <comment>(Hit Enter)</comment>
6418 Using default value 1
6419 Last cylinder or +size or +sizeM or +sizeK (1-3876, default 3876): <i>+32M</i>
6420 </pre>
6421
6422 <p>
6423 Now, when you type <c>p</c>, you should see the following partition printout:
6424 </p>
6425
6426 <pre caption="Created boot partition">
6427 Command (m for help): <i>p</i>
6428
6429 Disk /dev/hda: 30.0 GB, 30005821440 bytes
6430 240 heads, 63 sectors/track, 3876 cylinders
6431 Units = cylinders of 15120 * 512 = 7741440 bytes
6432
6433 Device Boot Start End Blocks Id System
6434 /dev/hda1 1 14 105808+ 83 Linux
6435 </pre>
6436
6437 <p>
6438 We need to make this partition bootable. Type <c>a</c> to toggle the bootable
6439 flag on a partition and select <c>1</c>. If you press <c>p</c> again, you will
6440 notice that an <path>*</path> is placed in the "Boot" column.
6441 </p>
6442
6443 </body>
6444 </subsection>
6445 <subsection>
6446 <title>Creating the Swap Partition</title>
6447 <body>
6448
6449 <p>
6450 Let's now create the swap partition. To do this, type <c>n</c> to create a new
6451 partition, then <c>p</c> to tell fdisk that you want a primary partition. Then
6452 type <c>2</c> to create the second primary partition, <path>/dev/hda2</path> in
6453 our case. When prompted for the first cylinder, hit enter. When prompted for
6454 the last cylinder, type <c>+512M</c> to create a partition 512MB in size. After
6455 you've done this, type <c>t</c> to set the partition type, <c>2</c> to select
6456 the partition you just created and then type in <c>82</c> to set the partition
6457 type to "Linux Swap". After completing these steps, typing <c>p</c> should
6458 display a partition table that looks similar to this:
6459 </p>
6460
6461 <pre caption="Partition listing after creating a swap partition">
6462 Command (m for help): <i>p</i>
6463
6464 Disk /dev/hda: 30.0 GB, 30005821440 bytes
6465 240 heads, 63 sectors/track, 3876 cylinders
6466 Units = cylinders of 15120 * 512 = 7741440 bytes
6467
6468 Device Boot Start End Blocks Id System
6469 /dev/hda1 * 1 14 105808+ 83 Linux
6470 /dev/hda2 15 81 506520 82 Linux swap
6471 </pre>
6472
6473 </body>
6474 </subsection>
6475 <subsection>
6476 <title>Creating the Root Partition</title>
6477 <body>
6478
6479 <p>
6480 Finally, let's create the root partition. To do this, type <c>n</c> to create a
6481 new partition, then <c>p</c> to tell fdisk that you want a primary partition.
6482 Then type <c>3</c> to create the third primary partition, <path>/dev/hda3</path>
6483 in our case. When prompted for the first cylinder, hit enter. When prompted for
6484 the last cylinder, hit enter to create a partition that takes up the rest of the
6485 remaining space on your disk. After completing these steps, typing <c>p</c>
6486 should display a partition table that looks similar to this:
6487 </p>
6488
6489 <pre caption="Partition listing after creating the root partition">
6490 Command (m for help): <i>p</i>
6491
6492 Disk /dev/hda: 30.0 GB, 30005821440 bytes
6493 240 heads, 63 sectors/track, 3876 cylinders
6494 Units = cylinders of 15120 * 512 = 7741440 bytes
6495
6496 Device Boot Start End Blocks Id System
6497 /dev/hda1 * 1 14 105808+ 83 Linux
6498 /dev/hda2 15 81 506520 82 Linux swap
6499 /dev/hda3 82 3876 28690200 83 Linux
6500 </pre>
6501
6502
6503 </body>
6504 </subsection>
6505 <subsection>
6506 <title>Saving the Partition Layout</title>
6507 <body>
6508
6509 <p>
6510 To save the partition layout and exit <c>fdisk</c>, type <c>w</c>.
6511 </p>
6512
6513 <pre caption="Save and exit fdisk">
6514 Command (m for help): <i>w</i>
6515 </pre>
6516
6517 <p>
6518 Now that your partitions are created, you can now continue with <uri
6519 link="#filesystems">Creating Filesystems</uri>.
6520 </p>
6521
6522 </body>
6523 </subsection>
6524 </section>
6525 <section id="filesystems">
6526 <title>Creating Filesystems</title>
6527 <subsection>
6528 <title>Introduction</title>
6529 <body>
6530
6531 <p>
6532 Now that your partitions are created, it is time to place a filesystem on them.
6533 If you don't care about what filesystem to choose and are happy with what we use
6534 as default in this handbook, continue with <uri
6535 link="#filesystems-apply">Applying a Filesystem to a Partition</uri>.
6536 Otherwise read on to learn about the available filesystems...
6537 </p>
6538
6539 </body>
6540 </subsection>
6541 <subsection>
6542 <title>Filesystems?</title>
6543 <body>
6544
6545 <p>
6546 Several filesystems are available. Some of them are found stable on the amd64
6547 architecture, others aren't. The following filesystems are found to be stable:
6548 ext2 and ext3. jfs and reiserfs may work but need more testing. If you're really
6549 adventurous you can try the unsupported filesystems.
6550 </p>
6551
6552 <p>
6553 <b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata
6554 journaling, which means that routine ext2 filesystem checks at startup time can
6555 be quite time-consuming. There is now quite a selection of newer-generation
6556 journaled filesystems that can be checked for consistency very quickly and are
6557 thus generally preferred over their non-journaled counterparts. Journaled
6558 filesystems prevent long delays when you boot your system and your filesystem
6559 happens to be in an inconsistent state.
6560 </p>
6561
6562 <p>
6563 <b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata
6564 journaling for fast recovery in addition to other enhanced journaling modes like
6565 full data and ordered data journaling. ext3 is a very good and reliable
6566 filesystem. It has an additional hashed b-tree indexing option that enables
6567 high performance in almost all situations. You can enable this indexing by
6568 adding <c>-O dir_index</c> to the <c>mke2fs</c> command. In short, ext3 is an
6569 excellent filesystem.
6570 </p>
6571
6572 <p>
6573 <b>ReiserFS</b> is a B*-tree based filesystem that has very good overall
6574 performance and greatly outperforms both ext2 and ext3 when dealing with small
6575 files (files less than 4k), often by a factor of 10x-15x. ReiserFS also scales
6576 extremely well and has metadata journaling. As of kernel 2.4.18+, ReiserFS is
6577 solid and usable as both general-purpose filesystem and for extreme cases such
6578 as the creation of large filesystems, the use of many small files, very large
6579 files and directories containing tens of thousands of files.
6580 </p>
6581
6582 <p>
6583 <b>XFS</b> is a filesystem with metadata journaling which comes with a robust
6584 feature-set and is optimized for scalability. We only recommend using this
6585 filesystem on Linux systems with high-end SCSI and/or fibre channel storage and
6586 an uninterruptible power supply. Because XFS aggressively caches in-transit data
6587 in RAM, improperly designed programs (those that don't take proper precautions
6588 when writing files to disk and there are quite a few of them) can lose a good
6589 deal of data if the system goes down unexpectedly.
6590 </p>
6591
6592 <p>
6593 <b>JFS</b> is IBM's high-performance journaling filesystem. It has recently
6594 become production-ready and there hasn't been a sufficient track record to
6595 comment positively nor negatively on its general stability at this point.
6596 </p>
6597
6598 </body>
6599 </subsection>
6600 <subsection id="filesystems-apply">
6601 <title>Applying a Filesystem to a Partition</title>
6602 <body>
6603
6604 <p>
6605 To create a filesystem on a partition or volume, there are tools available for
6606 each possible filesystem:
6607 </p>
6608
6609 <table>
6610 <tr>
6611 <th>Filesystem</th>
6612 <th>Creation Command</th>
6613 </tr>
6614 <tr>
6615 <ti>ext2</ti>
6616 <ti><c>mke2fs</c></ti>
6617 </tr>
6618 <tr>
6619 <ti>ext3</ti>
6620 <ti><c>mke2fs -j</c></ti>
6621 </tr>
6622 <tr>
6623 <ti>reiserfs</ti>
6624 <ti><c>mkreiserfs</c></ti>
6625 </tr>
6626 <tr>
6627 <ti>xfs</ti>
6628 <ti><c>mkfs.xfs</c></ti>
6629 </tr>
6630 <tr>
6631 <ti>jfs</ti>
6632 <ti><c>mkfs.jfs</c></ti>
6633 </tr>
6634 </table>
6635
6636 <p>
6637 For instance, to have the boot partition (<path>/dev/hda1</path> in our
6638 example) in ext2 and the root partition (<path>/dev/hda3</path> in our example)
6639 in ext3 (as in our example), you would use:
6640 </p>
6641
6642 <pre caption="Applying a filesystem on a partition">
6643 # <i>mke2fs /dev/hda1</i>
6644 # <i>mke2fs -j /dev/hda3</i>
6645 </pre>
6646
6647 <p>
6648 Now create the filesystems on your newly created partitions.
6649 </p>
6650
6651 </body>
6652 </subsection>
6653 <subsection>
6654 <title>Activating the Swap Partition</title>
6655 <body>
6656
6657 <p>
6658 <c>mkswap</c> is the command that is used to initialize swap partitions:
6659 </p>
6660
6661 <pre caption="Creating a Swap signature">
6662 # <i>mkswap /dev/hda2</i>
6663 </pre>
6664
6665 <p>
6666 To activate the swap partition, use <c>swapon</c>:
6667 </p>
6668
6669 <pre caption="Activating the swap partition">
6670 # <i>swapon /dev/hda2</i>
6671 </pre>
6672
6673 <p>
6674 Create and activate the swap now.
6675 </p>
6676
6677 </body>
6678 </subsection>
6679 </section>
6680 <section>
6681 <title>Mounting</title>
6682 <body>
6683
6684 <p>
6685 Now that your partitions are initialized and are housing a filesystem, it is
6686 time to mount those partitions. Use the <c>mount</c> command. Don't forget to
6687 create the necessary mount directories for every partition you created. As an
6688 example we mount the root and boot partition:
6689 </p>
6690
6691 <pre caption="Mounting partitions">
6692 # <i>mount /dev/hda3 /mnt/gentoo</i>
6693 # <i>mkdir /mnt/gentoo/boot</i>
6694 # <i>mount /dev/hda1 /mnt/gentoo/boot</i>
6695 </pre>
6696
6697 <note>
6698 If you want your <path>/tmp</path> to reside on a separate partition, be sure to
6699 change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This
6700 also holds for <path>/var/tmp</path>.
6701 </note>
6702
6703 <p>
6704 We will also have to mount the proc filesystem (a virtual interface with the
6705 kernel) on <path>/proc</path>. But first we will need to place our files on the partitions.
6706 </p>
6707
6708 <p>
6709 Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
6710 Installation Files</uri>.
6711 </p>
6712
6713 </body>
6714 </section>
6715 </sections>
6716
6717
6718
6719 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-amd64-kernel.xml
6720
6721 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-amd64-kernel.xml?rev=1.1&view=markup
6722 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-amd64-kernel.xml?rev=1.1&content-type=text/plain
6723
6724 Index: hb-install-amd64-kernel.xml
6725 ===================================================================
6726 <?xml version='1.0' encoding='UTF-8'?>
6727 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
6728
6729 <!-- The content of this document is licensed under the CC-BY-SA license -->
6730 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6731
6732 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-amd64-kernel.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
6733
6734 <sections>
6735
6736 <version>6.1</version>
6737 <date>2006-05-28</date>
6738
6739 <section>
6740 <title>Timezone</title>
6741 <body>
6742
6743 <p>
6744 You first need to select your timezone so that your system knows where it is
6745 located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy
6746 it to <path>/etc/localtime</path>. Please avoid the
6747 <path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not
6748 indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8.
6749 </p>
6750
6751 <pre caption="Setting the timezone information">
6752 # <i>ls /usr/share/zoneinfo</i>
6753 <comment>(Suppose you want to use GMT)</comment>
6754 # <i>cp /usr/share/zoneinfo/GMT /etc/localtime</i>
6755 </pre>
6756
6757 </body>
6758 </section>
6759 <section>
6760 <title>Installing the Sources</title>
6761 <subsection>
6762 <title>Choosing a Kernel</title>
6763 <body>
6764
6765 <p>
6766 The core around which all distributions are built is the Linux kernel. It is the
6767 layer between the user programs and your system hardware. Gentoo provides its
6768 users several possible kernel sources. A full listing with description is
6769 available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel
6770 Guide</uri>.
6771 </p>
6772
6773 <p>
6774 For AMD64-based systems we have <c>gentoo-sources</c> (kernel v2.6 source
6775 patched with amd64 specific fixes for stability, performance and hardware
6776 support).
6777 </p>
6778
6779 <p>
6780 Choose your kernel source and install it using <c>emerge</c>. The
6781 <c>USE="-doc"</c> is necessary to avoid installing xorg-x11 or other
6782 dependencies at this point. <c>USE="symlink"</c> is not necessary for a new
6783 install, but ensures proper creation of the <path>/usr/src/linux</path>
6784 symlink.
6785 </p>
6786
6787 <pre caption="Installing a kernel source">
6788 # <i>USE="-doc symlink" emerge gentoo-sources</i>
6789 </pre>
6790
6791 <p>
6792 When you take a look in <path>/usr/src</path> you should see a symlink called
6793 <path>linux</path> pointing to your kernel source. In this case, the installed
6794 kernel source points to <c>gentoo-sources-2.6.12-r10</c>. Your version may be
6795 different, so keep this in mind.
6796 </p>
6797
6798 <pre caption="Viewing the kernel source symlink">
6799 # <i>ls -l /usr/src/linux</i>
6800 lrwxrwxrwx 1 root root 12 Jul 28 11:04 /usr/src/linux -&gt; linux-2.6.12-gentoo-r10
6801 </pre>
6802
6803 <p>
6804 Now it is time to configure and compile your kernel source.
6805 You can use <c>genkernel</c> for this, which will build a generic kernel as used
6806 by the Installation CD. We explain the "manual" configuration first though, as
6807 it is the best way to optimize your environment.
6808 </p>
6809
6810 <p>
6811 If you want to manually configure your kernel, continue now with <uri
6812 link="#manual">Default: Manual Configuration</uri>. If you want to use
6813 <c>genkernel</c> you should read <uri link="#genkernel">Alternative: Using
6814 genkernel</uri> instead.
6815 </p>
6816
6817 </body>
6818 </subsection>
6819 </section>
6820 <section id="manual">
6821 <title>Default: Manual Configuration</title>
6822 <subsection>
6823 <title>Introduction</title>
6824 <body>
6825
6826 <p>
6827 Manually configuring a kernel is often seen as the most difficult procedure a
6828 Linux user ever has to perform. Nothing is less true -- after configuring a
6829 couple of kernels you don't even remember that it was difficult ;)
6830 </p>
6831
6832 <p>
6833 However, one thing <e>is</e> true: you must know your system when you start
6834 configuring a kernel manually. Most information can be gathered by emerging
6835 pciutils (<c>emerge pciutils</c>) which contains <c>lspci</c>. You will now
6836 be able to use <c>lspci</c> within the chrooted environment. You may safely
6837 ignore any <e>pcilib</e> warnings (like pcilib: cannot open
6838 /sys/bus/pci/devices) that <c>lspci</c> throws out. Alternatively, you can run
6839 <c>lspci</c> from a <e>non-chrooted</e> environment. The results are the same.
6840 You can also run <c>lsmod</c> to see what kernel modules the Installation CD
6841 uses (it might provide you with a nice hint on what to enable).
6842 </p>
6843
6844 <p>
6845 Now go to your kernel source directory and execute <c>make menuconfig</c>. This
6846 will fire up an ncurses-based configuration menu.
6847 </p>
6848
6849 <pre caption="Invoking menuconfig">
6850 # <i>cd /usr/src/linux</i>
6851 # <i>make menuconfig</i>
6852 </pre>
6853
6854 <p>
6855 You will be greeted with several configuration sections. We'll first list some
6856 options you must activate (otherwise Gentoo will not function, or not function
6857 properly without additional tweaks).
6858 </p>
6859
6860 </body>
6861 </subsection>
6862 <subsection>
6863 <title>Activating Required Options</title>
6864 <body>
6865
6866 <p>
6867 First of all, activate the use of development and experimental code/drivers.
6868 You need this, otherwise some very important code/drivers won't show up:
6869 </p>
6870
6871 <pre caption="Selecting experimental code/drivers, General setup">
6872 Code maturity level options ---&gt;
6873 [*] Prompt for development and/or incomplete code/drivers
6874 General setup ---&gt;
6875 [*] Support for hot-pluggable devices
6876 </pre>
6877
6878 <p>
6879 Then we select the exact processor type. The x86_64 kernel maintainer strongly
6880 recommends users enable MCE features so that they are able to be notified of any
6881 hardware problems. On x86_64, these errors are not printed to <c>dmesg</c> like on
6882 other architectures, but to <path>/dev/mcelog</path>. This requires the
6883 <c>app-admin/mcelog</c> package.
6884 </p>
6885
6886 <pre caption="Selecting processor type and features">
6887 <comment>(Choose appropriate)</comment>
6888 Processor type and features --->
6889 [ ] Intel MCE Features
6890 [ ] AMD MCE Features
6891 Processor family (AMD-Opteron/Athlon64) --->
6892 ( ) AMD-Opteron/Athlon64
6893 ( ) Intel EM64T
6894 ( ) Generic-x86-64"
6895 </pre>
6896
6897 <p>
6898 Now go to <c>File Systems</c> and select support for the filesystems you use.
6899 <e>Don't</e> compile them as modules, otherwise your Gentoo system will not be
6900 able to mount your partitions. Also select <c>Virtual memory</c> and <c>/proc
6901 file system</c>.
6902 </p>
6903
6904 <pre caption="Selecting necessary file systems">
6905 File systems ---&gt;
6906 Pseudo Filesystems ---&gt;
6907 &lt;*&gt; /proc file system support
6908 &lt;*&gt; Virtual memory file system support (former shm fs)
6909
6910
6911 <comment>(Select one or more of the following options as needed by your system)</comment>
6912 &lt;*&gt; Reiserfs support
6913 &lt;*&gt; Ext3 journalling file system support
6914 &lt;*&gt; JFS filesystem support
6915 &lt;*&gt; Second extended fs support
6916 &lt;*&gt; XFS filesystem support
6917 </pre>
6918
6919 <p>
6920 If you are using PPPoE to connect to the Internet or you are using a dial-up
6921 modem, you will need the following options in the kernel:
6922 </p>
6923
6924 <pre caption="Selecting PPPoE necessary drivers">
6925 Device Drivers ---&gt;
6926 Networking Support ---&gt;
6927 &lt;*&gt; PPP (point-to-point protocol) support
6928 &lt;*&gt; PPP support for async serial ports
6929 &lt;*&gt; PPP support for sync tty ports
6930 </pre>
6931
6932 <p>
6933 The two compression options won't harm but are not definitely needed, neither
6934 does the <c>PPP over Ethernet</c> option, that might only be used by
6935 <c>rp-pppoe</c> when configured to do kernel mode PPPoE.
6936 </p>
6937
6938 <p>
6939 If you require it, don't forget to include support in the kernel for your
6940 ethernet card.
6941 </p>
6942
6943 <p>
6944 If you have a multi-CPU Opteron or a multi-core (e.g. AMD64 X2) system, you
6945 should activate "Symmetric multi-processing support":
6946 </p>
6947
6948 <pre caption="Activating SMP support">
6949 Processor type and features ---&gt;
6950 [*] Symmetric multi-processing support
6951 </pre>
6952
6953 <note>
6954 In multi-core systems, each core counts as one processor.
6955 </note>
6956
6957 <p>
6958 If you use USB Input Devices (like Keyboard or Mouse) don't forget to enable
6959 those as well:
6960 </p>
6961
6962 <pre caption="Activating USB Support for Input Devices">
6963 Device Drivers ---&gt;
6964 USB Support ---&gt;
6965 &lt;*&gt; USB Human Interface Device (full HID) support
6966 [*] HID input layer support
6967 </pre>
6968
6969 <p>
6970 If you want to run a multilib-enabled system (which is the default), you should
6971 make sure that support for 32bit executables is activated:
6972 </p>
6973
6974 <pre caption="Activating 32-Bit Emulation Support">
6975 Executable file formats / Emulations ---&gt;
6976 [*] IA32 Emulation
6977 [*] IA32 a.out support
6978 </pre>
6979
6980 <p>
6981 When you've finished configuring the kernel, continue with <uri
6982 link="#compiling">Compiling and Installing</uri>.
6983 </p>
6984
6985 </body>
6986 </subsection>
6987 <subsection id="compiling">
6988 <title>Compiling and Installing</title>
6989 <body>
6990
6991 <p>
6992 Now that your kernel is configured, it is time to compile and install it. Exit
6993 the configuration and start the compilation process:
6994 </p>
6995
6996 <pre caption="Compiling the kernel">
6997 # <i>make &amp;&amp; make modules_install</i>
6998 </pre>
6999
7000 <p>
7001 When the kernel has finished compiling, copy the kernel image to
7002 <path>/boot</path>. Use whatever name you feel is appropriate for your kernel
7003 choice and remember it as you will need it later on when you configure your
7004 bootloader. Remember to replace <path>&lt;kernel-version&gt;</path> with the
7005 name and version of your kernel.
7006 </p>
7007
7008 <pre caption="Installing the kernel">
7009 # <i>cp arch/x86_64/boot/bzImage /boot/&lt;kernel-version&gt;</i>
7010 </pre>
7011
7012 <p>
7013 Now continue with <uri link="#kernel_modules">Configuring Kernel
7014 Modules</uri>.
7015 </p>
7016
7017 </body>
7018 </subsection>
7019 </section>
7020 <section id="genkernel">
7021 <title>Alternative: Using genkernel</title>
7022 <body>
7023
7024 <p>
7025 If you are reading this section, you have chosen to use our <c>genkernel</c>
7026 script to configure your kernel for you.
7027 </p>
7028
7029 <p>
7030 Now that your kernel source tree is installed, it's now time to compile your
7031 kernel by using our <c>genkernel</c> script to automatically build a kernel for
7032 you. <c>genkernel</c> works by configuring a kernel nearly identically to the
7033 way our Installation CD kernel is configured. This means that when you use
7034 <c>genkernel</c> to build your kernel, your system will generally detect all
7035 your hardware at boot-time, just like our Installation CD does. Because
7036 genkernel doesn't require any manual kernel configuration, it is an ideal
7037 solution for those users who may not be comfortable compiling their own kernels.
7038 </p>
7039
7040 <p>
7041 Now, let's see how to use genkernel. First, emerge the genkernel ebuild:
7042 </p>
7043
7044 <pre caption="Emerging genkernel">
7045 # <i>emerge genkernel</i>
7046 </pre>
7047
7048 <p>
7049 Now, compile your kernel sources by running <c>genkernel all</c>.
7050 Be aware though, as <c>genkernel</c> compiles a kernel that supports almost all
7051 hardware, this compilation will take quite a while to finish!
7052 </p>
7053
7054 <p>
7055 Note that, if your boot partition doesn't use ext2 or ext3 as filesystem you
7056 need to manually configure your kernel using <c>genkernel --menuconfig all</c>
7057 and add support for your filesystem <e>in</e> the kernel (i.e. <e>not</e> as a
7058 module).
7059 </p>
7060
7061 <pre caption="Running genkernel">
7062 # <i>genkernel all</i>
7063 </pre>
7064
7065 <p>
7066 Once <c>genkernel</c> completes, a kernel, full set of modules and
7067 <e>initial root disk</e> (initrd) will be created. We will use the kernel
7068 and initrd when configuring a boot loader later in this document. Write
7069 down the names of the kernel and initrd as you will need it when writing
7070 the bootloader configuration file. The initrd will be started immediately after
7071 booting to perform hardware autodetection (just like on the Installation CD)
7072 before your "real" system starts up.
7073 </p>
7074
7075 <pre caption="Checking the created kernel image name and initrd">
7076 # <i>ls /boot/kernel* /boot/initramfs*</i>
7077 </pre>
7078
7079 <p>
7080 Now, let's perform one more step to get our system to be more like the
7081 Installation CD -- let's emerge <c>coldplug</c>. While the initrd autodetects
7082 hardware that is needed to boot your system, <c>coldplug</c> autodetects
7083 everything else. To emerge and enable <c>coldplug</c>, type the following:
7084 </p>
7085
7086 <pre caption="Emerging and enabling coldplug">
7087 # <i>emerge coldplug</i>
7088 # <i>rc-update add coldplug boot</i>
7089 </pre>
7090
7091 </body>
7092 </section>
7093
7094 <section id="kernel_modules">
7095 <title>Configuring Kernel Modules</title>
7096 <subsection>
7097 <title>Configuring the Modules</title>
7098 <body>
7099
7100 <p>
7101 You should list the modules you want automatically loaded in
7102 <path>/etc/modules.autoload.d/kernel-2.4</path> (or <path>kernel-2.6</path>).
7103 You can add extra options to the modules too if you want.
7104 </p>
7105
7106 <p>
7107 To view all available modules, run the following <c>find</c> command. Don't
7108 forget to substitute "&lt;kernel version&gt;" with the version of the kernel you
7109 just compiled:
7110 </p>
7111
7112 <pre caption="Viewing all available modules">
7113 # <i>find /lib/modules/&lt;kernel version&gt;/ -type f -iname '*.o' -or -iname '*.ko'</i>
7114 </pre>
7115
7116 <p>
7117 For instance, to automatically load the <c>3c59x.o</c> module, edit the
7118 <path>kernel-2.6</path> file and enter the module name in it.
7119 </p>
7120
7121 <pre caption="Editing /etc/modules.autoload.d/kernel-2.6">
7122 # <i>nano -w /etc/modules.autoload.d/kernel-2.6</i>
7123 </pre>
7124
7125 <pre caption="/etc/modules.autoload.d/kernel-2.6">
7126 3c59x
7127 </pre>
7128
7129 <p>
7130 Continue the installation with <uri link="?part=1&amp;chap=8">Configuring
7131 your System</uri>.
7132 </p>
7133
7134 </body>
7135 </subsection>
7136 </section>
7137 </sections>
7138
7139
7140
7141 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-amd64-medium.xml
7142
7143 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-amd64-medium.xml?rev=1.1&view=markup
7144 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-amd64-medium.xml?rev=1.1&content-type=text/plain
7145
7146 Index: hb-install-amd64-medium.xml
7147 ===================================================================
7148 <?xml version='1.0' encoding='UTF-8'?>
7149 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
7150
7151 <!-- The content of this document is licensed under the CC-BY-SA license -->
7152 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
7153
7154 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-amd64-medium.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
7155
7156 <sections>
7157
7158 <version>6.0</version>
7159 <date>2006-02-27</date>
7160
7161 <section>
7162 <title>Hardware Requirements</title>
7163 <subsection>
7164 <title>Introduction</title>
7165 <body>
7166
7167 <p>
7168 Before we start, we first list what hardware requirements you need to
7169 successfully install Gentoo on your box.
7170 </p>
7171
7172 </body>
7173 </subsection>
7174 <subsection>
7175 <title>Hardware Requirements</title>
7176 <body>
7177
7178 <table>
7179 <tr>
7180 <th>CPU</th>
7181 <ti>Any AMD64 CPU *</ti>
7182 </tr>
7183 <tr>
7184 <th>Memory</th>
7185 <ti>64 MB</ti>
7186 </tr>
7187 <tr>
7188 <th>Diskspace</th>
7189 <ti>1.5 GB (excluding swap space)</ti>
7190 </tr>
7191 <tr>
7192 <th>Swap space</th>
7193 <ti>At least 256 MB</ti>
7194 </tr>
7195 </table>
7196
7197 <p>
7198 You should check the <uri link="http://amd64.gentoo.org">Gentoo
7199 AMD64 Project Page</uri> before proceeding.
7200 </p>
7201
7202 </body>
7203 </subsection>
7204 </section>
7205 <!-- Copy/paste from hb-install-x86-medium.xml (with s/x86/amd64/) -->
7206 <!-- START -->
7207 <section>
7208 <title>The Gentoo Universal Installation CD</title>
7209 <subsection>
7210 <title>Introduction</title>
7211 <body>
7212
7213 <p>
7214 Gentoo Linux can be installed using a <e>stage3</e> tarball file.
7215 Such a tarball is an archive that contains a minimal environment from
7216 which you can succesfully install Gentoo Linux onto your system.
7217 </p>
7218
7219 <p>
7220 Installations using a stage1 or stage2 tarball file are not documented in the
7221 Gentoo Handbook - please read the <uri link="/doc/en/faq.xml#stage12">Gentoo
7222 FAQ</uri> on these matters.
7223 </p>
7224
7225 </body>
7226 </subsection>
7227 <subsection>
7228 <title>Gentoo Universal Installation CD</title>
7229 <body>
7230
7231 <p>
7232 An Installation CD is a bootable medium which contains a self-sustained Gentoo
7233 environment. It allows you to boot Linux from the CD. During the boot process
7234 your hardware is detected and the appropriate drivers are loaded. The Gentoo
7235 Installation CDs are maintained by Gentoo developers.
7236 </p>
7237
7238 <p>
7239 There currently are two Installation CDs available:
7240 </p>
7241
7242 <ul>
7243 <li>
7244 The Universal Installation CD contains everything you need to install
7245 Gentoo. It provides stage3 files for common architectures, source code
7246 for the extra applications you need to choose from and, of course, the
7247 installation instructions for your architecture.
7248 </li>
7249 <li>
7250 The Minimal Installation CD contains only a minimal environment that allows
7251 you to boot up and configure your network so you can connect to the
7252 Internet. It does not contain any additional files and cannot be used
7253 during the current installation approach.
7254 </li>
7255 </ul>
7256
7257 <p>
7258 Gentoo also provides a Package CD. This is not an Installation CD but an
7259 additional resource that you can exploit during the installation of your Gentoo
7260 system. It contains prebuilt packages (also known as the GRP set) that allow
7261 you to easily and quickly install additional applications (such as
7262 OpenOffice.org, KDE, GNOME, ...) immediately after the Gentoo installation and
7263 right before you update your Portage tree.
7264 </p>
7265
7266 <p>
7267 The use of the Package CD is covered later in this document.
7268 </p>
7269
7270 </body>
7271 </subsection>
7272 </section>
7273 <!-- STOP -->
7274 <section>
7275 <title>Download, Burn and Boot the Gentoo Universal Installation CD</title>
7276 <subsection>
7277 <title>Downloading and Burning the Installation CD</title>
7278 <body>
7279
7280 <p>
7281 You can download the Universal Installation CD (and, if you want to, the
7282 Packages CD as well) from one of our <uri
7283 link="/main/en/mirrors.xml">mirrors</uri>. The Installation CD is located in
7284 the <path>releases/amd64/2006.1/installcd</path> directory;
7285 the Package CD is located in the <path>releases/amd64/2006.1/packagecd</path>
7286 directory.
7287 </p>
7288
7289 <p>
7290 Inside those directories you'll find ISO-files. Those are full CD images which
7291 you can write on a CD-R.
7292 </p>
7293
7294 <p>
7295 After downloading the file, you can verify its integrity to see if it is
7296 corrupted or not:
7297 </p>
7298
7299 <ul>
7300 <li>
7301 You can check its MD5 checksum and compare it with the MD5 checksum we
7302 provide (for instance with the <c>md5sum</c> tool under Linux/Unix or
7303 <uri link="http://www.etree.org/md5com.html">md5sum</uri> for Windows)
7304 </li>
7305 <li>
7306 You can verify the cryptographic signature that we provide. You need to
7307 obtain the public key we use (17072058) before you proceed though.
7308 </li>
7309 </ul>
7310
7311 <p>
7312 To fetch our public key using the GnuPG application, run the following command:
7313 </p>
7314
7315 <pre caption="Obtaining the public key">
7316 $ <i>gpg --keyserver subkeys.pgp.net --recv-keys 17072058</i>
7317 </pre>
7318
7319 <p>
7320 Now verify the signature:
7321 </p>
7322
7323 <pre caption="Verify the cryptographic signature">
7324 $ <i>gpg --verify &lt;signature file&gt; &lt;downloaded iso&gt;</i>
7325 </pre>
7326
7327 <p>
7328 To burn the downloaded ISO(s), you have to select raw-burning. How you
7329 do this is highly program-dependent. We will discuss <c>cdrecord</c> and
7330 <c>K3B</c> here; more information can be found in our <uri
7331 link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>.
7332 </p>
7333
7334 <ul>
7335 <li>
7336 With cdrecord, you simply type <c>cdrecord dev=/dev/hdc &lt;downloaded iso
7337 file&gt;</c> (replace <path>/dev/hdc</path> with your CD-RW drive's device
7338 path).
7339 </li>
7340 <li>
7341 With K3B, select <c>Tools</c> &gt; <c>CD</c> &gt; <c>Burn Image</c>. Then
7342 you can locate your ISO file within the 'Image to Burn' area. Finally click
7343 <c>Start</c>.
7344 </li>
7345 </ul>
7346
7347 </body>
7348 </subsection>
7349 <subsection>
7350 <title>Booting the Universal Installation CD</title>
7351 <body>
7352
7353 <p>
7354 Once you have burned your installation CDs, it is time to boot them.
7355 Remove all CDs from the CD drives, reboot your system and enter the BIOS.
7356 This is usually done by hitting DEL, F1
7357 or ESC, depending on your BIOS. Inside the BIOS, change the boot
7358 order so that the CD-ROM is tried before the hard disk. This is often found
7359 under "CMOS Setup". If you don't do this, your system will just reboot from the
7360 hard disk, ignoring the CD-ROM.
7361 </p>
7362
7363 <p>
7364 Now place the installation CD in the CD-ROM drive and reboot. You
7365 should see a boot prompt. At this
7366 screen, you can hit Enter to begin the boot process with the default
7367 boot options, or boot the Installation CD with custom boot options by specifying
7368 a kernel followed by boot options and then hitting Enter.
7369 </p>
7370
7371 <p>
7372 Specifying a kernel? Yes, we provide several kernels on our Installation CD. The
7373 default one is <c>gentoo</c>. Other kernels are for specific hardware needs and
7374 the <c>-nofb</c> variants which disable framebuffer.
7375 </p>
7376
7377 <p>
7378 Below you'll find a short overview on the available kernels:
7379 </p>
7380
7381 <table>
7382 <tr>
7383 <th>Kernel</th>
7384 <th>Description</th>
7385 </tr>
7386 <tr>
7387 <ti>gentoo</ti>
7388 <ti>Default kernel with support for K8 CPUs with NUMA</ti>
7389 </tr>
7390 </table>
7391
7392 <p>
7393 You can also provide kernel options. They represent optional settings
7394 you can (de)activate at will. The following code listing explains all available
7395 kernel options.
7396 </p>
7397
7398 <pre caption="Available boot options">
7399 - agpgart loads agpgart (use if you have graphic problems,lockups)
7400 - acpi=on loads support for ACPI firmware
7401 - ide=nodma force disabling of DMA for malfunctioning IDE devices
7402 - doscsi scan for scsi devices (breaks some ethernet cards)
7403 - dopcmcia starts pcmcia service for PCMCIA cdroms
7404 - nofirewire disables firewire modules in initrd (for firewire cdroms,etc)
7405 - nokeymap disables keymap selection for non-us keyboard layouts
7406 - docache cache the entire runtime portion of cd in RAM, allows you
7407 to umount /mnt/cdrom to mount another cdrom.
7408 - nodetect causes hwsetup/kudzu and hotplug not to run
7409 - nousb disables usb module load from initrd, disables hotplug
7410 - nodhcp dhcp does not automatically start if nic detected
7411 - nohotplug disables loading hotplug service
7412 - noapic disable apic (try if having hardware problems nics,scsi,etc)
7413 - noevms2 disable loading of EVMS2 modules
7414 - nolvm2 disable loading of LVM2 modules
7415 - hdx=stroke allows you to partition the whole harddrive even when your BIOS
7416 can't handle large harddrives
7417 - noload=module1[,module2[,...]]
7418 disable loading of specific kernel modules
7419 </pre>
7420
7421 <p>
7422 Now boot your CD, select a kernel (if you are not happy with the default
7423 <c>gentoo</c> kernel) and boot options. As an example, we show you how
7424 to boot the <c>gentoo</c> kernel, with <c>dopcmcia</c> as kernel
7425 parameters:
7426 </p>
7427
7428 <pre caption="Booting an Installation CD">
7429 boot: <i>gentoo dopcmcia</i>
7430 </pre>
7431
7432 <p>
7433 You will then be greeted with a boot screen and progress bar. If you are
7434 installing Gentoo on a system with a non-US keyboard, make sure you
7435 immediately press Alt-F1 to switch to verbose mode and follow the prompt. If no
7436 selection is made in 10 seconds, the default (US keyboard) will be accepted and
7437 the boot process will continue. Once the boot process completes, you will be
7438 automatically logged in to the "Live" Gentoo Linux as
7439 "root", the super user. You should have a root ("#") prompt
7440 on the current console and can also switch to other consoles by pressing Alt-F2,
7441 Alt-F3 and Alt-F4. Get back to the one you started on by pressing Alt-F1.
7442 </p>
7443
7444 <p>
7445 Now continue with <uri link="#hardware">Extra Hardware
7446 Configuration</uri>.
7447 </p>
7448
7449 </body>
7450 </subsection>
7451 <subsection id="hardware">
7452 <title>Extra Hardware Configuration</title>
7453 <body>
7454
7455 <p>
7456 When the Installation CD boots, it tries to detect all your hardware devices and
7457 loads the appropriate kernel modules to support your hardware. In the
7458 vast majority of cases, it does a very good job. However, in some cases it may
7459 not auto-load the kernel modules you need. If the PCI auto-detection missed
7460 some of your system's hardware, you will have to load the appropriate kernel
7461 modules manually.
7462 </p>
7463
7464 <p>
7465 In the next example we try to load the <c>8139too</c> module (support for
7466 certain kinds of network interfaces):
7467 </p>
7468
7469 <pre caption="Loading kernel modules">
7470 # <i>modprobe 8139too</i>
7471 </pre>
7472
7473 <p>
7474 If you need PCMCIA support, you should start the <c>pcmcia</c> init script:
7475 </p>
7476
7477 <pre caption="Starting the PCMCIA init script">
7478 # <i>/etc/init.d/pcmcia start</i>
7479 </pre>
7480
7481 </body>
7482 </subsection>
7483 <subsection>
7484 <title>Optional: Tweaking Hard Disk Performance</title>
7485 <body>
7486
7487 <p>
7488 If you are an advanced user, you might want to tweak the IDE hard disk
7489 performance using <c>hdparm</c>. With the <c>-tT</c> options you can
7490 test the performance of your disk (execute it several times to get a
7491 more precise impression):
7492 </p>
7493
7494 <pre caption="Testing disk performance">
7495 # <i>hdparm -tT /dev/hda</i>
7496 </pre>
7497
7498 <p>
7499 To tweak, you can use any of the following examples (or experiment
7500 yourself) which use <path>/dev/hda</path> as disk (substitute with your
7501 disk):
7502 </p>
7503
7504 <pre caption="Tweaking hard disk performance">
7505 <comment>Activate DMA:</comment> # <i>hdparm -d 1 /dev/hda</i>
7506 <comment>Activate DMA + Safe Performance-enhancing Options:</comment> # <i>hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda</i>
7507 </pre>
7508
7509 </body>
7510 </subsection>
7511 <subsection id="useraccounts">
7512 <title>Optional: User Accounts</title>
7513 <body>
7514
7515 <p>
7516 If you plan on giving other people access to your installation
7517 environment or you want to chat using <c>irssi</c> without root privileges (for
7518 security reasons), you need to create the necessary user accounts and change
7519 the root password.
7520 </p>
7521
7522 <p>
7523 To change the root password, use the <c>passwd</c> utility:
7524 </p>
7525
7526 <pre caption="Changing the root password">
7527 # <i>passwd</i>
7528 New password: <comment>(Enter your new password)</comment>
7529 Re-enter password: <comment>(Re-enter your password)</comment>
7530 </pre>
7531
7532 <p>
7533 To create a user account, we first enter their credentials, followed by
7534 its password. We use <c>useradd</c> and <c>passwd</c> for these tasks.
7535 In the next example, we create a user called &quot;john&quot;.
7536 </p>
7537
7538 <pre caption="Creating a user account">
7539 # <i>useradd -m -G users john</i>
7540 # <i>passwd john</i>
7541 New password: <comment>(Enter john's password)</comment>
7542 Re-enter password: <comment>(Re-enter john's password)</comment>
7543 </pre>
7544
7545 <p>
7546 You can change your user id from root to the newly created user by using
7547 <c>su</c>:
7548 </p>
7549
7550 <pre caption="Changing user id">
7551 # <i>su - john</i>
7552 </pre>
7553
7554 </body>
7555 </subsection>
7556 <subsection>
7557 <title>Optional: Viewing Documentation while Installing</title>
7558 <body>
7559
7560 <p>
7561 If you want to view the Gentoo Handbook (either from-CD or online) during the
7562 installation, make sure you have created a user account (see <uri
7563 link="#useraccounts">Optional: User Accounts</uri>). Then press <c>Alt-F2</c> to
7564 go to a new terminal and log in.
7565 </p>
7566
7567 <p>
7568 If you want to view the documentation on the CD you can immediately run
7569 <c>links</c> to read it:
7570 </p>
7571
7572 <pre caption="Viewing the on-CD documentation">
7573 # <i>links /mnt/cdrom/docs/handbook/html/index.html</i>
7574 </pre>
7575
7576 <p>
7577 However, it is preferred that you use the online Gentoo Handbook as it will be
7578 more recent than the one provided on the CD. You can view it using <c>links</c>
7579 as well, but only after having completed the <e>Configuring your Network</e>
7580 chapter (otherwise you won't be able to go on the Internet to view the
7581 document):
7582 </p>
7583
7584 <pre caption="Viewing the Online Documentation">
7585 # <i>links http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml</i>
7586 </pre>
7587
7588 <p>
7589 You can go back to your original terminal by pressing <c>Alt-F1</c>.
7590 </p>
7591
7592 </body>
7593 </subsection>
7594 <subsection>
7595 <title>Optional: Starting the SSH Daemon</title>
7596 <body>
7597
7598 <p>
7599 If you want to allow other users to access your computer during the
7600 Gentoo installation (perhaps because those users are going to help you
7601 install Gentoo, or even do it for you), you need to create a user
7602 account for them and perhaps even provide them with your root password
7603 (<e>only</e> do that <e>if</e> you <b>fully trust</b> that user).
7604 </p>
7605
7606 <p>
7607 To fire up the SSH daemon, execute the following command:
7608 </p>
7609
7610 <pre caption="Starting the SSH daemon">
7611 # <i>/etc/init.d/sshd start</i>
7612 </pre>
7613
7614 <p>
7615 To be able to use sshd, you first need to set up your networking. Continue with
7616 the chapter on <uri link="?part=1&amp;chap=3">Configuring your Network</uri>.
7617 </p>
7618
7619 </body>
7620 </subsection>
7621 </section>
7622 </sections>
7623
7624
7625
7626 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-config.xml
7627
7628 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-config.xml?rev=1.1&view=markup
7629 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-config.xml?rev=1.1&content-type=text/plain
7630
7631 Index: hb-install-config.xml
7632 ===================================================================
7633 <?xml version='1.0' encoding='UTF-8'?>
7634 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
7635
7636 <!-- The content of this document is licensed under the CC-BY-SA license -->
7637 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
7638
7639 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-config.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
7640
7641 <sections>
7642
7643 <version>6.2</version>
7644 <date>2006-05-27</date>
7645
7646 <section>
7647 <title>Filesystem Information</title>
7648 <subsection>
7649 <title>What is fstab?</title>
7650 <body>
7651
7652 <p>
7653 Under Linux, all partitions used by the system must be listed in
7654 <path>/etc/fstab</path>. This file contains the mountpoints of those partitions
7655 (where they are seen in the file system structure), how they should be mounted
7656 and with what special options (automatically or not, whether users can mount
7657 them or not, etc.)
7658 </p>
7659
7660 </body>
7661 </subsection>
7662 <subsection>
7663 <title>Creating /etc/fstab</title>
7664 <body>
7665
7666 <p>
7667 <path>/etc/fstab</path> uses a special syntax. Every line consists of six
7668 fields, separated by whitespace (space(s), tabs or a mixture). Each field has
7669 its own meaning:
7670 </p>
7671
7672 <ul>
7673 <li>
7674 The first field shows the <b>partition</b> described (the path to the device
7675 file)
7676 </li>
7677 <li>
7678 The second field shows the <b>mountpoint</b> at which the partition should be
7679 mounted
7680 </li>
7681 <li>
7682 The third field shows the <b>filesystem</b> used by the partition
7683 </li>
7684 <li>
7685 The fourth field shows the <b>mountoptions</b> used by <c>mount</c> when it
7686 wants to mount the partition. As every filesystem has its own mountoptions,
7687 you are encouraged to read the mount man page (<c>man mount</c>) for a full
7688 listing. Multiple mountoptions are comma-separated.
7689 </li>
7690 <li>
7691 The fifth field is used by <c>dump</c> to determine if the partition needs to
7692 be <b>dump</b>ed or not. You can generally leave this as <c>0</c> (zero).
7693 </li>
7694 <li>
7695 The sixth field is used by <c>fsck</c> to determine the order in which
7696 filesystems should be <b>check</b>ed if the system wasn't shut down properly.
7697 The root filesystem should have <c>1</c> while the rest should have <c>2</c>
7698 (or <c>0</c> if a filesystem check isn't necessary).
7699 </li>
7700 </ul>
7701
7702 <p>
7703 The default <path>/etc/fstab</path> file provided by Gentoo <e>is not a valid
7704 fstab file</e>, so start <c>nano</c> (or your favorite editor) to create your
7705 <path>/etc/fstab</path>:
7706 </p>
7707
7708 <pre caption="Opening /etc/fstab">
7709 # <i>nano -w /etc/fstab</i>
7710 </pre>
7711
7712 <p>
7713 Let us take a look at how we write down the options for the <path>/boot</path>
7714 partition. This is just an example, so if your architecture doesn't require a
7715 <path>/boot</path> partition (such as Apple <b>PPC</b> machines), don't copy it
7716 verbatim.
7717 </p>
7718
7719 <p>
7720 In our default x86 partitioning example <path>/boot</path> is the
7721 <path>/dev/hda1</path> partition, with <c>ext2</c> as filesystem.
7722 It needs to be checked during boot, so we would write down:
7723 </p>
7724
7725 <pre caption="An example /boot line for /etc/fstab">
7726 /dev/hda1 /boot ext2 defaults 1 2
7727 </pre>
7728
7729 <p>
7730 Some users don't want their <path>/boot</path> partition to be mounted
7731 automatically to improve their system's security. Those people should
7732 substitute <c>defaults</c> with <c>noauto</c>. This does mean that you need to
7733 manually mount this partition every time you want to use it.
7734 </p>
7735
7736 <p>
7737 Now, to improve performance, most users would want to add the <c>noatime</c>
7738 option as mountoption, which results in a faster system since access times
7739 aren't registered (you don't need those generally anyway):
7740 </p>
7741
7742 <pre caption="An improved /boot line for /etc/fstab">
7743 /dev/hda1 /boot ext2 defaults,noatime 1 2
7744 </pre>
7745
7746 <p>
7747 If we continue with this, we would end up with the following three lines (for
7748 <path>/boot</path>, <path>/</path> and the swap partition):
7749 </p>
7750
7751 <pre caption="Three /etc/fstab lines">
7752 /dev/hda1 /boot ext2 defaults,noatime 1 2
7753 /dev/hda2 none swap sw 0 0
7754 /dev/hda3 / ext3 noatime 0 1
7755 </pre>
7756
7757 <p>
7758 To finish up, you should add a rule for <path>/proc</path>, <c>tmpfs</c>
7759 (required) and for your CD-ROM drive (and of course, if you have other
7760 partitions or drives, for those too):
7761 </p>
7762
7763 <pre caption="A full /etc/fstab example">
7764 /dev/hda1 /boot ext2 defaults,noatime 1 2
7765 /dev/hda2 none swap sw 0 0
7766 /dev/hda3 / ext3 noatime 0 1
7767
7768 none /proc proc defaults 0 0
7769 none /dev/shm tmpfs nodev,nosuid,noexec 0 0
7770
7771 /dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
7772 </pre>
7773
7774 <p>
7775 <c>auto</c> makes <c>mount</c> guess for the filesystem (recommended for
7776 removable media as they can be created with one of many filesystems) and
7777 <c>user</c> makes it possible for non-root users to mount the CD.
7778 </p>
7779
7780 <p>
7781 Now use the above example to create your <path>/etc/fstab</path>. If you are a
7782 <b>SPARC</b>-user, you should add the following line to your
7783 <path>/etc/fstab</path>
7784 too:
7785 </p>
7786
7787 <pre caption="Adding openprom filesystem to /etc/fstab">
7788 none /proc/openprom openpromfs defaults 0 0
7789 </pre>
7790
7791 <p>
7792 Double-check your <path>/etc/fstab</path>, save and quit to continue.
7793 </p>
7794
7795 </body>
7796 </subsection>
7797 </section>
7798 <section>
7799 <title>Networking Information</title>
7800 <subsection>
7801 <title>Hostname, Domainname etc.</title>
7802 <body>
7803
7804 <p>
7805 One of the choices the user has to make is name his/her PC. This seems to be
7806 quite easy, but <e>lots</e> of users are having difficulties finding the
7807 appropriate name for their Linux-pc. To speed things up, know that any name you
7808 choose can be changed afterwards. For all we care, you can just call your system
7809 <c>tux</c> and domain <c>homenetwork</c>.
7810 </p>
7811
7812 <p>
7813 We use these values in the next examples. First we set the hostname:
7814 </p>
7815
7816 <pre caption="Setting the hostname">
7817 # <i>nano -w /etc/conf.d/hostname</i>
7818
7819 <comment>(Set the HOSTNAME variable to your hostname)</comment>
7820 HOSTNAME="<i>tux</i>"
7821 </pre>
7822
7823 <p>
7824 Second we set the domainname:
7825 </p>
7826
7827 <pre caption="Setting the domainname">
7828 # <i>nano -w /etc/conf.d/domainname</i>
7829
7830 <comment>(Set the DNSDOMAIN variable to your domain name)</comment>
7831 DNSDOMAIN="<i>homenetwork</i>"
7832 </pre>
7833
7834 <p>
7835 If you have a NIS domain (if you don't know what that is, then you don't have
7836 one), you need to define that one too:
7837 </p>
7838
7839 <pre caption="Setting the NIS domainname">
7840 # <i>nano -w /etc/conf.d/domainname</i>
7841
7842 <comment>(Set the NISDOMAIN variable to your NIS domain name)</comment>
7843 NISDOMAIN="<i>my-nisdomain</i>"
7844 </pre>
7845
7846 </body>
7847 </subsection>
7848 <subsection>
7849 <title>Configuring your Network</title>
7850 <body>
7851
7852 <p>
7853 Before you get that "Hey, we've had that already"-feeling, you should remember
7854 that the networking you set up in the beginning of the Gentoo installation was
7855 just for the installation. Right now you are going to configure networking for
7856 your Gentoo system permanently.
7857 </p>
7858
7859 <note>
7860 More detailed information about networking, including advanced topics like
7861 bonding, bridging, 802.1Q VLANs or wireless networking is covered in the <uri
7862 link="?part=4">Gentoo Network Configuration</uri> section.
7863 </note>
7864
7865 <p>
7866 All networking information is gathered in <path>/etc/conf.d/net</path>. It uses
7867 a straightforward yet not intuitive syntax if you don't know how to set up
7868 networking manually. But don't fear, we'll explain everything. A fully
7869 commented example that covers many different configurations is available in
7870 <path>/etc/conf.d/net.example</path>.
7871 </p>
7872
7873 <p>
7874 DHCP is used by default and does not require any further configuration.
7875 </p>
7876
7877 <p>
7878 If you need to configure your network connection either because you need
7879 specific DHCP options or because you do not use DHCP at all, open
7880 <path>/etc/conf.d/net</path> with your favorite editor (<c>nano</c> is used in
7881 this example):
7882 </p>
7883
7884 <pre caption="Opening /etc/conf.d/net for editing">
7885 # <i>nano -w /etc/conf.d/net</i>
7886 </pre>
7887
7888 <p>
7889 You will see the following file:
7890 </p>
7891
7892 <pre caption="Default /etc/conf.d/net">
7893 # This blank configuration will automatically use DHCP for any net.*
7894 # scripts in /etc/init.d. To create a more complete configuration,
7895 # please review /etc/conf.d/net.example and save your configuration
7896 # in /etc/conf.d/net (this file :]!).
7897 </pre>
7898
7899 <p>
7900 To enter your own IP address, netmask and gateway, you need
7901 to set both <c>config_eth0</c> and <c>routes_eth0</c>:
7902 </p>
7903
7904 <pre caption="Manually setting IP information for eth0">
7905 config_eth0=( "192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255" )
7906 routes_eth0=( "default gw 192.168.0.1" )
7907 </pre>
7908
7909 <p>
7910 To use DHCP and add specific DHCP options, define <c>config_eth0</c> and
7911 <c>dhcp_eth0</c>:
7912 </p>
7913
7914 <pre caption="Automatically obtaining an IP address for eth0">
7915 config_eth0=( "dhcp" )
7916 dhcp_eth0="nodns nontp nonis"
7917 </pre>
7918
7919 <p>
7920 Please read <path>/etc/conf.d/net.example</path> for a list of all available
7921 options.
7922 </p>
7923
7924 <p>
7925 If you have several network interfaces repeat the above steps for
7926 <c>config_eth1</c>, <c>config_eth2</c>, etc.
7927 </p>
7928
7929 <p>
7930 Now save the configuration and exit to continue.
7931 </p>
7932
7933 </body>
7934 </subsection>
7935 <subsection>
7936 <title>Automatically Start Networking at Boot</title>
7937 <body>
7938
7939 <p>
7940 To have your network interfaces activated at boot, you need to add them to the
7941 default runlevel. If you have PCMCIA interfaces you should skip this action as
7942 the PCMCIA interfaces are started by the PCMCIA init script.
7943 </p>
7944
7945 <pre caption="Adding net.eth0 to the default runlevel">
7946 # <i>rc-update add net.eth0 default</i>
7947 </pre>
7948
7949 <p>
7950 If you have several network interfaces, you need to create the appropriate
7951 <path>net.eth1</path>, <path>net.eth2</path> etc. initscripts for those. You can
7952 use <c>ln</c> to do this:
7953 </p>
7954
7955 <pre caption="Creating extra initscripts">
7956 # <i>cd /etc/init.d</i>
7957 # <i>ln -s net.eth0 net.eth1</i>
7958 # <i>rc-update add net.eth1 default</i>
7959 </pre>
7960
7961 </body>
7962 </subsection>
7963 <subsection>
7964 <title>Writing Down Network Information</title>
7965 <body>
7966
7967 <p>
7968 You now need to inform Linux about your network. This is defined in
7969 <path>/etc/hosts</path> and helps in resolving hostnames to IP addresses for
7970 hosts that aren't resolved by your nameserver. You need to define your system.
7971 You may also want to define other systems on your network if you don't want to
7972 set up your own internal DNS system.
7973 </p>
7974
7975 <pre caption="Opening /etc/hosts">
7976 # <i>nano -w /etc/hosts</i>
7977 </pre>
7978
7979 <pre caption="Filling in the networking information">
7980 <comment>(This defines the current system)</comment>
7981 127.0.0.1 tux.homenetwork tux localhost
7982
7983 <comment>(Define extra systems on your network,
7984 they need to have a static IP to be defined this way.)</comment>
7985 192.168.0.5 jenny.homenetwork jenny
7986 192.168.0.6 benny.homenetwork benny
7987 </pre>
7988
7989 <p>
7990 Save and exit the editor to continue.
7991 </p>
7992
7993 <p>
7994 If you don't have PCMCIA, you can now continue with <uri
7995 link="#doc_chap3">System Information</uri>. PCMCIA-users should read the
7996 following topic on PCMCIA.
7997 </p>
7998
7999 </body>
8000 </subsection>
8001 <subsection>
8002 <title>Optional: Get PCMCIA Working</title>
8003 <body>
8004
8005 <note>
8006 pcmcia-cs is only available for x86, amd64 and ppc platforms.
8007 </note>
8008
8009 <p>
8010 PCMCIA-users should first install the <c>pcmcia-cs</c> package. This also
8011 includes users who will be working with a 2.6 kernel (even though they won't be
8012 using the PCMCIA drivers from this package). The <c>USE="-X"</c> is necessary
8013 to avoid installing xorg-x11 at this moment:
8014 </p>
8015
8016 <pre caption="Installing pcmcia-cs">
8017 # <i>USE="-X" emerge pcmcia-cs</i>
8018 </pre>
8019
8020 <p>
8021 When <c>pcmcia-cs</c> is installed, add <c>pcmcia</c> to the <e>default</e>
8022 runlevel:
8023 </p>
8024
8025 <pre caption="Adding pcmcia to the default runlevel">
8026 # <i>rc-update add pcmcia default</i>
8027 </pre>
8028
8029 </body>
8030 </subsection>
8031 </section>
8032 <section>
8033 <title>System Information</title>
8034 <subsection>
8035 <title>Root Password</title>
8036 <body>
8037
8038 <p>
8039 First we set the root password by typing:
8040 </p>
8041
8042 <pre caption="Setting the root password">
8043 # <i>passwd</i>
8044 </pre>
8045
8046 <p>
8047 If you want root to be able to log on through the serial console, add
8048 <c>tts/0</c> to <path>/etc/securetty</path>:
8049 </p>
8050
8051 <pre caption="Adding tts/0 to /etc/securetty">
8052 # <i>echo "tts/0" &gt;&gt; /etc/securetty</i>
8053 </pre>
8054
8055 </body>
8056 </subsection>
8057 <subsection>
8058 <title>System Information</title>
8059 <body>
8060
8061 <p>
8062 Gentoo uses <path>/etc/rc.conf</path> for general, system-wide configuration.
8063 Open up <path>/etc/rc.conf</path> and enjoy all the comments in that file :)
8064 </p>
8065
8066 <pre caption="Opening /etc/rc.conf">
8067 # <i>nano -w /etc/rc.conf</i>
8068 </pre>
8069
8070 <p>
8071 When you're finished configuring <path>/etc/rc.conf</path>, save and exit.
8072 </p>
8073
8074 <p>
8075 As you can see, this file is well commented to help you set up the necessary
8076 configuration variables. You can configure your system to use unicode and
8077 define your default editor and your display manager (like gdm or kdm).
8078 </p>
8079
8080 <p>
8081 Gentoo uses <path>/etc/conf.d/keymaps</path> to handle keyboard configuration.
8082 Edit it to configure your keyboard.
8083 </p>
8084
8085 <pre caption="Opening /etc/conf.d/keymaps">
8086 # <i>nano -w /etc/conf.d/keymaps</i>
8087 </pre>
8088
8089 <p>
8090 Take special care with the <c>KEYMAP</c> variable. If you select the wrong
8091 <c>KEYMAP</c>, you will get weird results when typing on your keyboard.
8092 </p>
8093
8094 <note>
8095 Users of USB-based <b>SPARC</b> systems and <b>SPARC</b> clones might need to
8096 select an i386 keymap (such as "us") instead of "sunkeymap". <b>PPC</b> uses x86
8097 keymaps on most systems. Users who want to be able to use ADB keymaps on boot
8098 have to enable ADB keycode sendings in their kernel and have to set a mac/ppc
8099 keymap in <path>/etc/conf.d/keymaps</path>.
8100 </note>
8101
8102 <p>
8103 When you're finished configuring <path>/etc/conf.d/keymaps</path>, save and
8104 exit.
8105 </p>
8106
8107 <p>
8108 Gentoo uses <path>/etc/conf.d/clock</path> to set clock options. Edit it
8109 according to your needs.
8110 </p>
8111
8112 <pre caption="Opening /etc/conf.d/clock">
8113 # <i>nano -w /etc/conf.d/clock</i>
8114 </pre>
8115
8116 <p>
8117 If your hardware clock is not using UTC, you need to add <c>CLOCK="local"</c> to
8118 the file. Otherwise you will notice some clock skew.
8119 </p>
8120
8121 <p>
8122 When you're finished configuring <path>/etc/conf.d/clock</path>, save and
8123 exit.
8124 </p>
8125
8126 <p>
8127 If you are not installing Gentoo on IBM PPC64 hardware, continue with
8128 <uri link="?part=1&amp;chap=9">Installing Necessary System Tools</uri>.
8129 </p>
8130
8131 </body>
8132 </subsection>
8133 <subsection>
8134 <title>Configuring the Console</title>
8135 <body>
8136
8137 <note>
8138 The following section applies to the IBM PPC64 hardware platforms.
8139 </note>
8140
8141 <p>
8142 If you are running Gentoo on IBM PPC64 hardware and using a virtual console
8143 you must uncomment the appropriate line in <path>/etc/inittab</path> for the
8144 virtual console to spawn a login prompt.
8145 </p>
8146
8147 <pre caption="Enabling hvc or hvsi support in /etc/inittab">
8148 hvc0:12345:respawn:/sbin/agetty -L 9600 hvc0
8149 hvsi:12345:respawn:/sbin/agetty -L 19200 hvsi0
8150 </pre>
8151
8152 <p>
8153 You should also take this time to verify that the appropriate console is
8154 listed in <path>/etc/securetty</path>.
8155 </p>
8156
8157 <p>
8158 You may now continue with <uri link="?part=1&amp;chap=9">Installing Necessary
8159 System Tools</uri>.
8160 </p>
8161
8162 </body>
8163 </subsection>
8164 </section>
8165 </sections>
8166
8167
8168
8169 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-finalise.xml
8170
8171 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-finalise.xml?rev=1.1&view=markup
8172 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-finalise.xml?rev=1.1&content-type=text/plain
8173
8174 Index: hb-install-finalise.xml
8175 ===================================================================
8176 <?xml version='1.0' encoding='UTF-8'?>
8177 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
8178
8179 <!-- The content of this document is licensed under the CC-BY-SA license -->
8180 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
8181
8182 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-finalise.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
8183
8184 <sections>
8185
8186 <version>6.0</version>
8187 <date>2006-02-27</date>
8188
8189 <section>
8190 <title>User Administration</title>
8191 <subsection>
8192 <title>Adding a User for Daily Use</title>
8193 <body>
8194
8195 <p>
8196 Working as root on a Unix/Linux system is <e>dangerous</e> and should be avoided
8197 as much as possible. Therefore it is <e>strongly</e> recommended to add a user
8198 for day-to-day use.
8199 </p>
8200
8201 <p>
8202 The groups the user is member of define what activities the user can perform.
8203 The following table lists a number of important groups you might wish to use:
8204 </p>
8205
8206 <table>
8207 <tr>
8208 <th>Group</th>
8209 <th>Description</th>
8210 </tr>
8211 <tr>
8212 <ti>audio</ti>
8213 <ti>be able to access the audio devices</ti>
8214 </tr>
8215 <tr>
8216 <ti>cdrom</ti>
8217 <ti>be able to directly access optical devices</ti>
8218 </tr>
8219 <tr>
8220 <ti>floppy</ti>
8221 <ti>be able to directly access floppy devices</ti>
8222 </tr>
8223 <tr>
8224 <ti>games</ti>
8225 <ti>be able to play games</ti>
8226 </tr>
8227 <tr>
8228 <ti>portage</ti>
8229 <ti>be able to use <c>emerge --pretend</c> as a normal user</ti>
8230 </tr>
8231 <tr>
8232 <ti>usb</ti>
8233 <ti>be able to access USB devices</ti>
8234 </tr>
8235 <tr>
8236 <ti>plugdev</ti>
8237 <ti>
8238 Be able to mount and use pluggable devices such as cameras and USB sticks
8239 </ti>
8240 </tr>
8241 <tr>
8242 <ti>video</ti>
8243 <ti>
8244 be able to access video capturing hardware and doing hardware
8245 acceleration
8246 </ti>
8247 </tr>
8248 <tr>
8249 <ti>wheel</ti>
8250 <ti>be able to use <c>su</c></ti>
8251 </tr>
8252 </table>
8253
8254 <p>
8255 For instance, to create a user called <c>john</c> who is member of the
8256 <c>wheel</c>, <c>users</c> and <c>audio</c> groups, log in as root first
8257 (only root can create users) and run <c>useradd</c>:
8258 </p>
8259
8260 <pre caption="Adding a user for day-to-day use">
8261 Login: <i>root</i>
8262 Password: <comment>(Your root password)</comment>
8263
8264 # <i>useradd -m -G users,wheel,audio -s /bin/bash john</i>
8265 # <i>passwd john</i>
8266 Password: <comment>(Enter the password for john)</comment>
8267 Re-enter password: <comment>(Re-enter the password to verify)</comment>
8268 </pre>
8269
8270 <p>
8271 If a user ever needs to perform some task as root, they can use <c>su -</c>
8272 to temporarily receive root privileges. Another way is to use the <c>sudo</c>
8273 package which is, if correctly configured, very secure.
8274 </p>
8275
8276 </body>
8277 </subsection>
8278 </section>
8279 <section>
8280 <title>Optional: Install GRP Packages</title>
8281 <body>
8282
8283 <impo>
8284 This part is for GRP users only. Other users should skip this part and continue
8285 with <uri link="?part=1&amp;chap=12">Where to go from here?</uri>.
8286 </impo>
8287
8288 <p>
8289 Now that your system is booted, log on as the user you created (for instance,
8290 <c>john</c>) and use <c>su -</c> to gain root privileges:
8291 </p>
8292
8293 <pre caption="Gaining root privileges">
8294 $ <i>su -</i>
8295 Password: <comment>(Enter your root password)</comment>
8296 </pre>
8297
8298 <p>
8299 Now we need to change the Portage configuration to look for the prebuilt
8300 binaries from the second CD (Gentoo Packages CD). First mount this CD:
8301 </p>
8302
8303 <pre caption="Mount the Packages CD">
8304 <comment>(Put the Gentoo Packages CD in the CD tray)</comment>
8305 # <i>mount /mnt/cdrom</i>
8306 </pre>
8307
8308 <p>
8309 Now configure Portage to use <path>/mnt/cdrom</path> for its prebuilt packages:
8310 </p>
8311
8312 <pre caption="Configuring Portage to use /mnt/cdrom">
8313 # <i>ls /mnt/cdrom</i>
8314
8315 <comment>(If there is a /mnt/cdrom/packages directory:)</comment>
8316 # <i>export PKGDIR="/mnt/cdrom/packages"</i>
8317
8318 <comment>(Otherwise:)</comment>
8319 # <i>export PKGDIR="/mnt/cdrom"</i>
8320 </pre>
8321
8322 <p>
8323 Now install the packages you want. The Packages CD contains several prebuilt
8324 binaries, for instance KDE and GNOME.
8325 </p>
8326
8327 <pre caption="Installing GNOME">
8328 # <i>emerge --usepkg gnome</i>
8329 </pre>
8330
8331 <p>
8332 To find out what prebuilt packages are available, do a quick listing of all
8333 the files in <path>/mnt/cdrom/All</path>. For instance, to find out if KDE is
8334 emergeable:
8335 </p>
8336
8337 <pre caption="Finding out if KDE is installable">
8338 # <i>ls /mnt/cdrom/All/kde*</i>
8339 </pre>
8340
8341 <p>
8342 Be sure to install the binaries now. When you do an <c>emerge --sync</c> to
8343 update Portage (as you will learn later), the prebuilt binaries might not match
8344 against the ebuilds in your updated Portage. You can try to circumvent this by
8345 using <c>emerge --usepkgonly</c> instead of <c>emerge --usepkg</c>.
8346 </p>
8347
8348 <p>
8349 Congratulations, your system is now fully equipped! Continue with <uri
8350 link="?part=1&amp;chap=12">Where to go from here?</uri> to learn more about
8351 Gentoo.
8352 </p>
8353
8354 </body>
8355 </section>
8356 </sections>
8357
8358
8359
8360 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-hppa-bootloader.xml
8361
8362 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-hppa-bootloader.xml?rev=1.1&view=markup
8363 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-hppa-bootloader.xml?rev=1.1&content-type=text/plain
8364
8365 Index: hb-install-hppa-bootloader.xml
8366 ===================================================================
8367 <?xml version='1.0' encoding='UTF-8'?>
8368 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
8369
8370 <!-- The content of this document is licensed under the CC-BY-SA license -->
8371 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
8372
8373 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-hppa-bootloader.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
8374
8375 <sections>
8376
8377 <version>6.0</version>
8378 <date>2006-02-27</date>
8379
8380 <section>
8381 <title>Installing PALO</title>
8382 <body>
8383
8384 <p>
8385 On the PA-RISC platform, the boot loader is called palo. You can find
8386 the configuration file in <path>/etc/palo.conf</path>. Here is a sample
8387 configuration:
8388 </p>
8389
8390 <pre caption = "/etc/palo.conf example">
8391 --commandline=2/kernel-2.6.15.1-pa4 root=/dev/sda4
8392 --recoverykernel=/vmlinux.old
8393 --init-partitioned=/dev/sda
8394 </pre>
8395
8396 <p>
8397 The first line tells palo the location of the kernel and which boot
8398 parameters it must use. <c>2/kernel-2.6.15.1-pa4</c> means the kernel named
8399 <c>kernel-2.6.15.1-pa4</c> resides on the second partition. Beware, the path
8400 to the kernel is relative to the partition, not to the root of your filesystem.
8401 </p>
8402
8403 <p>
8404 The second line indicates which recovery kernel to use. If it is your
8405 first install and you do not have a recovery kernel, please comment this
8406 out. The third line indicates on which disk palo will reside.
8407 </p>
8408
8409 <p>
8410 When configuration is done, just run <c>palo</c>.
8411 </p>
8412
8413 <pre caption = "Applying the PALO configuration">
8414 # <i>palo</i>
8415 </pre>
8416
8417 <p>
8418 Now continue with <uri link="#reboot">Rebooting the System</uri>.
8419 </p>
8420
8421 </body>
8422 </section>
8423 <section id="reboot">
8424 <title>Rebooting the System</title>
8425 <subsection>
8426 <body>
8427
8428 <p>
8429 Exit the chrooted environment and unmount all mounted partitions. Then type in
8430 that one magical command you have been waiting for: <c>reboot</c>.
8431 </p>
8432
8433 <pre caption="Exiting the chroot, unmounting all partitions and rebooting">
8434 # <i>exit</i>
8435 cdimage ~# <i>cd</i>
8436 cdimage ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo</i>
8437 cdimage ~# <i>reboot</i>
8438 </pre>
8439
8440 <p>
8441 Of course, don't forget to remove the bootable CD, otherwise the CD will be
8442 booted again instead of your new Gentoo system.
8443 </p>
8444
8445 <p>
8446 Once rebooted in your Gentoo installation, finish up with <uri
8447 link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
8448 </p>
8449
8450 </body>
8451 </subsection>
8452 </section>
8453 </sections>
8454
8455
8456
8457 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-hppa-disk.xml
8458
8459 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-hppa-disk.xml?rev=1.1&view=markup
8460 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-hppa-disk.xml?rev=1.1&content-type=text/plain
8461
8462 Index: hb-install-hppa-disk.xml
8463 ===================================================================
8464 <?xml version='1.0' encoding='UTF-8'?>
8465 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
8466
8467 <!-- The content of this document is licensed under the CC-BY-SA license -->
8468 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
8469
8470 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-hppa-disk.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
8471
8472 <sections>
8473
8474 <version>6.0</version>
8475 <date>2006-02-27</date>
8476
8477 <section>
8478 <title>Introduction to Block Devices</title>
8479 <subsection>
8480 <title>Block Devices</title>
8481 <body>
8482
8483 <p>
8484 We'll take a good look at disk-oriented aspects of Gentoo Linux
8485 and Linux in general, including Linux filesystems, partitions and block devices.
8486 Then, once you're familiar with the ins and outs of disks and filesystems,
8487 you'll be guided through the process of setting up partitions and filesystems
8488 for your Gentoo Linux installation.
8489 </p>
8490
8491 <p>
8492 To begin, we'll introduce <e>block devices</e>. The most famous block device is
8493 probably the one that represents the first SCSI HD in a Linux system, namely
8494 <path>/dev/sda</path>.
8495 </p>
8496
8497 <p>
8498 The block devices above represent an abstract interface to the disk. User
8499 programs can use these block devices to interact with your disk without worrying
8500 about whether your drives are IDE, SCSI or something else. The program can
8501 simply address the storage on the disk as a bunch of contiguous,
8502 randomly-accessible 512-byte blocks.
8503 </p>
8504
8505 </body>
8506 </subsection>
8507 <subsection>
8508 <title>Partitions and Slices</title>
8509 <body>
8510
8511 <p>
8512 Although it is theoretically possible to use a full disk to house your Linux
8513 system, this is almost never done in practice. Instead, full disk block devices
8514 are split up in smaller, more manageable block devices. On most systems,
8515 these are called <e>partitions</e>. Other architectures use a similar technique,
8516 called <e>slices</e>.
8517 </p>
8518
8519 </body>
8520 </subsection>
8521 </section>
8522 <section>
8523 <title>Designing a Partitioning Scheme</title>
8524 <subsection>
8525 <title>How Many and How Big?</title>
8526 <body>
8527
8528 <p>
8529 The number of partitions is highly dependent on your environment. For instance,
8530 if you have lots of users, you will most likely want to have your
8531 <path>/home</path> separate as it increases security and makes backups easier.
8532 If you are installing Gentoo to perform as a mailserver, your
8533 <path>/var</path> should be separate as all mails are stored inside
8534 <path>/var</path>. A good choice of filesystem will then maximise your
8535 performance. Gameservers will have a separate <path>/opt</path> as most gaming
8536 servers are installed there. The reason is similar for <path>/home</path>:
8537 security and backups. You will definitely want to keep <path>/usr</path> big:
8538 not only will it contain the majority of applications, the Portage tree alone
8539 takes around 500 Mbyte excluding the various sources that are stored in it.
8540 </p>
8541
8542 <p>
8543 As you can see, it very much depends on what you want to achieve. Separate
8544 partitions or volumes have the following advantages:
8545 </p>
8546
8547 <ul>
8548 <li>
8549 You can choose the best performing filesystem for each partition or volume
8550 </li>
8551 <li>
8552 Your entire system cannot run out of free space if one defunct tool is
8553 continuously writing files to a partition or volume
8554 </li>
8555 <li>
8556 If necessary, file system checks are reduced in time, as multiple checks can
8557 be done in parallel (although this advantage is more with multiple disks than
8558 it is with multiple partitions)
8559 </li>
8560 <li>
8561 Security can be enhanced by mounting some partitions or volumes read-only,
8562 nosuid (setuid bits are ignored), noexec (executable bits are ignored) etc.
8563 </li>
8564 </ul>
8565
8566 <p>
8567 However, multiple partitions have one big disadvantage: if not configured
8568 properly, you might result in having a system with lots
8569 of free space on one partition and none on another. There is also a 15-partition
8570 limit for SCSI and SATA.
8571 </p>
8572
8573 </body>
8574 </subsection>
8575 </section>
8576 <section>
8577 <title>Using fdisk on HPPA to Partition your Disk</title>
8578 <body>
8579
8580 <p>
8581 Use <c>fdisk</c> to create the partitions you want:
8582 </p>
8583
8584 <pre caption="Partitioning the disk">
8585 # <i>fdisk /dev/sda</i>
8586 </pre>
8587
8588 <p>
8589 HPPA machines use the PC standard DOS partition tables. To create a new
8590 DOS partition table, simply use the <c>o</c> command.
8591 </p>
8592
8593 <pre caption="Creating a DOS partition table">
8594 # <i>fdisk /dev/sda</i>
8595
8596 Command (m for help): <i>o</i>
8597 Building a new DOS disklabel.
8598 </pre>
8599
8600 <p>
8601 PALO (the HPPA bootloader) needs a special partition to work. You have
8602 to create a partition of at least 16MB at the beginning of your disk.
8603 The partition type must be of type <e>f0</e> (Linux/PA-RISC boot).
8604 </p>
8605
8606 <impo>
8607 If you ignore this and continue without a special PALO partition, your system
8608 will stop loving you and fail to start. Also, if your disk is larger than 2GB,
8609 make sure that the boot partition is in the first 2GB of your disk. PALO is
8610 unable to read a kernel after the 2GB limit.
8611 </impo>
8612
8613 <pre caption="A simple default partition schema">
8614 # <i>cat /etc/fstab</i>
8615 /dev/sda2 /boot ext3 noauto,noatime 1 1
8616 /dev/sda3 none swap sw 0 0
8617 /dev/sda4 / ext3 noatime 0 0
8618
8619 # <i>fdisk /dev/sda</i>
8620
8621 Command (m for help): <i>p</i>
8622
8623 Disk /dev/sda: 4294 MB, 4294816768 bytes
8624 133 heads, 62 sectors/track, 1017 cylinders
8625 Units = cylinders of 8246 * 512 = 4221952 bytes
8626
8627 Device Boot Start End Blocks Id System
8628 /dev/sda1 1 8 32953 f0 Linux/PA-RISC boot
8629 /dev/sda2 9 20 49476 83 Linux
8630 /dev/sda3 21 70 206150 82 Linux swap
8631 /dev/sda4 71 1017 3904481 83 Linux
8632 </pre>
8633
8634 <p>
8635 Now that your partitions are created, you can now continue with <uri
8636 link="#filesystems">Creating Filesystems</uri>.
8637 </p>
8638
8639 </body>
8640 </section>
8641 <section id="filesystems">
8642 <title>Creating Filesystems</title>
8643 <subsection>
8644 <title>Introduction</title>
8645 <body>
8646
8647 <p>
8648 Now that your partitions are created, it is time to place a filesystem on them.
8649 If you don't care about what filesystem to choose and are happy with what we use
8650 as default in this handbook, continue with <uri
8651 link="#filesystems-apply">Applying a Filesystem to a Partition</uri>.
8652 Otherwise read on to learn about the available filesystems...
8653 </p>
8654
8655 </body>
8656 </subsection>
8657 <subsection>
8658 <title>Filesystems?</title>
8659 <body>
8660
8661 <p>
8662 Several filesystems are available. Ext2, ext3, XFS and reiserfs are found stable on
8663 the HPPA architecture. The others are very experimental.
8664 </p>
8665
8666 <p>
8667 <b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata
8668 journaling, which means that routine ext2 filesystem checks at startup time can
8669 be quite time-consuming. There is now quite a selection of newer-generation
8670 journaled filesystems that can be checked for consistency very quickly and are
8671 thus generally preferred over their non-journaled counterparts. Journaled
8672 filesystems prevent long delays when you boot your system and your filesystem
8673 happens to be in an inconsistent state.
8674 </p>
8675
8676 <p>
8677 <b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata
8678 journaling for fast recovery in addition to other enhanced journaling modes like
8679 full data and ordered data journaling. ext3 is a very good and reliable
8680 filesystem. It has an additional hashed b-tree indexing option that enables
8681 high performance in almost all situations. You can enable this indexing by
8682 adding <c>-O dir_index</c> to the <c>mke2fs</c> command. In short, ext3 is an
8683 excellent filesystem.
8684 </p>
8685
8686 <p>
8687 <b>ReiserFS</b> is a B*-tree based filesystem that has very good overall
8688 performance and greatly outperforms both ext2 and ext3 when dealing with small
8689 files (files less than 4k), often by a factor of 10x-15x. ReiserFS also scales
8690 extremely well and has metadata journaling. As of kernel 2.4.18+, ReiserFS is
8691 solid and usable as both general-purpose filesystem and for extreme cases such
8692 as the creation of large filesystems, the use of many small files, very large
8693 files and directories containing tens of thousands of files.
8694 </p>
8695
8696 <p>
8697 <b>XFS</b> is a filesystem with metadata journaling which comes with a robust
8698 feature-set and is optimized for scalability. We only recommend using this
8699 filesystem on Linux systems with high-end SCSI and/or fibre channel storage and
8700 an uninterruptible power supply. Because XFS aggressively caches in-transit data
8701 in RAM, improperly designed programs (those that don't take proper precautions
8702 when writing files to disk and there are quite a few of them) can lose a good
8703 deal of data if the system goes down unexpectedly.
8704 </p>
8705
8706 <p>
8707 <b>JFS</b> is IBM's high-performance journaling filesystem. It has recently
8708 become production-ready and there hasn't been a sufficient track record to
8709 comment positively nor negatively on its general stability at this point.
8710 </p>
8711
8712 </body>
8713 </subsection>
8714 <subsection id="filesystems-apply">
8715 <title>Applying a Filesystem to a Partition</title>
8716 <body>
8717
8718 <p>
8719 To create a filesystem on a partition or volume, there are tools available for
8720 each possible filesystem:
8721 </p>
8722
8723 <table>
8724 <tr>
8725 <th>Filesystem</th>
8726 <th>Creation Command</th>
8727 </tr>
8728 <tr>
8729 <ti>ext2</ti>
8730 <ti><c>mke2fs</c></ti>
8731 </tr>
8732 <tr>
8733 <ti>ext3</ti>
8734 <ti><c>mke2fs -j</c></ti>
8735 </tr>
8736 <tr>
8737 <ti>reiserfs</ti>
8738 <ti><c>mkreiserfs</c></ti>
8739 </tr>
8740 <tr>
8741 <ti>xfs</ti>
8742 <ti><c>mkfs.xfs</c></ti>
8743 </tr>
8744 <tr>
8745 <ti>jfs</ti>
8746 <ti><c>mkfs.jfs</c></ti>
8747 </tr>
8748 </table>
8749
8750 <p>
8751 For instance, to have the boot partition (<path>/dev/sda2</path> in our
8752 example) in ext2 and the root partition (<path>/dev/sda4</path> in our example)
8753 in ext3 (as in our example), you would use:
8754 </p>
8755
8756 <pre caption="Applying a filesystem on a partition">
8757 # <i>mke2fs /dev/sda2</i>
8758 # <i>mke2fs -j /dev/sda4</i>
8759 </pre>
8760
8761 <p>
8762 Now create the filesystems on your newly created partitions (or logical
8763 volumes).
8764 </p>
8765
8766 </body>
8767 </subsection>
8768 <subsection>
8769 <title>Activating the Swap Partition</title>
8770 <body>
8771
8772 <p>
8773 <c>mkswap</c> is the command that is used to initialize swap partitions:
8774 </p>
8775
8776 <pre caption="Creating a Swap signature">
8777 # <i>mkswap /dev/sda3</i>
8778 </pre>
8779
8780 <p>
8781 To activate the swap partition, use <c>swapon</c>:
8782 </p>
8783
8784 <pre caption="Activating the swap partition">
8785 # <i>swapon /dev/sda3</i>
8786 </pre>
8787
8788 <p>
8789 Create and activate the swap now.
8790 </p>
8791
8792 </body>
8793 </subsection>
8794 </section>
8795 <section>
8796 <title>Mounting</title>
8797 <body>
8798
8799 <p>
8800 Now that your partitions are initialized and are housing a filesystem, it is
8801 time to mount those partitions. Use the <c>mount</c> command. Don't forget to
8802 create the necessary mount directories for every partition you created. As an
8803 example we mount the root and boot partition:
8804 </p>
8805
8806 <pre caption="Mounting partitions">
8807 # <i>mount /dev/sda4 /mnt/gentoo</i>
8808 # <i>mkdir /mnt/gentoo/boot</i>
8809 # <i>mount /dev/sda2 /mnt/gentoo/boot</i>
8810 </pre>
8811
8812 <note>
8813 If you want your <path>/tmp</path> to reside on a separate partition, be sure to
8814 change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This
8815 also holds for <path>/var/tmp</path>.
8816 </note>
8817
8818 <p>
8819 We will also have to mount the proc filesystem (a virtual interface with the
8820 kernel) on <path>/proc</path>. But first we will need to place our files on the partitions.
8821 </p>
8822
8823 <p>
8824 Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
8825 Installation Files</uri>.
8826 </p>
8827
8828 </body>
8829 </section>
8830 </sections>
8831
8832
8833
8834 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-hppa-kernel.xml
8835
8836 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-hppa-kernel.xml?rev=1.1&view=markup
8837 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-hppa-kernel.xml?rev=1.1&content-type=text/plain
8838
8839 Index: hb-install-hppa-kernel.xml
8840 ===================================================================
8841 <?xml version='1.0' encoding='UTF-8'?>
8842 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
8843
8844 <!-- The content of this document is licensed under the CC-BY-SA license -->
8845 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
8846
8847 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-hppa-kernel.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
8848
8849 <sections>
8850
8851 <version>6.0</version>
8852 <date>2006-02-27</date>
8853
8854 <section>
8855 <title>Timezone</title>
8856 <body>
8857
8858 <p>
8859 You first need to select your timezone so that your system knows where it is
8860 located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy
8861 it to <path>/etc/localtime</path>. Please avoid the
8862 <path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not
8863 indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8.
8864 </p>
8865
8866 <pre caption="Setting the timezone information">
8867 # <i>ls /usr/share/zoneinfo</i>
8868 <comment>(Suppose you want to use GMT)</comment>
8869 # <i>cp /usr/share/zoneinfo/GMT /etc/localtime</i>
8870 </pre>
8871
8872 </body>
8873 </section>
8874 <section>
8875 <title>Installing the Sources</title>
8876 <subsection>
8877 <title>Choosing a Kernel</title>
8878 <body>
8879
8880 <p>
8881 The core around which all distributions are built is the Linux kernel. It is the
8882 layer between the user programs and your system hardware. Gentoo provides its
8883 users several possible kernel sources. A full listing with description is
8884 available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel
8885 Guide</uri>.
8886 </p>
8887
8888 <p>
8889 For HPPA we have <c>hppa-sources</c>. Default these sources are based on the
8890 2.6 kernel sources. If you want to install a 2.4 kernel, you will need to
8891 install Gentoo from a working Internet connection as we do not supply those
8892 sources on our Installation CD. Continue by installing the kernel source. The
8893 <c>USE="-doc"</c> is necessary to avoid installing xorg-x11 or other
8894 dependencies at this point. <c>USE="symlink"</c> is not necessary for a new
8895 install, but ensures proper creation of the <path>/usr/src/linux</path>
8896 symlink.
8897 </p>
8898
8899 <pre caption="Installing a kernel source">
8900 # <i>USE="-doc symlink" emerge hppa-sources</i>
8901 </pre>
8902
8903 <p>
8904 When you take a look in <path>/usr/src</path> you should see a symlink called
8905 <path>linux</path> pointing to your kernel source. In this case, the installed
8906 kernel source points to <c>hppa-sources-2.6.15.1-pa4</c>. Your version may be
8907 different, so keep this in mind.
8908 </p>
8909
8910 <pre caption="Viewing the kernel source symlink">
8911 # <i>ls -l /usr/src/linux</i>
8912 lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-2.6.15.1-pa4
8913 </pre>
8914
8915 <p>
8916 Now it is time to configure and compile your kernel source. All architectures
8917 can use <c>genkernel</c> for this, which will build a generic kernel as used
8918 by the Installation CD. We explain the "manual" configuration first though, as
8919 it is the best way to optimize your environment.
8920 </p>
8921
8922 <p>
8923 If you want to manually configure your kernel, continue now with <uri
8924 link="#manual">Default: Manual Configuration</uri>. If you want to use
8925 <c>genkernel</c> you should read <uri link="#genkernel">Alternative: Using
8926 genkernel</uri> instead.
8927 </p>
8928
8929 </body>
8930 </subsection>
8931 </section>
8932 <section id="manual">
8933 <title>Default: Manual Configuration</title>
8934 <subsection>
8935 <title>Introduction</title>
8936 <body>
8937
8938 <p>
8939 Manually configuring a kernel is often seen as the most difficult procedure a
8940 Linux user ever has to perform. Nothing is less true -- after configuring a
8941 couple of kernels you don't even remember that it was difficult ;)
8942 </p>
8943
8944 <p>
8945 However, one thing <e>is</e> true: you must know your system when you start
8946 configuring a kernel manually. Most information can be gathered by emerging
8947 pciutils (<c>emerge pciutils</c>) which contains <c>lspci</c>. You will now
8948 be able to use <c>lspci</c> within the chrooted environment. You may safely
8949 ignore any <e>pcilib</e> warnings (like pcilib: cannot open
8950 /sys/bus/pci/devices) that <c>lspci</c> throws out. Alternatively, you can run
8951 <c>lspci</c> from a <e>non-chrooted</e> environment. The results are the same.
8952 You can also run <c>lsmod</c> to see what kernel modules the Installation CD
8953 uses (it might provide you with a nice hint on what to enable).
8954 </p>
8955
8956 <p>
8957 Now go to your kernel source directory and execute <c>make menuconfig</c>. This
8958 will fire up an ncurses-based configuration menu.
8959 </p>
8960
8961 <pre caption="Invoking menuconfig">
8962 # <i>cd /usr/src/linux</i>
8963 # <i>make menuconfig</i>
8964 </pre>
8965
8966 <p>
8967 You will be greeted with several configuration sections. We'll first list some
8968 options you must activate (otherwise Gentoo will not function, or not function
8969 properly without additional tweaks).
8970 </p>
8971
8972 </body>
8973 </subsection>
8974 <subsection>
8975 <title>Activating Required Options</title>
8976 <body>
8977
8978 <p>
8979 First of all, activate the use of development and experimental code/drivers.
8980 You need this, otherwise some very important code/drivers won't show up:
8981 </p>
8982
8983 <pre caption="Selecting experimental code/drivers, General setup">
8984 Code maturity level options ---&gt;
8985 [*] Prompt for development and/or incomplete code/drivers
8986 General setup --->
8987 [*] Support for hot-pluggable devices
8988 </pre>
8989
8990 <p>
8991 Now go to <c>File Systems</c> and select support for the filesystems you use.
8992 <e>Don't</e> compile them as modules, otherwise your Gentoo system will not be
8993 able to mount your partitions. Also select <c>Virtual memory</c> and <c>/proc
8994 file system</c>.
8995 </p>
8996
8997 <pre caption="Selecting necessary file systems">
8998 File systems ---&gt;
8999 Pseudo Filesystems ---&gt;
9000 [*] /proc file system support
9001 [*] Virtual memory file system support (former shm fs)
9002
9003 <comment>(Select one or more of the following options as needed by your system)</comment>
9004 &lt;*&gt; Reiserfs support
9005 &lt;*&gt; Ext3 journalling file system support
9006 &lt;*&gt; JFS filesystem support
9007 &lt;*&gt; Second extended fs support
9008 &lt;*&gt; XFS filesystem support
9009 </pre>
9010
9011 <p>
9012 If you are using PPPoE to connect to the Internet or you are using a dial-up
9013 modem, you will need the following options in the kernel:
9014 </p>
9015
9016 <pre caption="Selecting PPPoE necessary drivers">
9017 Device Drivers ---&gt;
9018 Networking support ---&gt;
9019 &lt;*&gt; PPP (point-to-point protocol) support
9020 &lt;*&gt; PPP support for async serial ports
9021 &lt;*&gt; PPP support for sync tty ports
9022 </pre>
9023
9024 <p>
9025 The two compression options won't harm but are not definitely needed, neither
9026 does the <c>PPP over Ethernet</c> option, that might only be used by
9027 <c>rp-pppoe</c> when configured to do kernel mode PPPoE.
9028 </p>
9029
9030 <p>
9031 If you require it, don't forget to include support in the kernel for your
9032 ethernet card.
9033 </p>
9034
9035 <p>
9036 If you have a HIL mouse or keyboard, do not forget to compile in support for
9037 them.
9038 </p>
9039
9040 <pre caption="Activating HIL support">
9041 Input core support ---&gt;
9042 [*] Keyboard support
9043 [*] Mouse support
9044 [*] Event interface support
9045 </pre>
9046
9047 <p>
9048 If you have no mouse on your HIL port, only use the basic support:
9049 </p>
9050
9051 <pre caption="Basic HIL support">
9052 HIL support ---&gt;
9053 [*] HIL Keyboard (basic) support
9054 </pre>
9055
9056 <p>
9057 If you however want <e>full</e> HIL support, select the following options:
9058 </p>
9059
9060 <pre caption="Full HIL support">
9061 HIL support ---&gt;
9062 [*] HP System Device Controller i8042 Support
9063 [*] HIL MLC Support
9064 [*] HIL Keyboard (full) support
9065 [*] HIL Mouse &amp; Pointer support
9066 </pre>
9067
9068 <p>
9069 Also include display driver support:
9070 </p>
9071
9072 <pre caption="Display Driver support">
9073 Graphics support ---&gt;
9074 [*] Support for frame buffer devices
9075 [*] HP STI frame buffer device support
9076 Console display driver support ---&gt;
9077 [*] STI text console
9078 </pre>
9079
9080 <p>
9081 When you're done configuring your kernel, continue with <uri
9082 link="#compiling">Compiling and Installing</uri>.
9083 </p>
9084
9085 </body>
9086 </subsection>
9087 <subsection id="compiling">
9088 <title>Compiling and Installing</title>
9089 <body>
9090
9091 <p>
9092 Now that your kernel is configured, it is time to compile and install it. Exit
9093 the configuration and start the compilation process:
9094 </p>
9095
9096 <pre caption="Compiling the kernel">
9097 # <i>make &amp;&amp; make modules_install</i>
9098 </pre>
9099
9100 <p>
9101 When the kernel has finished compiling, copy the kernel image to
9102 <path>/boot</path>. Use whatever name you feel is appropriate for your kernel
9103 choice and remember it as you will need it later on when you configure your
9104 bootloader. Remember to replace <path>&lt;kernel-version&gt;</path> with the
9105 name and version of your kernel.
9106 </p>
9107
9108 <pre caption="Installing the kernel">
9109 # <i>cp vmlinux /boot/&lt;kernel-version&gt;</i>
9110 </pre>
9111
9112 <p>
9113 Now continue with <uri link="#kernel_modules">Configuring Kernel
9114 Modules</uri>.
9115 </p>
9116
9117 </body>
9118 </subsection>
9119 </section>
9120 <section id="genkernel">
9121 <title>Alternative: Using genkernel</title>
9122 <body>
9123
9124 <p>
9125 If you are reading this section, you have chosen to use our <c>genkernel</c>
9126 script to configure your kernel for you.
9127 </p>
9128
9129 <p>
9130 Now that your kernel source tree is installed, it's now time to compile your
9131 kernel by using our <c>genkernel</c> script to automatically build a kernel for
9132 you. <c>genkernel</c> works by configuring a kernel nearly identically to the
9133 way our Installation CD kernel is configured. This means that when you use
9134 <c>genkernel</c> to build your kernel, your system will generally detect all
9135 your hardware at boot-time, just like our Installation CD does. Because genkernel
9136 doesn't require any manual kernel configuration, it is an ideal solution for
9137 those users who may not be comfortable compiling their own kernels.
9138 </p>
9139
9140 <p>
9141 Now, let's see how to use genkernel. First, emerge the genkernel ebuild:
9142 </p>
9143
9144 <pre caption="Emerging genkernel">
9145 # <i>emerge genkernel</i>
9146 </pre>
9147
9148 <p>
9149 Now, compile your kernel sources by running <c>genkernel all</c>.
9150 Be aware though, as <c>genkernel</c> compiles a kernel that supports almost all
9151 hardware, this compilation will take quite a while to finish!
9152 </p>
9153
9154 <p>
9155 Note that, if your boot partition doesn't use ext2 or ext3 as filesystem you
9156 need to manually configure your kernel using <c>genkernel --menuconfig all</c>
9157 and add support for your filesystem <e>in</e> the kernel (i.e. <e>not</e> as a
9158 module).
9159 </p>
9160
9161 <pre caption="Running genkernel">
9162 # <i>genkernel all</i>
9163 <comment>(Output removed to increase readability)</comment>
9164 * Kernel compiled successfully!
9165 * Required Kernel Params:
9166 * : root=/dev/ram0 init=/linuxrc real_root=/dev/$ROOT
9167 * where $ROOT is the devicenode for your root partition as
9168 * you should have specified in /etc/fstab
9169 *
9170 * You MUST tell your bootloader to use the generated initrd
9171 *
9172 * Recommended Kernel Params:
9173 * : vga=0x317 splash=verbose
9174 *
9175 * Do NOT report kernel bugs (configs included) as genkernel bugs.
9176 * Make sure you have the latest genkernel before reporting bugs
9177 *
9178 * For more info see /usr/share/genkernel/README
9179 </pre>
9180
9181 <p>
9182 Once <c>genkernel</c> completes, a kernel, full set of modules and
9183 <e>initial root disk</e> (initrd) will be created. We will use the kernel
9184 and initrd when configuring a boot loader later in this document. Write
9185 down the names of the kernel and initrd as you will need it when writing
9186 the bootloader configuration file. The initrd will be started immediately after
9187 booting to perform hardware autodetection (just like on the Installation CD)
9188 before your "real" system starts up.
9189 </p>
9190
9191 <pre caption="Checking the created kernel image name and initrd">
9192 # <i>ls /boot/kernel* /boot/initramfs*</i>
9193 </pre>
9194
9195 <p>
9196 Now, let's perform one more step to get our system to be more like the
9197 Installation CD -- let's emerge <c>coldplug</c>. While the initrd autodetects
9198 hardware that is needed to boot your system, <c>coldplug</c> autodetects
9199 everything else. To emerge and enable <c>coldplug</c>, type the following:
9200 </p>
9201
9202 <pre caption="Emerging and enabling coldplug">
9203 # <i>emerge coldplug</i>
9204 # <i>rc-update add coldplug default</i>
9205 </pre>
9206
9207 </body>
9208 </section>
9209 <section id="kernel_modules">
9210 <title>Configuring Kernel Modules</title>
9211 <subsection>
9212 <title>Configuring the Modules</title>
9213 <body>
9214
9215 <p>
9216 You should list the modules you want automatically loaded in
9217 <path>/etc/modules.autoload.d/kernel-2.6</path>.
9218 You can add extra options to the modules too if you want.
9219 </p>
9220
9221 <p>
9222 To view all available modules, run the following <c>find</c> command. Don't
9223 forget to substitute "&lt;kernel version&gt;" with the version of the kernel you
9224 just compiled:
9225 </p>
9226
9227 <pre caption="Viewing all available modules">
9228 # <i>find /lib/modules/&lt;kernel version&gt;/ -type f -iname '*.o' -or -iname '*.ko'</i>
9229 </pre>
9230
9231 <p>
9232 For instance, to automatically load the <c>3c59x.o</c> module, edit the
9233 <path>kernel-2.6</path> file and enter the module
9234 name in it.
9235 </p>
9236
9237 <pre caption="Editing /etc/modules.autoload.d/kernel-2.6">
9238 # <i>nano -w /etc/modules.autoload.d/kernel-2.6</i>
9239 </pre>
9240
9241 <pre caption="/etc/modules.autoload.d/kernel-2.6">
9242 3c59x
9243 </pre>
9244
9245 <p>
9246 Continue the installation with <uri link="?part=1&amp;chap=8">Configuring
9247 your System</uri>.
9248 </p>
9249
9250 </body>
9251 </subsection>
9252 </section>
9253 </sections>
9254
9255
9256
9257 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-hppa-medium.xml
9258
9259 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-hppa-medium.xml?rev=1.1&view=markup
9260 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-hppa-medium.xml?rev=1.1&content-type=text/plain
9261
9262 Index: hb-install-hppa-medium.xml
9263 ===================================================================
9264 <?xml version='1.0' encoding='UTF-8'?>
9265 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
9266
9267 <!-- The content of this document is licensed under the CC-BY-SA license -->
9268 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
9269
9270 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-hppa-medium.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
9271
9272 <sections>
9273
9274 <version>6.1</version>
9275 <date>2006-04-25</date>
9276
9277 <section>
9278 <title>Hardware Requirements</title>
9279 <subsection>
9280 <title>Introduction</title>
9281 <body>
9282
9283 <p>
9284 Before we start, we first list what hardware requirements you need to
9285 successfully install Gentoo on your box.
9286 </p>
9287
9288 </body>
9289 </subsection>
9290 <subsection>
9291 <title>Hardware Requirements</title>
9292 <body>
9293
9294 <p>
9295 A list of supported hardware can be found on the <uri
9296 link="http://www.pateam.org/list.html">PA Team website</uri>. You may find
9297 additional information about your box in the <uri
9298 link="http://hwdb.parisc-linux.org">Parisc-Linux Hardware Database</uri> and
9299 the <uri link="http://www.openpa.net/cpu.html">processor list</uri> on
9300 <uri>www.openpa.net</uri>.
9301 </p>
9302
9303 <p>
9304 If you don't know which version of PA-RISC your box is using, please check the
9305 links above to find out whether you're using version 1.1 or 2.0. You will need
9306 this information later on.
9307 </p>
9308
9309 <table>
9310 <tr>
9311 <th>Memory</th>
9312 <ti>64 MB</ti>
9313 </tr>
9314 <tr>
9315 <th>Diskspace</th>
9316 <ti>1.5 GB (excluding swap space)</ti>
9317 </tr>
9318 <tr>
9319 <th>Swap space</th>
9320 <ti>At least 256 MB</ti>
9321 </tr>
9322 </table>
9323
9324 </body>
9325 </subsection>
9326 </section>
9327 <!-- Copy/paste from hb-install-x86-medium.xml -->
9328 <!-- START -->
9329 <section>
9330 <title>The Gentoo Universal Installation CD</title>
9331 <subsection>
9332 <title>Introduction</title>
9333 <body>
9334
9335 <p>
9336 Gentoo Linux can be installed using a <e>stage3</e> tarball file.
9337 Such a tarball is an archive that contains a minimal environment from
9338 which you can succesfully install Gentoo Linux onto your system.
9339 </p>
9340
9341 <p>
9342 Installations using a stage1 or stage2 tarball file are not documented in the
9343 Gentoo Handbook - please read the <uri link="/doc/en/faq.xml#stage12">Gentoo
9344 FAQ</uri> on these matters.
9345 </p>
9346
9347 </body>
9348 </subsection>
9349 <subsection>
9350 <title>Gentoo Universal Installation CD</title>
9351 <body>
9352
9353 <p>
9354 An Installation CD is a bootable medium which contains a self-sustained Gentoo
9355 environment. It allows you to boot Linux from the CD. During the boot process
9356 your hardware is detected and the appropriate drivers are loaded. The Gentoo
9357 Installation CDs are maintained by Gentoo developers.
9358 </p>
9359
9360 <p>
9361 There currently are two Installation CDs available:
9362 </p>
9363
9364 <ul>
9365 <li>
9366 The Universal Installation CD contains everything you need to install
9367 Gentoo. It provides stage3 files for common architectures, source code
9368 for the extra applications you need to choose from and, of course, the
9369 installation instructions for your architecture.
9370 </li>
9371 <li>
9372 The Minimal Installation CD contains only a minimal environment that allows
9373 you to boot up and configure your network so you can connect to the
9374 Internet. It does not contain any additional files and cannot be used
9375 during the current installation approach.
9376 </li>
9377 </ul>
9378
9379 </body>
9380 </subsection>
9381 </section>
9382 <!-- STOP -->
9383 <section>
9384 <title>Download, Burn and Boot the Gentoo Universal Installation CD</title>
9385 <subsection>
9386 <title>Downloading and Burning the Installation CD</title>
9387 <body>
9388
9389 <p>
9390 You can download the Universal Installation CD from one of our <uri
9391 link="/main/en/mirrors.xml">mirrors</uri>. The Installation CD is located in
9392 the <path>releases/hppa/2006.1/installcd</path> directory.
9393 </p>
9394
9395 <p>
9396 Inside those directories you'll find ISO-files. Those are full CD images which
9397 you can write on a CD-R.
9398 </p>
9399
9400 <p>
9401 After downloading the file, you can verify its integrity to see if it is
9402 corrupted or not:
9403 </p>
9404
9405 <ul>
9406 <li>
9407 You can check its MD5 checksum and compare it with the MD5 checksum we
9408 provide (for instance with the <c>md5sum</c> tool under Linux/Unix or
9409 <uri link="http://www.etree.org/md5com.html">md5sum</uri> for Windows)
9410 </li>
9411 <li>
9412 You can verify the cryptographic signature that we provide. You need to
9413 obtain the public key we use (17072058) before you proceed though.
9414 </li>
9415 </ul>
9416
9417 <p>
9418 To fetch our public key using the GnuPG application, run the following command:
9419 </p>
9420
9421 <pre caption="Obtaining the public key">
9422 $ <i>gpg --keyserver subkeys.pgp.net --recv-keys 17072058</i>
9423 </pre>
9424
9425 <p>
9426 Now verify the signature:
9427 </p>
9428
9429 <pre caption="Verify the cryptographic signature">
9430 $ <i>gpg --verify &lt;signature file&gt; &lt;downloaded iso&gt;</i>
9431 </pre>
9432
9433 <p>
9434 To burn the downloaded ISO(s), you have to select raw-burning. How you
9435 do this is highly program-dependent. We will discuss <c>cdrecord</c> and
9436 <c>K3B</c> here; more information can be found in our <uri
9437 link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>.
9438 </p>
9439
9440 <ul>
9441 <li>
9442 With cdrecord, you simply type <c>cdrecord dev=/dev/hdc &lt;downloaded iso
9443 file&gt;</c> (replace <path>/dev/hdc</path> with your CD-RW drive's device
9444 path).
9445 </li>
9446 <li>
9447 With K3B, select <c>Tools</c> &gt; <c>CD</c> &gt; <c>Burn Image</c>. Then
9448 you can locate your ISO file within the 'Image to Burn' area. Finally click
9449 <c>Start</c>.
9450 </li>
9451 </ul>
9452
9453 </body>
9454 </subsection>
9455 <subsection>
9456 <title>Booting the Universal Installation CD</title>
9457 <body>
9458
9459 <note>
9460 If you have problems booting the Installation CD or any other media, please
9461 read the <uri
9462 link="http://www.tldp.org/HOWTO/PA-RISC-Linux-Boot-HOWTO/index.html">
9463 PA-RISC Linux Boot HOWTO</uri>.
9464 </note>
9465
9466 <p>
9467 Boot your HPPA system. During the boot process, you will see a message similar
9468 to the following:
9469 </p>
9470
9471 <pre caption="HPPA boot message">
9472 Searching for Potential Boot Devices.
9473 To terminate search, press and hold the ESCAPE key.
9474 </pre>
9475
9476 <p>
9477 When this message appears, press and hold the Esc-key until an option menu
9478 appears. This can take a while, be patient. By default, you should enter the
9479 BOOT_ADMIN console. If you receive an option menu, choose <c>Enter Boot
9480 Administration mode</c> to enter the BOOT_ADMIN console. You should now have an
9481 '&gt;' prompt.
9482 </p>
9483
9484 <p>
9485 Put the Gentoo Installation CD in the CD-ROM. If you do not know the SCSI ID of
9486 your CD-ROM drive, your PA-RISC station will search for it when you issue the
9487 <c>search</c> command.
9488 </p>
9489
9490 <pre caption="Searching for SCSI ID">
9491 &gt; <i>search</i>
9492 Searching for Devices with Bootable Media.
9493 To terminate search, please press and hold the ESCAPE key.
9494 </pre>
9495
9496 <p>
9497 Your PA-RISC station will now display all the available boot media. This is an
9498 example result of this command:
9499 </p>
9500
9501 <pre caption="Available boot media">
9502 Device Selection Device Path Device Type and Utilities
9503 ---------------------------------------------------------------------------
9504
9505 P0 scsi.5.0 TOSHIBA CD-ROM XM-3301TA
9506 IPL
9507 P1 scsi.2.0 COMPAQ ST32550N
9508 IPL
9509 P2 lan.0010a7-06d1b6.3.6 server
9510 IPL
9511 </pre>
9512
9513 <p>
9514 To boot from a CD-ROM you need the accompanying Device Path. For instance, if we
9515 want to boot from the TOSHIBA CD-ROM in the above example, we would need to type
9516 the following command:
9517 </p>
9518
9519 <pre caption="Booting from a CD-ROM">
9520 &gt; <i>boot scsi.5.0 ipl</i>
9521
9522 Trying scsi.5.0
9523 </pre>
9524
9525 <p>
9526 The <c>ipl</c> keyword (Initial Program Loader) tells palo (the PA-RISC boot
9527 LOader) to enter interactive mode. This will allow you to change, for example,
9528 the kernel boot parameters.
9529 </p>
9530
9531 <p>
9532 When the boot is successful, palo will start in interactive mode:
9533 </p>
9534
9535 <pre caption="PALO Interactive Mode">
9536 Boot path initialized.
9537 Attempting to load IPL.
9538
9539
9540 HARD Booted.
9541 palo ipl 1.5 root@hope Sat Apr 23 18:06:47 CEST 2005
9542
9543 Boot image contains:
9544 0/vmlinux32 6241293 bytes @ 0x3904000
9545 0/vmlinux64 8352719 bytes @ 0x3ef8000
9546 0/ramdisk 1007589 bytes @ 0x105800
9547
9548 Information: No console specified on kernel command line. This is normal.
9549 PALO will choose the console currently used by firmware (serial).Current command line:
9550 0/vmlinux initrd=initrd TERM=linux root=/dev/ram0 init=/linuxrc cdroot looptype=squashfs loop=/livecd.squashfs hda=scsi console=ttyS0
9551 0: 0/vmlinux
9552 1: initrd=initrd
9553 2: TERM=linux
9554 3: root=/dev/ram0
9555 4: init=/linuxrc
9556 5: cdroot
9557 6: looptype=squashfs
9558 7: loop=/livecd.squashfs
9559 8: hda=scsi
9560 9: console=ttyS0
9561
9562 &lt;#&gt; edit the numbered field
9563 'b' boot with this command line
9564 'r' restore command line
9565 'l' list dir
9566 </pre>
9567
9568 <p>
9569 These parameters are suitable for most situations.
9570 </p>
9571
9572 <p>
9573 If you need extra features you must add the appropriate keyword(s) to the end of
9574 the command line. To add a keyword, edit the last field, add a space and type
9575 your keyword. The only implemented keywords as of now are <c>cdcache</c> which
9576 tells the Installation CD to load itself into RAM, allowing you to unmount the
9577 CD, and <c>noload=module1[,module2[,...]]</c> which allows you to explicitly
9578 disable loading of particular modules.
9579 </p>
9580
9581 <pre caption="Adding hdb=scsi as boot option">
9582 (or 'b' to boot with this command line)? <i>9</i>
9583 console=ttyS0 <i>hdb=scsi</i>
9584 </pre>
9585
9586 <p>
9587 Now that you have tweaked your kernel boot params, boot it.
9588 </p>
9589
9590 <pre caption="Booting the kernel">
9591 (or 'b' to boot with this command line)? <i>b</i>
9592 </pre>
9593
9594 <p>
9595 You should have a root ("#") prompt on the current console and can also switch
9596 to other consoles by pressing Alt-F2, Alt-F3 and Alt-F4. Get back to the one you
9597 started on by pressing Alt-F1.
9598 </p>
9599
9600 <p>
9601 Now continue with <uri link="#hardware">Extra Hardware
9602 Configuration</uri>.
9603 </p>
9604
9605 </body>
9606 </subsection>
9607 <subsection id="hardware">
9608 <title>Extra Hardware Configuration</title>
9609 <body>
9610
9611 <p>
9612 Most hppa machines have an onboard ethernet card. Old ones use the lasi driver
9613 which is compiled in the kernel. Newer ones need the tulip driver which is
9614 compiled as a module. To use the latter, you need to load its driver.
9615 </p>
9616
9617 <p>
9618 In the next example, we try to load the <c>tulip</c> module (support for
9619 certain kinds of network interfaces):
9620 </p>
9621
9622 <pre caption="Loading kernel modules">
9623 # <i>modprobe tulip</i>
9624 </pre>
9625
9626 </body>
9627 </subsection>
9628
9629 <subsection id="useraccounts">
9630 <title>Optional: User Accounts</title>
9631 <body>
9632
9633 <p>
9634 If you plan on giving other people access to your installation
9635 environment or you want to chat using <c>irssi</c> without root privileges (for
9636 security reasons), you need to create the necessary user accounts and change
9637 the root password.
9638 </p>
9639
9640 <p>
9641 To change the root password, use the <c>passwd</c> utility:
9642 </p>
9643
9644 <pre caption="Changing the root password">
9645 # <i>passwd</i>
9646 New password: <comment>(Enter your new password)</comment>
9647 Re-enter password: <comment>(Re-enter your password)</comment>
9648 </pre>
9649
9650 <p>
9651 To create a user account, we first enter their credentials, followed by
9652 its password. We use <c>useradd</c> and <c>passwd</c> for these tasks.
9653 In the next example, we create a user called &quot;john&quot;.
9654 </p>
9655
9656 <pre caption="Creating a user account">
9657 # <i>useradd -m -G users john</i>
9658 # <i>passwd john</i>
9659 New password: <comment>(Enter john's password)</comment>
9660 Re-enter password: <comment>(Re-enter john's password)</comment>
9661 </pre>
9662
9663 <p>
9664 You can change your user id from root to the newly created user by using
9665 <c>su</c>:
9666 </p>
9667
9668 <pre caption="Changing user id">
9669 # <i>su - john</i>
9670 </pre>
9671
9672 </body>
9673 </subsection>
9674 <subsection>
9675 <title>Optional: Viewing Documentation while Installing</title>
9676 <body>
9677
9678 <p>
9679 If you want to view the Gentoo Handbook (either from-CD or online) during the
9680 installation, make sure you have created a user account (see <uri
9681 link="#useraccounts">Optional: User Accounts</uri>). Then press <c>Alt-F2</c> to
9682 go to a new terminal and log in.
9683 </p>
9684
9685 <p>
9686 If you want to view the documentation on the CD you can immediately run
9687 <c>links</c> to read it:
9688 </p>
9689
9690 <pre caption="Viewing the on-CD documentation">
9691 # <i>links /mnt/cdrom/docs/handbook/html/index.html</i>
9692 </pre>
9693
9694 <p>
9695 However, it is preferred that you use the online Gentoo Handbook as it will be
9696 more recent than the one provided on the CD. You can view it using <c>links</c>
9697 as well, but only after having completed the <e>Configuring your Network</e>
9698 chapter (otherwise you won't be able to go on the Internet to view the
9699 document):
9700 </p>
9701
9702 <pre caption="Viewing the Online Documentation">
9703 # <i>links http://www.gentoo.org/doc/en/handbook/handbook-hppa.xml</i>
9704 </pre>
9705
9706 <p>
9707 You can go back to your original terminal by pressing <c>Alt-F1</c>.
9708 </p>
9709
9710 </body>
9711 </subsection>
9712 <subsection>
9713 <title>Optional: Starting the SSH Daemon</title>
9714 <body>
9715
9716 <p>
9717 If you want to allow other users to access your computer during the
9718 Gentoo installation (perhaps because those users are going to help you
9719 install Gentoo, or even do it for you), you need to create a user
9720 account for them and perhaps even provide them with your root password
9721 (<e>only</e> do that <e>if</e> you <b>fully trust</b> that user).
9722 </p>
9723
9724 <p>
9725 To fire up the SSH daemon, execute the following command:
9726 </p>
9727
9728 <pre caption="Starting the SSH daemon">
9729 # <i>/etc/init.d/sshd start</i>
9730 </pre>
9731
9732 <p>
9733 To be able to use sshd, you first need to set up your networking. Continue with
9734 the chapter on <uri link="?part=1&amp;chap=3">Configuring your Network</uri>.
9735 </p>
9736
9737 </body>
9738 </subsection>
9739 </section>
9740 </sections>
9741
9742
9743
9744 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-network.xml
9745
9746 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-network.xml?rev=1.1&view=markup
9747 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-network.xml?rev=1.1&content-type=text/plain
9748
9749 Index: hb-install-network.xml
9750 ===================================================================
9751 <?xml version='1.0' encoding='UTF-8'?>
9752 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
9753
9754 <!-- The content of this document is licensed under the CC-BY-SA license -->
9755 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
9756
9757 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-network.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
9758
9759 <sections>
9760
9761 <version>6.1</version>
9762 <date>2006-03-01</date>
9763
9764 <section>
9765 <title>Do you need Networking?</title>
9766 <subsection>
9767 <title>Who can do without?</title>
9768 <body>
9769
9770 <p>
9771 Generally, you don't need a working network connection to install Gentoo using
9772 either the Universal InstallCD or the Installer LiveCD. However, there are some
9773 circumstances where you do want to have a working Internet connection:
9774 </p>
9775
9776 <ul>
9777 <li>
9778 The stage3 files that are stored in the Universal InstallCD do not
9779 match your architecture and you need to download the correct stage3 file
9780 </li>
9781 <li>
9782 The stage3 file that is generated by the Installer LiveCD does not
9783 match your architecture and you need to download the correct stage3 file
9784 </li>
9785 <li>
9786 You need to install a specific networking application that will allow you to
9787 connect to the Internet which isn't available on the Universal InstallCD or
9788 the Installer LiveCD, but is supported by the CD (i.e. you can connect to
9789 the Internet using the CD but the necessary sources are not available on
9790 the CD)
9791 </li>
9792 <li>
9793 You want remote assistance during the installation (using SSH or through
9794 direct conversations using IRC)
9795 </li>
9796 </ul>
9797
9798 </body>
9799 </subsection>
9800 <subsection>
9801 <title>Do I need Networking?</title>
9802 <body>
9803
9804 <p>
9805 To find out if the stage3 file for your architecture is available and you are
9806 using an Universal InstallCD, take a look inside <path>/mnt/cdrom/stages</path>
9807 and check if one of the available stages matches your architecture. If not, you
9808 can still opt for a stage3 file of an architecture compatible with yours.
9809 </p>
9810
9811 <p>
9812 The stage3 file built by the x86 Installer LiveCD is optimized for i686 or
9813 better and uses NPTL. The stage3 file built by the amd64 Installer LiveCD is
9814 optimized for generic amd64 usage and uses NPTL.
9815 </p>
9816
9817 <p>
9818 If you, on the other hand, want to use a stage3 file optimized for your
9819 architecture and the stage3 file of your choice is not available, then you will
9820 need networking to download the appropriate stage3 file.
9821 </p>
9822
9823 <p>
9824 So, if you don't need networking, you can skip the rest of this chapter and
9825 continue with <uri link="?part=1&amp;chap=4">Preparing the Disks</uri>.
9826 Otherwise, continue with the networking configuration sections below.
9827 </p>
9828
9829 </body>
9830 </subsection>
9831 </section>
9832 <section>
9833 <title>Automatic Network Detection</title>
9834 <subsection>
9835 <title>Maybe it just works?</title>
9836 <body>
9837
9838 <p>
9839 If your system is plugged into an Ethernet network with a DHCP server, it is
9840 very likely that your networking configuration has already been set up
9841 automatically for you. If so, you should be able to take advantage of the many
9842 included network-aware commands on the Installation CD such as <c>ssh</c>,
9843 <c>scp</c>, <c>ping</c>, <c>irssi</c>, <c>wget</c> and <c>links</c>, among
9844 others.
9845 </p>
9846
9847 <p>
9848 If networking has been configured for you, the <c>/sbin/ifconfig</c> command
9849 should list some network interfaces besides lo, such as eth0:
9850 </p>
9851
9852 <pre caption="/sbin/ifconfig for a working network configuration">
9853 # <i>/sbin/ifconfig</i>
9854 <comment>(...)</comment>
9855 eth0 Link encap:Ethernet HWaddr 00:50:BA:8F:61:7A
9856 inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
9857 inet6 addr: fe80::50:ba8f:617a/10 Scope:Link
9858 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
9859 RX packets:1498792 errors:0 dropped:0 overruns:0 frame:0
9860 TX packets:1284980 errors:0 dropped:0 overruns:0 carrier:0
9861 collisions:1984 txqueuelen:100
9862 RX bytes:485691215 (463.1 Mb) TX bytes:123951388 (118.2 Mb)
9863 Interrupt:11 Base address:0xe800
9864 </pre>
9865
9866 </body>
9867 </subsection>
9868 <subsection>
9869 <title>Optional: Configure any Proxies</title>
9870 <body>
9871
9872 <p>
9873 If you access the Internet through a proxy, you might need to set up proxy
9874 information during the installation. It is very easy to define a proxy: you just
9875 need to define a variable which contains the proxy server information.
9876 </p>
9877
9878 <p>
9879 In most cases, you can just define the variables using the server hostname. As
9880 an example, we assume the proxy is called <c>proxy.gentoo.org</c> and the port
9881 is <c>8080</c>.
9882 </p>
9883
9884 <pre caption="Defining proxy servers">
9885 <comment>(If the proxy filters HTTP traffic)</comment>
9886 # <i>export http_proxy="http://proxy.gentoo.org:8080"</i>
9887 <comment>(If the proxy filters FTP traffic)</comment>
9888 # <i>export ftp_proxy="ftp://proxy.gentoo.org:8080"</i>
9889 <comment>(If the proxy filters RSYNC traffic)</comment>
9890 # <i>export RSYNC_PROXY="proxy.gentoo.org:8080"</i>
9891 </pre>
9892
9893 <p>
9894 If your proxy requires a username and password, you should use the following
9895 syntax for the variable:
9896 </p>
9897
9898 <pre caption="Adding username/password to the proxy variable">
9899 http://<i>username</i>:<i>password</i>@proxy.gentoo.org:8080
9900 </pre>
9901
9902 </body>
9903 </subsection>
9904 <subsection>
9905 <title>Testing the Network</title>
9906 <body>
9907
9908 <p>
9909 You may want to try pinging your ISP's DNS server (found in
9910 <path>/etc/resolv.conf</path>) and a Web site of your choice, just to make sure
9911 that your packets are reaching the net, DNS name resolution is working
9912 correctly, etc.
9913 </p>
9914
9915 <pre caption="Further network testing">
9916 # <i>ping -c 3 www.yahoo.com</i>
9917 </pre>
9918
9919 <p>
9920 If you are now able to use your network, you can skip the rest of this
9921 section and continue with <uri link="?part=1&amp;chap=4">Preparing the
9922 Disks</uri>. If not, read on.
9923 </p>
9924
9925 </body>
9926 </subsection>
9927 </section>
9928 <section>
9929 <title>Automatic Network Configuration</title>
9930 <subsection>
9931 <body>
9932
9933 <p>
9934 If the network doesn't work immediately, some installation media allow you to
9935 use <c>net-setup</c> (for regular or wireless networks), <c>adsl-setup</c>
9936 (for ADSL-users) or <c>pptp</c> (for PPTP-users - only available on x86).
9937 </p>
9938
9939 <p>
9940 If your installation medium does not contain any of these tools or your network
9941 doesn't function yet, continue with <uri link="#doc_chap3">Manual Network
9942 Configuration</uri>.
9943 </p>
9944
9945 <ul>
9946 <li>
9947 Regular Ethernet users should continue with <uri
9948 link="#net-setup">Default: Using net-setup</uri>
9949 </li>
9950 <li>
9951 ADSL users should continue with <uri link="#rp-pppoe">Alternative:
9952 Using RP-PPPoE</uri>
9953 </li>
9954 <li>
9955 PPTP users should continue with <uri link="#pptp">Alternative:
9956 Using PPTP</uri>
9957 </li>
9958 </ul>
9959
9960 </body>
9961 </subsection>
9962 <subsection id="net-setup">
9963 <title>Default: Using net-setup</title>
9964 <body>
9965
9966 <p>
9967 The simplest way to set up networking if it didn't get configured
9968 automatically is to run the <c>net-setup</c> script:
9969 </p>
9970
9971 <pre caption="Running the net-setup script">
9972 # <i>net-setup eth0</i>
9973 </pre>
9974
9975 <p>
9976 <c>net-setup</c> will ask you some questions about your network
9977 environment. When all is done, you should have a working network
9978 connection. Test your network connection as stated before. If the tests
9979 are positive, congratulations! You are now ready to install Gentoo. Skip
9980 the rest of this section and continue with <uri
9981 link="?part=1&amp;chap=4">Preparing the Disks</uri>.
9982 </p>
9983
9984 <p>
9985 If your network still doesn't work, continue with <uri link="#doc_chap3">Manual
9986 Network Configuration</uri>.
9987 </p>
9988
9989
9990 </body>
9991 </subsection>
9992 <subsection id="rp-pppoe">
9993 <title>Alternative: Using RP-PPPoE</title>
9994 <body>
9995
9996 <p>
9997 Assuming you need PPPoE to connect to the internet, the Installation CD (any
9998 version) has made things easy for you by including <c>rp-pppoe</c>. Use the
9999 provided <c>adsl-setup</c> script to configure your connection. You will be
10000 prompted for the ethernet device that is connected to your adsl modem, your
10001 username and password, the IPs of your DNS servers and if you need a basic
10002 firewall or not.
10003 </p>
10004
10005 <pre caption="Using rp-pppoe">
10006 # <i>adsl-setup</i>
10007 # <i>adsl-start</i>
10008 </pre>
10009
10010 <p>
10011 If something goes wrong, double-check that you correctly typed your username and
10012 password by looking at <path>/etc/ppp/pap-secrets</path> or
10013 <path>/etc/ppp/chap-secrets</path> and make sure you are using the right
10014 ethernet device. If your ethernet device doesn't exist, you will have to load
10015 the appropriate network modules. In that case you should continue with
10016 <uri link="#doc_chap3">Manual Network Configuration</uri> as we explain how to
10017 load the appropriate network modules there.
10018 </p>
10019
10020 <p>
10021 If everything worked, continue with <uri link="?part=1&amp;chap=4">Preparing the
10022 Disks</uri>.
10023 </p>
10024
10025 </body>
10026 </subsection>
10027 <subsection id="pptp">
10028 <title>Alternative: Using PPTP</title>
10029 <body>
10030
10031 <note>
10032 PPTP support is only available for x86
10033 </note>
10034
10035 <p>
10036 If you need PPTP support, you can use <c>pptpclient</c> which is provided by our
10037 Installation CDs. But first you need to make sure that your configuration is
10038 correct. Edit <path>/etc/ppp/pap-secrets</path> or
10039 <path>/etc/ppp/chap-secrets</path> so it contains the correct username/password
10040 combination:
10041 </p>
10042
10043 <pre caption="Editing /etc/ppp/chap-secrets">
10044 # <i>nano -w /etc/ppp/chap-secrets</i>
10045 </pre>
10046
10047 <p>
10048 Then adjust <path>/etc/ppp/options.pptp</path> if necessary:
10049 </p>
10050
10051 <pre caption="Editing /etc/ppp/options.pptp">
10052 # <i>nano -w /etc/ppp/options.pptp</i>
10053 </pre>
10054
10055 <p>
10056 When all that is done, just run <c>pptp</c> (along with the options you couldn't
10057 set in <path>options.pptp</path>) to connect the server:
10058 </p>
10059
10060 <pre caption="Connection to a dial-in server">
10061 # <i>pptp &lt;server ip&gt;</i>
10062 </pre>
10063
10064 <p>
10065 Now continue with <uri link="?part=1&amp;chap=4">Preparing the Disks</uri>.
10066 </p>
10067
10068 </body>
10069 </subsection>
10070 </section>
10071 <section>
10072 <title>Manual Network Configuration</title>
10073 <subsection>
10074 <title>Loading the Appropriate Network Modules</title>
10075 <body>
10076
10077 <p>
10078 When the Installation CD boots, it tries to detect all your hardware devices and
10079 loads the appropriate kernel modules (drivers) to support your hardware. In the
10080 vast majority of cases, it does a very good job. However, in some cases,
10081 it may not auto-load the kernel modules you need.
10082 </p>
10083
10084 <p>
10085 If <c>net-setup</c> or <c>adsl-setup</c> failed, then it is possible that
10086 your network card wasn't found immediately. This means you may have to load
10087 the appropriate kernel modules manually.
10088 </p>
10089
10090 <p>
10091 To find out what kernel modules we provide for networking, use
10092 <c>ls</c>:
10093 </p>
10094
10095 <pre caption="Searching for provided modules">
10096 # <i>ls /lib/modules/`uname -r`/kernel/drivers/net</i>
10097 </pre>
10098
10099 <p>
10100 If you find a driver for your network card, use <c>modprobe</c> to load
10101 the kernel module:
10102 </p>
10103
10104 <pre caption="Using modprobe to load a kernel module">
10105 <comment>(As an example, we load the pcnet32 module)</comment>
10106 # <i>modprobe pcnet32</i>
10107 </pre>
10108
10109 <p>
10110 To check if your network card is now detected, use <c>ifconfig</c>. A
10111 detected network card would result in something like this:
10112 </p>
10113
10114 <pre caption="Testing availability of your network card, successful">
10115 # <i>ifconfig eth0</i>
10116 eth0 Link encap:Ethernet HWaddr FE:FD:00:00:00:00
10117 BROADCAST NOARP MULTICAST MTU:1500 Metric:1
10118 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
10119 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
10120 collisions:0 txqueuelen:0
10121 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
10122 </pre>
10123
10124 <p>
10125 If however you receive the following error, the network card is not
10126 detected:
10127 </p>
10128
10129 <pre caption="Testing availability of your network card, failed">
10130 # <i>ifconfig eth0</i>
10131 eth0: error fetching interface information: Device not found
10132 </pre>
10133
10134 <p>
10135 If you have multiple network cards in your system they are named <e>eth0</e>,
10136 <e>eth1</e>, etc. Make sure that the network card you want to use works well and
10137 remember to use the correct naming throughout this document. We will assume that
10138 the network card <e>eth0</e> is used.
10139 </p>
10140
10141 <p>
10142 Assuming that you now have a detected network card, you can
10143 retry <c>net-setup</c> or <c>adsl-setup</c> again (which should work
10144 now), but for the hardcore people amongst you we explain how to configure your
10145 network manually.
10146 </p>
10147
10148 <p>
10149 Select one of the following sections based on your network setup:
10150 </p>
10151
10152 <ul>
10153 <li><uri link="#install-dhcp">Using DHCP</uri> for automatic IP retrieval</li>
10154 <li>
10155 <uri link="#wireless">Preparing for Wireless Access</uri> if you have a
10156 wireless card
10157 </li>
10158 <li>
10159 <uri link="#network_term">Understanding Network Terminology</uri> explains
10160 what you need to know about networking
10161 </li>
10162 <li>
10163 <uri link="#ifconfig_route">Using ifconfig and route</uri> explains how to
10164 set up your networking manually
10165 </li>
10166 </ul>
10167
10168 </body>
10169 </subsection>
10170 <subsection id="install-dhcp">
10171 <title>Using DHCP</title>
10172 <body>
10173
10174 <p>
10175 DHCP (Dynamic Host Configuration Protocol) makes it possible to
10176 automatically receive networking information (IP address, netmask,
10177 broadcast address, gateway, nameservers etc.). This only works if you
10178 have a DHCP server in your network (or if your provider provides a DHCP
10179 service). To have a network interface receive this information automatically,
10180 use <c>dhcpcd</c>:
10181 </p>
10182
10183 <pre caption="Using dhcpcd">
10184 # <i>dhcpcd eth0</i>
10185 <comment>Some network admins require that you use the</comment>
10186 <comment>hostname and domainname provided by the DHCP server.</comment>
10187 <comment>In that case, use</comment>
10188 # <i>dhcpcd -HD eth0</i>
10189 </pre>
10190
10191 <p>
10192 If this works (try pinging some internet server, like <uri
10193 link="http://www.google.com">Google</uri>), then you are all set and
10194 ready to continue. Skip the rest of this section and continue with <uri
10195 link="?part=1&amp;chap=4">Preparing the Disks</uri>.
10196 </p>
10197
10198 </body>
10199 </subsection>
10200 <subsection id="wireless">
10201 <title>Preparing for Wireless Access</title>
10202 <body>
10203
10204 <note>
10205 Support for the <c>iwconfig</c> command is only available on x86, amd64 and ppc
10206 Installation CDs. You can still get the extensions working otherwise
10207 by following the instructions of the
10208 <uri link="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/README">linux-wlan-ng
10209 project</uri>.
10210 </note>
10211
10212 <p>
10213 If you are using a wireless (802.11) card, you may need to configure your
10214 wireless settings before going any further. To see the current wireless settings
10215 on your card, you can use <c>iwconfig</c>. Running <c>iwconfig</c> might show
10216 something like:
10217 </p>
10218
10219 <pre caption="Showing the current wireless settings">
10220 # <i>iwconfig eth0</i>
10221 eth0 IEEE 802.11-DS ESSID:"GentooNode"
10222 Mode:Managed Frequency:2.442GHz Access Point: 00:09:5B:11:CC:F2
10223 Bit Rate:11Mb/s Tx-Power=20 dBm Sensitivity=0/65535
10224 Retry limit:16 RTS thr:off Fragment thr:off
10225 Power Management:off
10226 Link Quality:25/10 Signal level:-51 dBm Noise level:-102 dBm
10227 Rx invalid nwid:5901 Rx invalid crypt:0 Rx invalid frag:0 Tx
10228 excessive retries:237 Invalid misc:350282 Missed beacon:84
10229 </pre>
10230
10231 <note>
10232 Some wireless cards may have a device name of <c>wlan0</c> or <c>ra0</c> instead
10233 of <c>eth0</c>. Run <c>iwconfig</c> without any command-line parameters to
10234 determine the correct device name.
10235 </note>
10236
10237 <p>
10238 For most users, there are only two settings that might be important to change,
10239 the ESSID (aka wireless network name) or the WEP key. If the ESSID and Access
10240 Point address listed are already that of your access point and you are not using
10241 WEP, then your wireless is working. If you need to change your ESSID, or add a
10242 WEP key, you can issue the following commands:
10243 </p>
10244
10245 <pre caption="Changing ESSID and/or adding WEP key">
10246 <comment>(This sets the network name to "GentooNode")</comment>
10247 # <i>iwconfig eth0 essid GentooNode</i>
10248
10249 <comment>(This sets a hex WEP key)</comment>
10250 # <i>iwconfig eth0 key 1234123412341234abcd</i>
10251
10252 <comment>(This sets an ASCII key - prefix it with "s:")</comment>
10253 # <i>iwconfig eth0 key s:some-password</i>
10254 </pre>
10255
10256 <p>
10257 You can then confirm your wireless settings again by using <c>iwconfig</c>.
10258 Once you have wireless working, you can continue configuring the IP level
10259 networking options as described in the next section (<uri
10260 link="#network_term">Understanding Network Terminology</uri>) or use the
10261 <c>net-setup</c> tool as described previously.
10262 </p>
10263
10264 </body>
10265 </subsection>
10266 <subsection id="network_term">
10267 <title>Understanding Network Terminology</title>
10268 <body>
10269
10270 <note>
10271 If you know your IP address, broadcast address, netmask and nameservers,
10272 then you can skip this subsection and continue with <uri
10273 link="#ifconfig_route">Using ifconfig and route</uri>.
10274 </note>
10275
10276 <p>
10277 If all of the above fails, you will have to configure your network manually.
10278 This is not difficult at all. However, you need to be familiar with some
10279 network terminology, as you will need it to be able to
10280 configure your network to your satisfaction. After reading this, you
10281 will know what a <e>gateway</e> is, what a <e>netmask</e> serves for,
10282 how a <e>broadcast</e> address is formed and why you need
10283 <e>nameservers</e>.
10284 </p>
10285
10286 <p>
10287 In a network, hosts are identified by their <e>IP address</e> (Internet
10288 Protocol address). Such an address is a combination of four numbers
10289 between 0 and 255. Well, at least that is how we perceive it. In
10290 reality, such an IP address consists of 32 bits (ones and zeros). Let's
10291 view an example:
10292 </p>
10293
10294 <pre caption="Example of an IP address">
10295 IP Address (numbers): 192.168.0.2
10296 IP Address (bits): 11000000 10101000 00000000 00000010
10297 -------- -------- -------- --------
10298 192 168 0 2
10299 </pre>
10300
10301 <p>
10302 Such an IP address is unique to a host as far as all accessible networks are
10303 concerned (i.e. every host that you are able to reach must have a unique IP
10304 address). In order to distinguish between hosts inside and outside a
10305 network, the IP address is divided in two parts: the
10306 <e>network</e> part and the <e>host</e> part.
10307 </p>
10308
10309 <p>
10310 The separation is written down with the <e>netmask</e>, a collection of
10311 ones followed by a collection of zeros. The part of the IP that can be
10312 mapped on the ones is the network-part, the other one is the host-part.
10313 As usual, the netmask can be written down as an IP-address.
10314 </p>
10315
10316 <pre caption="Example of network/host separation">
10317 IP-address: 192 168 0 2
10318 11000000 10101000 00000000 00000010
10319 Netmask: 11111111 11111111 11111111 00000000
10320 255 255 255 0
10321 +--------------------------+--------+
10322 Network Host
10323 </pre>
10324
10325 <p>
10326 In other words, 192.168.0.14 is still part of our example network, but
10327 192.168.1.2 is not.
10328 </p>
10329
10330 <p>
10331 The <e>broadcast</e> address is an IP-address with the same network-part
10332 as your network, but with only ones as host-part. Every host on your
10333 network listens to this IP address. It is truly meant for broadcasting
10334 packets.
10335 </p>
10336
10337 <pre caption="Broadcast address">
10338 IP-address: 192 168 0 2
10339 11000000 10101000 00000000 00000010
10340 Broadcast: 11000000 10101000 00000000 11111111
10341 192 168 0 255
10342 +--------------------------+--------+
10343 Network Host
10344 </pre>
10345
10346 <p>
10347 To be able to surf on the internet, you must know which host shares the
10348 Internet connection. This host is called the <e>gateway</e>. Since it is
10349 a regular host, it has a regular IP address (for instance 192.168.0.1).
10350 </p>
10351
10352 <p>
10353 We previously stated that every host has its own IP address. To be able
10354 to reach this host by a name (instead of an IP address) you need a
10355 service that translates a name (such as <e>dev.gentoo.org</e>) to an IP
10356 address (such as <e>64.5.62.82</e>). Such a service is called a name
10357 service. To use such a service, you must define the necessary <e>name
10358 servers</e> in <path>/etc/resolv.conf</path>.
10359 </p>
10360
10361 <p>
10362 In some cases, your gateway also serves as nameserver. Otherwise you
10363 will have to enter the nameservers provided by your ISP.
10364 </p>
10365
10366 <p>
10367 To summarise, you will need the following information before continuing:
10368 </p>
10369
10370 <table>
10371 <tr>
10372 <th>Network Item</th>
10373 <th>Example</th>
10374 </tr>
10375 <tr>
10376 <ti>Your IP address</ti>
10377 <ti>192.168.0.2</ti>
10378 </tr>
10379 <tr>
10380 <ti>Netmask</ti>
10381 <ti>255.255.255.0</ti>
10382 </tr>
10383 <tr>
10384 <ti>Broadcast</ti>
10385 <ti>192.168.0.255</ti>
10386 </tr>
10387 <tr>
10388 <ti>Gateway</ti>
10389 <ti>192.168.0.1</ti>
10390 </tr>
10391 <tr>
10392 <ti>Nameserver(s)</ti>
10393 <ti>195.130.130.5, 195.130.130.133</ti>
10394 </tr>
10395 </table>
10396
10397 </body>
10398 </subsection>
10399 <subsection id="ifconfig_route">
10400 <title>Using ifconfig and route</title>
10401 <body>
10402
10403 <p>
10404 Setting up your network consists of three steps. First we assign
10405 ourselves an IP address using <c>ifconfig</c>. Then we set up routing to
10406 the gateway using <c>route</c>. Then we finish up by placing the
10407 nameserver IPs in <path>/etc/resolv.conf</path>.
10408 </p>
10409
10410 <p>
10411 To assign an IP address, you will need your IP address, broadcast
10412 address and netmask. Then execute the following command, substituting
10413 <c>${IP_ADDR}</c> with your IP address, <c>${BROADCAST}</c> with your
10414 broadcast address and <c>${NETMASK}</c> with your netmask:
10415 </p>
10416
10417 <pre caption="Using ifconfig">
10418 # <i>ifconfig eth0 ${IP_ADDR} broadcast ${BROADCAST} netmask ${NETMASK} up</i>
10419 </pre>
10420
10421 <p>
10422 Now set up routing using <c>route</c>. Substitute <c>${GATEWAY}</c> with
10423 your gateway IP address:
10424 </p>
10425
10426 <pre caption="Using route">
10427 # <i>route add default gw ${GATEWAY}</i>
10428 </pre>
10429
10430 <p>
10431 Now open <path>/etc/resolv.conf</path> with your favorite editor (in our
10432 example, we use <c>nano</c>):
10433 </p>
10434
10435 <pre caption="Creating /etc/resolv.conf">
10436 # <i>nano -w /etc/resolv.conf</i>
10437 </pre>
10438
10439 <p>
10440 Now fill in your nameserver(s) using the following as a template. Make
10441 sure you substitute <c>${NAMESERVER1}</c> and <c>${NAMESERVER2}</c> with
10442 the appropriate nameserver addresses:
10443 </p>
10444
10445 <pre caption="/etc/resolv.conf template">
10446 nameserver ${NAMESERVER1}
10447 nameserver ${NAMESERVER2}
10448 </pre>
10449
10450 <p>
10451 That's it. Now test your network by pinging some Internet server (like
10452 <uri link="http://www.google.com">Google</uri>). If this works,
10453 congratulations then. You are now ready to install Gentoo. Continue with <uri
10454 link="?part=1&amp;chap=4">Preparing the Disks</uri>.
10455 </p>
10456
10457 </body>
10458 </subsection>
10459 </section>
10460 </sections>
10461
10462
10463
10464 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-next.xml
10465
10466 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-next.xml?rev=1.1&view=markup
10467 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-next.xml?rev=1.1&content-type=text/plain
10468
10469 Index: hb-install-next.xml
10470 ===================================================================
10471 <?xml version='1.0' encoding='UTF-8'?>
10472 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
10473
10474 <!-- The content of this document is licensed under the CC-BY-SA license -->
10475 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
10476
10477 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-next.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
10478
10479 <sections>
10480
10481 <version>6.0</version>
10482 <date>2006-02-27</date>
10483
10484 <section>
10485 <title>Documentation</title>
10486 <subsection>
10487 <body>
10488
10489 <p>
10490 Congratulations! You now have a working Gentoo system. But where to go from
10491 here? What are your options now? What to explore first? Gentoo provides its
10492 users with lots of possibilities, and therefore lots of documented (and less
10493 documented) features.
10494 </p>
10495
10496 <p>
10497 You should definitely take a look at the next part of the Gentoo Handbook
10498 entitled <uri link="?part=2">Working with Gentoo</uri> which explains
10499 how to keep your software up to date, how to install more software, what USE
10500 flags are, how the Gentoo Init system works, etc.
10501 </p>
10502
10503 <p>
10504 If you are interested in optimizing your system for desktop use, or you want to
10505 learn how to configure your system to be a full working desktop system, consult
10506 our extensive <uri link="/doc/en/index.xml?catid=desktop">Gentoo Desktop
10507 Documentation Resources</uri>. Besides, you might want to use our <uri
10508 link="/doc/en/guide-localization.xml">localization guide</uri> to make your
10509 system feel more at home.
10510 </p>
10511
10512 <p>
10513 We also have a <uri link="/doc/en/security/">Gentoo Security Handbook</uri>
10514 which is worth reading.
10515 </p>
10516
10517 <p>
10518 For a full listing of all our available documentation check out our <uri
10519 link="/doc/en/index.xml">Documentation Resources</uri> page.
10520 </p>
10521
10522 </body>
10523 </subsection>
10524 </section>
10525 <section>
10526 <title>Gentoo Online</title>
10527 <body>
10528
10529 <p>
10530 You are of course always welcome on our <uri
10531 link="http://forums.gentoo.org">Gentoo Forums</uri> or on one of our many
10532 <uri link="/main/en/irc.xml">Gentoo IRC channels</uri>.
10533 </p>
10534
10535 <p>
10536 We also have several <uri
10537 link="/main/en/lists.xml">mailinglists</uri> open to all
10538 our users. Information on how to join is contained in that page.
10539 </p>
10540
10541 <p>
10542 We'll shut up now and let you enjoy your installation :)
10543 </p>
10544
10545 </body>
10546 </section>
10547 <section>
10548 <title>Gentoo Changes since 2006.1</title>
10549 <subsection>
10550 <title>Changes?</title>
10551 <body>
10552
10553 <p>
10554 Gentoo is a fast-moving target. The following sections describe important
10555 changes that affect a Gentoo installation. We only list those that have anything
10556 in common with the installation, not with package changes that did not occur
10557 during the installation.
10558 </p>
10559
10560 <p>
10561 There have been no significant changes since.
10562 </p>
10563
10564 </body>
10565 </subsection>
10566 </section>
10567 </sections>
10568
10569
10570
10571 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc-bootloader.xml
10572
10573 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc-bootloader.xml?rev=1.1&view=markup
10574 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc-bootloader.xml?rev=1.1&content-type=text/plain
10575
10576 Index: hb-install-ppc-bootloader.xml
10577 ===================================================================
10578 <?xml version='1.0' encoding='UTF-8'?>
10579 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
10580
10581 <!-- The content of this document is licensed under the CC-BY-SA license -->
10582 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
10583
10584 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc-bootloader.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
10585
10586 <sections>
10587
10588 <version>6.2</version>
10589 <date>2006-07-25</date>
10590
10591 <section>
10592 <title>Choosing a Bootloader</title>
10593 <subsection>
10594 <title>Introduction</title>
10595 <body>
10596
10597 <p>
10598 Now that the kernel is configured and compiled, you'll need a <e>bootloader</e>
10599 to start your new linux installation. The <e>bootloader</e> that you use will
10600 depend upon the type of PPC machine you have.
10601 </p>
10602
10603 <p>
10604 If you are using a NewWorld Apple or IBM machine, you need to use
10605 <uri link="#yaboot">yaboot</uri>. OldWorld Apple machines have two options,
10606 <uri link="#bootx">BootX</uri> (recommended) and <uri link="#quik">quik</uri>.
10607 The Pegasos does not require a bootloader, but you will need to emerge
10608 <uri link="#bootcreator">BootCreator</uri> to create SmartFirmware bootmenus.
10609 </p>
10610
10611 </body>
10612 </subsection>
10613 </section>
10614 <section id="yaboot">
10615 <title>Default: Using yaboot</title>
10616 <subsection>
10617 <title>Introduction</title>
10618 <body>
10619
10620 <impo>
10621 yaboot can only be used on NewWorld Apple and IBM systems!
10622 </impo>
10623
10624 <p>
10625 In order to find the boot devices, yaboot needs access to the device nodes
10626 created by udev on startup and the sysfs filesystem. These two filesystems
10627 are found at <path>/dev</path> and <path>sys</path> respectively. To do this,
10628 you will need to "bind mount" these filesystems from the Installation CD's root
10629 to the <path>/dev</path> and <path>/sys</path> mount points inside the chroot.
10630 If you have already bind mounted these filesystems, there is no need to do it
10631 again.
10632 </p>
10633
10634 <pre caption="Bind-mounting the device and sysfs filesystems">
10635 # <i>exit </i> # this will exit the chroot
10636 # <i>mount -o bind /dev /mnt/gentoo/dev</i>
10637 # <i>mount -o bind /sys /mnt/gentoo/sys</i>
10638 # <i>chroot /mnt/gentoo /bin/bash</i>
10639 # <i>/usr/sbin/env-update &amp;&amp; source /etc/profile </i>
10640 </pre>
10641
10642 <p>
10643 To set up yaboot, you can use <c>yabootconfig</c> to automatically create a
10644 configuration file for you. If you are installing Gentoo on a G5 (where
10645 <c>yabootconfig</c> does not always work), or you plan to boot from firewire
10646 or USB, you will need to manually configure yaboot.
10647 </p>
10648
10649 <note>
10650 You will need to manually edit the yaboot.conf when using genkernel, even if
10651 yabootconfig is used. The kernel image section of yaboot.conf should be
10652 modified as follows:
10653 </note>
10654
10655 <pre caption="Adding genkernel boot arguments to yaboot.conf">
10656 <comment>###########################################################
10657 ## This section can be duplicated if you have more than one
10658 ## kernel or set of boot options - replace kernel-2.6.15
10659 ## with the exact filename of your kernel.
10660 ###########################################################</comment>
10661 image=/boot/kernel-2.6.15
10662 label=Linux
10663 root=/dev/ram0
10664 partition=3
10665 append="real_root=/dev/hda3 init=/linuxrc"
10666 <comment># You can add additional kernel arguments to append such as
10667 # rootdelay=10 for a USB/Firewire Boot</comment>
10668 read-only
10669 <comment>##########################################################</comment>
10670 </pre>
10671
10672 <ul>
10673 <li><uri link="#yabootconfig">Default: Using yabootconfig</uri></li>
10674 <li>
10675 <uri link="#manual_yaboot">Alternative: Manual yaboot Configuration</uri>
10676 </li>
10677 </ul>
10678
10679 </body>
10680 </subsection>
10681 <subsection id="yabootconfig">
10682 <title>Default: Using yabootconfig</title>
10683 <body>
10684
10685 <p>
10686 <c>yabootconfig</c> will auto-detect the partitions on your machine and will
10687 set up dual and triple boot combinations with Linux, Mac OS, and Mac OS X.
10688 </p>
10689
10690 <p>
10691 To use <c>yabootconfig</c>, your drive must have an Apple_Bootstrap partition,
10692 and <path>/etc/fstab</path> must be configured to reflect your Linux
10693 partitions. These steps should have already been completed before, but check
10694 <path>/etc/fstab</path> before proceeding. Now, ensure that you have
10695 <c>yaboot</c> installed.
10696 </p>
10697
10698 <pre caption = "Installing yaboot with GRP">
10699 # <i>emerge --usepkg yaboot</i>
10700 </pre>
10701
10702 <p>
10703 Now exit the chroot and run <c>yabootconfig --chroot /mnt/gentoo</c>. First,
10704 the program will confirm the location of the bootstrap partition. If you are
10705 using the suggested disk partitioning scheme, your bootstrap partition should
10706 be /dev/hda2. Type <c>Y</c> if the output is correct. If not, double check your
10707 <path>/etc/fstab</path>. <c>yabootconfig</c> will then scan your system setup,
10708 create <path>/etc/yaboot.conf</path> and run <c>mkofboot</c> for you.
10709 <c>mkofboot</c> is used to format the Apple_Bootstrap partition, and install
10710 the yaboot configuration file into it. After this enter the chroot again.
10711 </p>
10712
10713 <pre caption="Re-enter the chroot">
10714 # <i>chroot /mnt/gentoo /bin/bash</i>
10715 # <i>/usr/sbin/env-update &amp;&amp; source /etc/profile</i>
10716 </pre>
10717
10718 <p>
10719 You might want to verify the contents of <path>/etc/yaboot.conf</path>. If you
10720 make changes to <path>/etc/yaboot.conf</path> (like setting the default/boot
10721 OS), make sure to rerun <c>ybin -v</c> to apply changes to the Apple_Bootstrap
10722 partition.
10723 </p>
10724
10725 <p>
10726 Now continue with <uri link="#reboot">Rebooting the System</uri>.
10727 </p>
10728
10729 </body>
10730 </subsection>
10731 <subsection id="manual_yaboot">
10732 <title>Alternative: Manual yaboot Configuration</title>
10733 <body>
10734
10735 <p>
10736 First make sure you have <c>yaboot</c> installed on your system:
10737 </p>
10738
10739 <pre caption = "Installing yaboot with GRP">
10740 # <i>emerge --usepkg yaboot</i>
10741 </pre>
10742
10743 <p>
10744 An example <path>yaboot.conf</path> file is given below, but you will need to
10745 alter it to fit your needs. G5 users and users booting from firewire and USB
10746 should be aware that their disks are seen as SCSI disks by the Linux kernel, so
10747 you will need to substitute <path>/dev/hda</path> with <path>/dev/sda</path>).
10748 </p>
10749
10750 <pre caption = "/etc/yaboot.conf">
10751 <comment>## /etc/yaboot.conf
10752 ##
10753 ## run: "man yaboot.conf" for details. Do not make changes until you have!!
10754 ## see also: /usr/share/doc/yaboot/examples for example configurations.
10755 ##
10756 ## For a dual-boot menu, add one or more of:
10757 ## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ
10758
10759 ## our bootstrap partition:</comment>
10760
10761 boot=/dev/hda2
10762
10763 <comment>## ofboot is the openfirmware way to specify the bootstrap partition.
10764 ## If this isn't defined, yaboot fails on the G5 and some G4s (unless
10765 ## you pass the necessary arguments to the mkofboot/ybin program).
10766 ## hd:X means /dev/sdaX (or /dev/hdaX).
10767 ##
10768 ## G5 users should uncomment this line!!
10769
10770 #ofboot=hd:2
10771
10772 ## Users booting from firewire should use something like this line:
10773 # ofboot=fw/node/sbp-2/disk@0:
10774
10775 ## Users booting from USB should use something like this line:
10776 # ofboot=usb/disk@0:
10777
10778 ## hd: is shorthand for the first hard drive OpenFirmware sees</comment>
10779 device=hd:
10780
10781 <comment>## Firewire and USB users will need to specify the whole OF device name
10782 ## This can be found using ofpath, which is included with yaboot.
10783
10784 # device=fw/node@0001d200e00d0207/sbp-2@c000/disk@0:
10785 </comment>
10786
10787 delay=5
10788 defaultos=macosx
10789 timeout=30
10790 install=/usr/lib/yaboot/yaboot
10791 magicboot=/usr/lib/yaboot/ofboot
10792
10793 <comment>#################
10794 ## This section can be duplicated if you have more than one kernel or set of
10795 ## boot options - replace 2.6.9 with your kernel-version
10796 #################</comment>
10797 image=/boot/kernel-2.6.9
10798 label=Linux
10799 root=/dev/hda3
10800 partition=3
10801 <comment># append="rootdelay=10" # Required for booting USB/Firewire</comment>
10802 read-only
10803 <comment>##################
10804
10805 ## G5 users and some G4 users should set
10806 ## macos=hd:13
10807 ## macosx=hd:12
10808 ## instead of the example values.</comment>
10809 macos=/dev/hda13
10810 macosx=/dev/hda12
10811 enablecdboot
10812 enableofboot
10813 </pre>
10814
10815 <p>
10816 Once <path>yaboot.conf</path> is configured, run <c>mkofboot -v</c> to format
10817 the Apple_bootstrap partition and install the settings. If you change
10818 yaboot.conf after the Apple_bootstrap partition has been created, you can
10819 update the settings by running <c>ybin -v</c>
10820 </p>
10821
10822 <p>
10823 For more information on yaboot, take a look at the <uri
10824 link="http://penguinppc.org/bootloaders/yaboot">yaboot project</uri>. For
10825 now, continue the installation with <uri link="#reboot">Rebooting the
10826 System</uri>.
10827 </p>
10828
10829 </body>
10830 </subsection>
10831 </section>
10832 <section id="bootx">
10833 <title>Alternative: BootX</title>
10834 <body>
10835
10836 <impo>
10837 BootX can only be used on OldWorld Apple systems with MacOS 9 or earlier!
10838 </impo>
10839
10840 <p>
10841 Since BootX boots Linux from within MacOS, the kernel will need to be copied
10842 from the Linux Partition to the MacOS partition. First, mount the MacOS
10843 partition from outside of the chroot. Use <c>mac-fdisk -l</c> to find the
10844 MacOS partition number, sda6 is used as an example here. Once the partition is
10845 mounted, we'll copy the kernel to the system folder so BootX can find it.
10846 </p>
10847
10848 <pre caption="Copying the kernel to the MacOS partition">
10849 # <i>exit</i>
10850 cdimage ~# <i>mkdir /mnt/mac</i>
10851 cdimage ~# <i>mount /dev/sda6 /mnt/mac -t hfs</i>
10852 cdimage ~# <i>cp /mnt/gentoo/usr/src/linux/vmlinux "/mnt/mac/System Folder/Linux Kernels"</i>
10853 </pre>
10854
10855 <p>
10856 If genkernel is used, both the kernel and initrd will need to be copied to the
10857 MacOS partition.
10858 </p>
10859
10860 <pre caption="Copying the Genkernel kernel and initrd to the MacOS partition">
10861 # <i>exit</i>
10862 cdimage ~# <i>mkdir /mnt/mac</i>
10863 cdimage ~# <i>mount /dev/sda6 /mnt/mac -t hfs</i>
10864 cdimage ~# <i>cp /mnt/gentoo/boot/kernel-* "/mnt/mac/System Folder/Linux Kernels"</i>
10865 cdimage ~# <i>cp /mnt/gentoo/boot/initramfs-* "/mnt/mac/System Folder"</i>
10866 </pre>
10867
10868 <p>
10869 Now that the kernel is copied over, we'll need to reboot to set up BootX.
10870 </p>
10871
10872 <pre caption="Unmounting all partitions and rebooting">
10873 cdimage ~# <i>cd /</i>
10874 cdimage ~# <i>umount /mnt/gentoo/proc /mnt/gentoo/dev /mnt/gentoo /mnt/mac</i>
10875 cdimage ~# <i>reboot</i>
10876 </pre>
10877
10878 <p>
10879 Of course, don't forget to remove the bootable CD, otherwise the CD will be
10880 booted again instead of MacOS.
10881 </p>
10882
10883 <p>
10884 Once the machine has booted into MacOS, open the BootX control panel. If you're
10885 not using genkernel, select <c>Options</c> and uncheck <c>Use specified RAM
10886 disk</c>. If you are using genkernel, ensure that the genkernel initrd is
10887 selected instead of the Installation CD initrd. If not using genkernel,
10888 there is now an option to specify the machine's Linux root disk and partition.
10889 Fill these in with the appropriate values. Depending upon the kernel
10890 configuration, additional boot arguments may need to be applied.
10891 </p>
10892
10893 <p>
10894 BootX can be configured to start Linux upon boot. If you do this, you will first
10895 see your machine boot into MacOS then, during startup, BootX will load and start
10896 Linux. See the <uri link="http://penguinppc.org/bootloaders/bootx/">BootX home
10897 page</uri> for more information.
10898 </p>
10899
10900 <impo>
10901 Make sure that you have support for HFS and HFS+ filesystems in your kernel,
10902 otherwise you will not be able to upgrade or change the kernel on your MacOS
10903 partition.
10904 </impo>
10905
10906 <p>
10907 Now reboot again and boot into Linux, then continue with <uri
10908 link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
10909 </p>
10910
10911 </body>
10912 </section>
10913 <section id="quik">
10914 <title>Alternative: quik</title>
10915 <body>
10916
10917 <p>
10918 quik allows OldWorld Macs to boot without MacOS. However, it isn't well
10919 supported and has a number of quirks. If you have the option, it is recommended
10920 that you use BootX instead since it is much more reliable and easier to set up
10921 than quik.
10922 </p>
10923
10924 <p>
10925 First, we'll need to install quik:
10926 </p>
10927
10928 <pre caption="Emerge quik">
10929 # <i>emerge quik</i>
10930 </pre>
10931
10932 <p>
10933 Next, we'll need to set it up. Edit /etc/quik.conf and set your image to the
10934 kernel that we copied to your boot partition.
10935 </p>
10936
10937 <pre caption="Configuring quik.conf">
10938 # Example of quik.conf
10939 init-message = "Gentoo 2006.1\n"
10940 partition = 2 <comment># This is the boot partition</comment>
10941 root = /dev/hda4
10942 timeout = 30
10943 default = gentoo
10944 image = /vmlinux-2.6.15
10945 label = gentoo
10946 </pre>
10947
10948 <p>
10949 Your quik.conf file <e>must</e> be on the same disk as the quik boot images,
10950 however it can be on a different partition on the same disk, although it is
10951 recommended to move it to your boot partition.
10952 </p>
10953
10954 <pre caption="Moving quik.conf to /boot">
10955 # <i>mv /etc/quik.conf /boot/quik.conf</i>
10956 </pre>
10957
10958 <p>
10959 We will now set your boot variables so that quik loads on boot. To do this,
10960 we'll use a program called <c>nvsetenv</c>. The variables that you want to
10961 set vary from machine to machine, it's best to find your machine's
10962 <uri link="http://penguinppc.org/bootloaders/quik/quirks.php">quirks</uri>
10963 before attempting this.
10964 </p>
10965
10966 <pre caption="Setting the boot variables">
10967 # <i>nvsetenv auto-boot true</i> <comment># Set to false if you want to boot into OF, not all models can display the OF output</comment>
10968 # <i>nvsetenv output-device video</i> <comment># Check the quirks page, there are many variations here</comment>
10969 # <i>nvsetenv input-device kbd</i>
10970 # <i>nvsetenv boot-device scsi/sd@1:0</i> <comment># For SCSI</comment>
10971 # <i>nvsetenv boot-device ata/ata-disk@0:0</i> <comment># For ATA</comment>
10972 # <i>nvsetenv boot-file /boot/vmlinux-2.6.15 root=/dev/hda4</i> <comment>First item is the path to the kernel, the second is the root partition. You may append any kernel options to the end of this line.</comment>
10973 # <i>nvsetenv boot-command boot</i> <comment># Set this to bye for MacOS and boot for Linux</comment>
10974 </pre>
10975
10976 <note>
10977 It is also possible to change your boot variables from MacOS. Depending
10978 upon the model, either
10979 <uri link="http://penguinppc.org/bootloaders/quik/BootVars.sit.hqx">bootvars</uri> or
10980 <uri link="ftp://ftp.apple.com/developer/macosxserver/utilities/SystemDisk2.3.1.smi.bin">
10981 Apple System Disk</uri> should be used. Please see the quik quirks page
10982 above for more information.
10983 </note>
10984
10985 <p>
10986 Now that we've set up our machine to boot, we'll need to make sure the boot
10987 images are installed correctly. Run <c>quik -v -C /boot/quik.conf</c>. It
10988 should tell you that it has installed the first stage QUIK boot block.
10989 </p>
10990
10991 <note>
10992 If something has gone wrong, you can always reset your PRAM back to the default
10993 values by holding down <c>command + option + p + r</c> before powering on your
10994 machine. This will clear the values you set with nvsetenv and should allow you
10995 to boot either a MacOS bootdisk or a Linux bootdisk.
10996 </note>
10997
10998 <p>
10999 Now, continue the installation with
11000 <uri link="#reboot">Rebooting the System</uri>.
11001 </p>
11002
11003 </body>
11004 </section>
11005 <section id="bootcreator">
11006 <title>Alternative: BootCreator</title>
11007 <body>
11008
11009 <impo>
11010 BootCreator will build a nice SmartFirmware bootmenu written in Forth for the
11011 Pegasos.
11012 </impo>
11013
11014 <p>
11015 First make sure you have <c>bootcreator</c> installed on your system:
11016 </p>
11017
11018 <pre caption = "Installing bootcreator">
11019 # <i>emerge --usepkg bootcreator</i>
11020 </pre>
11021
11022 <p>
11023 Now copy the file <path>/etc/bootmenu.example</path> into
11024 <path>/etc/bootmenu</path> and edit it to your needs:
11025 </p>
11026
11027 <pre caption = "Edit the bootcreator config file">
11028 # <i>cp /etc/bootmenu.example /etc/bootmenu</i>
11029 # <i>nano -w /etc/bootmenu</i>
11030 </pre>
11031
11032 <p>
11033 Below you find a completed <path>/etc/bootmenu</path> config file. Alter it at
11034 will.
11035 </p>
11036
11037 <pre caption = "bootcreator config file">
11038 <comment>#
11039 # Example description file for bootcreator 1.1
11040 #</comment>
11041
11042 [VERSION]
11043 1
11044
11045 [TITLE]
11046 Boot Menu
11047
11048 [SETTINGS]
11049 AbortOnKey = false
11050 Timeout = 9
11051 Default = 1
11052
11053 [SECTION]
11054 Local HD -> Morphos (Normal)
11055 ide:0 boot2.img ramdebug edebugflags="logkprintf"
11056
11057 [SECTION]
11058 Local HD -> Linux 2.6.15 (Normal)
11059 ide:0 linux-2.6.15 video=radeonfb:1024x768@70 root=/dev/hda3
11060
11061 [SECTION]
11062 Local HD -> Genkernel (Normal)
11063 ide:0 kernelz-2.6.15 root=/dev/ram0 real_root=/dev/hda3 init=/linuxrc
11064 </pre>
11065
11066 <p>
11067 Finally the <path>bootmenu</path> must be transfered into Forth and copied to
11068 your boot partition, so that the SmartFirmware can read it. Therefore you have
11069 to call <c>bootcreator</c>:
11070 </p>
11071
11072 <pre caption = "Install the bootmenu">
11073 # <i>bootcreator /etc/bootmenu /boot/menu</i>
11074 </pre>
11075
11076 <note>
11077 Be sure to have a look into the SmartFirmware's settings when you reboot, that
11078 <path>menu</path> is the file that will be loaded by default.
11079 </note>
11080
11081 <p>
11082 For now, continue the installation with <uri link="#reboot">Rebooting the
11083 System</uri>.
11084 </p>
11085
11086 </body>
11087 </section>
11088 <section id="reboot">
11089 <title>Rebooting the System</title>
11090 <subsection>
11091 <body>
11092
11093 <p>
11094 Exit the chrooted environment and unmount all mounted partitions. Then type in
11095 that one magical command you have been waiting for: <c>reboot</c>.
11096 </p>
11097
11098 <pre caption="Exiting the chroot, unmounting all partitions and rebooting">
11099 # <i>exit</i>
11100 livecd ~# <i>umount /mnt/gentoo/proc /mnt/gentoo/dev /mnt/gentoo</i>
11101 livecd ~# <i>reboot</i>
11102 </pre>
11103
11104 <p>
11105 Once rebooted in your Gentoo installation, finish up with <uri
11106 link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
11107 </p>
11108
11109 </body>
11110 </subsection>
11111 </section>
11112 </sections>
11113
11114
11115
11116 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc-disk.xml
11117
11118 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc-disk.xml?rev=1.1&view=markup
11119 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc-disk.xml?rev=1.1&content-type=text/plain
11120
11121 Index: hb-install-ppc-disk.xml
11122 ===================================================================
11123 <?xml version='1.0' encoding='UTF-8'?>
11124 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
11125
11126 <!-- The content of this document is licensed under the CC-BY-SA license -->
11127 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
11128
11129 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc-disk.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
11130
11131 <sections>
11132
11133 <version>6.1</version>
11134 <date>2006-07-25</date>
11135
11136 <section>
11137 <title>Introduction to Block Devices</title>
11138 <subsection>
11139 <title>Block Devices</title>
11140 <body>
11141
11142 <p>
11143 We'll take a good look at disk-oriented aspects of Gentoo Linux
11144 and Linux in general, including Linux filesystems, partitions and block devices.
11145 Then, once you're familiar with the ins and outs of disks and filesystems,
11146 you'll be guided through the process of setting up partitions and filesystems
11147 for your Gentoo Linux installation.
11148 </p>
11149
11150 <p>
11151 To begin, we'll introduce <e>block devices</e>. The most common block device is
11152 the one that represents the first IDE drive in a Linux system, namely
11153 <path>/dev/hda</path>. If you are installing onto SCSI, FireWire, USB or SATA
11154 drives, then your first hard drive would be <path>/dev/sda</path>.
11155 </p>
11156
11157 <p>
11158 The block devices above represent an abstract interface to the disk. User
11159 programs can use these block devices to interact with your disk without worrying
11160 about whether your drives are IDE, SCSI or something else. The program can
11161 simply address the storage on the disk as a bunch of contiguous,
11162 randomly-accessible 512-byte blocks.
11163 </p>
11164
11165 </body>
11166 </subsection>
11167 <subsection>
11168 <title>Partitions</title>
11169 <body>
11170
11171 <p>
11172 Although it is theoretically possible to use a full disk to house your Linux
11173 system, this is almost never done in practice. Instead, full disk block devices
11174 are split up in smaller, more manageable block devices. On most systems,
11175 these are called <e>partitions</e>.
11176 </p>
11177
11178 </body>
11179 </subsection>
11180 </section>
11181 <section>
11182 <title>Designing a Partitioning Scheme</title>
11183 <subsection>
11184 <title>Default Partitioning Scheme</title>
11185 <body>
11186
11187 <p>
11188 If you are not interested in drawing up a partitioning scheme for your system,
11189 you can use the partitioning scheme we use throughout this book:
11190 </p>
11191
11192 <note>
11193 If you are using an OldWorld machine, you will need to keep MacOS available.
11194 The layout here assumes MacOS is installed on a separate drive.
11195 </note>
11196
11197 <table>
11198 <tr>
11199 <th>Partition NewWorld</th>
11200 <th>Partition OldWorld</th>
11201 <th>Partition Pegasos</th>
11202 <th>Partition RS/6000</th>
11203 <th>Filesystem</th>
11204 <th>Size</th>
11205 <th>Description</th>
11206 </tr>
11207 <tr>
11208 <ti><path>/dev/hda1</path></ti>
11209 <ti><path>/dev/hda1</path></ti>
11210 <ti>(Not applicable)</ti>
11211 <ti>(Not applicable)</ti>
11212 <ti>(Partition Map)</ti>
11213 <ti>32k</ti>
11214 <ti>Apple_partition_map</ti>
11215 </tr>
11216 <tr>
11217 <ti><path>/dev/hda2</path></ti>
11218 <ti>(Not needed)</ti>
11219 <ti>(Not applicable)</ti>
11220 <ti>(Not applicable)</ti>
11221 <ti>(bootstrap)</ti>
11222 <ti>800k</ti>
11223 <ti>Apple_Bootstrap</ti>
11224 </tr>
11225 <tr>
11226 <ti>(Not applicable)</ti>
11227 <ti>(Not applicable)</ti>
11228 <ti>(Not applicable)</ti>
11229 <ti><path>/dev/sda1</path></ti>
11230 <ti>(PReP Boot)</ti>
11231 <ti>800k</ti>
11232 <ti>Type 0x41</ti>
11233 </tr>
11234 <tr>
11235 <ti>(Not applicable)</ti>
11236 <ti><path>/dev/hda2</path> (If using quik)</ti>
11237 <ti><path>/dev/hda1</path></ti>
11238 <ti>(Not applicable)</ti>
11239 <ti>ext2</ti>
11240 <ti>32MB</ti>
11241 <ti>Boot partition</ti>
11242 </tr>
11243 <tr>
11244 <ti><path>/dev/hda3</path></ti>
11245 <ti><path>/dev/hda2</path> (<path>/dev/hda3</path> if using quik)</ti>
11246 <ti><path>/dev/hda2</path></ti>
11247 <ti><path>/dev/sda2</path></ti>
11248 <ti>(swap)</ti>
11249 <ti>512M</ti>
11250 <ti>Swap partition, Type 0x82</ti>
11251 </tr>
11252 <tr>
11253 <ti><path>/dev/hda4</path></ti>
11254 <ti><path>/dev/hda3</path> (<path>/dev/hda4</path> if using quik)</ti>
11255 <ti><path>/dev/hda3</path></ti>
11256 <ti><path>/dev/sda3</path></ti>
11257 <ti>ext3, xfs</ti>
11258 <ti>Rest of the disk</ti>
11259 <ti>Root partition, Type 0x83</ti>
11260 </tr>
11261 </table>
11262
11263 <note>
11264 There are some partitions named: <path>Apple_Driver63, Apple_Driver_ATA,
11265 Apple_FWDriver, Apple_Driver_IOKit, Apple_Patches</path>. If you are not
11266 planning to use MacOS 9 you can delete them, because MacOS X and Linux don't
11267 need them. To delete them, either use parted or erase the whole disk by
11268 initializing the partition map.
11269 </note>
11270
11271 <warn>
11272 <c>parted</c> is able to resize partitions including HFS+. Unfortunately it is
11273 not possible to resize HFS+ journaled filesystems, so switch off journaling in
11274 Mac OS X before resizing. Remember that any resizing operation is dangerous,
11275 so attempt at your own risk! Be sure to always have a backup of your data
11276 before resizing!
11277 </warn>
11278
11279 <p>
11280 If you are interested in knowing how big a partition should be, or even how many
11281 partitions you need, read on. Otherwise continue now with
11282 <uri link="#mac-fdisk"> Default: Using mac-fdisk (Apple) to Partition your Disk
11283 </uri> or <uri link="#parted">Alternative: Using parted (IBM/Pegasos) to
11284 Partition your Disk</uri>.
11285 </p>
11286
11287 </body>
11288 </subsection>
11289 <subsection>
11290 <title>How Many and How Big?</title>
11291 <body>
11292
11293 <p>
11294 The number of partitions is highly dependent on your environment. For instance,
11295 if you have lots of users, you will most likely want to have your
11296 <path>/home</path> separate as it increases security and makes backups easier.
11297 If you are installing Gentoo to perform as a mailserver, your <path>/var</path>
11298 should be separate as all mails are stored inside <path>/var</path>. A good
11299 choice of filesystem will then maximise your performance. Gameservers will have
11300 a separate <path>/opt</path> as most gaming servers are installed there. The
11301 reason is similar for <path>/home</path>: security and backups. You will
11302 definitely want to keep <path>/usr</path> big: not only will it contain the
11303 majority of applications, the Portage tree alone takes around 500 Mbyte
11304 excluding the various sources that are stored in it.
11305 </p>
11306
11307 <p>
11308 As you can see, it very much depends on what you want to achieve. Separate
11309 partitions or volumes have the following advantages:
11310 </p>
11311
11312 <ul>
11313 <li>
11314 You can choose the best performing filesystem for each partition or volume
11315 </li>
11316 <li>
11317 Your entire system cannot run out of free space if one defunct tool is
11318 continuously writing files to a partition or volume
11319 </li>
11320 <li>
11321 If necessary, file system checks are reduced in time, as multiple checks can
11322 be done in parallel (although this advantage is more with multiple disks than
11323 it is with multiple partitions)
11324 </li>
11325 <li>
11326 Security can be enhanced by mounting some partitions or volumes read-only,
11327 nosuid (setuid bits are ignored), noexec (executable bits are ignored) etc.
11328 </li>
11329 </ul>
11330
11331 <p>
11332 However, multiple partitions have one big disadvantage: if not configured
11333 properly, you might result in having a system with lots of free space on one
11334 partition and none on another. There is also a 15-partition limit for SCSI and
11335 SATA.
11336 </p>
11337
11338 </body>
11339 </subsection>
11340 </section>
11341 <section id="mac-fdisk">
11342 <title>Default: Using mac-fdisk (Apple) Partition your Disk</title>
11343 <body>
11344
11345 <p>
11346 At this point, create your partitions using <c>mac-fdisk</c>:
11347 </p>
11348
11349 <pre caption="Starting mac-fdisk">
11350 # <i>mac-fdisk /dev/hda</i>
11351 </pre>
11352
11353 <p>
11354 First delete the partitions you have cleared previously to make room for your
11355 Linux partitions. Use <c>d</c> in <c>mac-fdisk</c> to delete those partition(s).
11356 It will ask for the partition number to delete. Usually the first partition on
11357 NewWorld machines (Apple_partition_map) could not be deleted.
11358 </p>
11359
11360 <p>
11361 Second, create an <e>Apple_Bootstrap</e> partition by using <c>b</c>. It will
11362 ask for what block you want to start. Enter the number of your first free
11363 partition, followed by a <c>p</c>. For instance this is <c>2p</c>.
11364 </p>
11365
11366 <note>
11367 This partition is <e>not</e> a <path>/boot</path> partition. It is not used by
11368 Linux at all; you don't have to place any filesystem on it and you should never
11369 mount it. Apple users don't need an extra partition for <path>/boot</path>.
11370 </note>
11371
11372 <p>
11373 Now create a swap partition by pressing <c>c</c>. Again <c>mac-fdisk</c> will
11374 ask for what block you want to start this partition from. As we used <c>2</c>
11375 before to create the Apple_Bootstrap partition, you now have to enter
11376 <c>3p</c>. When you're asked for the size, enter <c>512M</c> (or whatever size
11377 you want -- 512MB is recommended though). When asked for a name, enter <c>swap</c>
11378 (mandatory).
11379 </p>
11380
11381 <p>
11382 To create the root partition, enter <c>c</c>, followed by <c>4p</c> to select
11383 from what block the root partition should start. When asked for the size, enter
11384 <c>4p</c> again. <c>mac-fdisk</c> will interpret this as "Use all available
11385 space". When asked for the name, enter <c>root</c> (mandatory).
11386 </p>
11387
11388 <p>
11389 To finish up, write the partition to the disk using <c>w</c> and <c>q</c> to
11390 quit <c>mac-fdisk</c>.
11391 </p>
11392
11393 <note>
11394 To make sure everything is ok, you should run mac-fdisk once more and check
11395 whether all the partitions are there. If you don't see any of the partitions
11396 you created, or the changes you made, you should reinitialize your partitions
11397 by pressing "i" in mac-fdisk. Note that this will recreate the partition map
11398 and thus remove all your partitions.
11399 </note>
11400
11401 <p>
11402 Now that your partitions are created, you can continue with <uri
11403 link="#filesystems">Creating Filesystems</uri>.
11404 </p>
11405
11406 </body>
11407 </section>
11408 <section id="parted">
11409 <title>Using parted (especially Pegasos) to Partition your Disk</title>
11410 <body>
11411
11412 <p>
11413 <c>parted</c>, the Partition Editor, can now handle HFS+ partitions used by
11414 Mac OS and Mac OS X. With this tool you can resize your Mac-partitions and
11415 create space for your Linux partitions. Nevertheless, the example below
11416 describes partitioning for Pegasos machines only.
11417 </p>
11418
11419 <p>
11420 To begin let's fire up <c>parted</c>:
11421 </p>
11422
11423 <pre caption="Starting parted">
11424 # <i>parted /dev/hda</i>
11425 </pre>
11426
11427 <p>
11428 If the drive is unpartitioned, run <c>mklabel amiga</c> to create a new
11429 disklabel for the drive.
11430 </p>
11431
11432 <p>
11433 You can type <c>print</c> at any time in parted to display the current partition
11434 table. If at any time you change your mind or made a mistake you can press
11435 <c>Ctrl-c</c> to abort parted.
11436 </p>
11437
11438 <p>
11439 If you intend to also install MorphOS on your Pegasos create an affs1 filesystem
11440 named "BI0" (BI zero) at the start of the drive. 32MB should be more than enough
11441 to store the MorphOS kernel. If you have a Pegasos I or intend to use reiserfs or
11442 xfs, you will also have to store your Linux kernel on this partition (the
11443 Pegasos II can only boot from ext2/ext3 or affs1 partitions). To create the partition run
11444 <c>mkpart primary affs1 START END</c> where <c>START</c> and <c>END</c> should
11445 be replaced with the megabyte range (e.g. <c>0 32</c> creates a 32 MB partition
11446 starting at 0MB and ending at 32MB.
11447 </p>
11448
11449 <p>
11450 You need to create two partitions for Linux, one root filesystem for all your
11451 program files etc, and one swap partition. To create the root filesystem you
11452 must first decide which filesystem to use. Possible options are ext2, ext3,
11453 reiserfs and xfs. Unless you know what you are doing, use ext3. Run
11454 <c>mkpart primary ext3 START END</c> to create an ext3 partition. Again, replace
11455 <c>START</c> and <c>END</c> with the megabyte start and stop marks for the
11456 partition.
11457 </p>
11458
11459 <p>
11460 It is generally recommended that you create a swap partition the same size as
11461 the amount of RAM in your computer times two. You will probably get away with a
11462 smaller swap partition unless you intend to run a lot of applications at the
11463 same time (although at least 512MB is recommended). To create the swap
11464 partition, run <c>mkpart primary linux-swap START END</c>.
11465 </p>
11466
11467 <p>
11468 Write down the partition minor numbers as they are required during the
11469 installation process. To display the minor numbers run <c>print</c>. Your drives
11470 are accessed as <path>/dev/hdaX</path> where X is replaced with the minor number
11471 of the partition.
11472 </p>
11473
11474 <p>
11475 When you are done in parted simply run <c>quit</c>.
11476 </p>
11477
11478 </body>
11479 </section>
11480 <section id="filesystems">
11481 <title>Creating Filesystems</title>
11482 <subsection>
11483 <title>Introduction</title>
11484 <body>
11485
11486 <p>
11487 Now that your partitions are created, it is time to place a filesystem on them.
11488 If you don't care about what filesystem to choose and are happy with what we use
11489 as default in this handbook, continue with <uri
11490 link="#filesystems-apply">Applying a Filesystem to a Partition</uri>.
11491 Otherwise read on to learn about the available filesystems...
11492 </p>
11493
11494 </body>
11495 </subsection>
11496 <subsection>
11497 <title>Filesystems?</title>
11498 <body>
11499
11500 <p>
11501 Several filesystems are available. ext2, ext3, ReiserFS and XFS have been found
11502 stable on the PPC architecture.
11503 </p>
11504
11505 <p>
11506 <b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata
11507 journaling, which means that routine ext2 filesystem checks at startup time can
11508 be quite time-consuming. There is now quite a selection of newer-generation
11509 journaled filesystems that can be checked for consistency very quickly and are
11510 thus generally preferred over their non-journaled counterparts. Journaled
11511 filesystems prevent long delays when you boot your system and your filesystem
11512 happens to be in an inconsistent state.
11513 </p>
11514
11515 <p>
11516 <b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata
11517 journaling for fast recovery in addition to other enhanced journaling modes like
11518 full data and ordered data journaling. ext3 is a very good and reliable
11519 filesystem. It has an additional hashed b-tree indexing option that enables
11520 high performance in almost all situations. You can enable this indexing by
11521 adding <c>-O dir_index</c> to the <c>mke2fs</c> command. In short, ext3 is an
11522 excellent filesystem.
11523 </p>
11524
11525 <p>
11526 <b>ReiserFS</b> is a B*-tree based filesystem that has very good overall
11527 performance and greatly outperforms both ext2 and ext3 when dealing with small
11528 files (files less than 4k), often by a factor of 10x-15x. ReiserFS also scales
11529 extremely well and has metadata journaling. As of kernel 2.4.18+, ReiserFS is
11530 solid and usable as both general-purpose filesystem and for extreme cases such
11531 as the creation of large filesystems, the use of many small files, very large
11532 files and directories containing tens of thousands of files.
11533 </p>
11534
11535 <p>
11536 <b>XFS</b> is a filesystem with metadata journaling which comes with a robust
11537 feature-set and is optimized for scalability. We only recommend using this
11538 filesystem on Linux systems with high-end SCSI and/or fibre channel storage and
11539 an uninterruptible power supply. Because XFS aggressively caches in-transit data
11540 in RAM, improperly designed programs (those that don't take proper precautions
11541 when writing files to disk and there are quite a few of them) can lose a good
11542 deal of data if the system goes down unexpectedly.
11543 </p>
11544
11545 </body>
11546 </subsection>
11547 <subsection id="filesystems-apply">
11548 <title>Applying a Filesystem to a Partition</title>
11549 <body>
11550
11551 <p>
11552 To create a filesystem on a partition or volume, there are tools available for
11553 each possible filesystem:
11554 </p>
11555
11556 <table>
11557 <tr>
11558 <th>Filesystem</th>
11559 <th>Creation Command</th>
11560 </tr>
11561 <tr>
11562 <ti>ext2</ti>
11563 <ti><c>mkfs.ext2</c></ti>
11564 </tr>
11565 <tr>
11566 <ti>ext3</ti>
11567 <ti><c>mkfs.ext3</c></ti>
11568 </tr>
11569 <tr>
11570 <ti>reiserfs</ti>
11571 <ti><c>mkfs.reiserfs</c></ti>
11572 </tr>
11573 <tr>
11574 <ti>xfs</ti>
11575 <ti><c>mkfs.xfs</c></ti>
11576 </tr>
11577 </table>
11578
11579 <p>
11580 For instance, to have the root partition (<path>/dev/hda4</path> in our example)
11581 in ext3 (as in our example), you would use:
11582 </p>
11583
11584 <pre caption="Applying a filesystem on a partition">
11585 # <i>mkfs.ext3 /dev/hda4</i>
11586 </pre>
11587
11588 <p>
11589 Now create the filesystems on your newly created partitions (or logical
11590 volumes).
11591 </p>
11592
11593 <note>
11594 On the PegasosII your partition which holds the kernel must be ext2 or ext3.
11595 NewWorld machines can boot from any of ext2, ext3, XFS, ReiserFS or even
11596 HFS/HFS+ filesystems. On OldWorld machines booting with BootX, the kernel must
11597 be placed on an HFS partition, but this will be completed when you configure
11598 your bootloader.
11599 </note>
11600
11601 </body>
11602 </subsection>
11603 <subsection>
11604 <title>Activating the Swap Partition</title>
11605 <body>
11606
11607 <p>
11608 <c>mkswap</c> is the command that is used to initialize swap partitions:
11609 </p>
11610
11611 <pre caption="Creating a Swap signature">
11612 # <i>mkswap /dev/hda3</i>
11613 </pre>
11614
11615 <p>
11616 To activate the swap partition, use <c>swapon</c>:
11617 </p>
11618
11619 <pre caption="Activating the swap partition">
11620 # <i>swapon /dev/hda3</i>
11621 </pre>
11622
11623 <p>
11624 Create and activate the swap now.
11625 </p>
11626
11627 </body>
11628 </subsection>
11629 </section>
11630 <section>
11631 <title>Mounting</title>
11632 <body>
11633
11634 <p>
11635 Now that your partitions are initialized and are housing a filesystem, it is
11636 time to mount those partitions. Use the <c>mount</c> command. Don't forget to
11637 create the necessary mount directories for every partition you created. As an
11638 example we create a mount-point and mount the root partition:
11639 </p>
11640
11641 <pre caption="Mounting partitions">
11642 # <i>mkdir /mnt/gentoo</i>
11643 # <i>mount /dev/hda4 /mnt/gentoo</i>
11644 </pre>
11645
11646 <note>
11647 If you want your <path>/tmp</path> to reside on a separate partition, be sure to
11648 change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This
11649 also holds for <path>/var/tmp</path>.
11650 </note>
11651
11652 <p>
11653 We will have to mount the proc filesystem (a virtual interface with the
11654 kernel) on <path>/proc</path>. But first we will need to place our files on the
11655 partitions.
11656 </p>
11657
11658 <p>
11659 Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
11660 Installation Files</uri>.
11661 </p>
11662
11663 </body>
11664 </section>
11665 </sections>
11666
11667
11668
11669 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc-kernel.xml
11670
11671 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc-kernel.xml?rev=1.1&view=markup
11672 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc-kernel.xml?rev=1.1&content-type=text/plain
11673
11674 Index: hb-install-ppc-kernel.xml
11675 ===================================================================
11676 <?xml version='1.0' encoding='UTF-8'?>
11677 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
11678
11679 <!-- The content of this document is licensed under the CC-BY-SA license -->
11680 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
11681
11682 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc-kernel.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
11683
11684 <sections>
11685
11686 <version>6.0</version>
11687 <date>2006-02-27</date>
11688
11689 <section>
11690 <title>Timezone</title>
11691 <body>
11692
11693 <p>
11694 You first need to select your timezone so that your system knows where it is
11695 located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy
11696 it to <path>/etc/localtime</path>. Please avoid the
11697 <path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not
11698 indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8.
11699 </p>
11700
11701 <pre caption="Setting the timezone information">
11702 # <i>ls /usr/share/zoneinfo</i>
11703 <comment>(Suppose you want to use GMT)</comment>
11704 # <i>cp /usr/share/zoneinfo/GMT /etc/localtime</i>
11705 </pre>
11706
11707 </body>
11708 </section>
11709 <section>
11710 <title>Installing the Sources</title>
11711 <subsection>
11712 <title>Choosing a Kernel</title>
11713 <body>
11714
11715 <p>
11716 The core around which all distributions are built is the Linux kernel. It is the
11717 layer between the user programs and your system hardware. Gentoo provides its
11718 users several possible kernel sources. A full listing with description is
11719 available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel
11720 Guide</uri>.
11721 </p>
11722
11723 <p>
11724 We suggest using either <c>vanilla-sources</c> or <c>gentoo-sources</c> on PPC,
11725 which are both 2.6 kernels. The latter is available when you perform a
11726 networkless installation. So let's continue with <c>emerge</c>'ing the kernel
11727 sources. The <c>USE="-doc"</c> is necessary to avoid installing xorg-x11 or
11728 other dependencies at this point. <c>USE="symlink"</c> is not necessary for a
11729 new install, but ensures proper creation of the <path>/usr/src/linux</path>
11730 symlink.
11731 </p>
11732
11733 <pre caption="Installing a kernel source">
11734 # <i>USE="-doc symlink" emerge gentoo-sources</i>
11735 </pre>
11736
11737 <p>
11738 If you take a look in <path>/usr/src</path> you should see a symlink named
11739 <path>linux</path> pointing to your current kernel source. In this case, the
11740 installed kernel source points to <c>gentoo-sources-2.6.15</c>. Your version
11741 may be different, so keep this in mind.
11742 </p>
11743
11744 <pre caption="Viewing the kernel source symlink">
11745 # <i>ls -l /usr/src/linux</i>
11746 lrwxrwxrwx 1 root root 22 Mar 18 16:23 /usr/src/linux -&gt; linux-2.6.15
11747 </pre>
11748
11749 <p>
11750 Now it is time to configure and compile your kernel source. You
11751 can use <c>genkernel</c> for this, which will build a generic kernel as used
11752 by the Installation CD. We explain the "manual" configuration first though, as
11753 it is the best way to optimize your environment.
11754 </p>
11755
11756 <p>
11757 If you want to manually configure your kernel, continue now with <uri
11758 link="#manual">Default: Manual Configuration</uri>. If you want to use
11759 <c>genkernel</c> you should read <uri link="#genkernel">Alternative: Using
11760 genkernel</uri> instead.
11761 </p>
11762
11763 </body>
11764 </subsection>
11765 </section>
11766 <section id="manual">
11767 <title>Default: Manual Configuration</title>
11768 <subsection>
11769 <title>Introduction</title>
11770 <body>
11771
11772 <p>
11773 Manually configuring a kernel is often seen as the most difficult procedure a
11774 Linux user ever has to perform. Nothing is less true -- after configuring a
11775 couple of kernels you don't even remember that it was difficult ;)
11776 </p>
11777
11778 <p>
11779 However, one thing <e>is</e> true: you must know your system when you start
11780 configuring a kernel manually. Most information can be gathered by emerging
11781 pciutils (<c>emerge pciutils</c>) which contains <c>lspci</c>. You will now
11782 be able to use <c>lspci</c> within the chrooted environment. You may safely
11783 ignore any <e>pcilib</e> warnings (like pcilib: cannot open
11784 /sys/bus/pci/devices) that <c>lspci</c> throws out. Alternatively, you can run
11785 <c>lspci</c> from a <e>non-chrooted</e> environment. The results are the same.
11786 You can also run <c>lsmod</c> to see what kernel modules the Installation CD
11787 uses (it might provide you with a nice hint on what to enable). Another place
11788 to look for clues as to what components to enable is to check the kernel
11789 message logs from the successful boot that got you this far. Type <c>dmesg</c>
11790 to see the kernel messages.
11791 </p>
11792
11793 <p>
11794 Now, go to your kernel source directory, it's time to configure your kernel.
11795 It is recommended that you add the default settings to your configuration by
11796 first running <c>make defconfig</c>. After the default configuration has been
11797 generated, run <c>make menuconfig</c> which will fire up an ncurses-based
11798 configuration menu.
11799 </p>
11800
11801 <pre caption="Invoking menuconfig">
11802 # <i>cd /usr/src/linux</i>
11803 # <i>make defconfig</i>
11804 # <i>make menuconfig</i>
11805 </pre>
11806
11807 <p>
11808 You will be greeted with several configuration sections. We'll first list some
11809 options you must activate (otherwise Gentoo will not function, or not function
11810 properly without additional tweaks).
11811 </p>
11812
11813 </body>
11814 </subsection>
11815 <subsection>
11816 <title>Activating Required Options</title>
11817 <body>
11818
11819 <p>
11820 First of all, activate the use of development and experimental code/drivers.
11821 You need this, otherwise some very important code/drivers won't show up:
11822 </p>
11823
11824 <pre caption="Selecting experimental code/drivers, General setup">
11825 Code maturity level options ---&gt;
11826 [*] Prompt for development and/or incomplete code/drivers
11827 General setup --->
11828 [*] Support for hot-pluggable devices
11829 </pre>
11830
11831 <p>
11832 Now go to <c>File Systems</c> and select support for the filesystems you use.
11833 <e>Don't</e> compile them as modules, otherwise your Gentoo system will not be
11834 able to mount your partitions. Also select <c>/proc file system</c> and
11835 <c>Virtual memory</c>.
11836 </p>
11837
11838 <pre caption="Selecting necessary file systems">
11839 File systems ---&gt;
11840 Pseudo Filesystems ---&gt;
11841 [*] /proc file system support
11842 [*] Virtual memory file system support (former shm fs)
11843
11844 <comment>(Select one or more of the following options as needed by your system)</comment>
11845 &lt;*&gt; Reiserfs support
11846 &lt;*&gt; Ext3 journalling file system support
11847 &lt;*&gt; Second extended fs support
11848 &lt;*&gt; XFS filesystem support
11849 </pre>
11850
11851 <p>
11852 If you are using PPPoE to connect to the Internet or you are using a dial-up
11853 modem, you will need the following options in the kernel:
11854 </p>
11855
11856 <pre caption="Selecting PPPoE necessary drivers">
11857 Device Drivers ---&gt;
11858 Networking support ---&gt;
11859 &lt;*&gt; PPP (point-to-point protocol) support
11860 &lt;*&gt; PPP support for async serial ports
11861 &lt;*&gt; PPP support for sync tty ports
11862 </pre>
11863
11864 <p>
11865 The two compression options won't harm but are not definitely needed, neither
11866 does the <c>PPP over Ethernet</c> option, that might only be used by
11867 <c>rp-pppoe</c> when configured to do kernel mode PPPoE.
11868 </p>
11869
11870 <p>
11871 If you require it, don't forget to include support in the kernel for your
11872 ethernet card.
11873 </p>
11874
11875 <p>
11876 Users of NewWorld and OldWorld machines will want HFS support as well. OldWorld
11877 users require it for copying compiled kernels to the MacOS partition. NewWorld
11878 users require it for configuring the special Apple_Bootstrap partition:
11879 </p>
11880
11881 <pre caption="Activating HFS support">
11882 File Systems ---&gt;
11883 [*] HFS Support
11884 </pre>
11885
11886 <p>
11887 At this time, kernel preemption is still unstable on PPC and may cause
11888 compilation failures and random segfaults. It is <e>strongly</e> suggested
11889 that you do not use this feature.
11890 </p>
11891
11892 <pre caption="Ensure the Preemptible Kernel Option is Off">
11893 Platform options ---&gt;
11894 [ ] Preemptible Kernel
11895 </pre>
11896
11897 <p>
11898 If you're booting from Firewire, you'll need to enable these options. If you do
11899 not want to compile in support, you'll need to include these modules and their
11900 dependencies in an initrd.
11901 </p>
11902
11903 <pre caption="Enable support for firewire devices on boot">
11904 Device Drivers ---&gt;
11905 IEEE 1394 (FireWire) support ---&gt;
11906 &lt;*&gt; IEEE 1394 (FireWire) support
11907 &lt;*&gt; OHCI-1394 support
11908 &lt;*&gt; SBP-2 support (Harddisks etc.)
11909 </pre>
11910
11911 <p>
11912 If you're booting from USB, you'll need to enable these options. If you do not
11913 want to compile in support, you'll need to include these modules and their
11914 dependencies in an initrd.
11915 </p>
11916
11917 <pre caption="Enable support for USB devices on boot">
11918 Device Drivers ---&gt;
11919 USB support ---&gt;
11920 &lt;*&gt; Support for Host-side USB
11921 &lt;*&gt; OHCI HCD support
11922 &lt;*&gt; USB Mass Storage support
11923 </pre>
11924
11925 <p>
11926 Do not turn off kernel framebuffer support as it is required for a successful
11927 boot. If you are using an NVIDIA based chipset, you should use the OpenFirmware
11928 framebuffer. If you are using an ATI based chipset, you should select the
11929 framebuffer driver based upon your chipset (Mach64, Rage128 or Radeon).
11930 </p>
11931
11932 <pre caption="Chosing a Framebuffer Driver">
11933 Device Drivers ---&gt;
11934 Graphics support ---&gt;
11935 &lt;*&gt; Support for frame buffer devices
11936 [*] Open Firmware frame buffer device support
11937 &lt;*&gt; ATI Radeon display support
11938 &lt;*&gt; ATI Rage128 display support
11939 &lt;*&gt; ATI Mach64 display support
11940 Console display driver support ---&gt;
11941 &lt;*&gt; Framebuffer Console support
11942 </pre>
11943
11944 <note>
11945 If you select more than one framebuffer device, it may default to a less than
11946 optimal driver. Either use only one framebuffer device or specify which
11947 to use by passing the driver to use to the kernel on boot such as
11948 <c>video=radeonfb</c>.
11949 </note>
11950
11951 <p>
11952 When you're done configuring your kernel, continue with <uri
11953 link="#compiling">Compiling and Installing</uri>.
11954 </p>
11955
11956 </body>
11957 </subsection>
11958 <subsection id="compiling">
11959 <title>Compiling and Installing</title>
11960 <body>
11961
11962 <p>
11963 Now that your kernel is configured, it is time to compile and install it. Exit
11964 the configuration and run the commands which will compile the kernel:
11965 </p>
11966
11967 <pre caption="Compiling the kernel">
11968 # <i>make &amp;&amp; make modules_install</i>
11969 </pre>
11970
11971 <p>
11972 When the kernel has finished compiling, copy the kernel image to
11973 <path>/boot</path> (be sure that it is mounted properly on Pegasos computers).
11974 If you are using BootX to boot, we'll copy the kernel later.
11975 </p>
11976
11977 <p>
11978 Yaboot and BootX expect to use an uncompressed kernel unlike many other
11979 bootloaders. The uncompressed kernel is called vmlinux and it is placed in
11980 <path>/usr/src/linux</path> after the kernel has finished compiling. If you
11981 are using a Pegasos machine, the Pegasos firmware requires a compressed
11982 kernel called zImage.chrp which can be found in
11983 <path>/usr/src/linux/arch/ppc/boot/images</path>.
11984 </p>
11985
11986 <pre caption="Installing the kernel">
11987 # <i>cd /usr/src/linux</i>
11988 <comment>replace &lt;kernel-version&gt; with your kernel version</comment>
11989 <comment>(Apple/IBM)</comment>
11990 # <i>cp vmlinux /boot/&lt;kernel-version&gt;</i>
11991 <comment>(Pegasos)</comment>
11992 # <i>cp arch/ppc/boot/images/zImage.chrp /boot/&lt;kernel-version&gt;</i>
11993 </pre>
11994
11995 <p>
11996 Now continue with <uri link="#kernel_modules">Installing Separate Kernel
11997 Modules</uri>.
11998 </p>
11999
12000 </body>
12001 </subsection>
12002 </section>
12003 <section id="kernel_modules">
12004 <title>Installing Separate Kernel Modules</title>
12005 <subsection>
12006 <title>Configuring the Modules</title>
12007 <body>
12008
12009 <p>
12010 You should list the modules you want automatically loaded in
12011 <path>/etc/modules.autoload.d/kernel-2.6</path>.
12012 You can add extra options to the modules too if you want.
12013 </p>
12014
12015 <p>
12016 To view all available modules, run the following <c>find</c> command. Don't
12017 forget to substitute "&lt;kernel version&gt;" with the version of the kernel you
12018 just compiled:
12019 </p>
12020
12021 <pre caption="Viewing all available modules">
12022 # <i>find /lib/modules/&lt;kernel version&gt;/ -type f -iname '*.o' -or -iname '*.ko'</i>
12023 </pre>
12024
12025 <p>
12026 For instance, to automatically load the <c>3c59x.o</c> module, edit the
12027 <path>kernel-2.6</path> file and enter the module
12028 name in it.
12029 </p>
12030
12031 <pre caption="Editing /etc/modules.autoload.d/kernel-2.6">
12032 # <i>nano -w /etc/modules.autoload.d/kernel-2.6</i>
12033 </pre>
12034
12035 <pre caption="/etc/modules.autoload.d/kernel-2.6">
12036 3c59x
12037 </pre>
12038
12039 <p>
12040 Continue the installation with <uri link="?part=1&amp;chap=8">Configuring
12041 your System</uri>.
12042 </p>
12043
12044 </body>
12045 </subsection>
12046 </section>
12047 <section id="genkernel">
12048 <title>Alternative: Using genkernel</title>
12049 <body>
12050
12051 <p>
12052 If you are reading this section, you have chosen to use our <c>genkernel</c>
12053 script to configure your kernel for you.
12054 </p>
12055
12056 <p>
12057 Now that your kernel source tree is installed, it's now time to compile your
12058 kernel by using our <c>genkernel</c> script to automatically build a kernel for
12059 you. <c>genkernel</c> works by configuring a kernel nearly identically to the
12060 way our Installation CD kernel is configured. This means that when you use
12061 <c>genkernel</c> to build your kernel, your system will generally detect all
12062 your hardware at boot-time, just like our Installation CD does. Because genkernel
12063 doesn't require any manual kernel configuration, it is an ideal solution for
12064 those users who may not be comfortable compiling their own kernels.
12065 </p>
12066
12067 <p>
12068 Now, let's see how to use genkernel. First, emerge the genkernel ebuild:
12069 </p>
12070
12071 <pre caption="Emerging genkernel">
12072 # <i>emerge genkernel</i>
12073 </pre>
12074
12075 <p>
12076 Next, copy over the kernel configuration used by the Installation CD to the
12077 location where genkernel looks for the default kernel configuration:
12078 </p>
12079
12080 <pre caption="Copying over the Installation CD kernel config">
12081 # <i>zcat /proc/config.gz > /usr/share/genkernel/ppc/kernel-config-2.6</i>
12082 </pre>
12083
12084 <p>
12085 If you are using firewire or USB to boot, you'll need to add modules to the
12086 initrd. Edit <path>/usr/share/genkernel/ppc/modules_load</path> and change
12087 <c>MODULES_FIREWIRE="ieee1394 ohci1394 sbp2"</c> for firewire support or
12088 <c>MODULES_USB="usbcore ohci-hcd ehci-hcd usb-storage"</c> for USB support.
12089 </p>
12090
12091
12092 <p>
12093 Now, compile your kernel sources by running <c>genkernel --genzimage all</c>.
12094 For Pegasos, we will need to use a different config and create a zImage instead
12095 of the vmlinux kernel used on Apple machines. Be aware, as <c>genkernel</c>
12096 compiles a kernel that supports almost all hardware, this compilation can take
12097 quite a while to finish!
12098 </p>
12099
12100 <p>
12101 Note that, if your partition where the kernel should be located doesn't use ext2
12102 or ext3 as filesystem you might need to manually configure your kernel using
12103 <c>genkernel --menuconfig --genzimage all</c> and add support for your
12104 filesystem <e>in</e> the kernel (i.e. <e>not</e> as a module). Users of EVMS2 or
12105 LVM2 will probably want to add <c>--evms2</c> or <c>--lvm2</c> as argument as
12106 well.
12107 </p>
12108
12109 <pre caption="Running genkernel">
12110 # <i>genkernel --genzimage all</i>
12111 </pre>
12112
12113 <pre caption="Running genkernel on the Pegasos">
12114 # <i>genkernel --genzimage --kernel-config=/usr/share/genkernel/ppc/Pegasos all</i>
12115 </pre>
12116
12117 <p>
12118 Once <c>genkernel</c> completes, a kernel, full set of modules and
12119 <e>initial root disk</e> (initrd) will be created. We will use the kernel
12120 and initrd when configuring a boot loader later in this document. Write
12121 down the names of the kernel and initrd as you will need it when writing
12122 the bootloader configuration file. The initrd will be started immediately after
12123 booting to perform hardware autodetection (just like on the Installation CD)
12124 before your "real" system starts up. Be sure to also copy down the required
12125 boot arguments, these are required for a successful boot with genkernel.
12126 </p>
12127
12128 <pre caption="Checking the created kernel image name and initrd">
12129 # <i>ls /boot/kernel* /boot/initramfs*</i>
12130 </pre>
12131
12132 <p>
12133 If you want your system to be more like the Installation CD you should,
12134 when your Gentoo installation is over, emerge <c>coldplug</c>. While the
12135 initrd autodetects hardware that is needed to boot your system,
12136 <c>coldplug</c> autodetects everything else. <c>coldplug</c> is available as one
12137 of the packages on the Package CD.
12138 </p>
12139
12140 <pre caption="Emerging and enabling coldplug">
12141 <comment>(Do this after the installation, during the GRP installation instructions)</comment>
12142 # <i>emerge -k coldplug</i>
12143 # <i>rc-update add coldplug boot</i>
12144 </pre>
12145
12146 <p>
12147 If you want your system to react to hotplugging events, you will need to install
12148 and setup <c>hotplug</c> as well:
12149 </p>
12150
12151 <pre caption="Emerging and enabling hotplug">
12152 # <i>emerge hotplug</i>
12153 # <i>rc-update add hotplug default</i>
12154 </pre>
12155
12156 <p>
12157 Now continue with <uri link="?part=1&amp;chap=8">Configuring your System</uri>.
12158 </p>
12159
12160 </body>
12161 </section>
12162
12163 </sections>
12164
12165
12166
12167
12168 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc-medium.xml
12169
12170 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc-medium.xml?rev=1.1&view=markup
12171 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc-medium.xml?rev=1.1&content-type=text/plain
12172
12173 Index: hb-install-ppc-medium.xml
12174 ===================================================================
12175 <?xml version='1.0' encoding='UTF-8'?>
12176 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
12177
12178 <!-- The content of this document is licensed under the CC-BY-SA license -->
12179 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
12180
12181 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc-medium.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
12182
12183 <sections>
12184
12185 <version>6.1</version>
12186 <date>2006-07-25</date>
12187
12188 <section>
12189 <title>Hardware Requirements</title>
12190 <subsection>
12191 <title>Introduction</title>
12192 <body>
12193
12194 <p>
12195 Before we start, we first list what hardware requirements you need to
12196 successfully install Gentoo on your box.
12197 </p>
12198
12199 </body>
12200 </subsection>
12201 <subsection>
12202 <title>Hardware Requirements</title>
12203 <body>
12204
12205 <table>
12206 <tr>
12207 <th>Apple NewWorld Machines</th>
12208 <ti>
12209 Power/PowerPC microprocessors (G3, G4, G5) such as iMac, eMac, iBook
12210 PowerBook, Xserver, PowerMac
12211 </ti>
12212 </tr>
12213 <tr>
12214 <th>Apple OldWorld machines</th>
12215 <ti>
12216 Apple Machines with an OpenFirmware revision less than 3, such as the Beige
12217 G3s, PCI PowerMacs and PCI PowerBooks. PCI based Apple Clones should also
12218 be supported.
12219 </ti>
12220 </tr>
12221 <tr>
12222 <th>Genesi's Pegasos</th>
12223 <ti>
12224 Pegasos I/II, Open Desktop Workstation
12225 </ti>
12226 </tr>
12227 <tr>
12228 <th>IBM</th>
12229 <ti>
12230 RS/6000, iSeries, pSeries
12231 </ti>
12232 </tr>
12233 <tr>
12234 <th>Memory</th>
12235 <ti>At least 64 MB</ti>
12236 </tr>
12237 <tr>
12238 <th>Diskspace</th>
12239 <ti>1.5 GB (excluding swap space)</ti>
12240 </tr>
12241 <tr>
12242 <th>Swap space</th>
12243 <ti>At least 256 MB</ti>
12244 </tr>
12245 </table>
12246
12247 <p>
12248 Be sure to read the <uri link="/doc/en/gentoo-ppc-faq.xml">Gentoo PPC FAQ</uri>
12249 for help with some common installation related issues or if you're unsure as to
12250 just what's in that PowerPC machine you've got sitting on your desk right now.
12251 </p>
12252
12253 </body>
12254 </subsection>
12255 </section>
12256 <!-- Copy/paste of hb-install-x86-medium.xml, with s/x86/ppc/ -->
12257 <!-- START -->
12258 <section>
12259 <title>The Gentoo Universal Installation CD</title>
12260 <subsection>
12261 <title>Introduction</title>
12262 <body>
12263
12264 <p>
12265 Gentoo Linux can be installed using a <e>stage3</e> tarball file.
12266 Such a tarball is an archive that contains a minimal environment from
12267 which you can succesfully install Gentoo Linux onto your system.
12268 </p>
12269
12270 <p>
12271 Installations using a stage1 or stage2 tarball file are not documented in the
12272 Gentoo Handbook - please read the <uri link="/doc/en/faq.xml#stage12">Gentoo
12273 FAQ</uri> on these matters.
12274 </p>
12275
12276 </body>
12277 </subsection>
12278 <subsection>
12279 <title>Gentoo Universal Installation CD</title>
12280 <body>
12281
12282 <p>
12283 An Installation CD is a bootable medium which contains a self-sustained Gentoo
12284 environment. It allows you to boot Linux from the CD. During the boot process
12285 your hardware is detected and the appropriate drivers are loaded. The Gentoo
12286 Installation CDs are maintained by Gentoo developers.
12287 </p>
12288
12289 <p>
12290 There currently are two Installation CDs available:
12291 </p>
12292
12293 <ul>
12294 <li>
12295 The Universal Installation CD contains everything you need to install
12296 Gentoo. It provides stage3 files for common architectures, source code
12297 for the extra applications you need to choose from and, of course, the
12298 installation instructions for your architecture.
12299 </li>
12300 <li>
12301 The Minimal Installation CD contains only a minimal environment that allows
12302 you to boot up and configure your network so you can connect to the
12303 Internet. It does not contain any additional files and cannot be used
12304 during the current installation approach.
12305 </li>
12306 </ul>
12307
12308 <p>
12309 Gentoo also provides a Package CD. This is not an Installation CD but an
12310 additional resource that you can exploit during the installation of your Gentoo
12311 system. It contains prebuilt packages (also known as the GRP set) that allow
12312 you to easily and quickly install additional applications (such as
12313 OpenOffice.org, KDE, GNOME, ...) immediately after the Gentoo installation and
12314 right before you update your Portage tree.
12315 </p>
12316
12317 <p>
12318 The use of the Package CD is covered later in this document.
12319 </p>
12320
12321 </body>
12322 </subsection>
12323 </section>
12324 <!-- STOP -->
12325 <section>
12326 <title>Download, Burn and Boot the Gentoo Universal Installation CD</title>
12327 <subsection>
12328 <title>Downloading and Burning the Installation CD</title>
12329 <body>
12330
12331 <p>
12332 You can download the Universal Installation CD (and, if you want to, the
12333 Packages CD as well) from one of our <uri
12334 link="/main/en/mirrors.xml">mirrors</uri>. The Installation CDs are located
12335 in the <path>releases/ppc/2006.1/ppc32/installcd</path> directory;
12336 the Package CDs are located in the
12337 <path>releases/ppc/2006.1/ppc32/packagecd</path> directory.
12338 </p>
12339
12340 <p>
12341 Inside those directories you'll find ISO-files. Those are full CD images which
12342 you can write on a CD-R.
12343 </p>
12344
12345 <p>
12346 After downloading the file, you can verify its integrity to see if it is
12347 corrupted or not:
12348 </p>
12349
12350 <ul>
12351 <li>
12352 You can check its MD5 checksum and compare it with the MD5 checksum we
12353 provide (for instance with the <c>md5sum</c> tool under Linux/Unix or
12354 <uri link="http://www.etree.org/md5com.html">md5sum</uri> for Windows).
12355 Verifying MD5 checksums with Mac OS X is described in the <uri
12356 link="/doc/en/gentoo-ppc-faq.xml#doc_chap1">Gentoo PPC FAQ</uri>.
12357 </li>
12358 <li>
12359 You can verify the cryptographic signature that we provide. You need to
12360 obtain the public key we use (0x17072058) before you proceed though.
12361 </li>
12362 </ul>
12363
12364 <p>
12365 To fetch our public key using the GnuPG application, run the following command:
12366 </p>
12367
12368 <pre caption="Obtaining the public key">
12369 $ <i>gpg --keyserver subkeys.pgp.net --recv-keys 0x17072058</i>
12370 </pre>
12371
12372 <p>
12373 Now verify the signature:
12374 </p>
12375
12376 <pre caption="Verify the cryptographic signature">
12377 $ <i>gpg --verify &lt;signature file&gt; &lt;downloaded iso&gt;</i>
12378 </pre>
12379
12380 <p>
12381 To burn the downloaded ISO(s), you have to select raw-burning. How you
12382 do this is highly program-dependent. We will discuss <c>cdrecord</c> and
12383 <c>K3B</c> here; more information can be found in our <uri
12384 link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>.
12385 </p>
12386
12387 <ul>
12388 <li>
12389 With cdrecord, you simply type <c>cdrecord dev=/dev/hdc &lt;downloaded iso
12390 file&gt;</c> (replace <path>/dev/hdc</path> with your CD-RW drive's device
12391 path).
12392 </li>
12393 <li>
12394 With K3B, select <c>Tools</c> &gt; <c>CD</c> &gt; <c>Burn Image</c>. Then
12395 you can locate your ISO file within the 'Image to Burn' area. Finally click
12396 <c>Start</c>.
12397 </li>
12398 </ul>
12399
12400 </body>
12401 </subsection>
12402 <subsection>
12403 <title>Default: Booting the Installation CD with Yaboot</title>
12404 <body>
12405
12406 <p>
12407 On NewWorld machines place the Installation CD in the CD-ROM and reboot the
12408 system. When the system-start-bell sounds, simply hold down the 'C' until the
12409 CD loads.
12410 </p>
12411
12412 <p>
12413 After the Installation CD loaded, you will be greeted by a friendly welcome
12414 message and a <e>boot:</e> prompt at the bottom of the screen.
12415 </p>
12416
12417 <p>
12418 We provide one generic kernel, <e>ppc32</e>. This kernel is built with support
12419 for multiple CPUs, but it will boot on single processor machines as well.
12420 </p>
12421
12422 <p>
12423 You can tweak some kernel options at this prompt. The following table lists
12424 some of the available boot options you can add:
12425 </p>
12426
12427 <table>
12428 <tr>
12429 <th>Boot Option</th>
12430 <th>Description</th>
12431 </tr>
12432 <tr>
12433 <ti><c>video</c></ti>
12434 <ti>
12435 This option takes one of the following vendor-specific tags:
12436 <c>nvidiafb</c>, <c>radeonfb</c>, <c>rivafb</c>, <c>atyfb</c>,
12437 <c>aty128</c> or <c>ofonly</c>. You can follow this tag with the resolution
12438 refresh rate and color depth you want to use. For instance,
12439 <c>video=radeonfb:1280x1024@75-32</c> will select the ATI Radeon frame buffer
12440 at a resolution of 1280x1024 with a refresh rate of 75Hz and a color depth of
12441 32 bits. If you are uncertain what to choose, and the default doesn't work,
12442 <c>video=ofonly</c> will most certainly work.
12443 </ti>
12444 </tr>
12445 <tr>
12446 <ti><c>nol3</c></ti>
12447 <ti>
12448 Disables level 3 cache on some PowerBooks (needed for at least the 17&quot;)
12449 </ti>
12450 </tr>
12451 <tr>
12452 <ti><c>dofirewire</c></ti>
12453 <ti>
12454 Enables support for IEEE1394 (FireWire) devices, like external harddisks.
12455 </ti>
12456 </tr>
12457 <tr>
12458 <ti><c>dopcmcia</c></ti>
12459 <ti>
12460 If you want to use PCMCIA devices during your installation (like PCMCIA
12461 network cards) you have to enable this option.
12462 </ti>
12463 </tr>
12464 </table>
12465
12466 <p>
12467 To use the above options, at the <e>boot:</e> prompt, type <e>ppc32</e> followed
12468 by the desired option. In the example below, we'll force the kernel to use the
12469 OpenFirmware framebuffer instead of the device specific driver.
12470 </p>
12471
12472 <pre caption="Force the use of the OpenFirmware framebuffer">
12473 boot: <i>ppc32 video=ofonly</i>
12474 </pre>
12475
12476 <p>
12477 If you don't need to add any options, just hit enter at this prompt, and a
12478 complete Gentoo Linux environment will be loaded from the CD. Continue with
12479 <uri link="#booted">And When You're Booted...</uri>.
12480 </p>
12481
12482 </body>
12483 </subsection>
12484 <subsection>
12485 <title>Alternative: Booting the Installation CD on a Pegasos</title>
12486 <body>
12487
12488 <p>
12489 On the Pegasos simply insert the CD and at the SmartFirmware boot-prompt type
12490 <c>boot cd /boot/menu</c>. This will open a small bootmenu where you can choose
12491 between several preconfigured video configs. If you need any special boot
12492 options you can append them to the command-line just like with Yaboot above.
12493 For example: <c>boot cd /boot/pegasos video=radeonfb:1280x1024@75 mem=256M</c>.
12494 The default kernel options (in case something goes wrong and you need it) are
12495 preconfigured with <c>console=ttyS0,115200 console=tty0 init=/linuxrc
12496 looptype=squashfs loop=/image.squashfs cdroot root=/dev/ram0</c>.
12497 </p>
12498
12499 </body>
12500 </subsection>
12501
12502 <subsection>
12503 <title>Alternative: Booting the Installation CD with BootX</title>
12504 <body>
12505
12506 <p>
12507 If you have an OldWorld Mac the bootable portion of the livecd can't be used.
12508 The most simple solution is to use MacOS 9 or earlier to bootstrap into a Linux
12509 environment with a tool called BootX.
12510 </p>
12511
12512 <p>
12513 First, download <uri link="http://penguinppc.org/projects/bootx/">BootX</uri>
12514 and unpack the archive. Copy the the <c>BootX Extension</c> from the unpacked
12515 archive into <c>Extensions Folder</c> and the BootX App Control Panel into
12516 <c>Control Panels</c>, both of which are located in your MacOS System Folder.
12517 Next, create a folder called "Linux Kernels" in your System folder and copy the
12518 <c>ppc32</c> kernel from the CD to this folder. Finally, copy <c>ppc32.igz</c>
12519 from the Installation CD <path>boot</path> folder into the MacOS
12520 <c>System Folder</c>.
12521 </p>
12522
12523 <p>
12524 To prepare BootX, start the BootX App Control Panel. First select the Options
12525 dialog and check <c>Use Specified RAM Disk</c> and select <c>ppc32.igz</c> from
12526 your System Folder. Continue back to the initial screen and ensure that the
12527 ramdisk size is at least <c>32000</c>. Finally, set the kernel arguments as
12528 shown below:
12529 </p>
12530
12531 <pre caption="BootX kernel arguments">
12532 cdroot root=/dev/ram0 init=linuxrc loop=image.squashfs looptype=squashfs console=tty0
12533 </pre>
12534
12535 <note>
12536 The kernel parameters in the yaboot section above are also applicable here. You
12537 can append any of those options to the kernel arguments above.
12538 </note>
12539
12540 <p>
12541 Check once more to make sure the settings are correct and then save the
12542 configuration. This saves typing just in case it doesn't boot or something is
12543 missing. Press the Linux button at the top of the window. If everything goes
12544 correctly, it should boot into the Installation CD. Continue with
12545 <uri link="#booted">And When You're Booted...</uri>
12546 </p>
12547
12548 </body>
12549 </subsection>
12550
12551 <subsection id="booted">
12552 <title>And When You're Booted...</title>
12553 <body>
12554
12555 <p>
12556 You will be greeted by a root ("#") prompt on the current console. You can also
12557 switch to other consoles by pressing Alt-F2, Alt-F3 and Alt-F4. Get
12558 back to the one you started on by pressing Alt-F1. Due to the keyboard layout,
12559 you may need to press Alt-fn-Fx on Apple machines.
12560 </p>
12561
12562 <p>
12563 If you are installing Gentoo on a system with a non-US keyboard, use
12564 <c>loadkeys</c> to load the keymap for your keyboard. To list the available
12565 keymaps, execute <c>ls /usr/share/keymaps/i386</c>. On NewWorld machines or the
12566 Pegasos do not use the keymaps in <path>ppc</path> or <path>mac</path> as they
12567 are for ADB-based OldWorld machines.
12568 </p>
12569
12570 <pre caption="Listing available keymaps">
12571 <comment>(PPC uses x86 keymaps on most systems. The mac/ppc keymaps provided
12572 on the Installation CD are ADB keymaps and unusable with the Installation CD
12573 kernel)</comment>
12574 # <i>ls /usr/share/keymaps/i386</i>
12575 </pre>
12576
12577 <p>
12578 Now load the keymap of your choice:
12579 </p>
12580
12581 <pre caption="Loading a keymap">
12582 # <i>loadkeys be-latin1</i>
12583 </pre>
12584
12585 <p>
12586 Now continue with <uri link="#hardware">Extra Hardware Configuration</uri>.
12587 </p>
12588
12589 </body>
12590 </subsection>
12591 <subsection id="hardware">
12592 <title>Extra Hardware Configuration</title>
12593 <body>
12594
12595 <p>
12596 When the Installation CD boots, it tries to detect all your hardware devices and
12597 loads the appropriate kernel modules to support your hardware. In the
12598 vast majority of cases, it does a very good job. However, in some cases, it may
12599 not auto-load the kernel modules you need. If the PCI auto-detection missed some
12600 of your system's hardware, you will have to load the appropriate kernel modules
12601 manually.
12602 </p>
12603
12604 <p>
12605 In the next example we try to load the <c>airport</c> module. This module
12606 supports only the old Airport cards (802.11b). Airport Extreme (802.11g) is not
12607 supported on the InstallCD due to restrictions on firmware distribution.
12608 </p>
12609
12610 <pre caption="Loading the airport module">
12611 # <i>modprobe airport</i>
12612 </pre>
12613
12614 <p>
12615 On older iMacs, sometimes the network card is not detected properly. These use
12616 the BMAC driver:
12617 </p>
12618
12619 <pre caption="Loading the bmac module">
12620 # <i>modprobe bmac</i>
12621 </pre>
12622
12623 </body>
12624 </subsection>
12625 <subsection>
12626 <title>Optional: Tweaking Hard Disk Performance</title>
12627 <body>
12628
12629 <p>
12630 If you are an advanced user, you might want to tweak the IDE hard disk
12631 performance using <c>hdparm</c>. With the <c>-tT</c> options you can
12632 test the performance of your disk (execute it several times to get a
12633 more precise impression):
12634 </p>
12635
12636 <pre caption="Testing disk performance">
12637 # <i>hdparm -tT /dev/hda</i>
12638 </pre>
12639
12640 <p>
12641 To tweak, you can use any of the following examples (or experiment
12642 yourself) which use <path>/dev/hda</path> as disk (substitute with your
12643 disk):
12644 </p>
12645
12646 <pre caption="Tweaking hard disk performance">
12647 <comment>Activate DMA:</comment> # <i>hdparm -d 1 /dev/hda</i>
12648 <comment>Activate DMA + Safe Performance-enhancing Options:</comment> # <i>hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda</i>
12649 </pre>
12650
12651 </body>
12652 </subsection>
12653 <subsection id="useraccounts">
12654 <title>Optional: User Accounts</title>
12655 <body>
12656
12657 <p>
12658 If you plan on giving other people access to your installation
12659 environment or you want to chat using <c>irssi</c> without root privileges (for
12660 security reasons), you need to create the necessary user accounts and change
12661 the root password.
12662 </p>
12663
12664 <p>
12665 To change the root password, use the <c>passwd</c> utility:
12666 </p>
12667
12668 <pre caption="Changing the root password">
12669 # <i>passwd</i>
12670 New password: <comment>(Enter your new password)</comment>
12671 Re-enter password: <comment>(Re-enter your password)</comment>
12672 </pre>
12673
12674 <p>
12675 To create a user account, we first enter their credentials, followed by
12676 its password. We use <c>useradd</c> and <c>passwd</c> for these tasks.
12677 In the next example, we create a user called &quot;john&quot;.
12678 </p>
12679
12680 <pre caption="Creating a user account">
12681 # <i>useradd -m -G users john</i>
12682 # <i>passwd john</i>
12683 New password: <comment>(Enter john's password)</comment>
12684 Re-enter password: <comment>(Re-enter john's password)</comment>
12685 </pre>
12686
12687 <p>
12688 You can change your user id from root to the newly created user by using
12689 <c>su</c>:
12690 </p>
12691
12692 <pre caption="Changing user id">
12693 # <i>su - john</i>
12694 </pre>
12695
12696 </body>
12697 </subsection>
12698 <subsection>
12699 <title>Optional: Viewing Documentation while Installing</title>
12700 <body>
12701
12702 <p>
12703 If you want to view the Gentoo Handbook (either from-CD or online) during the
12704 installation, make sure you have created a user account (see <uri
12705 link="#useraccounts">Optional: User Accounts</uri>). Then press <c>Alt-F2</c> to
12706 go to a new terminal and log in.
12707 </p>
12708
12709 <p>
12710 If you want to view the documentation on the CD you can immediately run
12711 <c>links</c> or even <c>links -g</c> for a graphical framebuffer browser to
12712 read it:
12713 </p>
12714
12715 <pre caption="Viewing the on-CD documentation">
12716 # <i>links /mnt/cdrom/docs/html/index.html</i>
12717 </pre>
12718
12719 <p>
12720 However, it is preferred that you use the online Gentoo Handbook as it will be
12721 more recent than the one provided on the CD. You can view it using <c>links</c>
12722 as well, but only after having completed the <e>Configuring your Network</e>
12723 chapter (otherwise you won't be able to go on the Internet to view the
12724 document):
12725 </p>
12726
12727 <pre caption="Viewing the Online Documentation">
12728 # <i>links http://www.gentoo.org/doc/en/handbook/handbook-ppc.xml</i>
12729 </pre>
12730
12731 <p>
12732 You can go back to your original terminal by pressing <c>Alt-F1</c>.
12733 </p>
12734
12735 </body>
12736 </subsection>
12737 <subsection>
12738 <title>Optional: Starting the SSH Daemon</title>
12739 <body>
12740
12741 <p>
12742 If you want to allow other users to access your computer during the
12743 Gentoo installation (perhaps because those users are going to help you
12744 install Gentoo, or even do it for you), you need to create a user
12745 account for them and perhaps even provide them with your root password
12746 (<e>only</e> do that <e>if</e> you <b>fully trust</b> that user).
12747 </p>
12748
12749 <p>
12750 To fire up the SSH daemon, execute the following command:
12751 </p>
12752
12753 <pre caption="Starting the SSH daemon">
12754 # <i>/etc/init.d/sshd start</i>
12755 </pre>
12756
12757 <p>
12758 To be able to use sshd, you first need to set up your networking. Continue with
12759 the chapter on <uri link="?part=1&amp;chap=3">Configuring your Network</uri>.
12760 </p>
12761
12762 </body>
12763 </subsection>
12764 </section>
12765 </sections>
12766
12767
12768
12769 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc64-bootloader.xml
12770
12771 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc64-bootloader.xml?rev=1.1&view=markup
12772 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc64-bootloader.xml?rev=1.1&content-type=text/plain
12773
12774 Index: hb-install-ppc64-bootloader.xml
12775 ===================================================================
12776 <?xml version='1.0' encoding='UTF-8'?>
12777 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
12778
12779 <!-- The content of this document is licensed under the CC-BY-SA license -->
12780 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
12781
12782 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc64-bootloader.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
12783
12784 <sections>
12785
12786 <version>6.0</version>
12787 <date>2006-02-27</date>
12788
12789 <section>
12790 <title>Making your Choice</title>
12791 <subsection>
12792 <title>Introduction</title>
12793 <body>
12794
12795 <p>
12796 Now that your kernel is configured and compiled and the necessary system
12797 configuration files are filled in correctly, it is time to install a
12798 program that will fire up your kernel when you start the system. Such a
12799 program is called a <e>bootloader</e>.
12800 </p>
12801
12802 <p>
12803 On Linux/PPC64 we have only yaBoot as a bootloader until grub2 is
12804 finished.
12805 </p>
12806
12807 </body>
12808 </subsection>
12809 </section>
12810 <section id="yaboot">
12811 <title>Using yaBoot</title>
12812 <subsection>
12813 <title>Introduction</title>
12814 <body>
12815
12816 <impo>
12817 For a 64bit userland use yaboot-static instead of yaboot, because yaboot won't
12818 compile on 64bit userland systems. For a 32bit userland use yaboot as you
12819 normally would.
12820 </impo>
12821
12822 <p>
12823 There are two ways to configure yaBoot for your system. You can use the
12824 new and improved <c>yabootconfig</c> included with
12825 <path>yaboot-1.3.8-r1</path> and later to automatically set up yaboot. If
12826 for some reason you do not want to run <c>yabootconfig</c> to
12827 automatically set up <path>/etc/yaboot.conf</path> or you are installing Gentoo
12828 on a G5 (on which <c>yabootconfig</c> does not always work), you can just edit
12829 the sample file already installed on your system.
12830 </p>
12831
12832 <impo>
12833 If you are installing on a G5 using an online install and have not used the
12834 G5 optimized stages you must change what profile you are linked to now. If you
12835 do not you will not get dependencies necessary for yaboot to run on Apple
12836 equipment. In the command below replace <c>(userland)</c> with your chosen
12837 userland bit level. If you are installing on a G5 using an offline install
12838 you have to install these packages by hand.
12839 </impo>
12840
12841 <pre caption = "(ONLINE INSTALL FOR G5 USERS ONLY) Changing your profile">
12842 # <i>rm /etc/make.profile</i>
12843 # <i>ln -sf /usr/portage/profiles/default-linux/ppc/2006.1/ppc64/(userland)/970/pmac /etc/make.profile</i>
12844 </pre>
12845
12846 <pre caption = "(OFFLINE INSTALL FOR G5 USERS ONLY) Installing Necessary File System Tools">
12847 # <i>emerge hfsutils hfsplusutils</i>
12848 </pre>
12849
12850 <pre caption = "Installing the bootloader">
12851 <comment>(64bit userland)</comment>
12852 # <i>emerge --update yaboot-static</i>
12853 <comment>(32bit userland)</comment>
12854 # <i>emerge --update yaboot</i>
12855 </pre>
12856
12857 <impo>
12858 yabootconfig/ybin won't work on IBM. You have to install yaboot another way:
12859 <uri link="#yaboot-ibm">Using yaboot on IBM hardware</uri>
12860 </impo>
12861
12862 <note>
12863 If your root filesystem uses the JFS filesystem, be sure to add <c>ro</c> as a
12864 kernel parameter. JFS must be able to replay its log in read-only mode before it
12865 gets mounted read-write.
12866 </note>
12867
12868 <ul>
12869 <li><uri link="#yabootconfig">Default: Using yabootconfig</uri></li>
12870 <li>
12871 <uri link="#manual_yaboot">Alternative: Manual yaBoot Configuration</uri>
12872 </li>
12873 </ul>
12874
12875 </body>
12876 </subsection>
12877 <subsection id="yabootconfig">
12878 <title>Default: Using yabootconfig</title>
12879 <body>
12880
12881 <p>
12882 <c>yabootconfig</c> will auto-detect the partitions on your machine and will
12883 set up dual and triple boot combinations with Linux, Mac OS, and Mac OS
12884 X.
12885 </p>
12886
12887 <p>
12888 To use <c>yabootconfig</c>, your drive must have a bootstrap partition, and
12889 <path>/etc/fstab</path> must be configured with your Linux partitions. Both of
12890 these should have been done already in the steps above. To start, ensure that
12891 you have the latest version of yaboot installed by running <c>emerge --update
12892 yaboot-static</c>. This is necessary as the latest version will be available via
12893 Portage, but it may not have made it into the stage files.
12894 </p>
12895
12896 <p>
12897 Now run <c>yabootconfig</c>. The program will run and it will confirm
12898 the location of the bootstrap partition. Type <c>Y</c> if it is correct. If
12899 not, double check <path>/etc/fstab</path>. yabootconfig will then scan your
12900 system setup, create <path>/etc/yaboot.conf</path> and run <c>mkofboot</c> for
12901 you. <c>mkofboot</c> is used to format the bootstrap partition, and install
12902 the yaboot configuration file into it.
12903 </p>
12904
12905 <p>
12906 You might want to verify the contents of <path>/etc/yaboot.conf</path>. If
12907 you make changes to <path>/etc/yaboot.conf</path> (like setting the
12908 default/boot OS), make sure to rerun <c>ybin -v</c> to apply changes to the
12909 bootstrap partition.
12910 </p>
12911
12912 <p>
12913 Now continue with <uri link="#reboot">Rebooting your System</uri>.
12914 </p>
12915
12916 </body>
12917 </subsection>
12918 <subsection id="manual_yaboot">
12919 <title>Alternative: Manual yaBoot Configuration</title>
12920 <body>
12921
12922 <p>
12923 Below you find a completed <path>yaboot.conf</path> file. Alter it at
12924 will.
12925 </p>
12926
12927 <pre caption = "/etc/yaboot.conf">
12928 <comment>## /etc/yaboot.conf
12929 ##
12930 ## run: "man yaboot.conf" for details. Do not make changes until you have!!
12931 ## see also: /usr/share/doc/yaboot/examples for example configurations.
12932 ##
12933 ## For a dual-boot menu, add one or more of:
12934 ## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ
12935
12936 ## our bootstrap partition:</comment>
12937
12938 boot=/dev/hda2
12939
12940 <comment>## ofboot is the openfirmware way to specify the bootstrap partition.
12941 ## If this isn't defined, yaboot fails on the G5 and some G4s (unless
12942 ## you pass the necessary arguments to the mkofboot/ybin program).
12943 ## hd:X means /dev/sdaX (or /dev/hdaX).</comment>
12944
12945 ofboot=hd:2
12946
12947 <comment>## hd: is open firmware speak for hda</comment>
12948 device=hd:
12949
12950 delay=5
12951 defaultos=macosx
12952 timeout=30
12953 install=/usr/lib/yaboot/yaboot
12954 magicboot=/usr/lib/yaboot/ofboot
12955
12956 <comment>#################
12957 ## This section can be duplicated if you have more than one kernel or set of
12958 ## boot options - replace 2.6.12-gentoo-r10 with your kernel-version
12959 #################</comment>
12960 image=/boot/kernel-2.6.12-gentoo-r10
12961 label=Linux
12962 root=/dev/hda3
12963 partition=3
12964 read-only
12965
12966 macos=hd:13
12967 macosx=hd:12
12968 enablecdboot
12969 enableofboot
12970 </pre>
12971
12972 <p>
12973 Once <path>yaboot.conf</path> is set up the way you want it, you run
12974 <c>mkofboot -v</c> to install the settings in the bootstrap partition.
12975 <e>Don't forget this!</e> Confirm when <c>mkofboot</c> asks you to create a new
12976 filesystem.
12977 </p>
12978
12979 <p>
12980 If all goes well, and you have the same
12981 options as the sample above, your next reboot will give you a simple,
12982 five-entry boot menu. If you update your yaboot config later on, you'll
12983 just need to run <c>ybin -v</c> to update the bootstrap partition -
12984 <c>mkofboot</c> is for initial setup only.
12985 </p>
12986
12987 <p>
12988 For more information on yaboot, take a look at the <uri
12989 link="http://penguinppc.org/projects/yaboot">yaboot project</uri>. For
12990 now, continue the installation with <uri link="#reboot">Rebooting your
12991 System</uri>.
12992 </p>
12993
12994 </body>
12995 </subsection>
12996 </section>
12997 <section id="yaboot-ibm">
12998 <title>Using yaboot on IBM hardware</title>
12999 <body>
13000
13001 <p>
13002 On IBM hardware you cannot run yabootconfig or ybin. You must proceed with the
13003 following steps:
13004 </p>
13005
13006 <ul>
13007 <li>Install yaboot-static</li>
13008 <li>Run 'dd if=/usr/lib/yaboot/yaboot.chrp of=/dev/sdXX' (fill in XX
13009 with your disk and partition for the PReP partition; this was in our
13010 example /dev/sda1)</li>
13011 <li>Next construct your own yaboot.conf file and place into /etc.
13012 (Take a look at the config above, look into the man page of
13013 yaboot.conf or look at the below yaboot.conf example)</li>
13014 <li>Assuming your boot device in OF is pointing to the harddrive you
13015 prep boot partition is on then it'll just work, otherwise at IPL time,
13016 go into the multiboot menu and set the boot device to the one with
13017 your prep boot partition.</li>
13018 <li>That's it!</li>
13019 </ul>
13020
13021 <pre caption = "yaboot.conf for IBM hardware">
13022 device=disk:
13023 partition=2
13024 root=/dev/sda2
13025 default=2.6.12-gentoo-r10
13026 timeout=50
13027
13028 image=/boot/kernel-2.6.12-gentoo-r10
13029 label=Linux
13030 append="console=ttyS0,9600"
13031 read-only
13032 </pre>
13033
13034 <p>
13035 For POWER4, POWER5, and blade-based hardware where the PReP disk partition
13036 and the disk partition that contains your kernel are on the same physical disk,
13037 you can use a simplified yaboot.conf. The following should be sufficient:
13038 </p>
13039
13040 <pre caption="yaboot.conf for PReP hardware">
13041 default = linux
13042 timeout = 100
13043 image=/boot/kernel-2.6.12-gentoo-r10
13044 label=linux
13045 read-only
13046 root = /dev/sda2
13047 append="root=/dev/sda2"
13048 </pre>
13049
13050 <p>
13051 To verify that yaboot has been copied to the PReP partition:
13052 </p>
13053
13054 <pre caption="Verifying the yaboot install on PReP">
13055 # <i>dd if=/dev/sda1 count=10 | grep ELF</i>
13056 Binary file (standard input) matches
13057 10+0 records in
13058 10+0 records out
13059 </pre>
13060
13061 <p>
13062 A match signifies that yaboot was installed correctly.
13063 </p>
13064
13065 </body>
13066 </section>
13067 <section id="reboot">
13068 <title>Rebooting the System</title>
13069 <subsection>
13070 <body>
13071
13072 <p>
13073 Exit the chrooted environment and unmount all mounted partitions. Then type in
13074 that one magical command you have been waiting for: <c>reboot</c>.
13075 </p>
13076
13077 <pre caption="Exiting the chroot, unmounting all partitions and rebooting">
13078 # <i>exit</i>
13079 ~# <i>cd</i>
13080 ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo</i>
13081 ~# <i>reboot</i>
13082 </pre>
13083
13084 <p>
13085 Of course, don't forget to remove the bootable CD, otherwise the CD will be
13086 booted again instead of your new Gentoo system.
13087 </p>
13088
13089 <p>
13090 Once rebooted in your Gentoo installation, finish up with <uri
13091 link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
13092 </p>
13093
13094 </body>
13095 </subsection>
13096 </section>
13097
13098 </sections>
13099
13100
13101
13102 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc64-disk.xml
13103
13104 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc64-disk.xml?rev=1.1&view=markup
13105 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc64-disk.xml?rev=1.1&content-type=text/plain
13106
13107 Index: hb-install-ppc64-disk.xml
13108 ===================================================================
13109 <?xml version='1.0' encoding='UTF-8'?>
13110 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
13111
13112 <!-- The content of this document is licensed under the CC-BY-SA license -->
13113 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
13114
13115 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc64-disk.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
13116
13117 <sections>
13118
13119 <version>6.0</version>
13120 <date>2006-02-27</date>
13121
13122 <section>
13123 <title>Introduction to Block Devices</title>
13124 <subsection>
13125 <title>Block Devices</title>
13126 <body>
13127
13128 <p>
13129 We'll take a good look at disk-oriented aspects of Gentoo Linux
13130 and Linux in general, including Linux filesystems, partitions and block devices.
13131 Then, once you're familiar with the ins and outs of disks and filesystems,
13132 you'll be guided through the process of setting up partitions and filesystems
13133 for your Gentoo Linux installation.
13134 </p>
13135
13136 <p>
13137 To begin, we'll introduce <e>block devices</e>. The most famous block device is
13138 probably the one that represents the first IDE drive in a Linux system, namely
13139 <path>/dev/hda</path>. If your system uses SCSI drives, then your first hard
13140 drive would be <path>/dev/sda</path>. Serial ATA drives are also
13141 <path>/dev/sda</path> even if they are IDE drives.
13142 </p>
13143
13144 <p>
13145 The block devices above represent an abstract interface to the disk. User
13146 programs can use these block devices to interact with your disk without worrying
13147 about whether your drives are IDE, SCSI or something else. The program can
13148 simply address the storage on the disk as a bunch of contiguous,
13149 randomly-accessible 512-byte blocks.
13150 </p>
13151
13152 </body>
13153 </subsection>
13154 <subsection>
13155 <title>Partitions and Slices</title>
13156 <body>
13157
13158 <p>
13159 Although it is theoretically possible to use a full disk to house your Linux
13160 system, this is almost never done in practice. Instead, full disk block devices
13161 are split up in smaller, more manageable block devices. On most systems,
13162 these are called <e>partitions</e>. Other architectures use a similar technique,
13163 called <e>slices</e>.
13164 </p>
13165
13166 </body>
13167 </subsection>
13168 </section>
13169 <section>
13170 <title>Designing a Partitioning Scheme</title>
13171 <subsection>
13172 <title>Default Partitioning Scheme</title>
13173 <body>
13174
13175 <p>
13176 If you are not interested in drawing up a partitioning scheme for your system,
13177 you can use the partitioning scheme we use throughout this book:
13178 </p>
13179
13180 <table>
13181 <tr>
13182 <th>Partition</th>
13183 <th>Filesystem</th>
13184 <th>Size</th>
13185 <th>Description</th>
13186 </tr>
13187 <tr>
13188 <ti><path>/dev/sda1</path></ti>
13189 <ti>Partition map</ti>
13190 <ti>31.5k</ti>
13191 <ti>Partition map</ti>
13192 </tr>
13193 <tr>
13194 <ti><path>/dev/sda2</path></ti>
13195 <ti>(bootstrap)</ti>
13196 <ti>800k</ti>
13197 <ti>Apple_Bootstrap</ti>
13198 </tr>
13199 <tr>
13200 <ti><path>/dev/sda3</path></ti>
13201 <ti>(swap)</ti>
13202 <ti>512M</ti>
13203 <ti>Swap partition</ti>
13204 </tr>
13205 <tr>
13206 <ti><path>/dev/sda4</path></ti>
13207 <ti>ext3</ti>
13208 <ti>Rest of the disk</ti>
13209 <ti>Root partition</ti>
13210 </tr>
13211 </table>
13212
13213 <note>
13214 There are some partitions named like this: <path>Apple_Driver43,
13215 Apple_Driver_ATA, Apple_FWDriver, Apple_Driver_IOKit,
13216 Apple_Patches</path>. If you are not planning to use MacOS 9 you can
13217 delete them, because MacOS X and Linux don't need them.
13218 You might have to use parted in order to delete them, as mac-fdisk can't delete them yet.
13219 </note>
13220
13221 <p>
13222 If you are interested in knowing how big a partition should be, or even how
13223 many partitions you need, read on. Otherwise continue now with
13224 <uri link="#mac-fdisk">Apple G5: Using mac-fdisk to Partition your
13225 Disk</uri> or <uri link="#fdisk">IBM pSeries: using fdisk to Partition
13226 your Disk</uri>
13227 </p>
13228
13229 </body>
13230 </subsection>
13231 <subsection>
13232 <title>How Many and How Big?</title>
13233 <body>
13234
13235 <p>
13236 The number of partitions is highly dependent on your environment. For instance,
13237 if you have lots of users, you will most likely want to have your
13238 <path>/home</path> separate as it increases security and makes backups easier.
13239 If you are installing Gentoo to perform as a mailserver, your
13240 <path>/var</path> should be separate as all mails are stored inside
13241 <path>/var</path>. A good choice of filesystem will then maximise your
13242 performance. Gameservers will have a separate <path>/opt</path> as most gaming
13243 servers are installed there. The reason is similar for <path>/home</path>:
13244 security and backups. You will definitely want to keep <path>/usr</path> big:
13245 not only will it contain the majority of applications, the Portage tree alone
13246 takes around 500 Mbyte excluding the various sources that are stored in it.
13247 </p>
13248
13249 <p>
13250 As you can see, it very much depends on what you want to achieve. Separate
13251 partitions or volumes have the following advantages:
13252 </p>
13253
13254 <ul>
13255 <li>
13256 You can choose the best performing filesystem for each partition or volume
13257 </li>
13258 <li>
13259 Your entire system cannot run out of free space if one defunct tool is
13260 continuously writing files to a partition or volume
13261 </li>
13262 <li>
13263 If necessary, file system checks are reduced in time, as multiple checks can
13264 be done in parallel (although this advantage is more with multiple disks than
13265 it is with multiple partitions)
13266 </li>
13267 <li>
13268 Security can be enhanced by mounting some partitions or volumes read-only,
13269 nosuid (setuid bits are ignored), noexec (executable bits are ignored) etc.
13270 </li>
13271 </ul>
13272
13273 <p>
13274 However, multiple partitions have one big disadvantage: if not configured
13275 properly, you might result in having a system with lots
13276 of free space on one partition and none on another. There is also a 15-partition
13277 limit for SCSI and SATA.
13278 </p>
13279
13280 </body>
13281 </subsection>
13282 </section>
13283 <section id="mac-fdisk">
13284 <title>Default: Using mac-fdisk (Apple G5) Partition your Disk</title>
13285 <body>
13286
13287 <p>
13288 At this point, create your partitions using <c>mac-fdisk</c>:
13289 </p>
13290
13291 <pre caption="Starting mac-fdisk">
13292 # <i>mac-fdisk /dev/sda</i>
13293 </pre>
13294
13295 <p>
13296 First delete the partitions you have cleared previously to make room for your
13297 Linux partitions. Use <c>d</c> in <c>mac-fdisk</c> to delete those partition(s).
13298 It will ask for the partition number to delete.
13299 </p>
13300
13301 <p>
13302 Second, create an <e>Apple_Bootstrap</e> partition by using <c>b</c>. It will
13303 ask for what block you want to start. Enter the number of your first free
13304 partition, followed by a <c>p</c>. For instance this is <c>2p</c>.
13305 </p>
13306
13307 <note>
13308 This partition is <e>not</e> a "boot" partition. It is not used by Linux at all;
13309 you don't have to place any filesystem on it and you should never mount it. PPC
13310 users don't need an extra partition for <path>/boot</path>.
13311 </note>
13312
13313 <p>
13314 Now create a swap partition by pressing <c>c</c>. Again <c>mac-fdisk</c> will
13315 ask for what block you want to start this partition from. As we used <c>2</c>
13316 before to create the Apple_Bootstrap partition, you now have to enter
13317 <c>3p</c>. When you're asked for the size, enter <c>512M</c> (or whatever size
13318 you want). When asked for a name, enter <c>swap</c> (mandatory).
13319 </p>
13320
13321 <p>
13322 To create the root partition, enter <c>c</c>, followed by <c>4p</c> to select
13323 from what block the root partition should start. When asked for the size, enter
13324 <c>4p</c> again. <c>mac-fdisk</c> will interpret this as "Use all available
13325 space". When asked for the name, enter <c>root</c> (mandatory).
13326 </p>
13327
13328 <p>
13329 To finish up, write the partition to the disk using <c>w</c> and <c>q</c> to
13330 quit <c>mac-fdisk</c>.
13331 </p>
13332
13333 <note>
13334 To make sure everything is ok, you should run mac-fdisk once more and check whether all the partitions are there.
13335 If you don't see any of the partitions you created, or the changes you made, you should reinitialize your partitions by pressing "i" in mac-fdisk.
13336 Note that this will recreate the partition map and thus remove all your partitions.
13337 </note>
13338
13339 <p>
13340 Now that your partitions are created, you can now continue with <uri
13341 link="#filesystems">Creating Filesystems</uri>.
13342 </p>
13343
13344 </body>
13345 </section>
13346 <section id="fdisk">
13347 <title>IBM pSeries, iSeries and OpenPower: using fdisk to Partition your Disk</title>
13348 <subsection>
13349 <body>
13350
13351 <note>
13352 If you are planning to use a RAID disk array for your gentoo installation and
13353 you are using POWER5-based hardware, you should now run <c>iprconfig</c> to
13354 format the disks to Advanced Function format and create the disk array. You
13355 should emerge <c>iprutils</c> after your install is complete.
13356 </note>
13357
13358 <p>
13359 If you have an ipr based SCSI adapter, you should start the ipr utilities now.
13360 </p>
13361
13362 <pre caption="Starting ipr utilities">
13363 # <i>/etc/init.d/iprinit start</i>
13364 </pre>
13365
13366 <p>
13367 The following parts explain how to create the example partition layout
13368 described previously, namely:
13369 </p>
13370
13371 <table>
13372 <tr>
13373 <th>Partition</th>
13374 <th>Description</th>
13375 </tr>
13376 <tr>
13377 <ti><path>/dev/sda1</path></ti>
13378 <ti>PPC PReP Boot partition</ti>
13379 </tr>
13380 <tr>
13381 <ti><path>/dev/sda2</path></ti>
13382 <ti>Swap partition</ti>
13383 </tr>
13384 <tr>
13385 <ti><path>/dev/sda3</path></ti>
13386 <ti>Root partition</ti>
13387 </tr>
13388 </table>
13389
13390 <p>
13391 Change your partition layout according to your own preference.
13392 </p>
13393
13394 </body>
13395 </subsection>
13396 <subsection>
13397 <title>Viewing the Current Partition Layout</title>
13398 <body>
13399
13400 <p>
13401 <c>fdisk</c> is a popular and powerful tool to split your disk into
13402 partitions. Fire up <c>fdisk</c> on your disk (in our example, we
13403 use <path>/dev/sda</path>):
13404 </p>
13405
13406 <pre caption="Starting fdisk">
13407 # <i>fdisk /dev/sda</i>
13408 </pre>
13409
13410 <p>
13411 Once in <c>fdisk</c>, you'll be greeted with a prompt that looks like
13412 this:
13413 </p>
13414
13415 <pre caption="fdisk prompt">
13416 Command (m for help):
13417 </pre>
13418
13419 <p>
13420 Type <c>p</c> to display your disk's current partition configuration:
13421 </p>
13422
13423 <pre caption="An example partition configuration">
13424 Command (m for help): p
13425
13426 Disk /dev/sda: 30.7 GB, 30750031872 bytes
13427 141 heads, 63 sectors/track, 6761 cylinders
13428 Units = cylinders of 8883 * 512 = 4548096 bytes
13429
13430 Device Boot Start End Blocks Id System
13431 /dev/sda1 1 12 53266+ 83 Linux
13432 /dev/sda2 13 233 981571+ 82 Linux swap
13433 /dev/sda3 234 674 1958701+ 83 Linux
13434 /dev/sda4 675 6761 27035410+ 5 Extended
13435 /dev/sda5 675 2874 9771268+ 83 Linux
13436 /dev/sda6 2875 2919 199836 83 Linux
13437 /dev/sda7 2920 3008 395262 83 Linux
13438 /dev/sda8 3009 6761 16668918 83 Linux
13439
13440 Command (m for help):
13441 </pre>
13442
13443 <p>
13444 This particular disk is configured to house six Linux filesystems
13445 (each with a corresponding partition listed as "Linux") as well as a
13446 swap partition (listed as "Linux swap").
13447 </p>
13448
13449 </body>
13450 </subsection>
13451 <subsection>
13452 <title>Removing all Partitions</title>
13453 <body>
13454
13455 <p>
13456 We will first remove all existing partitions from the disk. Type
13457 <c>d</c> to delete a partition. For instance, to delete an existing
13458 <path>/dev/sda1</path>:
13459 </p>
13460
13461 <note>
13462 If you don't want to delete all partitions just delete those you
13463 want to delete. At this point the author recommends a backup of your
13464 data to avoid the lose of it.
13465 </note>
13466
13467 <pre caption="Deleting a partition">
13468 Command (m for help): <i>d</i>
13469 Partition number (1-4): <i>1</i>
13470 </pre>
13471
13472 <p>
13473 The partition has been scheduled for deletion. It will no longer show up
13474 if you type <c>p</c>, but it will not be erased until your changes have
13475 been saved. If you made a mistake and want to abort without saving your
13476 changes, type <c>q</c> immediately and hit enter and your partition will
13477 not be deleted.
13478 </p>
13479
13480 <p>
13481 Now, assuming that you do indeed want to wipe out all the partitions on
13482 your system, repeatedly type <c>p</c> to print out a partition listing
13483 and then type <c>d</c> and the number of the partition to delete it.
13484 Eventually, you'll end up with a partition table with nothing in it:
13485 </p>
13486
13487 <pre caption="An empty partition table">
13488 Disk /dev/sda: 30.7 GB, 30750031872 bytes
13489 141 heads, 63 sectors/track, 6761 cylinders
13490 Units = cylinders of 8883 * 512 = 4548096 bytes
13491
13492 Device Boot Start End Blocks Id System
13493
13494 Command (m for help):
13495 </pre>
13496
13497 <p>
13498 Now that the in-memory partition table is empty, we're ready to create
13499 the partitions. We will use a default partitioning scheme as discussed
13500 previously. Of course, don't follow these instructions to the letter if
13501 you don't want the same partitioning scheme!
13502 </p>
13503
13504 </body>
13505 </subsection>
13506 <subsection>
13507 <title>Creating the PPC PReP boot partition</title>
13508 <body>
13509
13510 <p>
13511 We first create a small PReP boot partition. Type <c>n</c> to create a new
13512 partition, then <c>p</c> to select a primary partition, followed by
13513 <c>1</c> to select the first primary partition. When prompted for the
13514 first cylinder, hit enter. When prompted for the last cylinder, type
13515 <c>+7M</c> to create a partition 7 Mbyte in size. After you've done
13516 this, type <c>t</c> to set the partition type, <c>1</c> to select the
13517 partition you just created and then type in <c>41</c> to set the
13518 partition type to "PPC PReP Boot". Finally, you'll need to mark the PReP
13519 partition as bootable.
13520 </p>
13521
13522 <note>
13523 The PReP partition has to be smaller than 8 MByte!
13524 </note>
13525
13526 <pre caption="Creating the PReP boot partition">
13527 Command (m for help): <i>p</i>
13528
13529 Disk /dev/sda: 30.7 GB, 30750031872 bytes
13530 141 heads, 63 sectors/track, 6761 cylinders
13531 Units = cylinders of 8883 * 512 = 4548096 bytes
13532
13533 Device Boot Start End Blocks Id System
13534
13535 Command (m for help): <i>n</i>
13536 Command action
13537 e extended
13538 p primary partition (1-4)
13539 <i>p</i>
13540 Partition number (1-4): <i>1</i>
13541 First cylinder (1-6761, default 1):
13542 Using default value 1
13543 Last cylinder or +size or +sizeM or +sizeK (1-6761, default
13544 6761): <i>+8M</i>
13545
13546 Command (m for help): <i>t</i>
13547 Selected partition 1
13548 Hex code (type L to list codes): <i>41</i>
13549 Changed system type of partition 1 to 41 (PPC PReP Boot)
13550
13551 Command (m for help): <i>a</i>
13552 Partition number (1-4): <i>1</i>
13553 Command (m for help):
13554 </pre>
13555
13556 <p>
13557 Now, when you type <c>p</c>, you should see the following partition information:
13558 </p>
13559
13560 <pre caption="Created boot partition">
13561 Command (m for help): <i>p</i>
13562
13563 Disk /dev/sda: 30.7 GB, 30750031872 bytes
13564 141 heads, 63 sectors/track, 6761 cylinders
13565 Units = cylinders of 8883 * 512 = 4548096 bytes
13566
13567 Device Boot Start End Blocks Id System
13568 /dev/sda1 * 1 3 13293 41 PPC PReP Boot
13569
13570 Command (m for help):
13571 </pre>
13572 </body>
13573 </subsection>
13574 <subsection>
13575 <title>Creating the Swap Partition</title>
13576 <body>
13577
13578 <p>
13579 Let's now create the swap partition. To do this, type <c>n</c> to create
13580 a new partition, then <c>p</c> to tell fdisk that you want a primary
13581 partition. Then type <c>2</c> to create the second primary partition,
13582 <path>/dev/sda2</path> in our case. When prompted for the first
13583 cylinder, hit enter. When prompted for the last cylinder, type
13584 <c>+512M</c> to create a partition 512MB in size. After you've done
13585 this, type <c>t</c> to set the partition type, <c>2</c> to select the
13586 partition you just created and then type in <c>82</c> to set the
13587 partition type to "Linux Swap". After completing these steps, typing
13588 <c>p</c> should display a partition table that looks similar to this:
13589 </p>
13590
13591 <pre caption="Partition listing after creating a swap partition">
13592 Command (m for help): <i>p</i>
13593
13594 Disk /dev/sda: 30.7 GB, 30750031872 bytes
13595 141 heads, 63 sectors/track, 6761 cylinders
13596 Units = cylinders of 8883 * 512 = 4548096 bytes
13597
13598 Device Boot Start End Blocks Id System
13599 /dev/sda1 1 3 13293 41 PPC PReP Boot
13600 /dev/sda2 4 117 506331 82 Linux swap
13601
13602 Command (m for help):
13603 </pre>
13604
13605 </body>
13606 </subsection>
13607 <subsection>
13608 <title>Creating the Root Partition</title>
13609 <body>
13610
13611 <p>
13612 Finally, let's create the root partition. To do this, type <c>n</c> to
13613 create a new partition, then <c>p</c> to tell fdisk that you want a
13614 primary partition. Then type <c>3</c> to create the third primary
13615 partition, <path>/dev/sda3</path> in our case. When prompted for the
13616 first cylinder, hit enter. When prompted for the last cylinder, hit
13617 enter to create a partition that takes up the rest of the remaining
13618 space on your disk. After completing these steps, typing <c>p</c> should
13619 display a partition table that looks similar to this:
13620 </p>
13621
13622 <pre caption="Partition listing after creating the root partition">
13623 Command (m for help): p
13624
13625 Disk /dev/sda: 30.7 GB, 30750031872 bytes
13626 141 heads, 63 sectors/track, 6761 cylinders
13627 Units = cylinders of 8883 * 512 = 4548096 bytes
13628
13629 Device Boot Start End Blocks Id System
13630 /dev/sda1 1 3 13293 41 PPC PReP Boot
13631 /dev/sda2 4 117 506331 82 Linux swap
13632 /dev/sda3 118 6761 29509326 83 Linux
13633
13634 Command (m for help):
13635 </pre>
13636 </body>
13637 </subsection>
13638 <subsection>
13639 <title>Saving the Partition Layout</title>
13640 <body>
13641
13642 <p>
13643 To save the partition layout and exit <c>fdisk</c>, type <c>w</c>.
13644 </p>
13645
13646 <pre caption="Save and exit fdisk">
13647 Command (m for help): <i>w</i>
13648 </pre>
13649
13650 <p>
13651 Now that your partitions are created, you can now continue with <uri
13652 link="#filesystems">Creating Filesystems</uri>.
13653 </p>
13654
13655 </body>
13656 </subsection>
13657 </section>
13658 <section id="filesystems">
13659 <title>Creating Filesystems</title>
13660 <subsection>
13661 <title>Introduction</title>
13662 <body>
13663
13664 <p>
13665 Now that your partitions are created, it is time to place a filesystem on them.
13666 If you don't care about what filesystem to choose and are happy with what we use
13667 as default in this handbook, continue with <uri
13668 link="#filesystems-apply">Applying a Filesystem to a Partition</uri>.
13669 Otherwise read on to learn about the available filesystems...
13670 </p>
13671
13672 </body>
13673 </subsection>
13674 <subsection>
13675 <title>Filesystems?</title>
13676 <body>
13677
13678 <note>
13679 Several filesystems are available. ext2, ext3 and ReiserFS support is built in
13680 the Installation CD kernels. JFS and XFS support is available through kernel
13681 modules.
13682 </note>
13683
13684 <p>
13685 <b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata
13686 journaling, which means that routine ext2 filesystem checks at startup time can
13687 be quite time-consuming. There is now quite a selection of newer-generation
13688 journaled filesystems that can be checked for consistency very quickly and are
13689 thus generally preferred over their non-journaled counterparts. Journaled
13690 filesystems prevent long delays when you boot your system and your filesystem
13691 happens to be in an inconsistent state.
13692 </p>
13693
13694 <p>
13695 <b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata
13696 journaling for fast recovery in addition to other enhanced journaling modes like
13697 full data and ordered data journaling. ext3 is a very good and reliable
13698 filesystem. It has an additional hashed b-tree indexing option that enables
13699 high performance in almost all situations. You can enable this indexing by
13700 adding <c>-O dir_index</c> to the <c>mke2fs</c> command. In short, ext3 is an
13701 excellent filesystem.
13702 </p>
13703
13704 <p>
13705 <b>ReiserFS</b> is a B*-tree based filesystem that has very good overall
13706 performance and greatly outperforms both ext2 and ext3 when dealing with small
13707 files (files less than 4k), often by a factor of 10x-15x. ReiserFS also scales
13708 extremely well and has metadata journaling. As of kernel 2.4.18+, ReiserFS is
13709 solid and usable as both general-purpose filesystem and for extreme cases such
13710 as the creation of large filesystems, the use of many small files, very large
13711 files and directories containing tens of thousands of files.
13712 </p>
13713
13714 <p>
13715 <b>XFS</b> is a filesystem with metadata journaling that is fully supported
13716 under Gentoo Linux's xfs-sources kernel. It comes with a robust feature-set and
13717 is optimized for scalability. We only recommend using this filesystem on Linux
13718 systems with high-end SCSI and/or fibre channel storage and a uninterruptible
13719 power supply. Because XFS aggressively caches in-transit data in RAM, improperly
13720 designed programs (those that don't take proper precautions when writing files
13721 to disk and there are quite a few of them) can lose a good deal of data if the
13722 system goes down unexpectedly.
13723 </p>
13724
13725 <p>
13726 <b>JFS</b> is IBM's high-performance journaling filesystem. It has recently
13727 become production-ready.
13728 </p>
13729
13730 </body>
13731 </subsection>
13732 <subsection id="filesystems-apply">
13733 <title>Applying a Filesystem to a Partition</title>
13734 <body>
13735
13736 <p>
13737 To create a filesystem on a partition or volume, there are tools available for
13738 each possible filesystem:
13739 </p>
13740
13741 <table>
13742 <tr>
13743 <th>Filesystem</th>
13744 <th>Creation Command</th>
13745 </tr>
13746 <tr>
13747 <ti>ext2</ti>
13748 <ti><c>mke2fs</c></ti>
13749 </tr>
13750 <tr>
13751 <ti>ext3</ti>
13752 <ti><c>mke2fs -j</c></ti>
13753 </tr>
13754 <tr>
13755 <ti>reiserfs</ti>
13756 <ti><c>mkreiserfs</c></ti>
13757 </tr>
13758 <tr>
13759 <ti>xfs</ti>
13760 <ti><c>mkfs.xfs</c></ti>
13761 </tr>
13762 <tr>
13763 <ti>jfs</ti>
13764 <ti><c>mkfs.jfs</c></ti>
13765 </tr>
13766 </table>
13767
13768 <p>
13769 For instance, to have the root partition (<path>/dev/sda4</path> in our example)
13770 in ext3 (as in our example), you would use:
13771 </p>
13772
13773 <pre caption="Applying a filesystem on a partition">
13774 # <i>mke2fs -j /dev/sda4</i>
13775 </pre>
13776
13777 <p>
13778 Now create the filesystems on your newly created partitions (or logical
13779 volumes).
13780 </p>
13781
13782 </body>
13783 </subsection>
13784 <subsection>
13785 <title>Activating the Swap Partition</title>
13786 <body>
13787
13788 <p>
13789 <c>mkswap</c> is the command that is used to initialize swap partitions:
13790 </p>
13791
13792 <pre caption="Creating a Swap signature">
13793 # <i>mkswap /dev/sda3</i>
13794 </pre>
13795
13796 <p>
13797 To activate the swap partition, use <c>swapon</c>:
13798 </p>
13799
13800 <pre caption="Activating the swap partition">
13801 # <i>swapon /dev/sda3</i>
13802 </pre>
13803
13804 <p>
13805 Create and activate the swap with the commands mentioned above.
13806 </p>
13807
13808 </body>
13809 </subsection>
13810 </section>
13811 <section>
13812 <title>Mounting</title>
13813 <body>
13814
13815 <p>
13816 Now that your partitions are initialized and are housing a filesystem, it is
13817 time to mount those partitions. Use the <c>mount</c> command. Don't forget to
13818 create the necessary mount directories for every partition you created. As an
13819 example we create a mount-point and mount the root and boot partition:
13820 </p>
13821
13822 <pre caption="Mounting partitions">
13823 # <i>mkdir /mnt/gentoo</i>
13824 # <i>mount /dev/sda4 /mnt/gentoo</i>
13825 </pre>
13826
13827 <note>
13828 If you want your <path>/tmp</path> to reside on a separate partition, be sure to
13829 change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This
13830 also holds for <path>/var/tmp</path>.
13831 </note>
13832
13833 <p>
13834 Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
13835 Installation Files</uri>.
13836 </p>
13837
13838 </body>
13839 </section>
13840 </sections>
13841
13842
13843
13844 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc64-kernel.xml
13845
13846 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc64-kernel.xml?rev=1.1&view=markup
13847 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc64-kernel.xml?rev=1.1&content-type=text/plain
13848
13849 Index: hb-install-ppc64-kernel.xml
13850 ===================================================================
13851 <?xml version='1.0' encoding='UTF-8'?>
13852 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
13853
13854 <!-- The content of this document is licensed under the CC-BY-SA license -->
13855 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
13856
13857 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc64-kernel.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
13858
13859 <sections>
13860
13861 <version>6.1</version>
13862 <date>2006-07-18</date>
13863
13864 <section>
13865 <title>Timezone</title>
13866 <body>
13867
13868 <p>
13869 You first need to select your timezone so that your system knows where it is
13870 located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy
13871 it to <path>/etc/localtime</path>. Please avoid the
13872 <path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not
13873 indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8.
13874 </p>
13875
13876 <pre caption="Setting the timezone information">
13877 # <i>ls /usr/share/zoneinfo</i>
13878 <comment>(Suppose you want to use GMT)</comment>
13879 # <i>cp /usr/share/zoneinfo/GMT /etc/localtime</i>
13880 </pre>
13881
13882 </body>
13883 </section>
13884 <section>
13885 <title>Installing the Sources</title>
13886 <subsection>
13887 <title>Choosing a Kernel</title>
13888 <body>
13889
13890 <p>
13891 The core around which all distributions are built is the Linux kernel.
13892 It is the layer between the user programs and your system hardware.
13893 Gentoo provides its users several possible kernel sources. A full
13894 listing with description is available at the <uri
13895 link="/doc/en/gentoo-kernel.xml">Gentoo Kernel Guide</uri>.
13896 </p>
13897
13898 <p>
13899 For PPC64 you should use <c>gentoo-sources</c>. So let's continue with
13900 <c>emerge</c>'ing the kernel sources. The <c>USE="-doc"</c> is necessary to
13901 avoid installing xorg-x11 or other dependencies at this point.
13902 <c>USE="symlink"</c> is not necessary for a new install, but ensures proper
13903 creation of the <path>/usr/src/linux</path> symlink.
13904 </p>
13905
13906 <pre caption="Installing a kernel source">
13907 # <i>USE="-doc symlink" emerge gentoo-sources</i>
13908 </pre>
13909
13910 <p>
13911 When you take a look in <path>/usr/src</path> you should see a symlink called
13912 <path>linux</path> pointing to your kernel source. In this case, the installed
13913 kernel source points to <c>gentoo-sources-2.6.12-r10</c>. Your version may be
13914 different, so keep this in mind.
13915 </p>
13916
13917 <pre caption="Viewing the kernel source symlink">
13918 # <i>ls -l /usr/src/linux</i>
13919 lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-2.6.12-gentoo-r10
13920 </pre>
13921
13922 <p>
13923 Now it is time to configure and compile your kernel source. There is the
13924 ability to use "genkernel" which would create a generic kernel like the
13925 ones used on the installation CDs, but it is not fully functional for PPC64 at
13926 the moment.
13927 </p>
13928
13929 <p>
13930 Continue now with <uri link="#manual">Manual Configuration</uri>.
13931 </p>
13932
13933 </body>
13934 </subsection>
13935 </section>
13936 <section id="manual">
13937 <title>Manual Configuration</title>
13938 <subsection>
13939 <title>Introduction</title>
13940 <body>
13941
13942 <p>
13943 Manually configuring a kernel is often seen as the most difficult procedure a
13944 Linux user ever has to perform. Nothing is less true -- after configuring a
13945 couple of kernels you don't even remember that it was difficult ;)
13946 </p>
13947
13948 <p>
13949 However, one thing <e>is</e> true: you must know your system when you
13950 configuring a kernel manually. Most information can be gathered by emerging
13951 pciutils (<c>emerge pciutils</c>) which contains <c>lspci</c>. You will now
13952 be able to use <c>lspci</c> within the chrooted environment. You may safely
13953 ignore any <e>pcilib</e> warnings (like pcilib: cannot open
13954 /sys/bus/pci/devices) that <c>lspci</c> throws out. Alternatively, you can run
13955 <c>lspci</c> from a <e>non-chrooted</e> environment. The results are the same.
13956 You can also run <c>lsmod</c> to see what kernel modules the Installation CD
13957 uses (it might provide you with a nice hint on what to enable).
13958 </p>
13959
13960 <pre caption="Invoking menuconfig">
13961 # <i>cd /usr/src/linux</i>
13962 <comment>Important: In case you are in 32-bit userland, you must edit the top
13963 level Makefile in /usr/src/linux and change the CROSS_COMPILE option to
13964 CROSS_COMPILE ?= powerpc64-unknown-linux-gnu-. You must do this before you run
13965 make menuconfig or it may result in kernel compilation problems.</comment>
13966 # <i>make menuconfig</i>
13967 </pre>
13968
13969 <p>
13970 You will be greeted with several configuration sections. We'll first
13971 list some options you must activate (otherwise Gentoo will not function,
13972 or not function properly without additional tweaks).
13973 </p>
13974
13975 </body>
13976 </subsection>
13977 <subsection>
13978 <title>Activating Required Options</title>
13979 <body>
13980
13981 <p>
13982 First of all, activate the use of development and experimental
13983 code/drivers. You need this, otherwise some very important code/drivers
13984 won't show up:
13985 </p>
13986
13987 <pre caption="Selecting experimental code/drivers, General setup">
13988 Code maturity level options ---&gt;
13989 [*] Prompt for development and/or incomplete code/drivers
13990 General setup --->
13991 [*] Support for hot-pluggable devices
13992 </pre>
13993
13994 <p>
13995 Now go to <c>File Systems</c> and select support for the filesystems you
13996 use. <e>Don't</e> compile them as modules, otherwise your Gentoo system
13997 will not be able to mount your partitions. Also select <c>Virtual
13998 memory</c>, <c>/proc file system</c>, and <c>/dev/pts file system for
13999 Unix98 PTYs</c>:
14000 </p>
14001
14002 <pre caption="Selecting necessary file systems">
14003 File systems ---&gt;
14004 [*] Virtual memory file system support (former shm fs)
14005 [*] /proc file system support
14006 [*] /dev/pts file system for Unix98 PTYs
14007
14008 <comment>(Select one or more of the following options as needed by your system)</comment>
14009 &lt;*&gt; Reiserfs support
14010 &lt;*&gt; Ext3 journalling file system support
14011 &lt;*&gt; JFS filesystem support
14012 &lt;*&gt; Second extended fs support
14013 &lt;*&gt; XFS filesystem support
14014 </pre>
14015
14016 <note>
14017 You will find some of the mentioned options under <c>Pseudo
14018 filesystems</c> which is a subpart of <c>File systems</c>.
14019 </note>
14020
14021 <p>
14022 If you are using PPPoE to connect to the Internet or you are using a
14023 dial-up modem, you will need the following options in the kernel (you
14024 will find the mentioned options under <c>Networking support</c> which is
14025 a subpart of <c>Device Drivers</c>):
14026 </p>
14027
14028 <pre caption="Selecting PPPoE necessary drivers">
14029 Network device support ---&gt;
14030 &lt;*&gt; PPP (point-to-point protocol) support
14031 &lt;*&gt; PPP support for async serial ports
14032 &lt;*&gt; PPP support for sync tty ports
14033 </pre>
14034
14035 <p>
14036 The two compression options won't harm but are not definitely needed, neither
14037 does the <c>PPP over Ethernet</c> option, that might only be used by
14038 <c>rp-pppoe</c> when configured to do kernel mode PPPoE.
14039 </p>
14040
14041 <p>
14042 If you require it, don't forget to include support in the kernel for your
14043 ethernet card.
14044 </p>
14045
14046 <p>
14047 Disable ADB raw keycodes:
14048 </p>
14049
14050 <pre caption="Disabling ADB raw keycodes">
14051 Macintosh Device Drivers ---&gt;
14052 [ ] Support for ADB raw keycodes
14053 </pre>
14054
14055 <p>
14056 When you're done configuring your kernel, continue with <uri
14057 link="#compiling">Compiling and Installing</uri>.
14058 </p>
14059
14060 </body>
14061 </subsection>
14062 <subsection id="compiling">
14063 <title>Compiling and Installing</title>
14064 <body>
14065
14066 <p>
14067 Now that your kernel is configured, it is time to compile and install it. Exit
14068 the configuration and start the compilation process:
14069 </p>
14070
14071 <pre caption="Compiling the kernel">
14072 # <i>make vmlinux &amp;&amp; make modules_install</i>
14073 </pre>
14074
14075 <p>
14076 When the kernel has finished compiling, copy the kernel image to
14077 <path>/boot</path>. Remember to replace <path>&lt;kernel-version&gt;</path>
14078 with your actual kernel version:
14079 </p>
14080
14081 <pre caption="Installing the kernel">
14082 # <i>cp vmlinux /boot/&lt;kernel-version&gt;</i>
14083 </pre>
14084
14085 <p>
14086 Now continue with <uri link="#kernel_modules">Configuring the Modules</uri>.
14087 </p>
14088
14089 </body>
14090 </subsection>
14091 </section>
14092 <section id="kernel_modules">
14093 <title>Configuring the Modules</title>
14094 <body>
14095
14096 <p>
14097 You should list the modules you want automatically loaded in
14098 <path>/etc/modules.autoload.d/kernel-2.6</path>. You can add extra
14099 options to the modules too if you want.
14100 </p>
14101
14102 <p>
14103 To view all available modules, run the following <c>find</c> command. Don't
14104 forget to substitute "&lt;kernel version&gt;" with the version of the kernel you
14105 just compiled:
14106 </p>
14107
14108 <pre caption="Viewing all available modules">
14109 # <i>find /lib/modules/&lt;kernel version&gt;/ -type f -iname '*.o' -or -iname '*.ko'</i>
14110 </pre>
14111
14112 <p>
14113 For instance, to automatically load the <c>3c59x.o</c> module, edit the
14114 <path>kernel-2.6</path> file and enter the module name in it.
14115 </p>
14116
14117 <pre caption="Editing /etc/modules.autoload.d/kernel-2.6">
14118 # <i>nano -w /etc/modules.autoload.d/kernel-2.6</i>
14119 </pre>
14120
14121 <pre caption="/etc/modules.autoload.d/kernel-2.6">
14122 3c59x
14123 </pre>
14124
14125 <p>
14126 Continue the installation with <uri link="?part=1&amp;chap=8">Configuring
14127 your System</uri>.
14128 </p>
14129
14130 </body>
14131 </section>
14132 </sections>
14133
14134
14135
14136 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc64-medium.xml
14137
14138 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc64-medium.xml?rev=1.1&view=markup
14139 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc64-medium.xml?rev=1.1&content-type=text/plain
14140
14141 Index: hb-install-ppc64-medium.xml
14142 ===================================================================
14143 <?xml version='1.0' encoding='UTF-8'?>
14144 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
14145
14146 <!-- The content of this document is licensed under the CC-BY-SA license -->
14147 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
14148
14149 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-ppc64-medium.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
14150
14151 <sections>
14152
14153 <version>6.0</version>
14154 <date>2006-02-27</date>
14155
14156 <section>
14157 <title>Hardware Requirements</title>
14158 <subsection>
14159 <title>Introduction</title>
14160 <body>
14161
14162 <p>
14163 Before we start, we first list what hardware requirements you need to
14164 successfully install Gentoo on your box.
14165 </p>
14166
14167 </body>
14168 </subsection>
14169 <subsection>
14170 <title>Hardware Requirements</title>
14171 <body>
14172
14173 <table>
14174 <tr>
14175 <th>CPU</th>
14176 <ti>Any PowerPC64 CPU</ti>
14177 </tr>
14178 <tr>
14179 <th>Systems</th>
14180 <ti>
14181 IBM RS/6000s, Power Macintosh G5, iMac G5, IBP pSeries and IBM OpenPower
14182 </ti>
14183 </tr>
14184 <tr>
14185 <th>Memory</th>
14186 <ti>64 MB</ti>
14187 </tr>
14188 <tr>
14189 <th>Diskspace</th>
14190 <ti>1.5 GB (excluding swap space)</ti>
14191 </tr>
14192 <tr>
14193 <th>Swap space</th>
14194 <ti>At least 256 MB</ti>
14195 </tr>
14196 </table>
14197
14198 <p>
14199 For a full list of supported systems, please go to
14200 <uri>http://www.linuxppc64.org/hardware.shtml</uri>.
14201 </p>
14202
14203 </body>
14204 </subsection>
14205 </section>
14206 <!-- Copy/paste from hb-install-x86-medium.xml, with s/x86/ppc64/ -->
14207 <!-- START -->
14208 <section>
14209 <title>The Gentoo Universal Installation CD</title>
14210 <subsection>
14211 <title>Introduction</title>
14212 <body>
14213
14214 <p>
14215 Gentoo Linux can be installed using a <e>stage3</e> tarball file.
14216 Such a tarball is an archive that contains a minimal environment from
14217 which you can succesfully install Gentoo Linux onto your system.
14218 </p>
14219
14220 <p>
14221 Installations using a stage1 or stage2 tarball file are not documented in the
14222 Gentoo Handbook - please read the <uri link="/doc/en/faq.xml#stage12">Gentoo
14223 FAQ</uri> on these matters.
14224 </p>
14225
14226 </body>
14227 </subsection>
14228 <subsection>
14229 <title>Gentoo Universal Installation CD</title>
14230 <body>
14231
14232 <p>
14233 An Installation CD is a bootable medium which contains a self-sustained Gentoo
14234 environment. It allows you to boot Linux from the CD. During the boot process
14235 your hardware is detected and the appropriate drivers are loaded. The Gentoo
14236 Installation CDs are maintained by Gentoo developers.
14237 </p>
14238
14239 <p>
14240 There currently are two Installation CDs available:
14241 </p>
14242
14243 <ul>
14244 <li>
14245 The Universal Installation CD contains everything you need to install
14246 Gentoo. It provides stage3 files for common architectures, source code
14247 for the extra applications you need to choose from and, of course, the
14248 installation instructions for your architecture.
14249 </li>
14250 <li>
14251 The Minimal Installation CD contains only a minimal environment that allows
14252 you to boot up and configure your network so you can connect to the
14253 Internet. It does not contain any additional files and cannot be used
14254 during the current installation approach.
14255 </li>
14256 </ul>
14257
14258 <p>
14259 Gentoo also provides a Package CD. This is not an Installation CD but an
14260 additional resource that you can exploit during the installation of your Gentoo
14261 system. It contains prebuilt packages (also known as the GRP set) that allow
14262 you to easily and quickly install additional applications immediately after the
14263 Gentoo installation and right before you update your Portage tree.
14264 </p>
14265
14266 <p>
14267 The use of the Package CD is covered later in this document.
14268 </p>
14269
14270 </body>
14271 </subsection>
14272 </section>
14273 <!-- STOP -->
14274 <section>
14275 <title>Download, Burn and Boot a Gentoo Installation CD</title>
14276 <subsection>
14277 <title>Downloading and Burning the Installation CDs</title>
14278 <body>
14279
14280 <p>
14281 You can download the Universal Installation CD (and, if you want to, the
14282 Packages CD as well) from one of our <uri
14283 link="/main/en/mirrors.xml">mirrors</uri>. The Installation CDs are located
14284 in the <path>releases/ppc/2006.1/ppc64/installcd</path> directory; the Package
14285 CDs are located in the <path>releases/ppc/2006.1/ppc64/packagecd</path>
14286 directory.
14287 </p>
14288
14289 <p>
14290 Inside those directories you'll find ISO-files. Those are full CD images which
14291 you can write on a CD-R.
14292 </p>
14293
14294 <p>
14295 After downloading the file, you can verify its integrity to see if it is
14296 corrupted or not:
14297 </p>
14298
14299 <ul>
14300 <li>
14301 You can check its MD5 checksum and compare it with the MD5 checksum we
14302 provide (for instance with the <c>md5sum</c> tool under Linux/Unix or
14303 <uri link="http://www.etree.org/md5com.html">md5sum</uri> for Windows). How
14304 to verify MD5 checksums with Mac OS X is described in the <uri
14305 link="/doc/en/gentoo-ppc-faq.xml#doc_chap1">Gentoo PPC FAQ</uri>.
14306 </li>
14307 <li>
14308 You can verify the cryptographic signature that we provide. You need to
14309 obtain the public key we use (0x17072058) before you proceed though.
14310 </li>
14311 </ul>
14312
14313 <p>
14314 To fetch our public key using the GnuPG application, run the following command:
14315 </p>
14316
14317 <pre caption="Obtaining the public key">
14318 $ <i>gpg --keyserver subkeys.pgp.net --recv-keys 0x17072058</i>
14319 </pre>
14320
14321 <p>
14322 Now verify the signature:
14323 </p>
14324
14325 <pre caption="Verify the cryptographic signature">
14326 $ <i>gpg --verify &lt;signature file&gt; &lt;downloaded iso&gt;</i>
14327 </pre>
14328
14329 <p>
14330 To burn the downloaded ISO(s), you have to select raw-burning. How you
14331 do this is highly program-dependent. We will discuss <c>cdrecord</c> and
14332 <c>K3B</c> here; more information can be found in our <uri
14333 link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>.
14334 </p>
14335
14336 <ul>
14337 <li>
14338 With cdrecord, you simply type <c>cdrecord dev=/dev/hdc &lt;downloaded iso
14339 file&gt;</c> (replace <path>/dev/hdc</path> with your CD-RW drive's device
14340 path).
14341 </li>
14342 <li>
14343 With K3B, select <c>Tools</c> &gt; <c>CD</c> &gt; <c>Burn Image</c>. Then
14344 you can locate your ISO file within the 'Image to Burn' area. Finally click
14345 <c>Start</c>.
14346 </li>
14347 </ul>
14348
14349 </body>
14350 </subsection>
14351 <subsection>
14352 <title>Booting the Installation CD on an Apple</title>
14353 <body>
14354
14355 <p>
14356 Please check the <path>README.kernel</path> on the Installation CD for the
14357 latest information on how to boot various kernels and getting hardware support.
14358 </p>
14359
14360 <p>
14361 Place the Installation CD in the CD-ROM and reboot the system. Hold down the
14362 'C' key at bootup. You will be greeted by a friendly welcome message and a
14363 <e>boot:</e> prompt at the bottom of the screen.
14364 </p>
14365
14366 <p>
14367 You are also able to tweak some kernel options at this prompt. The following
14368 table lists the available boot options you can add:
14369 </p>
14370
14371 <table>
14372 <tr>
14373 <th>Boot Option</th>
14374 <th>Description</th>
14375 </tr>
14376 <tr>
14377 <ti><c>video</c></ti>
14378 <ti>
14379 This option takes one of the following vendor-specific tags:
14380 <c>radeonfb</c>, <c>rivafb</c>, <c>atyfb</c>, <c>aty128</c> or
14381 <c>ofonly</c>. You can follow this tag with the resolution and refreshrate
14382 you want to use. For instance <c>video=radeonfb:1280x1024@75</c>. If you are
14383 uncertain what to choose, <c>ofonly</c> will most certainly work.
14384 </ti>
14385 </tr>
14386 <tr>
14387 <ti><c>nol3</c></ti>
14388 <ti>
14389 Disables level 3 cache on some powerbooks (needed for at least the 17'')
14390 </ti>
14391 </tr>
14392 <tr>
14393 <ti><c>debug</c></ti>
14394 <ti>
14395 Enables verbose booting, spawns an initrd shell that can be used to debug
14396 the Installation CD
14397 </ti>
14398 </tr>
14399 <tr>
14400 <ti><c>sleep=X</c></ti>
14401 <ti>
14402 Wait X seconds before continuing; this can be needed by some very old SCSI
14403 CD-ROMs which don't speed up the CD quick enough
14404 </ti>
14405 </tr>
14406 <tr>
14407 <ti><c>bootfrom=X</c></ti>
14408 <ti>
14409 Boot from a different device
14410 </ti>
14411 </tr>
14412 </table>
14413
14414 <p>
14415 At this prompt, hit enter, and a complete Gentoo Linux environment will be
14416 loaded from the CD. Continue with <uri link="#booted">And When You're
14417 Booted...</uri>.
14418 </p>
14419
14420 </body>
14421 </subsection>
14422 <subsection>
14423 <title>Booting the Installation CD on an IBM pSeries, OpenPower and Power5
14424 iSeries servers</title>
14425 <body>
14426
14427 <p>
14428 Please check the <path>README.kernel</path> on the Installation CD for the
14429 latest information on how to boot various kernels and getting hardware support.
14430 </p>
14431
14432 <p>
14433 Most modern pSeries servers can boot from the CDROM drive through SMS ('1' when
14434 the “IBM IBM IBM” messages flash across the console). On some older pSeries
14435 boxes, sometimes the cds might not autoboot. You might have to set up your
14436 cdrom as a bootable device in the multi-boot menu. (F1 at startup) The other
14437 option is to jump into OF and do it from there:
14438 </p>
14439
14440 <ol>
14441 <li>
14442 Boot into OF (this is 8 from the serial cons or F8 from a graphics
14443 cons, start hitting the key when you see the keyboard mouse etc etc
14444 messages.
14445 </li>
14446 <li>Run the command 0> boot cdrom:1,yaboot</li>
14447 <li>Stand back and enjoy!</li>
14448 </ol>
14449
14450 </body>
14451 </subsection>
14452 <subsection id="booted">
14453 <title>And When You're Booted...</title>
14454 <body>
14455
14456 <p>
14457 You will be greeted by a root ("#") prompt on the current console. You can also
14458 switch to other consoles by pressing Alt-fn-F2, Alt-fn-F3 and Alt-fn-F4. Get
14459 back to the one you started on by pressing Alt-fn-F1.
14460 </p>
14461
14462 <p>
14463 If you are installing Gentoo on a system with a non-US keyboard, use
14464 <c>loadkeys</c> to load the keymap for your keyboard. To list the available
14465 keymaps, execute <c>ls /usr/share/keymaps/i386</c>.
14466 </p>
14467
14468 <pre caption="Listing available keymaps">
14469 <comment>(PPC uses x86 keymaps on most systems. The mac/ppc keymaps provided
14470 on the Installation CD are ADB keymaps and unusable with the
14471 Installation CD kernel)</comment>
14472 # <i>ls /usr/share/keymaps/i386</i>
14473 </pre>
14474
14475 <p>
14476 Now load the keymap of your choice:
14477 </p>
14478
14479 <pre caption="Loading a keymap">
14480 # <i>loadkeys be-latin1</i>
14481 </pre>
14482
14483 <p>
14484 Now continue with <uri link="#hardware">Extra Hardware Configuration</uri>.
14485 </p>
14486
14487 </body>
14488 </subsection>
14489 <subsection id="hardware">
14490 <title>Extra Hardware Configuration</title>
14491 <body>
14492
14493 <p>
14494 When the Installation CD boots, it tries to detect all your hardware devices and
14495 loads the appropriate kernel modules to support your hardware. In the
14496 vast majority of cases, it does a very good job. However, in some cases it may
14497 not auto-load the kernel
14498 modules you need. If the PCI auto-detection missed some of your system's
14499 hardware, you will have to load the appropriate kernel modules manually.
14500 </p>
14501
14502 <p>
14503 In the next example we try to load the <c>8139too</c> module (support for
14504 certain kinds of network interfaces):
14505 </p>
14506
14507 <pre caption="Loading kernel modules">
14508 # <i>modprobe 8139too</i>
14509 </pre>
14510
14511 </body>
14512 </subsection>
14513 <subsection>
14514 <title>Optional: Tweaking Hard Disk Performance</title>
14515 <body>
14516
14517 <p>
14518 If you are an advanced user, you might want to tweak the IDE hard disk
14519 performance using <c>hdparm</c>. With the <c>-tT</c> options you can
14520 test the performance of your disk (execute it several times to get a
14521 more precise impression):
14522 </p>
14523
14524 <pre caption="Testing disk performance">
14525 # <i>hdparm -tT /dev/hda</i>
14526 </pre>
14527
14528 <p>
14529 To tweak, you can use any of the following examples (or experiment
14530 yourself) which use <path>/dev/hda</path> as disk (substitute with your
14531 disk):
14532 </p>
14533
14534 <pre caption="Tweaking hard disk performance">
14535 <comment>Activate DMA:</comment> # <i>hdparm -d 1 /dev/hda</i>
14536 <comment>Activate DMA + Safe Performance-enhancing Options:</comment> # <i>hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda</i>
14537 </pre>
14538
14539 </body>
14540 </subsection>
14541 <subsection id="useraccounts">
14542 <title>Optional: User Accounts</title>
14543 <body>
14544
14545 <p>
14546 If you plan on giving other people access to your installation
14547 environment or you want to chat using <c>irssi</c> without root privileges (for
14548 security reasons), you need to create the necessary user accounts and change
14549 the root password.
14550 </p>
14551
14552 <p>
14553 To change the root password, use the <c>passwd</c> utility:
14554 </p>
14555
14556 <pre caption="Changing the root password">
14557 # <i>passwd</i>
14558 New password: <comment>(Enter your new password)</comment>
14559 Re-enter password: <comment>(Re-enter your password)</comment>
14560 </pre>
14561
14562 <p>
14563 To create a user account, we first enter their credentials, followed by
14564 its password. We use <c>useradd</c> and <c>passwd</c> for these tasks.
14565 In the next example, we create a user called &quot;john&quot;.
14566 </p>
14567
14568 <pre caption="Creating a user account">
14569 # <i>useradd -m -G users john</i>
14570 # <i>passwd john</i>
14571 New password: <comment>(Enter john's password)</comment>
14572 Re-enter password: <comment>(Re-enter john's password)</comment>
14573 </pre>
14574
14575 <p>
14576 You can change your user id from root to the newly created user by using
14577 <c>su</c>:
14578 </p>
14579
14580 <pre caption="Changing user id">
14581 # <i>su - john</i>
14582 </pre>
14583
14584 </body>
14585 </subsection>
14586 <subsection>
14587 <title>Optional: Viewing Documentation while Installing</title>
14588 <body>
14589
14590 <p>
14591 If you want to view the Gentoo Handbook during the installation, make sure you
14592 have created a user account (see <uri link="#useraccounts">Optional: User
14593 Accounts</uri>). Then press <c>Alt-F2</c> to go to a new terminal and log in.
14594 </p>
14595
14596 <p>
14597 If you want to view the documentation on the CD you can immediately run
14598 <c>links</c> to read it:
14599 </p>
14600
14601 <pre caption="Viewing the on-CD documentation">
14602 # <i>links /mnt/cdrom/docs/handbook/html/index.html</i>
14603 </pre>
14604
14605 <p>
14606 However, it is preferred that you use the online Gentoo Handbook as it will be
14607 more recent than the one provided on the CD.
14608 </p>
14609
14610 <pre caption="Viewing the Online Documentation">
14611 # <i>links http://www.gentoo.org/doc/en/handbook/handbook-ppc64.xml</i>
14612 </pre>
14613
14614 <p>
14615 You can go back to your original terminal by pressing <c>Alt-F1</c>.
14616 </p>
14617
14618 </body>
14619 </subsection>
14620 <subsection>
14621 <title>Optional: Starting the SSH Daemon</title>
14622 <body>
14623
14624 <p>
14625 If you want to allow other users to access your computer during the
14626 Gentoo installation (perhaps because those users are going to help you
14627 install Gentoo, or even do it for you), you need to create a user
14628 account for them and perhaps even provide them with your root password
14629 (<e>only</e> do that <e>if</e> you <b>fully trust</b> that user).
14630 </p>
14631
14632 <p>
14633 To fire up the SSH daemon, execute the following command:
14634 </p>
14635
14636 <pre caption="Starting the SSH daemon">
14637 # <i>/etc/init.d/sshd start</i>
14638 </pre>
14639
14640 <p>
14641 To be able to use sshd, you first need to set up your networking. Continue with
14642 the chapter on <uri link="?part=1&amp;chap=3">Configuring your Network</uri>.
14643 </p>
14644
14645 </body>
14646 </subsection>
14647 </section>
14648 </sections>
14649
14650
14651
14652 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-sparc-bootloader.xml
14653
14654 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-sparc-bootloader.xml?rev=1.1&view=markup
14655 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-sparc-bootloader.xml?rev=1.1&content-type=text/plain
14656
14657 Index: hb-install-sparc-bootloader.xml
14658 ===================================================================
14659 <?xml version='1.0' encoding='UTF-8'?>
14660 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
14661
14662 <!-- The content of this document is licensed under the CC-BY-SA license -->
14663 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
14664
14665 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-sparc-bootloader.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
14666
14667 <sections>
14668
14669 <version>6.0</version>
14670 <date>2006-02-27</date>
14671
14672 <section>
14673 <title>Making your Choice</title>
14674 <subsection>
14675 <title>Introduction</title>
14676 <body>
14677
14678 <p>
14679 Now that your kernel is configured and compiled and the necessary system
14680 configuration files are filled in correctly, it is time to install a
14681 program that will fire up your kernel when you start the system. Such a
14682 program is called a <e>bootloader</e>.
14683 </p>
14684
14685 </body>
14686 </subsection>
14687 </section>
14688 <section>
14689 <title>Installing the SPARC Bootloader: SILO</title>
14690 <body>
14691
14692 <p>
14693 It is now time to install and configure <uri
14694 link="http://www.sparc-boot.org">SILO</uri>, the Sparc Improved boot
14695 LOader.
14696 </p>
14697
14698 <pre caption = "Installing SILO">
14699 # <i>emerge silo</i>
14700 </pre>
14701
14702 <p>
14703 Now open up your favorite editor (we use <c>nano</c> as an example) and
14704 create <path>/etc/silo.conf</path>.
14705 </p>
14706
14707 <pre caption = "Creating /etc/silo.conf">
14708 # <i>nano -w /etc/silo.conf</i>
14709 </pre>
14710
14711 <p>
14712 Below you'll find an example <path>silo.conf</path> file. It uses the
14713 partitioning scheme we use throughout this book and
14714 <path>kernel-2.4.31</path> as kernelimage.
14715 </p>
14716
14717 <pre caption = "Example /etc/silo.conf">
14718 partition = 1 <comment># Boot partition (= root partition)</comment>
14719 root = /dev/sda1 <comment># Root partition</comment>
14720 timeout = 150 <comment># Wait 15 seconds before booting the default section</comment>
14721
14722 image = /boot/kernel-2.4.31
14723 label = linux
14724 </pre>
14725
14726 <p>
14727 If you use the example <path>silo.conf</path> delivered by Portage, be
14728 sure to comment out <e>all</e> lines that you do not need.
14729 </p>
14730
14731 <p>
14732 If the physical disk on which you want to install SILO (as bootloader) differs
14733 from the physical disk on which <path>/etc/silo.conf</path> resides, you must
14734 copy over <path>/etc/silo.conf</path> to a partition on that disk. Assuming that
14735 <path>/boot</path> is a separate partition on that disk, copy over the
14736 configuration file to <path>/boot</path> and run <c>/sbin/silo</c>:
14737 </p>
14738
14739 <pre caption = "Only if /boot and the SILO destination are not on the same disk">
14740 # <i>cp /etc/silo.conf /boot</i>
14741 # <i>/sbin/silo -C /boot/silo.conf</i>
14742 /boot/silo.conf appears to be valid
14743 </pre>
14744
14745 <p>
14746 Otherwise just run <c>/sbin/silo</c>:
14747 </p>
14748
14749 <pre caption = "Run silo">
14750 # <i>/sbin/silo</i>
14751 /etc/silo.conf appears to be valid
14752 </pre>
14753
14754 <p>
14755 Now continue with <uri link="#reboot">Rebooting the System</uri>.
14756 </p>
14757
14758 </body>
14759 </section>
14760 <section id="reboot">
14761 <title>Rebooting the System</title>
14762 <subsection>
14763 <body>
14764
14765 <p>
14766 Exit the chrooted environment and unmount all mounted partitions. Then type in
14767 that one magical command you have been waiting for: <c>reboot</c>.
14768 </p>
14769
14770 <pre caption="Exiting the chroot, unmounting all partitions and rebooting">
14771 # <i>exit</i>
14772 cdimage ~# <i>cd</i>
14773 cdimage ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo</i>
14774 cdimage ~# <i>reboot</i>
14775 </pre>
14776
14777 <p>
14778 Of course, don't forget to remove the bootable CD, otherwise the CD will be
14779 booted again instead of your new Gentoo system.
14780 </p>
14781
14782 <p>
14783 Once rebooted in your Gentoo installation, finish up with <uri
14784 link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
14785 </p>
14786
14787 </body>
14788 </subsection>
14789 </section>
14790 </sections>
14791
14792
14793
14794 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-sparc-disk.xml
14795
14796 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-sparc-disk.xml?rev=1.1&view=markup
14797 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-sparc-disk.xml?rev=1.1&content-type=text/plain
14798
14799 Index: hb-install-sparc-disk.xml
14800 ===================================================================
14801 <?xml version='1.0' encoding='UTF-8'?>
14802 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
14803
14804 <!-- The content of this document is licensed under the CC-BY-SA license -->
14805 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
14806
14807 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-sparc-disk.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
14808
14809 <sections>
14810
14811 <version>6.0</version>
14812 <date>2006-02-27</date>
14813
14814 <section>
14815 <title>Introduction to Block Devices</title>
14816 <subsection>
14817 <title>Block Devices</title>
14818 <body>
14819
14820 <p>
14821 We'll take a good look at some of the disk-oriented aspects of Gentoo Linux
14822 and Linux in general, including Linux filesystems, partitions, and block
14823 devices. Then, once you're familiar with the ins and outs of disks and
14824 filesystems, you'll be guided through the process of setting up partitions
14825 and filesystems for your Gentoo Linux installation.
14826 </p>
14827
14828 <p>
14829 To begin, we introduce <e>block devices</e>. The most typical block device is
14830 probably the one that represents the first SCSI hard disk in a Linux system,
14831 namely <path>/dev/sda</path>.
14832 </p>
14833
14834 <p>
14835 Block devices represent an abstract interface to the disk. User programs can
14836 use these block devices to interact with your disk without worrying about
14837 whether your drives are IDE, SCSI, or something else. The program can simply
14838 address the storage on the disk as a bunch of contiguous, randomly-accessible
14839 512-byte blocks.
14840 </p>
14841
14842 <p>
14843 Block devices show up as entries in <path>/dev/</path>. Typically, the first
14844 SCSI drive is named <path>/dev/sda</path>, the second <path>/dev/sdb</path>,
14845 and so on. IDE drives are named similarly, however, they are prefixed by hd-
14846 instead of sd-. If you are using IDE drives, the first one will be named
14847 <path>/dev/hda</path>, the second <path>/dev/hdb</path>, and so on.
14848 </p>
14849
14850 </body>
14851 </subsection>
14852 <subsection>
14853 <title>Partitions</title>
14854 <body>
14855
14856 <p>
14857 Although it is theoretically possible to use the entire disk to house your Linux
14858 system, this is almost never done in practice. Instead, full disk block devices
14859 are split up in smaller, more manageable block devices. These are known as
14860 <e>partitions</e> or <e>slices</e>.
14861 </p>
14862
14863 <p>
14864 The first partition on the first SCSI disk is <path>/dev/sda1</path>, the second
14865 <path>/dev/sda2</path> and so on. Similarly, the first two partitions on the
14866 first IDE disk are <path>/dev/hda1</path> and <path>/dev/hda2</path>.
14867 </p>
14868
14869 <p>
14870 The third partition on Sun systems is set aside as a special "whole disk"
14871 slice. This partition must not contain a file system.
14872 </p>
14873
14874 <p>
14875 Users who are used to the DOS partitioning scheme should note that Sun
14876 disklabels do not have "primary" and "extended" partitions. Instead, up to
14877 eight partitions are available per drive, with the third of these being
14878 reserved.
14879 </p>
14880
14881 </body>
14882 </subsection>
14883 </section>
14884 <section>
14885 <title>Designing a Partitioning Scheme</title>
14886 <subsection>
14887 <title>Default Partitioning Scheme</title>
14888 <body>
14889
14890 <p>
14891 If you are not interested in drawing up a partitioning scheme,
14892 the table below suggests a suitable starting point for most systems. For
14893 IDE-based systems, substitute <c>hda</c> for <c>sda</c> in the following.
14894 </p>
14895
14896 <p>
14897 Note that a separate <path>/boot</path> partition is generally <e>not</e>
14898 recommended on SPARC, as it complicates the bootloader configuration.
14899 </p>
14900
14901 <table>
14902 <tr>
14903 <th>Partition</th>
14904 <th>Filesystem</th>
14905 <th>Size</th>
14906 <th>Mount Point</th>
14907 <th>Description</th>
14908 </tr>
14909 <tr>
14910 <ti>/dev/sda1</ti>
14911 <ti>ext3</ti>
14912 <ti>&lt;2 GByte</ti>
14913 <ti>/</ti>
14914 <ti>
14915 Root partition. For all sparc32 systems, and sparc64 systems with older
14916 OBP versions, this <e>must</e> be less than 2 GBytes in size, and the first
14917 partition on the disk.
14918 </ti>
14919 </tr>
14920 <tr>
14921 <ti>/dev/sda2</ti>
14922 <ti>swap</ti>
14923 <ti>512 MBytes</ti>
14924 <ti>none</ti>
14925 <ti>
14926 Swap partition. For bootstrap and certain larger compiles, at least 512
14927 MBytes of RAM (including swap) is required.
14928 </ti>
14929 </tr>
14930 <tr>
14931 <ti>/dev/sda3</ti>
14932 <ti>none</ti>
14933 <ti>Whole disk</ti>
14934 <ti>none</ti>
14935 <ti>Whole disk partition. This is required on SPARC systems.</ti>
14936 </tr>
14937 <tr>
14938 <ti>/dev/sda4</ti>
14939 <ti>ext3</ti>
14940 <ti>at least 2 GBytes</ti>
14941 <ti>/usr</ti>
14942 <ti>
14943 /usr partition. Applications are installed here. By default this partition
14944 is also used for Portage data (which takes around 500 Mbyte excluding
14945 source code).
14946 </ti>
14947 </tr>
14948 <tr>
14949 <ti>/dev/sda5</ti>
14950 <ti>ext3</ti>
14951 <ti>at least 1GByte</ti>
14952 <ti>/var</ti>
14953 <ti>
14954 /var partition. Used for program-generated data. By default Portage uses
14955 this partition for temporary space whilst compiling. Certain larger
14956 applications such as Mozilla and OpenOffice.org can require over 1 GByte
14957 of temporary space here when building.
14958 </ti>
14959 </tr>
14960 <tr>
14961 <ti>/dev/sda6</ti>
14962 <ti>ext3</ti>
14963 <ti>remaining space</ti>
14964 <ti>/home</ti>
14965 <ti>/home partition. Used for users' home directories.</ti>
14966 </tr>
14967 </table>
14968
14969 </body>
14970 </subsection>
14971 </section>
14972
14973 <section id="fdisk">
14974 <title>Using fdisk to Partition your Disk</title>
14975 <subsection>
14976 <body>
14977
14978 <p>
14979 The following parts explain how to create the example partition layout described
14980 previously, namely:
14981 </p>
14982
14983 <table>
14984 <tr>
14985 <th>Partition</th>
14986 <th>Description</th>
14987 </tr>
14988 <tr>
14989 <ti>/dev/sda1</ti>
14990 <ti>/</ti>
14991 </tr>
14992 <tr>
14993 <ti>/dev/sda2</ti>
14994 <ti>swap</ti>
14995 </tr>
14996 <tr>
14997 <ti>/dev/sda3</ti>
14998 <ti>whole disk slice</ti>
14999 </tr>
15000 <tr>
15001 <ti>/dev/sda4</ti>
15002 <ti>/usr</ti>
15003 </tr>
15004 <tr>
15005 <ti>/dev/sda5</ti>
15006 <ti>/var</ti>
15007 </tr>
15008 <tr>
15009 <ti>/dev/sda6</ti>
15010 <ti>/home</ti>
15011 </tr>
15012 </table>
15013
15014 <p>
15015 Change the partition layout as required. Remember to keep the root partition
15016 entirely within the first 2 GBytes of the disk for older systems. There is also
15017 a 15-partition limit for SCSI and SATA.
15018 </p>
15019
15020 </body>
15021 </subsection>
15022 <subsection>
15023 <title>Firing up fdisk</title>
15024 <body>
15025
15026 <p>
15027 Start <c>fdisk</c> with your disk as argument:
15028 </p>
15029
15030 <pre caption="Starting fdisk">
15031 # <i>fdisk /dev/sda</i>
15032 </pre>
15033
15034 <p>
15035 You should be greeted with the fdisk prompt:
15036 </p>
15037
15038 <pre caption="The fdisk prompt">
15039 Command (m for help):
15040 </pre>
15041
15042 <p>
15043 To view the available partitions, type in <c>p</c>:
15044 </p>
15045
15046 <pre caption="Listing available partitions">
15047 Command (m for help): <i>p</i>
15048
15049 Disk /dev/sda (Sun disk label): 64 heads, 32 sectors, 8635 cylinders
15050 Units = cylinders of 2048 * 512 bytes
15051
15052 Device Flag Start End Blocks Id System
15053 /dev/sda1 0 488 499712 83 Linux native
15054 /dev/sda2 488 976 499712 82 Linux swap
15055 /dev/sda3 0 8635 8842240 5 Whole disk
15056 /dev/sda4 976 1953 1000448 83 Linux native
15057 /dev/sda5 1953 2144 195584 83 Linux native
15058 /dev/sda6 2144 8635 6646784 83 Linux native
15059 </pre>
15060
15061 <p>
15062 Note the <c>Sun disk label</c> in the output. If this is missing, the disk is
15063 using the DOS-partitioning, not the Sun partitioning. In this case, use <c>s</c>
15064 to ensure that the disk has a sun partition table:
15065 </p>
15066
15067 <pre caption="Creating a Sun Disklabel">
15068 Command (m for help): s
15069 Building a new sun disklabel. Changes will remain in memory only,
15070 until you decide to write them. After that, of course, the previous
15071 content won't be recoverable.
15072
15073 Drive type
15074 ? auto configure
15075 0 custom (with hardware detected defaults)
15076 a Quantum ProDrive 80S
15077 b Quantum ProDrive 105S
15078 c CDC Wren IV 94171-344
15079 d IBM DPES-31080
15080 e IBM DORS-32160
15081 f IBM DNES-318350
15082 g SEAGATE ST34371
15083 h SUN0104
15084 i SUN0207
15085 j SUN0327
15086 k SUN0340
15087 l SUN0424
15088 m SUN0535
15089 n SUN0669
15090 o SUN1.0G
15091 p SUN1.05
15092 q SUN1.3G
15093 r SUN2.1G
15094 s IOMEGA Jaz
15095 Select type (? for auto, 0 for custom): <i>0</i>
15096 Heads (1-1024, default 64):
15097 Using default value 64
15098 Sectors/track (1-1024, default 32):
15099 Using default value 32
15100 Cylinders (1-65535, default 8635):
15101 Using default value 8635
15102 Alternate cylinders (0-65535, default 2):
15103 Using default value 2
15104 Physical cylinders (0-65535, default 8637):
15105 Using default value 8637
15106 Rotation speed (rpm) (1-100000, default 5400): <i>10000</i>
15107 Interleave factor (1-32, default 1):
15108 Using default value 1
15109 Extra sectors per cylinder (0-32, default 0):
15110 Using default value 0
15111 </pre>
15112
15113 <p>
15114 You can find the correct values in your disk's documentation. The
15115 'auto configure' option does not usually work.
15116 </p>
15117
15118 </body>
15119 </subsection>
15120 <subsection>
15121 <title>Deleting Existing Partitions</title>
15122 <body>
15123
15124 <p>
15125 It's time to delete any existing partitions. To do this, type <c>d</c> and hit
15126 Enter. You will then be prompted for the partition number you would like to
15127 delete. To delete a pre-existing <path>/dev/sda1</path>, you would type:
15128 </p>
15129
15130 <pre caption="Deleting a partition">
15131 Command (m for help): <i>d</i>
15132 Partition number (1-4): <i>1</i>
15133 </pre>
15134
15135 <p>
15136 <e>You should not delete partition 3 (whole disk).</e> This is required. If
15137 this partition does not exist, follow the "Creating a Sun Disklabel"
15138 instructions above.
15139 </p>
15140
15141 <p>
15142 After deleting all partitions except the Whole disk slice, you should have a
15143 partition layout similar to the following:
15144 </p>
15145
15146 <pre caption="View an empty partition scheme">
15147 Command (m for help): <i>p</i>
15148
15149 Disk /dev/sda (Sun disk label): 64 heads, 32 sectors, 8635 cylinders
15150 Units = cylinders of 2048 * 512 bytes
15151
15152 Device Flag Start End Blocks Id System
15153 /dev/sda3 0 8635 8842240 5 Whole disk
15154 </pre>
15155
15156
15157 </body>
15158 </subsection>
15159
15160 <subsection>
15161 <title>Creating the Root Partition</title>
15162 <body>
15163
15164 <p>
15165 We're ready to create the root partition. To do this, type <c>n</c> to create a
15166 new partition, then type <c>1</c> to create the partition. When prompted for
15167 the first cylinder, hit enter. When prompted for the last cylinder, type
15168 <c>+512M</c> to create a partition <c>512MBytes</c> in size. Make sure that the
15169 entire root partition fits within the first 2GBytes of the disk. You can see
15170 output from these steps below:
15171 </p>
15172
15173 <pre caption="Creating a root partition">
15174 Command (m for help): <i>n</i>
15175 Partition number (1-8): <i>1</i>
15176 First cylinder (0-8635): <i>(press Enter)</i>
15177 Last cylinder or +size or +sizeM or +sizeK (0-8635, default 8635): <i>+512M</i>
15178 </pre>
15179
15180 <p>
15181 Now, when you type <c>p</c>, you should see the following partition printout:
15182 </p>
15183
15184 <pre caption="Listing the partition layout">
15185 Command (m for help): <i>p</i>
15186
15187 Disk /dev/sda (Sun disk label): 64 heads, 32 sectors, 8635 cylinders
15188 Units = cylinders of 2048 * 512 bytes
15189
15190 Device Flag Start End Blocks Id System
15191 /dev/sda1 0 488 499712 83 Linux native
15192 /dev/sda3 0 8635 8842240 5 Whole disk
15193 </pre>
15194
15195 </body>
15196 </subsection>
15197 <subsection>
15198 <title>Creating a swap partition</title>
15199 <body>
15200
15201 <p>
15202 Next, let's create the swap partition. To do this, type <c>n</c> to create a new
15203 partition, then <c>2</c> to create the second partition, <path>/dev/sda2</path>
15204 in our case. When prompted for the first cylinder, hit enter. When prompted for
15205 the last cylinder, type <c>+512M</c> to create a partition 512MB in size. After
15206 you've done this, type <c>t</c> to set the partition type, and then type in
15207 <c>82</c> to set the partition type to "Linux Swap". After completing these
15208 steps, typing <c>p</c> should display a partition table that looks similar to
15209 this:
15210 </p>
15211
15212 <pre caption="Listing of available partitions">
15213 Command (m for help): <i>p</i>
15214
15215 Disk /dev/sda (Sun disk label): 64 heads, 32 sectors, 8635 cylinders
15216 Units = cylinders of 2048 * 512 bytes
15217
15218 Device Flag Start End Blocks Id System
15219 /dev/sda1 0 488 499712 83 Linux native
15220 /dev/sda2 488 976 499712 82 Linux swap
15221 /dev/sda3 0 8635 8842240 5 Whole disk
15222 </pre>
15223
15224 </body>
15225 </subsection>
15226 <subsection>
15227 <title>Creating the /usr, /var and /home partitions</title>
15228 <body>
15229
15230 <p>
15231 Finally, let's create the /usr, /var and /home partitions. As before,
15232 type <c>n</c> to create a new partition, then type <c>4</c> to create the
15233 third partition, <path>/dev/sda4</path> in our case. When prompted for the
15234 first cylinder, hit enter. When prompted for the last cylinder, enter
15235 <c>+2048M</c> to create a partition 2 GBytes in size. Repeat this process
15236 for <path>sda5</path> and <path>sda6</path>, using the desired sizes. Once
15237 you're done, you should see something like this:
15238 </p>
15239
15240 <pre caption="Listing complete partition table">
15241 Command (m for help): <i>p</i>
15242
15243 Disk /dev/sda (Sun disk label): 64 heads, 32 sectors, 8635 cylinders
15244 Units = cylinders of 2048 * 512 bytes
15245
15246 Device Flag Start End Blocks Id System
15247 /dev/sda1 0 488 499712 83 Linux native
15248 /dev/sda2 488 976 499712 82 Linux swap
15249 /dev/sda3 0 8635 8842240 5 Whole disk
15250 /dev/sda4 976 1953 1000448 83 Linux native
15251 /dev/sda5 1953 2144 195584 83 Linux native
15252 /dev/sda6 2144 8635 6646784 83 Linux native
15253 </pre>
15254
15255 </body>
15256 </subsection>
15257 <subsection>
15258 <title>Save and Exit</title>
15259 <body>
15260
15261 <p>
15262 To save your partition layout and exit <c>fdisk</c>, type <c>w</c>:
15263 </p>
15264
15265 <pre caption="Save and exit fdisk">
15266 Command (m for help): <i>w</i>
15267 </pre>
15268
15269 <p>
15270 Now that your partitions are created, you can now continue with <uri
15271 link="#filesystems">Creating Filesystems</uri>.
15272 </p>
15273
15274 </body>
15275 </subsection>
15276 </section>
15277 <section id="filesystems">
15278 <title>Creating Filesystems</title>
15279 <subsection>
15280 <title>Introduction</title>
15281 <body>
15282
15283 <p>
15284 Now that your partitions are created, it is time to place a filesystem on them.
15285 If you don't care about what filesystem to choose and are happy with what is
15286 used as default in this handbook, continue with <uri
15287 link="#filesystems-apply">Applying a Filesystem to a Partition</uri>.
15288 Otherwise, read on to learn about the available filesystems...
15289 </p>
15290
15291 </body>
15292 </subsection>
15293 <subsection>
15294 <title>Filesystems?</title>
15295 <body>
15296
15297 <p>
15298 Several filesystems are available, some are known to be stable on the
15299 SPARC architecture. Ext2 and ext3, for example, are known to work well.
15300 Alternate filesystems may not function correctly.
15301 </p>
15302
15303 <p>
15304 <b>ext2</b> is the tried-and-true Linux filesystem. It does not support
15305 journaling, which means that periodic checks of ext2 filesystems at startup
15306 can be quite time-consuming. There is quite a selection of newer-generation
15307 journaled filesystems that can be checked for consistency very quickly at
15308 startup, and are therefore generally preferred over their non-journaled
15309 counterparts. In general, journaled filesystems prevent long delays when a
15310 system is booted and the filesystem is in an inconsistent state.
15311 </p>
15312
15313 <p>
15314 <b>ext3</b> is the journaled version of the ext2 filesystem. It provides
15315 metadata journaling for fast recovery as well as other enhanced journaling
15316 modes like full-data and ordered-data journaling. Ext3 has an additional hashed
15317 b-tree indexing option that enables high performance in almost all situations.
15318 You can enable this indexing by adding <c>-O dir_index</c> to the <c>mke2fs</c>
15319 command. Ext3 makes an excellent and reliable alternative to ext2.
15320 </p>
15321
15322 </body>
15323 </subsection>
15324 <subsection id="filesystems-apply">
15325 <title>Applying a Filesystem to a Partition</title>
15326 <body>
15327
15328 <p>
15329 To create a filesystem on a partition or volume, tools specific to the chosen
15330 filesystem are available:
15331 </p>
15332
15333 <table>
15334 <tr>
15335 <th>Filesystem</th>
15336 <th>Creation Command</th>
15337 </tr>
15338 <tr>
15339 <ti>ext2</ti>
15340 <ti><c>mke2fs</c></ti>
15341 </tr>
15342 <tr>
15343 <ti>ext3</ti>
15344 <ti><c>mke2fs -j</c></ti>
15345 </tr>
15346 <tr>
15347 <ti>ext3 with hashed b-tree indexing (2.6 kernels only)</ti>
15348 <ti><c>mke2fs -j -O dir_index</c></ti>
15349 </tr>
15350 </table>
15351
15352 <p>
15353 For instance, to create the root partition (<path>/dev/sda1</path> in our
15354 example) as ext2, and the <path>/usr</path>, <path>/var</path>, and
15355 <path>/home</path> partitions (<path>/dev/sda4</path>, <path>5</path>
15356 and <path>6</path> in our example, respectively) as ext3, you would use:
15357 </p>
15358
15359 <pre caption="Applying a filesystem on a partition">
15360 # <i>mke2fs /dev/sda1</i>
15361 # <i>mke2fs -j /dev/sda4</i>
15362 # <i>mke2fs -j /dev/sda5</i>
15363 # <i>mke2fs -j /dev/sda6</i>
15364 </pre>
15365
15366 </body>
15367 </subsection>
15368 <subsection>
15369 <title>Activating the Swap Partition</title>
15370 <body>
15371
15372 <p>
15373 <c>mkswap</c> is the command used to initialize swap partitions:
15374 </p>
15375
15376 <pre caption="Creating a Swap signature">
15377 # <i>mkswap /dev/sda2</i>
15378 </pre>
15379
15380 <p>
15381 To activate the swap partition, use <c>swapon</c>:
15382 </p>
15383
15384 <pre caption="Activating the swap partition">
15385 # <i>swapon /dev/sda2</i>
15386 </pre>
15387
15388 <p>
15389 Create and activate the swap now.
15390 </p>
15391
15392 </body>
15393 </subsection>
15394 </section>
15395 <section>
15396 <title>Mounting</title>
15397 <body>
15398
15399 <p>
15400 Now that your partitions are initialized and are housing a filesystem, it is
15401 time to mount them using the <c>mount</c> command. Don't forget to first
15402 create the necessary mount directories for every partition you created. For
15403 example:
15404 </p>
15405
15406 <pre caption="Mounting partitions">
15407 # <i>mount /dev/sda1 /mnt/gentoo</i>
15408 # <i>mkdir /mnt/gentoo/usr</i>
15409 # <i>mount /dev/sda4 /mnt/gentoo/usr</i>
15410 # <i>mkdir /mnt/gentoo/var</i>
15411 # <i>mount /dev/sda5 /mnt/gentoo/var</i>
15412 # <i>mkdir /mnt/gentoo/home</i>
15413 # <i>mount /dev/sda6 /mnt/gentoo/home</i>
15414 </pre>
15415
15416 <note>
15417 If you want your <path>/tmp</path> to reside on a separate partition, be sure
15418 to change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>.
15419 This also holds for <path>/var/tmp</path>.
15420 </note>
15421
15422 <p>
15423 We will also have to mount the proc filesystem (a virtual interface with the
15424 kernel) on <path>/proc</path>. But first we will need to place our files on the partitions.
15425 </p>
15426
15427 <p>
15428 Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
15429 Installation Files</uri>.
15430 </p>
15431
15432 </body>
15433 </section>
15434 </sections>
15435
15436
15437
15438
15439 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-sparc-kernel.xml
15440
15441 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-sparc-kernel.xml?rev=1.1&view=markup
15442 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-sparc-kernel.xml?rev=1.1&content-type=text/plain
15443
15444 Index: hb-install-sparc-kernel.xml
15445 ===================================================================
15446 <?xml version='1.0' encoding='UTF-8'?>
15447 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
15448
15449 <!-- The content of this document is licensed under the CC-BY-SA license -->
15450 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
15451
15452 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-sparc-kernel.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
15453
15454 <sections>
15455
15456 <version>6.0</version>
15457 <date>2006-02-27</date>
15458
15459 <section>
15460 <title>Timezone</title>
15461 <body>
15462
15463 <p>
15464 You first need to select your timezone so that your system knows where it is
15465 located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy
15466 it to <path>/etc/localtime</path>. Please avoid the
15467 <path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not
15468 indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8.
15469 </p>
15470
15471 <pre caption="Setting the timezone information">
15472 # <i>ls /usr/share/zoneinfo</i>
15473 <comment>(Suppose you want to use GMT)</comment>
15474 # <i>cp /usr/share/zoneinfo/GMT /etc/localtime</i>
15475 </pre>
15476
15477 </body>
15478 </section>
15479 <section>
15480 <title>Installing the Sources</title>
15481 <subsection>
15482 <title>Choosing a Kernel</title>
15483 <body>
15484
15485 <p>
15486 The core around which all distributions are built is the Linux kernel. It is the
15487 layer between the user programs and your system hardware. Gentoo provides its
15488 users several possible kernel sources. A full listing with description is
15489 available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel
15490 Guide</uri>.
15491 </p>
15492
15493 <p>
15494 For sparc-based systems we have <c>sparc-sources</c> (kernel source optimized
15495 for SPARC users) and <c>vanilla-sources</c> (the default kernel source as
15496 developed by the linux-kernel developers).
15497 </p>
15498
15499 <p>
15500 In the next example we install the <c>sparc-sources</c>. Of course substitute
15501 with your choice of sources, this is merely an example. The <c>USE="-doc"</c>
15502 is necessary to avoid installing xorg-x11 or other dependencies at this point.
15503 <c>USE="symlink"</c> is not necessary for a new install, but ensures proper
15504 creation of the <path>/usr/src/linux</path> symlink.
15505 </p>
15506
15507 <pre caption="Installing a kernel source">
15508 # <i>USE="-doc symlink" emerge sparc-sources</i>
15509 </pre>
15510
15511 <p>
15512 When you take a look in <path>/usr/src</path> you should see a symlink called
15513 <path>linux</path> pointing to your kernel source. In this case, the installed
15514 kernel source points to <c>sparc-sources-2.4.31</c>. Your version may be
15515 different, so keep this in mind.
15516 </p>
15517
15518 <pre caption="Viewing the kernel source symlink">
15519 # <i>ls -l /usr/src/linux</i>
15520 lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-2.4.31-sparc
15521 </pre>
15522
15523 <p>
15524 Now it is time to configure and compile your kernel source.
15525 </p>
15526
15527 </body>
15528 </subsection>
15529 </section>
15530 <section>
15531 <title>Manual Configuration</title>
15532 <subsection>
15533 <title>Introduction</title>
15534 <body>
15535
15536 <p>
15537 Manually configuring a kernel is often seen as the most difficult procedure a
15538 Linux user ever has to perform. Nothing is less true -- after configuring a
15539 couple of kernels you don't even remember that it was difficult ;)
15540 </p>
15541
15542 <p>
15543 However, one thing <e>is</e> true: you must know your system when you start
15544 configuring a kernel manually. Most information can be gathered by emerging
15545 pciutils (<c>emerge pciutils</c>) which contains <c>lspci</c>. You will now
15546 be able to use <c>lspci</c> within the chrooted environment. You may safely
15547 ignore any <e>pcilib</e> warnings (like pcilib: cannot open
15548 /sys/bus/pci/devices) that <c>lspci</c> throws out. Alternatively, you can run
15549 <c>lspci</c> from a <e>non-chrooted</e> environment. The results are the same.
15550 You can also run <c>lsmod</c> to see what kernel modules the Installation CD
15551 uses (it might provide you with a nice hint on what to enable).
15552 </p>
15553
15554 <p>
15555 Now go to your kernel source directory and execute <c>make menuconfig</c>. This
15556 will fire up an ncurses-based configuration menu.
15557 </p>
15558
15559 <pre caption="Invoking menuconfig">
15560 # <i>cd /usr/src/linux</i>
15561 # <i>make menuconfig</i>
15562 </pre>
15563
15564 <p>
15565 You will be greeted with several configuration sections. We'll first list some
15566 options you must activate (otherwise Gentoo will not function, or not function
15567 properly without additional tweaks).
15568 </p>
15569
15570 </body>
15571 </subsection>
15572 <subsection>
15573 <title>Activating Required Options</title>
15574 <body>
15575
15576 <p>
15577 First of all, activate the use of development and experimental code/drivers.
15578 You need this, otherwise some very important code/drivers won't show up:
15579 </p>
15580
15581 <pre caption="Selecting experimental code/drivers">
15582 Code maturity level options ---&gt;
15583 [*] Prompt for development and/or incomplete code/drivers
15584 </pre>
15585
15586 <p>
15587 Now go to <c>File Systems</c> and select support for the filesystems you use.
15588 <e>Don't</e> compile them as modules, otherwise your Gentoo system will not be
15589 able to mount your partitions. Also select <c>Virtual memory</c> and <c>/proc
15590 file system</c>. If you are running a 2.4 kernel, you should also select
15591 <c>/dev file system</c> + <c>Automatically mount at boot</c>:
15592 </p>
15593
15594 <pre caption="Selecting necessary file systems">
15595 File systems ---&gt;
15596 [*] Virtual memory file system support (former shm fs)
15597 [*] /proc file system support
15598 [ ] /dev/pts file system for Unix98 PTYs
15599
15600 <comment>(Select one or more of the following options as needed by your system)</comment>
15601 &lt;*&gt; Ext3 journalling file system support
15602 &lt;*&gt; Second extended fs support
15603 </pre>
15604
15605 <p>
15606 If you are using PPPoE to connect to the Internet or you are using a dial-up
15607 modem, you will need the following options in the kernel:
15608 </p>
15609
15610 <pre caption="Selecting PPPoE necessary drivers">
15611 Network device support ---&gt;
15612 &lt;*&gt; PPP (point-to-point protocol) support
15613 &lt;*&gt; PPP support for async serial ports
15614 &lt;*&gt; PPP support for sync tty ports
15615 </pre>
15616
15617 <p>
15618 The two compression options won't harm but are not definitely needed, neither
15619 does the <c>PPP over Ethernet</c> option, that might only be used by
15620 <c>rp-pppoe</c> when configured to do kernel mode PPPoE.
15621 </p>
15622
15623 <p>
15624 Now activate the correct bus-support:
15625 </p>
15626
15627 <pre caption="Activating SBUS/UPA">
15628 Console drivers ---&gt;
15629 Frame-buffer support ---&gt;
15630 [*] SBUS and UPA framebuffers
15631 [*] Creator/Creator3D support <comment>(Only for UPA slot adapter used in many Ultras)</comment>
15632 [*] CGsix (GX,TurboGX) support <comment>(Only for SBUS slot adapter used in many SPARCStations)</comment>
15633 </pre>
15634
15635 <p>
15636 Of course you want support for the OBP:
15637 </p>
15638
15639 <pre caption="Activating OBP Support">
15640 Misc Linux/SPARC drivers ---&gt;
15641 [*] /dev/openprom device support
15642 </pre>
15643
15644 <p>
15645 You will also need SCSI-specific support:
15646 </p>
15647
15648 <pre caption="Activating SCSI-specific support">
15649 SCSI support ---&gt;
15650 SCSI low-level drivers ---&gt;
15651 &lt;*&gt; Sparc ESP Scsi Driver <comment>(Only for SPARC ESP on-board SCSI adapter)</comment>
15652 &lt;*&gt; PTI Qlogic, ISP Driver <comment>(Only for SBUS SCSI controllers from PTI or QLogic)</comment>
15653 &lt;*&gt; SYM53C8XX Version 2 SCSI support <comment>(Only for Ultra 60 on-board SCSI adapter)</comment>
15654 </pre>
15655
15656 <p>
15657 To support your network card, select one of the following:
15658 </p>
15659
15660 <pre caption="Activating networking support">
15661 Network device support ---&gt;
15662 Ethernet (10 or 100Mbit) ---&gt;
15663 &lt;*&gt; Sun LANCE support <comment>(Only for SPARCStation, older Ultra systems, and as Sbus option)</comment>
15664 &lt;*&gt; Sun Happy Meal 10/100baseT support <comment>(Only for Ultra; also supports "qfe" quad-ethernet on PCI and Sbus)</comment>
15665 &lt;*&gt; DECchip Tulip (dc21x4x) PCI support <comment>(For some Netras, like N1)</comment>
15666 Ethernet (1000Mbit) ---&gt;
15667 &lt;*&gt; Broadcom Tigon3 support <comment>(Modern Netra, Sun Fire machines)</comment>
15668 </pre>
15669
15670 <p>
15671 When you have a 4-port Ethernet machine (10/100 or 10/100/1000) the port order
15672 is different from the one used by Solaris. You can use <c>sys-apps/ethtool</c>
15673 or <c>mii-tool</c> to check the port link status.
15674 </p>
15675
15676 <p>
15677 When you're done configuring your kernel, continue with <uri
15678 link="#compiling">Compiling and Installing</uri>. However, after having
15679 compiled the kernel, check its size:
15680 </p>
15681
15682 <pre caption="Check kernel size">
15683 # <i>ls -lh vmlinux</i>
15684 -rw-r--r-- 1 root root 2.4M Oct 25 14:38 vmlinux
15685 </pre>
15686
15687 <p>
15688 If the (uncompressed) size is bigger than 2.5 MB (for Sparc32) or 3.5 MB (for
15689 Sparc64), reconfigure your kernel until it doesn't exceed these limits. One way
15690 of accomplishing this is by having most kernel drivers compiled as modules.
15691 Ignoring this can lead to a non-booting kernel.
15692 </p>
15693
15694 <p>
15695 Also, if your kernel is just a tad too big, you can try stripping it using the
15696 <c>strip</c> command:
15697 </p>
15698
15699 <pre caption="Stripping the kernel">
15700 # <i>strip -R .comment -R .note vmlinux</i>
15701 </pre>
15702
15703 </body>
15704 </subsection>
15705 <subsection id="compiling">
15706 <title>Compiling and Installing</title>
15707 <body>
15708
15709 <p>
15710 Now that your kernel is configured, it is time to compile and install it. Exit
15711 the configuration and start the compilation process:
15712 </p>
15713
15714 <pre caption="Compiling the kernel">
15715 <comment>(sparc32)</comment>
15716 # <i>make dep &amp;&amp; make clean vmlinux modules modules_install</i>
15717
15718 <comment>(sparc64)</comment>
15719 # <i>make dep &amp;&amp; make clean vmlinux image modules modules_install</i>
15720 </pre>
15721
15722 <p>
15723 When the kernel has finished compiling, copy the kernel image to
15724 <path>/boot</path>. Remember to replace <path>&lt;kernel-version&gt;</path>
15725 with your actual kernel version.
15726 </p>
15727
15728 <pre caption="Installing the kernel">
15729 <comment>(sparc32)</comment>
15730 # <i>cp vmlinux /boot/&lt;kernel-version&gt;</i>
15731
15732 <comment>(sparc64)</comment>
15733 # <i>cp arch/sparc64/boot/image /boot/&lt;kernel-version&gt;</i>
15734 </pre>
15735
15736 <p>
15737 Now continue with <uri link="#kernel_modules">Installing Separate Kernel
15738 Modules</uri>.
15739 </p>
15740
15741 </body>
15742 </subsection>
15743 </section>
15744 <section id="kernel_modules">
15745 <title>Installing Separate Kernel Modules</title>
15746 <subsection>
15747 <title>Configuring the Modules</title>
15748 <body>
15749
15750 <p>
15751 You should list the modules you want automatically loaded in
15752 <path>/etc/modules.autoload.d/kernel-2.4</path>.
15753 You can add extra options to the modules too if you want.
15754 </p>
15755
15756 <p>
15757 To view all available modules, run the following <c>find</c> command. Don't
15758 forget to substitute "&lt;kernel version&gt;" with the version of the kernel you
15759 just compiled:
15760 </p>
15761
15762 <pre caption="Viewing all available modules">
15763 # <i>find /lib/modules/&lt;kernel version&gt;/ -type f -iname '*.o' -or -iname '*.ko'</i>
15764 </pre>
15765
15766 <p>
15767 For instance, to automatically load the <c>3c59x.o</c> module, edit the
15768 <path>kernel-2.4</path> file and enter the module name in it.
15769 </p>
15770
15771 <pre caption="Editing /etc/modules.autoload.d/kernel-2.4">
15772 # <i>nano -w /etc/modules.autoload.d/kernel-2.4</i>
15773 </pre>
15774
15775 <pre caption="/etc/modules.autoload.d/kernel-2.4">
15776 3c59x
15777 </pre>
15778
15779 <p>
15780 Continue the installation with <uri link="?part=1&amp;chap=8">Configuring
15781 your System</uri>.
15782 </p>
15783
15784 </body>
15785 </subsection>
15786 </section>
15787 </sections>
15788
15789
15790
15791 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-sparc-medium.xml
15792
15793 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-sparc-medium.xml?rev=1.1&view=markup
15794 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-sparc-medium.xml?rev=1.1&content-type=text/plain
15795
15796 Index: hb-install-sparc-medium.xml
15797 ===================================================================
15798 <?xml version='1.0' encoding='UTF-8'?>
15799 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
15800
15801 <!-- The content of this document is licensed under the CC-BY-SA license -->
15802 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
15803
15804 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-sparc-medium.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
15805
15806 <sections>
15807
15808 <version>6.0</version>
15809 <date>2006-02-27</date>
15810
15811 <section>
15812 <title>Hardware Requirements</title>
15813 <subsection>
15814 <title>Introduction</title>
15815 <body>
15816
15817 <p>
15818 Before we start, we first list what hardware requirements you need to
15819 successfully install Gentoo on your box.
15820 </p>
15821
15822 </body>
15823 </subsection>
15824 <subsection>
15825 <title>Hardware Requirements</title>
15826 <body>
15827
15828 <table>
15829 <tr>
15830 <th>Sparc System</th>
15831 <ti>
15832 Please check the <uri link="/proj/en/base/sparc/sunhw.xml">Gentoo
15833 Linux/SPARC64 Compatibility list</uri> or the <uri
15834 link="http://www.ultralinux.org/faq.html#s_2">UltraLinux FAQ</uri>
15835 </ti>
15836 </tr>
15837 <tr>
15838 <th>CPU</th>
15839 <ti>
15840 Although sparc64 is the only officially supported platform, experimental
15841 support for sparc32 is available as well
15842 </ti>
15843 </tr>
15844 <tr>
15845 <th>Memory</th>
15846 <ti>64 MB</ti>
15847 </tr>
15848 <tr>
15849 <th>Diskspace</th>
15850 <ti>1.5 GB (excluding swap space)</ti>
15851 </tr>
15852 <tr>
15853 <th>Swap space</th>
15854 <ti>At least 256 MB</ti>
15855 </tr>
15856 </table>
15857
15858 <p>
15859 We currently only provide Installation CDs for the sparc64 architecture. Users
15860 of sparc32 can use the experimental netboot images to install Gentoo from.
15861 More information about netbooting can be found in our <uri
15862 link="/doc/en/gentoo-sparc-netboot-howto.xml">Gentoo Linux based Netboot
15863 HOWTO</uri>.
15864 </p>
15865
15866 </body>
15867 </subsection>
15868 </section>
15869 <!-- Copy/Paste from hb-install-x86-medium.xml -->
15870 <!-- START -->
15871 <section>
15872 <title>The Gentoo Universal Installation CD</title>
15873 <subsection>
15874 <title>Introduction</title>
15875 <body>
15876
15877 <p>
15878 Gentoo Linux can be installed using a <e>stage3</e> tarball file.
15879 Such a tarball is an archive that contains a minimal environment from
15880 which you can succesfully install Gentoo Linux onto your system.
15881 </p>
15882
15883 <p>
15884 Installations using a stage1 or stage2 tarball file are not documented in the
15885 Gentoo Handbook - please read the <uri link="/doc/en/faq.xml#stage12">Gentoo
15886 FAQ</uri> on these matters.
15887 </p>
15888
15889 </body>
15890 </subsection>
15891 <subsection>
15892 <title>Gentoo Universal Installation CD</title>
15893 <body>
15894
15895 <p>
15896 An Installation CD is a bootable medium which contains a self-sustained Gentoo
15897 environment. It allows you to boot Linux from the CD. During the boot process
15898 your hardware is detected and the appropriate drivers are loaded. The Gentoo
15899 Installation CDs are maintained by Gentoo developers.
15900 </p>
15901
15902 <p>
15903 There currently are two Installation CDs available:
15904 </p>
15905
15906 <ul>
15907 <li>
15908 The Universal Installation CD contains everything you need to install
15909 Gentoo. It provides stage3 files for common architectures, source code
15910 for the extra applications you need to choose from and, of course, the
15911 installation instructions for your architecture.
15912 </li>
15913 <li>
15914 The Minimal Installation CD contains only a minimal environment that allows
15915 you to boot up and configure your network so you can connect to the
15916 Internet. It does not contain any additional files and cannot be used
15917 during the current installation approach.
15918 </li>
15919 </ul>
15920
15921 <p>
15922 Gentoo also provides a Package CD. This is not an Installation CD but an
15923 additional resource that you can exploit during the installation of your Gentoo
15924 system. It contains prebuilt packages (also known as the GRP set) that allow
15925 you to easily and quickly install additional applications (such as
15926 OpenOffice.org, KDE, GNOME, ...) immediately after the Gentoo installation and
15927 right before you update your Portage tree.
15928 </p>
15929
15930 <p>
15931 The use of the Package CD is covered later in this document.
15932 </p>
15933
15934 </body>
15935 </subsection>
15936 </section>
15937 <!-- STOP -->
15938 <section>
15939 <title>Download, Burn and Boot a Gentoo Installation CD</title>
15940 <subsection>
15941 <title>Downloading and Burning the Installation CDs</title>
15942 <body>
15943
15944 <p>
15945 You can download the Universal Installation CD (and, if you want to, the
15946 Packages CD as well) from one of our <uri
15947 link="/main/en/mirrors.xml">mirrors</uri>. The Installation CDs are located in
15948 the <path>releases/sparc/2006.1/sparc64/installcd</path>
15949 directory; the Package CDs are located in the
15950 <path>releases/sparc/2006.1/sparc64/packagecd</path> directory.
15951 </p>
15952
15953 <p>
15954 Inside those directories you'll find ISO-files. Those are full CD images which
15955 you can write on a CD-R.
15956 </p>
15957
15958 <p>
15959 After downloading the file, you can verify its integrity to see if it is
15960 corrupted or not:
15961 </p>
15962
15963 <ul>
15964 <li>
15965 You can check its MD5 checksum and compare it with the MD5 checksum we
15966 provide (for instance with the <c>md5sum</c> tool under Linux/Unix or
15967 <uri link="http://www.etree.org/md5com.html">md5sum</uri> for Windows)
15968 </li>
15969 <li>
15970 You can verify the cryptographic signature that we provide. You need to
15971 obtain the public key we use (17072058) before you proceed though.
15972 </li>
15973 </ul>
15974
15975 <p>
15976 To fetch our public key using the GnuPG application, run the following command:
15977 </p>
15978
15979 <pre caption="Obtaining the public key">
15980 $ <i>gpg --keyserver subkeys.pgp.net --recv-keys 17072058</i>
15981 </pre>
15982
15983 <p>
15984 Now verify the signature:
15985 </p>
15986
15987 <pre caption="Verify the cryptographic signature">
15988 $ <i>gpg --verify &lt;signature file&gt; &lt;downloaded iso&gt;</i>
15989 </pre>
15990
15991 <p>
15992 To burn the downloaded ISO(s), you have to select raw-burning. How you
15993 do this is highly program-dependent. We will discuss <c>cdrecord</c> and
15994 <c>K3B</c> here; more information can be found in our <uri
15995 link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>.
15996 </p>
15997
15998 <ul>
15999 <li>
16000 With cdrecord, you simply type <c>cdrecord dev=/dev/hdc &lt;downloaded
16001 iso&gt;</c> (replace <path>/dev/hdc</path> with your CD-RW drive's device
16002 path).
16003 </li>
16004 <li>
16005 With K3B, select <c>Tools</c> &gt; <c>CD</c> &gt; <c>Burn Image</c>. Then
16006 you can locate your ISO file within the 'Image to Burn' area. Finally click
16007 <c>Start</c>.
16008 </li>
16009 </ul>
16010
16011 </body>
16012 </subsection>
16013 <subsection>
16014 <title>Booting the Universal Installation CD</title>
16015 <body>
16016
16017 <p>
16018 Insert the Gentoo Installation CD in the CD-ROM and boot your system. During
16019 startup, press Stop-A to enter OpenBootPROM (OBP). Once you are in the OBP,
16020 boot from the CD-ROM:
16021 </p>
16022
16023 <pre caption="Booting the Installation CD">
16024 ok <i>boot cdrom</i>
16025 </pre>
16026
16027 <p>
16028 You will be greeted by the SILO boot manager (on the Installation CD). Type in
16029 <c>gentoo</c> and press enter to continue booting the
16030 system:
16031 </p>
16032
16033 <pre caption="Continue booting from the Installation CD">
16034 boot: <i>gentoo</i>
16035 </pre>
16036
16037 <p>
16038 Once the Installation CD is booted, you will be automatically logged on to the
16039 system.
16040 </p>
16041
16042 <p>
16043 You should have a root ("#") prompt on the current console and can also switch
16044 to other consoles by pressing Alt-F2, Alt-F3 and Alt-F4. Get back to the one you
16045 started on by pressing Alt-F1. You will also find a root prompt on the serial
16046 console (<path>ttyS0</path>).
16047 </p>
16048
16049 <p>
16050 Continue with <uri link="#hardware">Extra Hardware Configuration</uri>.
16051 </p>
16052
16053 </body>
16054 </subsection>
16055 <subsection id="hardware">
16056 <title>Extra Hardware Configuration</title>
16057 <body>
16058
16059 <p>
16060 If not all hardware is supported out-of-the-box, you will need to load the
16061 appropriate kernel modules.
16062 </p>
16063
16064 <p>
16065 In the next example we try to load the <c>8139too</c> module (support for
16066 certain kinds of network interfaces):
16067 </p>
16068
16069 <pre caption="Loading kernel modules">
16070 # <i>modprobe 8139too</i>
16071 </pre>
16072
16073 </body>
16074 </subsection>
16075 <subsection id="useraccounts">
16076 <title>Optional: User Accounts</title>
16077 <body>
16078
16079 <p>
16080 If you plan on giving other people access to your installation
16081 environment or you want to chat using <c>irssi</c> without root privileges (for
16082 security reasons), you need to create the necessary user accounts and change
16083 the root password.
16084 </p>
16085
16086 <p>
16087 To change the root password, use the <c>passwd</c> utility:
16088 </p>
16089
16090 <pre caption="Changing the root password">
16091 # <i>passwd</i>
16092 New password: <comment>(Enter your new password)</comment>
16093 Re-enter password: <comment>(Re-enter your password)</comment>
16094 </pre>
16095
16096 <p>
16097 To create a user account, we first enter their credentials, followed by
16098 its password. We use <c>useradd</c> and <c>passwd</c> for these tasks.
16099 In the next example, we create a user called &quot;john&quot;.
16100 </p>
16101
16102 <pre caption="Creating a user account">
16103 # <i>useradd -m -G users john</i>
16104 # <i>passwd john</i>
16105 New password: <comment>(Enter john's password)</comment>
16106 Re-enter password: <comment>(Re-enter john's password)</comment>
16107 </pre>
16108
16109 <p>
16110 You can change your user id from root to the newly created user by using
16111 <c>su</c>:
16112 </p>
16113
16114 <pre caption="Changing user id">
16115 # <i>su - john</i>
16116 </pre>
16117
16118 </body>
16119 </subsection>
16120 <subsection>
16121 <title>Optional: Viewing Documentation while Installing</title>
16122 <body>
16123
16124 <p>
16125 If you want to view the Gentoo Handbook (either from-CD or online) during the
16126 installation, make sure you have created a user account (see <uri
16127 link="#useraccounts">Optional: User Accounts</uri>). Then press <c>Alt-F2</c> to
16128 go to a new terminal and log in.
16129 </p>
16130
16131 <p>
16132 If you want to view the documentation on the CD you can immediately run
16133 <c>links</c> to read it:
16134 </p>
16135
16136 <pre caption="Viewing the on-CD documentation">
16137 # <i>links /mnt/cdrom/docs/handbook/html/index.html</i>
16138 </pre>
16139
16140 <p>
16141 However, it is preferred that you use the online Gentoo Handbook as it will be
16142 more recent than the one provided on the CD. You can view it using <c>links</c>
16143 as well, but only after having completed the <e>Configuring your Network</e>
16144 chapter (otherwise you won't be able to go on the Internet to view the
16145 document):
16146 </p>
16147
16148 <pre caption="Viewing the Online Documentation">
16149 # <i>links http://www.gentoo.org/doc/en/handbook/handbook-sparc.xml</i>
16150 </pre>
16151
16152 <p>
16153 You can go back to your original terminal by pressing <c>Alt-F1</c>.
16154 </p>
16155
16156 </body>
16157 </subsection>
16158 <subsection>
16159 <title>Optional: Starting the SSH Daemon</title>
16160 <body>
16161
16162 <p>
16163 If you want to allow other users to access your computer during the
16164 Gentoo installation (perhaps because those users are going to help you
16165 install Gentoo, or even do it for you), you need to create a user
16166 account for them and perhaps even provide them with your root password
16167 (<e>only</e> do that <e>if</e> you <b>fully trust</b> that user).
16168 </p>
16169
16170 <p>
16171 To fire up the SSH daemon, execute the following command:
16172 </p>
16173
16174 <pre caption="Starting the SSH daemon">
16175 # <i>/etc/init.d/sshd start</i>
16176 </pre>
16177
16178 <p>
16179 To be able to use sshd, you first need to set up your networking. Continue with
16180 the chapter on <uri link="?part=1&amp;chap=3">Configuring your Network</uri>.
16181 </p>
16182
16183 </body>
16184 </subsection>
16185 </section>
16186 </sections>
16187
16188
16189
16190 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-stage.xml
16191
16192 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-stage.xml?rev=1.1&view=markup
16193 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-stage.xml?rev=1.1&content-type=text/plain
16194
16195 Index: hb-install-stage.xml
16196 ===================================================================
16197 <?xml version='1.0' encoding='UTF-8'?>
16198 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
16199
16200 <!-- The content of this document is licensed under the CC-BY-SA license -->
16201 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
16202
16203 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-stage.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
16204
16205 <sections>
16206
16207 <version>6.1</version>
16208 <date>2006-05-27</date>
16209
16210 <section>
16211 <title>Installing a Stage Tarball</title>
16212 <subsection>
16213 <title>Setting the Date/Time Right</title>
16214 <body>
16215
16216 <p>
16217 Before you continue you need to check your date/time and update it. A
16218 misconfigured clock may lead to strange results in the future!
16219 </p>
16220
16221 <p>
16222 To verify the current date/time, run <c>date</c>:
16223 </p>
16224
16225 <pre caption="Verifying the date/time">
16226 # <i>date</i>
16227 Fri Mar 29 16:21:18 UTC 2005
16228 </pre>
16229
16230 <p>
16231 If the date/time displayed is wrong, update it using the <c>date
16232 MMDDhhmmYYYY</c> syntax (<b>M</b>onth, <b>D</b>ay, <b>h</b>our, <b>m</b>inute
16233 and <b>Y</b>ear). At this stage, you should use UTC time. You will be able to
16234 define your timezone later on. For instance, to set the date to March 29th,
16235 16:21 in the year 2005:
16236 </p>
16237
16238 <pre caption="Setting the UTC date/time">
16239 # <i>date 032916212005</i>
16240 </pre>
16241
16242 </body>
16243 </subsection>
16244 <subsection>
16245 <title>Locating the Stage3 File</title>
16246 <body>
16247
16248 <p>
16249 If you have configured networking because you need to download a stage3 file for
16250 your architecture, continue with <uri link="#download">Alternative: Using a
16251 Stage3 from the Internet</uri>. Otherwise read <uri link="#available">Default:
16252 Using a Stage3 from the Installation CD</uri>.
16253 </p>
16254
16255 </body>
16256 </subsection>
16257 </section>
16258 <section id="available">
16259 <title>Default: Using a Stage from the Installation CD</title>
16260 <subsection>
16261 <title>Extracting the Stage Tarball</title>
16262 <body>
16263
16264 <p>
16265 The stages on the CD reside in the <path>/mnt/cdrom/stages</path> directory. To
16266 see a listing of available stages, use <c>ls</c>:
16267 </p>
16268
16269 <pre caption="List all available stages">
16270 # <i>ls /mnt/cdrom/stages</i>
16271 </pre>
16272
16273 <p>
16274 If the system replies with an error, you may need to mount the CD-ROM first:
16275 </p>
16276
16277 <pre caption="Mounting the CD-ROM">
16278 # <i>ls /mnt/cdrom/stages</i>
16279 ls: /mnt/cdrom/stages: No such file or directory
16280 # <i>mount /dev/cdroms/cdrom0 /mnt/cdrom</i>
16281 # <i>ls /mnt/cdrom/stages</i>
16282 </pre>
16283
16284 <p>
16285 Now go into your Gentoo mountpoint (usually <path>/mnt/gentoo</path>):
16286 </p>
16287
16288 <pre caption="Changing directory to /mnt/gentoo">
16289 # <i>cd /mnt/gentoo</i>
16290 </pre>
16291
16292 <p>
16293 We will now extract the stage tarball of your choice. We will do this with the
16294 <c>tar</c> tool. Make sure you use the same options (<c>xvjpf</c>)! The
16295 <c>x</c> stands for <e>Extract</e>, the <c>v</c> for <e>Verbose</e> to see what
16296 happens during the extraction process (this one is optional), the <c>j</c> for
16297 <e>Decompress with bzip2</e>, the <c>p</c> for <e>Preserve permissions</e> and
16298 the <c>f</c> to denote that we want to extract a file, not standard input. In
16299 the next example, we extract the stage tarball
16300 <path>stage3-&lt;subarch&gt;-2006.1.tar.bz2</path>. Be sure to substitute
16301 the tarball filename with your stage.
16302 </p>
16303
16304 <pre caption="Extracting the stage tarball">
16305 # <i>tar xvjpf /mnt/cdrom/stages/stage3-&lt;subarch&gt;-2006.1.tar.bz2</i>
16306 </pre>
16307
16308 <p>
16309 Now that the stage is installed, continue with <uri
16310 link="#installing_portage">Installing Portage</uri>.
16311 </p>
16312
16313 </body>
16314 </subsection>
16315 </section>
16316 <section id="download">
16317 <title>Alternative: Using a Stage from the Internet</title>
16318 <subsection>
16319 <title>Downloading the Stage Tarball</title>
16320 <body>
16321
16322 <p>
16323 Go to the Gentoo mountpoint at which you mounted your filesystems
16324 (most likely <path>/mnt/gentoo</path>):
16325 </p>
16326
16327 <pre caption="Going to the Gentoo mountpoint">
16328 # <i>cd /mnt/gentoo</i>
16329 </pre>
16330
16331 <p>
16332 Depending on your installation medium, you have a couple of tools available to
16333 download a stage. If you have <c>links</c> available, then you can immediately
16334 surf to <uri link="/main/en/mirrors.xml">the Gentoo mirrorlist</uri> and
16335 choose a mirror close to you.
16336 </p>
16337
16338 <p>
16339 If you don't have <c>links</c> available you should have <c>lynx</c> at your
16340 disposal. If you need to go through a proxy, export the <c>http_proxy</c> and
16341 <c>ftp_proxy</c> variables:
16342 </p>
16343
16344 <pre caption="Setting proxy information for lynx">
16345 # <i>export http_proxy="http://proxy.server.com:port"</i>
16346 # <i>export ftp_proxy="http://proxy.server.com:port"</i>
16347 </pre>
16348
16349 <p>
16350 We will now assume that you have <c>links</c> at your disposal.
16351 </p>
16352
16353 <p>
16354 Pick the <path>releases/</path> directory, followed by your architecture (for
16355 instance <path>x86/</path>) and the Gentoo version (<path>2006.1/</path>) to
16356 finish up with the <path>stages/</path> directory. There you should see all
16357 available stage files for your architecture (they might be stored within
16358 subdirectories named to the individual subarchitectures). Select one and press
16359 <c>D</c> to download. When you're finished, press <c>Q</c> to quit the browser.
16360 </p>
16361
16362 <pre caption="Surfing to the mirror listing with links">
16363 # <i>links http://www.gentoo.org/main/en/mirrors.xml</i>
16364
16365 <comment>(If you need proxy support with links:)</comment>
16366 # <i>links -http-proxy proxy.server.com:8080 http://www.gentoo.org/main/en/mirrors.xml</i>
16367 </pre>
16368
16369 <p>
16370 Make sure you download a stage3 tarball - installations using a stage1 or stage2
16371 tarball are not supported anymore.
16372 </p>
16373
16374 <p>
16375 If you want to check the integrity of the downloaded stage tarball, use
16376 <c>md5sum</c> and compare the output with the MD5 checksum provided on the
16377 mirror. For instance, to check the validity of the x86 stage tarball:
16378 </p>
16379
16380 <pre caption="Example checking integrity of a stage tarball">
16381 # <i>md5sum -c stage3-x86-2006.1.tar.bz2.DIGESTS</i>
16382 stage3-x86-2006.1.tar.bz2: OK
16383 </pre>
16384
16385 </body>
16386 </subsection>
16387 <subsection>
16388 <title>Unpacking the Stage Tarball</title>
16389 <body>
16390
16391 <p>
16392 Now unpack your downloaded stage onto your system. We use <c>tar</c> to proceed
16393 as it is the easiest method:
16394 </p>
16395
16396 <pre caption="Unpacking the stage">
16397 # <i>tar xvjpf stage3-*.tar.bz2</i>
16398 </pre>
16399
16400 <p>
16401 Make sure that you use the same options (<c>xvjpf</c>). The <c>x</c> stands
16402 for <e>Extract</e>, the <c>v</c> for <e>Verbose</e> to see what happens during
16403 the extraction process (this one is optional), the <c>j</c> for <e>Decompress
16404 with bzip2</e>, the <c>p</c> for <e>Preserve permissions</e> and the <c>f</c>
16405 to denote that we want to extract a file, not standard input.
16406 </p>
16407
16408 <p>
16409 Now that the stage is installed, continue with <uri
16410 link="#installing_portage">Installing Portage</uri>.
16411 </p>
16412
16413 </body>
16414 </subsection>
16415 </section>
16416 <section id="installing_portage">
16417 <title>Installing Portage</title>
16418 <subsection>
16419 <title>Unpacking a Portage Snapshot</title>
16420 <body>
16421
16422 <p>
16423 You now have to install a Portage snapshot, a collection of files that inform
16424 Portage what software titles you can install, which profiles are available, etc.
16425 </p>
16426
16427 </body>
16428 </subsection>
16429 <subsection id="installing_from_InstallCD">
16430 <title>Unpack the Snapshot from the Installation CD</title>
16431 <body>
16432
16433 <p>
16434 To install the snapshot, take a look inside <path>/mnt/cdrom/snapshots/</path>
16435 to see what snapshot is available:
16436 </p>
16437
16438 <pre caption="Checking the /mnt/cdrom/snapshots content">
16439 # <i>ls /mnt/cdrom/snapshots</i>
16440 </pre>
16441
16442 <p>
16443 Now extract the snapshot using the following construct. Again, make sure you
16444 use the correct options with <c>tar</c>. Also, the <c>-C</c> is with a capital
16445 <c>C</c>, not <c>c</c>. In the next example we use
16446 <path>portage-&lt;date&gt;.tar.bz2</path> as the snapshot filename. Be sure to
16447 substitute with the name of the snapshot that is on your Installation CD.
16448 </p>
16449
16450 <pre caption="Extracting a Portage snapshot">
16451 # <i>tar xvjf /mnt/cdrom/snapshots/portage-&lt;date&gt;.tar.bz2 -C /mnt/gentoo/usr</i>
16452 </pre>
16453
16454 </body>
16455 </subsection>
16456 <subsection id="copysources">
16457 <title>Copy Source Code Archives</title>
16458 <body>
16459
16460 <p>
16461 You also need to copy over all source code from the Universal Installation CD.
16462 </p>
16463
16464 <pre caption="Copy over source code">
16465 # <i>mkdir /mnt/gentoo/usr/portage/distfiles</i>
16466 # <i>cp /mnt/cdrom/distfiles/* /mnt/gentoo/usr/portage/distfiles/</i>
16467 </pre>
16468
16469 </body>
16470 </subsection>
16471 </section>
16472 <section id="compile_options">
16473 <title>Configuring the Compile Options</title>
16474 <subsection>
16475 <title>Introduction</title>
16476 <body>
16477
16478 <p>
16479 To optimize Gentoo, you can set a couple of variables which impact Portage
16480 behaviour. All those variables can be set as environment variables (using
16481 <c>export</c>) but that isn't permanent. To keep your settings, Portage provides
16482 you with <path>/etc/make.conf</path>, a configuration file for Portage. It is
16483 this file we will edit now.
16484 </p>
16485
16486 <note>
16487 A commented listing of all possible variables can be found in
16488 <path>/mnt/gentoo/etc/make.conf.example</path>. For a successful Gentoo
16489 installation you'll only need to set the variables which are mentioned beneath.
16490 </note>
16491
16492 <p>
16493 Fire up your favorite editor (in this guide we use <c>nano</c>) so we can alter
16494 the optimization variables we will discuss hereafter.
16495 </p>
16496
16497 <pre caption="Opening /etc/make.conf">
16498 # <i>nano -w /mnt/gentoo/etc/make.conf</i>
16499 </pre>
16500
16501 <p>
16502 As you probably noticed, the <path>make.conf.example</path> file is
16503 structured in a generic way: commented lines start with "#", other lines define
16504 variables using the <c>VARIABLE="content"</c> syntax. The <path>make.conf</path>
16505 file uses the same syntax. Several of those variables are discussed next.
16506 </p>
16507
16508 <warn>
16509 Do not make any modifications to the USE variable if you are performing a stage3
16510 with GRP installation. You can alter the USE variable after having installed the
16511 packages you want. Gremlins are known to attack your system if you ignore this
16512 warning!
16513 </warn>
16514
16515 </body>
16516 </subsection>
16517 <subsection>
16518 <title>CHOST</title>
16519 <body>
16520
16521 <p>
16522 The <c>CHOST</c> variable declares the target build host for your system. This
16523 variable should already be set to the correct value. <brite>Do not edit
16524 it</brite> as that might break your system. If the <c>CHOST</c> variable does
16525 not look correct to you, you might be using the wrong stage3 tarball.
16526 </p>
16527
16528 </body>
16529 </subsection>
16530 <subsection>
16531 <title>CFLAGS and CXXFLAGS</title>
16532 <body>
16533
16534 <p>
16535 The <c>CFLAGS</c> and <c>CXXFLAGS</c> variables define the optimization flags
16536 for the <c>gcc</c> C and C++ compiler respectively. Although we define those
16537 generally here, you will only have maximum performance if you optimize these
16538 flags for each program separately. The reason for this is because every program
16539 is different.
16540 </p>
16541
16542 <p>
16543 In <path>make.conf</path> you should define the optimization flags you think
16544 will make your system the most responsive <e>generally</e>. Don't place
16545 experimental settings in this variable; too much optimization can make
16546 programs behave bad (crash, or even worse, malfunction).
16547 </p>
16548
16549 <p>
16550 We will not explain all possible optimization options. If you want to know
16551 them all, read the <uri link="http://gcc.gnu.org/onlinedocs/">GNU
16552 Online Manual(s)</uri> or the <c>gcc</c> info page (<c>info gcc</c> -- only
16553 works on a working Linux system). The <path>make.conf.example</path> file
16554 itself also contains lots of examples and information; don't forget to read it
16555 too.
16556 </p>
16557
16558 <p>
16559 A first setting is the <c>-march=</c> flag, which specifies the name of the
16560 target architecture. Possible options are described in the
16561 <path>make.conf.example</path> file (as comments). For instance, for the x86
16562 Athlon XP architecture:
16563 </p>
16564
16565 <pre caption="The GCC march setting">
16566 <comment># AMD64 users who want to use a native 64 bit system should use -march=k8</comment>
16567 <comment># EM64T users should use -march=nocona</comment>
16568 -march=athlon-xp
16569 </pre>
16570
16571 <p>
16572 A second one is the <c>-O</c> flag (that is a capital O, not a zero),
16573 which specifies the <c>gcc</c> optimization
16574 class flag. Possible classes are <c>s</c> (for size-optimized),
16575 <c>0</c> (zero - for no optimizations), <c>1</c>, <c>2</c> or <c>3</c> for more
16576 speed-optimization flags (every class has the same flags as the one before, plus
16577 some extras). For instance, for a class-2 optimization:
16578 </p>
16579
16580 <pre caption="The GCC O setting">
16581 -O2
16582 </pre>
16583
16584 <p>
16585 Another popular optimization flag is <c>-pipe</c> (use pipes rather than
16586 temporary files for communication between the various stages of compilation).
16587 </p>
16588
16589 <p>
16590 Mind you that using <c>-fomit-frame-pointer</c> (which doesn't keep the frame
16591 pointer in a register for functions that don't need one) might have serious
16592 repercussions on the debugging of applications!
16593 </p>
16594
16595 <p>
16596 When you define the <c>CFLAGS</c> and <c>CXXFLAGS</c>, you should combine
16597 several optimization flags, like in the following example:
16598 </p>
16599
16600 <pre caption="Defining the CFLAGS and CXXFLAGS variable">
16601 CFLAGS="-march=athlon-xp -pipe -O2" <comment># AMD64 users use march=k8</comment>
16602 <comment># EM64T users use march=nocona</comment>
16603 CXXFLAGS="${CFLAGS}" <comment># Use the same settings for both variables</comment>
16604 </pre>
16605
16606 </body>
16607 </subsection>
16608 <subsection>
16609 <title>MAKEOPTS</title>
16610 <body>
16611
16612 <p>
16613 With <c>MAKEOPTS</c> you define how many parallel compilations should occur when
16614 you install a package. A good choice is the number of CPUs in your system plus
16615 one, but this guideline isn't always perfect.
16616 </p>
16617
16618 <pre caption="MAKEOPTS for a regular, 1-CPU system">
16619 MAKEOPTS="-j2"
16620 </pre>
16621
16622 </body>
16623 </subsection>
16624 <subsection>
16625 <title>Ready, Set, Go!</title>
16626 <body>
16627
16628 <p>
16629 Update your <path>/mnt/gentoo/etc/make.conf</path> to your own preference and
16630 save (<c>nano</c> users would hit <c>Ctrl-X</c>). You are now ready to continue
16631 with <uri link="?part=1&amp;chap=6">Chrooting into the Gentoo Base System</uri>.
16632 </p>
16633
16634 </body>
16635 </subsection>
16636 </section>
16637 </sections>
16638
16639
16640
16641 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-system.xml
16642
16643 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-system.xml?rev=1.1&view=markup
16644 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-system.xml?rev=1.1&content-type=text/plain
16645
16646 Index: hb-install-system.xml
16647 ===================================================================
16648 <?xml version='1.0' encoding='UTF-8'?>
16649 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
16650
16651 <!-- The content of this document is licensed under the CC-BY-SA license -->
16652 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
16653
16654 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-system.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
16655
16656 <sections>
16657
16658 <version>6.0</version>
16659 <date>2006-02-27</date>
16660
16661 <section>
16662 <title>Chrooting</title>
16663 <subsection>
16664 <title>Mounting the /proc and /dev Filesystems</title>
16665 <body>
16666
16667 <p>
16668 Mount the <path>/proc</path> filesystem on <path>/mnt/gentoo/proc</path> to
16669 allow the installation to use the kernel-provided information within the
16670 chrooted environment, and then mount-bind the <path>/dev</path> filesystem.
16671 </p>
16672
16673 <pre caption="Mounting /proc and /dev">
16674 # <i>mount -t proc none /mnt/gentoo/proc</i>
16675 # <i>mount -o bind /dev /mnt/gentoo/dev</i>
16676 </pre>
16677
16678 </body>
16679 </subsection>
16680 <subsection>
16681 <title>Optional: Copy over DNS Information</title>
16682 <body>
16683
16684 <p>
16685 If you configured your network to fetch the appropriate stage file later on from
16686 the Internet, you need to copy over the DNS information stored in
16687 <path>/etc/resolv.conf</path> to <path>/mnt/gentoo/etc/resolv.conf</path>. This
16688 file contains the nameservers your system will use to resolve names to IP
16689 addresses.
16690 </p>
16691
16692 <pre caption="Copy over DNS Information">
16693 # <i>cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf</i>
16694 </pre>
16695
16696 </body>
16697 </subsection>
16698 <subsection>
16699 <title>Entering the new Environment</title>
16700 <body>
16701
16702 <p>
16703 Now that all partitions are initialized and the base environment
16704 installed, it is time to enter our new installation environment by
16705 <e>chrooting</e> into it. This means that we change from the current
16706 installation environment to your installation system (namely the
16707 initialized partitions).
16708 </p>
16709
16710 <p>
16711 This chrooting is done in three steps. First we will change the root
16712 from <path>/</path> (on the installation medium) to <path>/mnt/gentoo</path>
16713 (on your partitions) using <c>chroot</c>. Then we will create a new environment
16714 using <c>env-update</c>, which essentially creates environment variables.
16715 Finally, we load those variables into memory using <c>source</c>.
16716 </p>
16717
16718 <pre caption="Chrooting into the new environment">
16719 # <i>chroot /mnt/gentoo /bin/bash</i>
16720 # <i>env-update</i>
16721 >>> Regenerating /etc/ld.so.cache...
16722 # <i>source /etc/profile</i>
16723 # <i>export PS1="(chroot) $PS1"</i>
16724 </pre>
16725
16726 <p>
16727 Congratulations! You are now inside your own Gentoo Linux environment.
16728 Of course it is far from finished, which is why the installation still
16729 has some sections left :-)
16730 </p>
16731
16732 </body>
16733 </subsection>
16734 <subsection>
16735 <title>Creating the Portage cache</title>
16736 <body>
16737
16738 <p>
16739 You have already installed the Portage tree, but you should now build the
16740 Portage cache to speed up future emerges. <c>emerge --metadata</c> does this
16741 for you.
16742 </p>
16743
16744 <pre caption="Creating the Portage cache">
16745 # <i>emerge --metadata</i>
16746 </pre>
16747
16748 </body>
16749 </subsection>
16750 </section>
16751
16752 <section id="configure_USE">
16753 <title>Configuring the USE Variable</title>
16754 <subsection>
16755 <title>What is the USE Variable?</title>
16756 <body>
16757
16758 <p>
16759 <c>USE</c> is one of the most powerful variables Gentoo provides to its users.
16760 Several programs can be compiled with or without optional support for certain
16761 items. For instance, some programs can be compiled with gtk-support, or with
16762 qt-support. Others can be compiled with or without SSL support. Some programs
16763 can even be compiled with framebuffer support (svgalib) instead of X11 support
16764 (X-server).
16765 </p>
16766
16767 <p>
16768 Most distributions compile their packages with support for as much as possible,
16769 increasing the size of the programs and startup time, not to mention an enormous
16770 amount of dependencies. With Gentoo you can define what options a package
16771 should be compiled with. This is where <c>USE</c> comes into play.
16772 </p>
16773
16774 <p>
16775 In the <c>USE</c> variable you define keywords which are mapped onto
16776 compile-options. For instance, <e>ssl</e> will compile ssl-support in the
16777 programs that support it. <e>-X</e> will remove X-server support (note the minus
16778 sign in front). <e>gnome gtk -kde -qt</e> will compile your programs with gnome
16779 (and gtk) support, and not with kde (and qt) support, making your system fully
16780 tweaked for GNOME.
16781 </p>
16782
16783 </body>
16784 </subsection>
16785 <subsection>
16786 <title>Modifying the USE Variable</title>
16787 <body>
16788
16789 <warn>
16790 Do not make any modifications to the USE variable yet if you plan to use our
16791 prebuilt packages (GRP set). You can alter the USE variable after having
16792 installed the packages you want. Gremlins are known to attack your system
16793 if you ignore this warning!
16794 </warn>
16795
16796 <p>
16797 The default <c>USE</c> settings are placed in
16798 <path>/etc/make.profile/make.defaults</path>. What you place in
16799 <path>/etc/make.conf</path> is calculated against these defaults settings. If
16800 you add something to the <c>USE</c> setting, it is added to the default list. If
16801 you remove something from the <c>USE</c> setting (by placing a minus sign in
16802 front of it) it is removed from the default list (if it was in the default list
16803 at all). <e>Never</e> alter anything inside the <path>/etc/make.profile</path>
16804 directory; it gets overwritten when you update Portage!
16805 </p>
16806
16807 <p>
16808 A full description on <c>USE</c> can be found in the second part of the Gentoo
16809 Handbook, <uri link="?part=2&amp;chap=2">USE flags</uri>. A full description on
16810 the available USE flags can be found on your system in
16811 <path>/usr/portage/profiles/use.desc</path>.
16812 </p>
16813
16814 <pre caption="Viewing available USE flags">
16815 # <i>less /usr/portage/profiles/use.desc</i>
16816 <comment>(You can scroll using your arrow keys, exit by pressing 'q')</comment>
16817 </pre>
16818
16819 <p>
16820 As an example we show a <c>USE</c> setting for a KDE-based system with DVD, ALSA
16821 and CD Recording support:
16822 </p>
16823
16824 <pre caption="Opening /etc/make.conf">
16825 # <i>nano -w /etc/make.conf</i>
16826 </pre>
16827
16828 <pre caption="USE setting">
16829 USE="-gtk -gnome qt kde dvd alsa cdr"
16830 </pre>
16831
16832 </body>
16833 </subsection>
16834 </section>
16835 </sections>
16836
16837
16838
16839 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-tools.xml
16840
16841 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-tools.xml?rev=1.1&view=markup
16842 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-tools.xml?rev=1.1&content-type=text/plain
16843
16844 Index: hb-install-tools.xml
16845 ===================================================================
16846 <?xml version='1.0' encoding='UTF-8'?>
16847 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
16848
16849 <!-- The content of this document is licensed under the CC-BY-SA license -->
16850 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
16851
16852 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-tools.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
16853
16854 <sections>
16855
16856 <version>6.0</version>
16857 <date>2006-02-27</date>
16858
16859 <section>
16860 <title>System Logger</title>
16861 <body>
16862
16863 <p>
16864 Some tools are missing from the <e>stage3</e> archive because several packages
16865 provide the same functionality. It is now up to you to choose which ones you
16866 want to install.
16867 </p>
16868
16869 <p>
16870 The first tool you need to decide on has to provide logging facilities for your
16871 system. Unix and Linux have an excellent history of logging capabilities -- if
16872 you want you can log everything that happens on your system in logfiles. This
16873 happens through the <e>system logger</e>.
16874 </p>
16875
16876 <p>
16877 Gentoo offers several system loggers to choose from. There are <c>sysklogd</c>,
16878 which is the traditional set of system logging daemons, <c>syslog-ng</c>, an
16879 advanced system logger, and <c>metalog</c> which is a highly-configurable
16880 system logger. Others might be available through Portage as well - our number of
16881 available packages increases on a daily basis.
16882 </p>
16883
16884 <p>
16885 If you plan on using <c>sysklogd</c> or <c>syslog-ng</c> you might want to
16886 install <c>logrotate</c> afterwards as those system loggers don't provide any
16887 rotation mechanism for the log files.
16888 </p>
16889
16890 <!--
16891 Even though syslog-ng does not rotate the logs, it does conform to the syslog
16892 RFC (http://www.faqs.org/rfcs/rfc3164.html) and is far more powerful than most other system loggers. That and some architectures really prefer syslog-ng
16893 above others (metalog for instance doesn't work nicely with sparc all the
16894 time).
16895 -->
16896
16897 <p>
16898 To install the system logger of your choice, <c>emerge</c> it and have it added
16899 to the default runlevel using <c>rc-update</c>. The following example installs
16900 <c>syslog-ng</c>. Of course substitute with your system logger:
16901 </p>
16902
16903 <pre caption="Installing a system logger">
16904 # <i>emerge syslog-ng</i>
16905 # <i>rc-update add syslog-ng default</i>
16906 </pre>
16907
16908 </body>
16909 </section>
16910 <section>
16911 <title>Optional: Cron Daemon</title>
16912 <body>
16913
16914 <p>
16915 Next is the cron daemon. Although it is optional and not required for your
16916 system, it is wise to install one. But what is a cron daemon? A cron daemon
16917 executes scheduled commands. It is very handy if you need to execute some
16918 command regularly (for instance daily, weekly or monthly).
16919 </p>
16920
16921 <p>
16922 We only provide <c>vixie-cron</c> for networkless installations. If you want
16923 another cron daemon you can wait and install it later on.
16924 </p>
16925
16926 <pre caption="Installing a cron daemon">
16927 # <i>emerge vixie-cron</i>
16928 # <i>rc-update add vixie-cron default</i>
16929 </pre>
16930
16931 </body>
16932 </section>
16933 <section>
16934 <title>Optional: File Indexing</title>
16935 <body>
16936
16937 <p>
16938 If you want to index your system's files so you are able to quickly
16939 locate them using the <c>locate</c> tool, you need to install
16940 <c>sys-apps/slocate</c>.
16941 </p>
16942
16943 <pre caption="Installing slocate">
16944 # <i>emerge slocate</i>
16945 </pre>
16946
16947 </body>
16948 </section>
16949 <section>
16950 <title>File System Tools</title>
16951 <body>
16952
16953 <p>
16954 Depending on what file systems you are using, you need to install the necessary
16955 file system utilities (for checking the filesystem integrity, creating
16956 additional file systems etc.).
16957 </p>
16958
16959 <p>
16960 The following table lists the tools you need to install if you use a certain
16961 file system. Not all filesystems are available for each and every architecture
16962 though.
16963 </p>
16964
16965 <table>
16966 <tr>
16967 <th>File System</th>
16968 <th>Tool</th>
16969 <th>Install Command</th>
16970 </tr>
16971 <tr>
16972 <ti>XFS</ti>
16973 <ti>xfsprogs</ti>
16974 <ti><c>emerge xfsprogs</c></ti>
16975 </tr>
16976 <tr>
16977 <ti>ReiserFS</ti>
16978 <ti>reiserfsprogs</ti>
16979 <ti><c>emerge reiserfsprogs</c></ti>
16980 </tr>
16981 <tr>
16982 <ti>JFS</ti>
16983 <ti>jfsutils</ti>
16984 <ti><c>emerge jfsutils</c></ti>
16985 </tr>
16986 </table>
16987
16988 <p>
16989 If you are an EVMS user, you need to install <c>emvs</c>:
16990 </p>
16991
16992 <pre caption="Installing EVMS utilities">
16993 # <i>USE="-gtk" emerge evms</i>
16994 </pre>
16995
16996 <p>
16997 The <c>USE="-gtk"</c> will prevent the installation of dependencies. If you
16998 want to enable the <c>evms</c> graphical tools, you can recompile <c>evms</c>
16999 later on.
17000 </p>
17001
17002 <p>
17003 If you don't require any additional networking-related tools (such as rp-pppoe
17004 or a dhcp client) continue with <uri link="?part=1&amp;chap=10">Configuring the
17005 Bootloader</uri>.
17006 </p>
17007
17008 </body>
17009 </section>
17010 <section>
17011 <title>Networking Tools</title>
17012 <subsection>
17013 <title>Optional: Installing a DHCP Client</title>
17014 <body>
17015
17016 <p>
17017 If you require Gentoo to automatically obtain an IP address for your network
17018 interface(s), you need to install <c>dhcpcd</c> (or any other DHCP Client)
17019 on your system. If you don't do this now, you might not be able to connect
17020 to the internet after the installation!
17021 </p>
17022
17023 <pre caption="Installing dhcpcd">
17024 # <i>emerge dhcpcd</i>
17025 </pre>
17026
17027 </body>
17028 </subsection>
17029 <subsection>
17030 <title>Optional: Installing a PPPoE Client</title>
17031 <body>
17032
17033 <p>
17034 If you need <c>rp-pppoe</c> to connect to the net, you need to install it.
17035 </p>
17036
17037 <pre caption="Installing rp-pppoe">
17038 # <i>USE="-X" emerge rp-pppoe</i>
17039 </pre>
17040
17041 <p>
17042 The <c>USE="-X"</c> will prohibit xorg-x11 to be installed as a dependency
17043 (<c>rp-pppoe</c> has graphical tools; if you want those enabled, you can
17044 recompile <c>rp-pppoe</c> later on or have xorg-x11 installed now -- which takes a
17045 long time to compile).
17046 </p>
17047
17048 </body>
17049 </subsection>
17050 <subsection>
17051 <title>Optional: RAID utilities for IBM hardware</title>
17052 <body>
17053
17054 <p>
17055 If you are using SCSI RAID on a POWER5-based system, you should consider
17056 installing the <c>iprutils</c> which will allow you to work with the RAID disk
17057 array, get status on the disks in the arrays, and update microcode among other
17058 functions.
17059 </p>
17060
17061 <pre caption="Installing iprutils">
17062 # <i>emerge iprutils</i>
17063 </pre>
17064
17065 <p>
17066 Now continue with <uri link="?part=1&amp;chap=10">Configuring the
17067 Bootloader</uri>.
17068 </p>
17069
17070 </body>
17071 </subsection>
17072 </section>
17073 </sections>
17074
17075
17076
17077 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-x86-medium.xml
17078
17079 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-x86-medium.xml?rev=1.1&view=markup
17080 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-x86-medium.xml?rev=1.1&content-type=text/plain
17081
17082 Index: hb-install-x86-medium.xml
17083 ===================================================================
17084 <?xml version='1.0' encoding='UTF-8'?>
17085 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
17086
17087 <!-- The content of this document is licensed under the CC-BY-SA license -->
17088 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
17089
17090 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-install-x86-medium.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
17091
17092 <sections>
17093
17094 <version>6.0</version>
17095 <date>2006-02-27</date>
17096
17097 <section>
17098 <title>Hardware Requirements</title>
17099 <subsection>
17100 <title>Introduction</title>
17101 <body>
17102
17103 <p>
17104 Before we start, we first list what hardware requirements you need to
17105 successfully install Gentoo on your box using the Installer LiveCD.
17106 </p>
17107
17108 </body>
17109 </subsection>
17110 <subsection>
17111 <title>Hardware Requirements</title>
17112 <body>
17113
17114 <table>
17115 <tr>
17116 <th>CPU</th>
17117 <ti>i686 or later</ti>
17118 </tr>
17119 <tr>
17120 <th>Memory</th>
17121 <ti>128 MB</ti>
17122 </tr>
17123 <tr>
17124 <th>Diskspace</th>
17125 <ti>1.5 GB (excluding swap space)</ti>
17126 </tr>
17127 <tr>
17128 <th>Swap space</th>
17129 <ti>At least 256 MB</ti>
17130 </tr>
17131 </table>
17132
17133
17134 </body>
17135 </subsection>
17136 </section>
17137 <!-- General description, propagated to other architectures as well -->
17138 <!-- START -->
17139 <section>
17140 <title>The Gentoo Linux Installer LiveCD</title>
17141 <subsection>
17142 <title>Introduction</title>
17143 <body>
17144
17145 <p>
17146 Gentoo Linux can be installed using a <e>stage3</e> tarball file.
17147 Such a tarball is an archive that contains a minimal environment from
17148 which you can successfully install Gentoo Linux onto your system.
17149 </p>
17150
17151 <p>
17152 Installations using a stage1 or stage2 tarball file are not documented in the
17153 Gentoo Handbook - please read the <uri link="/doc/en/faq.xml#stage12">Gentoo
17154 FAQ</uri> on these matters.
17155 </p>
17156
17157 </body>
17158 </subsection>
17159 <subsection>
17160 <title>Gentoo Linux Installer LiveCD</title>
17161 <body>
17162
17163 <p>
17164 A LiveCD is a bootable medium which contains a self-sustained Gentoo
17165 environment. It allows you to boot Linux from the CD. During the boot process
17166 your hardware is detected and the appropriate drivers are loaded. The Gentoo
17167 Installation CDs are maintained by Gentoo developers.
17168 </p>
17169
17170 <p>
17171 There currently are two Installation CDs available:
17172 </p>
17173
17174 <ul>
17175 <li>
17176 The Installer LiveCD contains everything you need to install Gentoo. It
17177 provides a graphical environment, a graphical as well as console based
17178 installer which automatically carries out the installation for you, and of
17179 course, the installation instructions for your architecture.
17180 </li>
17181 <li>
17182 The Minimal Installation CD contains only a minimal environment that allows
17183 you to boot up and configure your network so you can connect to the
17184 Internet. It does not contain any additional files and cannot be used
17185 during the current installation approach.
17186 </li>
17187 </ul>
17188
17189 </body>
17190 </subsection>
17191 </section>
17192 <!-- STOP -->
17193 <section>
17194 <title>Download, Burn and Boot the Gentoo Linux Installer LiveCD</title>
17195 <subsection>
17196 <title>Downloading and Burning the Installer LiveCD</title>
17197 <body>
17198
17199 <p>
17200 You can download the Installer LiveCDs from one of our <uri
17201 link="/main/en/mirrors.xml">mirrors</uri>. They are located in
17202 the <path>releases/x86/2006.1/livecd</path> directory.
17203 </p>
17204
17205 <p>
17206 Inside that directory you'll find an ISO-file. That is a full CD image which
17207 you can write on a CD-R.
17208 </p>
17209
17210 <p>
17211 After downloading the file, you can verify its integrity to see if it is
17212 corrupted or not:
17213 </p>
17214
17215 <ul>
17216 <li>
17217 You can check its MD5 checksum and compare it with the MD5 checksum we
17218 provide (for instance with the <c>md5sum</c> tool under Linux/Unix or
17219 <uri link="http://www.etree.org/md5com.html">md5sum</uri> for Windows)
17220 </li>
17221 <li>
17222 You can verify the cryptographic signature that we provide. You need to
17223 obtain the public key we use (17072058) before you proceed though.
17224 </li>
17225 </ul>
17226
17227 <p>
17228 To fetch our public key using the GnuPG application, run the following command:
17229 </p>
17230
17231 <pre caption="Obtaining the public key">
17232 $ <i>gpg --keyserver subkeys.pgp.net --recv-keys 17072058</i>
17233 </pre>
17234
17235 <p>
17236 Now verify the signature:
17237 </p>
17238
17239 <pre caption="Verify the cryptographic signature">
17240 $ <i>gpg --verify &lt;signature file&gt; &lt;downloaded iso&gt;</i>
17241 </pre>
17242
17243 <p>
17244 To burn the downloaded ISO(s), you have to select raw-burning. How you
17245 do this is highly program-dependent. We will discuss <c>cdrecord</c> and
17246 <c>K3B</c> here; more information can be found in our <uri
17247 link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>.
17248 </p>
17249
17250 <ul>
17251 <li>
17252 With cdrecord, you simply type <c>cdrecord dev=/dev/hdc &lt;downloaded iso
17253 file&gt;</c> (replace <path>/dev/hdc</path> with your CD-RW drive's device
17254 path).
17255 </li>
17256 <li>
17257 With K3B, select <c>Tools</c> &gt; <c>CD</c> &gt; <c>Burn Image</c>. Then
17258 you can locate your ISO file within the 'Image to Burn' area. Finally click
17259 <c>Start</c>.
17260 </li>
17261 </ul>
17262
17263 </body>
17264 </subsection>
17265 <subsection>
17266 <title>Booting the Installer LiveCD</title>
17267 <body>
17268
17269 <impo>
17270 Read this whole subsection before continuing, as you will probably not have the
17271 opportunity to read it before doing things later.
17272 </impo>
17273
17274 <p>
17275 Once you have burned your LiveCD, it is time to boot it. Remove all CDs from
17276 your CD drives, reboot your system and enter the BIOS. This is usually done by
17277 hitting DEL, F1 or ESC, depending on your BIOS. Inside the BIOS, change the
17278 boot order so that the CD-ROM is tried before the hard disk. This is often found
17279 under "CMOS Setup". If you don't do this, your system will just reboot from the
17280 hard disk, ignoring the CD-ROM.
17281 </p>
17282
17283 <p>
17284 Now place the LiveCD in the CD-ROM drive and reboot. You should see a boot
17285 prompt. At this screen, you can hit Enter to begin the boot process with the
17286 default boot options, or boot the LiveCD with custom boot options by specifying
17287 a kernel followed by boot options and then hitting Enter.
17288 </p>
17289
17290 <p>
17291 Specifying a kernel? Yes, we provide several kernels on our LiveCD.
17292 The default one is <c>gentoo</c>. Other kernels are for specific hardware needs
17293 and the <c>-nofb</c> variants which disable framebuffer.
17294 </p>
17295
17296 <p>
17297 Below you'll find a short overview on the available kernels:
17298 </p>
17299
17300 <table>
17301 <tr>
17302 <th>Kernel</th>
17303 <th>Description</th>
17304 </tr>
17305 <tr>
17306 <ti>gentoo</ti>
17307 <ti>Default 2.6 kernel with support for multiple CPUs</ti>
17308 </tr>
17309 <tr>
17310 <ti>gentoo-nofb</ti>
17311 <ti>Same as <c>gentoo</c> but without framebuffer support</ti>
17312 </tr>
17313 <tr>
17314 <ti>memtest86</ti>
17315 <ti>Test your local RAM for errors</ti>
17316 </tr>
17317 </table>
17318
17319 <p>
17320 You can also provide kernel options. They represent optional settings you can
17321 (de)activate at will. The following list is the same as the one you receive
17322 when you press F2 through F7 at the bootscreen.
17323 </p>
17324
17325 <pre caption="Options available to pass to your kernel of choice">
17326 <comment>Hardware options:</comment>
17327
17328 acpi=on This loads support for ACPI and also causes the acpid daemon to
17329 be started by the CD on boot. This is only needed if your
17330 system requires ACPI to function properly. This is not
17331 required for Hyperthreading support.
17332
17333 acpi=off Completely disables ACPI. This is useful on some older
17334 systems, and is also a requirement for using APM. This will
17335 disable any Hyperthreading support of your processor.
17336
17337 console=X This sets up serial console access for the CD. The first
17338 option is the device, usually ttyS0 on x86, followed by any
17339 connection options, which are comma separated. The default
17340 options are 9600,8,n,1.
17341
17342 dmraid=X This allows for passing options to the device-mapper RAID
17343 subsystem. Options should be encapsulated in quotes.
17344
17345 doapm This loads APM driver support. This requires you to also use
17346 acpi=off.
17347
17348 dobladecenter This adds some extra pauses into the boot process for the slow
17349 USB CDROM of the IBM BladeCenter.
17350
17351 dopcmcia This loads support for PCMCIA and Cardbus hardware and also
17352 causes the pcmcia cardmgr to be started by the CD on boot.
17353 This is only required when booting from a PCMCIA/Cardbus device.
17354
17355 doscsi This loads support for most SCSI controllers. This is also a
17356 requirement for booting most USB devices, as they use the SCSI
17357 subsystem of the kernel.
17358
17359 hda=stroke This allows you to partition the whole hard disk even when your
17360 BIOS is unable to handle large disks. This option is only used
17361 on machines with an older BIOS. Replace hda with the device
17362 that is requiring this option.
17363
17364 ide=nodma This forces the disabling of DMA in the kernel and is required
17365 by some IDE chipsets and also by some CDROM drives. If your
17366 system is having trouble reading from your IDE CDROM, try this
17367 option. This also disables the default hdparm settings from
17368 being executed.
17369
17370 noapic This disables the Advanced Programmable Interrupt Controller
17371 that is present on newer motherboards. It has been known to
17372 cause some problems on older hardware.
17373
17374 nodetect This disables all of the autodetection done by the CD,
17375 including device autodetection and DHCP probing. This is
17376 useful for doing debugging of a failing CD or driver.
17377
17378 nodhcp This disables DHCP probing on detected network cards. This is
17379 useful on networks with only static addresses.
17380
17381 nodmraid Disables support for device-mapper RAID, such as that used for
17382 on-board IDE/SATA RAID controllers.
17383
17384 nofirewire This disables the loading of Firewire modules. This should only
17385 be necessary if your Firewire hardware is causing a problem
17386 with booting the CD.
17387
17388 nogpm This disables gpm console mouse support.
17389
17390 nohotplug This disables the loading of the hotplug and coldplug init
17391 scripts at boot. This is useful for doing debugging of a
17392 failing CD or driver.
17393
17394 nokeymap This disables the keymap selection used to select non-US
17395 keyboard layouts.
17396
17397 nolapic This disables the local APIC on Uniprocessor kernels.
17398
17399 nosata This disables the loading of Serial ATA modules. This is
17400 useful if your system is having problems with the SATA subsystem.
17401
17402 nosmp This disables SMP, or Symmetric Multiprocessing, on SMP-enabled
17403 kernels. This is useful for debugging SMP-related issues with
17404 certain drivers and motherboards.
17405
17406 nosound This disables sound support and volume setting. This is useful
17407 for systems where sound support causes problems.
17408
17409 nousb This disables the autoloading of USB modules. This is useful
17410 for debugging USB issues.
17411
17412 <comment>Volume/Device Management:</comment>
17413
17414 dodevfs This enables the deprecated device filesystem on 2.6 systems.
17415 You will also need to use noudev for this to take effect.
17416 Since devfs is the only option with a 2.4 kernel, this option
17417 has no effect if booting a 2.4 kernel.
17418
17419 doevms2 This enables support for IBM's pluggable EVMS, or Enterprise
17420 Volume Management System. This is not safe to use with lvm2.
17421
17422 dolvm2 This enables support for Linux's Logical Volume Management.
17423 This is not safe to use with evms2.
17424
17425 noudev This disables udev support on 2.6 kernels. This option
17426 requires that dodevfs is used. Since udev is not an option for
17427 2.4 kernels, this options has no effect if booting a 2.4
17428 kernel.
17429
17430 unionfs Enables support for Unionfs on supported CD images. This will
17431 create a writable Unionfs overlay in a tmpfs, allowing you to
17432 change any file on the CD.
17433
17434 unionfs=X Enables support for Unionfs on supported CD images. This will
17435 create a writable Unionfs overlay on the device you specify.
17436 The device must be formatted with a filesystem recognized and
17437 writable by the kernel.
17438
17439 <comment>Other options:</comment>
17440
17441 debug Enables debugging code. This might get messy, as it displays
17442 a lot of data to the screen.
17443
17444 docache This caches the entire runtime portion of the CD into RAM,
17445 which allows you to umount /mnt/cdrom and mount another CDROM.
17446 This option requires that you have at least twice as much
17447 available RAM as the size of the CD.
17448
17449 doload=X This causes the initial ramdisk to load any module listed, as
17450 well as dependencies. Replace X with the module name. Multiple
17451 modules can be specified by a comma-separated list.
17452
17453 noload=X This causes the initial ramdisk to skip the loading of a
17454 specific module that may be causing a problem. Syntax matches
17455 that of doload.
17456
17457 nox This causes an X-enabled LiveCD to not automatically start X,
17458 but rather, to drop to the command line instead.
17459
17460 scandelay This causes the CD to pause for 10 seconds during certain
17461 portions the boot process to allow for devices that are slow to
17462 initialize to be ready for use.
17463
17464 scandelay=X This allows you to specify a given delay, in seconds, to be
17465 added to certain portions of the boot process to allow for
17466 devices that are slow to initialize to be ready for use.
17467 Replace X with the number of seconds to pause.
17468 </pre>
17469
17470 <p>
17471 Now boot your CD, select a kernel (if you are not happy with the default
17472 <c>gentoo</c> kernel) and boot options. As an example, we show you how
17473 to boot the <c>gentoo</c> kernel, with <c>dopcmcia</c> as kernel
17474 parameters:
17475 </p>
17476
17477 <pre caption="Booting an Installation CD">
17478 boot: <i>gentoo dopcmcia</i>
17479 </pre>
17480
17481 <p>
17482 You will then be greeted with a boot screen and progress bar. If you are
17483 installing Gentoo on a system with a non-US keyboard, make sure you
17484 immediately press Alt-F1 to switch to verbose mode and follow the prompt. If no
17485 selection is made in 10 seconds the default (US keyboard) will be accepted and
17486 the boot process will continue. Once the boot process completes, Gnome will
17487 start up and you will be automatically logged in to the "Live" Gentoo Linux
17488 system as "gentoo" in graphical mode. You will be logged in as "root", the
17489 superuser on the other consoles and should have a root ("#") prompt there. You
17490 can switch to those consoles by pressing Alt-F2, Alt-F3, Alt-F4 Alt-F5, Alt-F6.
17491 Get back to the graphical desktop you started on by pressing Alt-F7. To switch
17492 to other consoles from within X, you must prefix the above with Ctrl. You are
17493 able to run commands as root from any terminal within the graphical environment
17494 by using the <c>sudo</c> application. You can even become root within a
17495 terminal to perform multiple tasks.
17496 </p>
17497
17498 <pre caption="Using sudo to run applications">
17499 <comment>(Example only)</comment>
17500 <comment>(Editing the group file)</comment>
17501 # <i>sudo vi /etc/group</i>
17502 <comment>(Becoming root for a session)</comment>
17503 # <i>sudo su -</i>
17504 </pre>
17505
17506 </body>
17507 </subsection>
17508 <subsection id="hardware">
17509 <title>Extra Hardware Configuration</title>
17510 <body>
17511
17512 <p>
17513 When the LiveCD boots, it tries to detect all your hardware devices and
17514 loads the appropriate kernel modules to support your hardware. In the
17515 vast majority of cases, it does a very good job. However, in some cases, it
17516 may not auto-load the kernel modules you need. If the PCI auto-detection
17517 missed some of your system's hardware, you will have to load the appropriate
17518 kernel modules manually. These tasks require root access.
17519 </p>
17520
17521 <p>
17522 In the next example we try to load the <c>8139too</c> module (support for
17523 certain kinds of network interfaces):
17524 </p>
17525
17526 <pre caption="Loading kernel modules">
17527 # <i>modprobe 8139too</i>
17528 </pre>
17529
17530 <p>
17531 If you need PCMCIA support, you should start the <c>pcmcia</c> init script:
17532 </p>
17533
17534 <pre caption="Starting the PCMCIA init script">
17535 # <i>/etc/init.d/pcmcia start</i>
17536 </pre>
17537
17538 </body>
17539 </subsection>
17540 <subsection>
17541 <title>Optional: Tweaking Hard Disk Performance</title>
17542 <body>
17543
17544 <p>
17545 If you are an advanced user, you might want to tweak the IDE hard disk
17546 performance using <c>hdparm</c>. You will need root access to use <c>hdparm</c>.
17547 With the <c>-tT</c> options you can test the performance of your disk (execute
17548 it several times to get a more precise impression):
17549 </p>
17550
17551 <pre caption="Testing disk performance">
17552 # <i>hdparm -tT /dev/hda</i>
17553 </pre>
17554
17555 <p>
17556 To tweak, you can use any of the following examples (or experiment
17557 yourself) which use <path>/dev/hda</path> as disk (substitute with your
17558 disk):
17559 </p>
17560
17561 <pre caption="Tweaking hard disk performance">
17562 <comment>Activate DMA:</comment> # <i>hdparm -d 1 /dev/hda</i>
17563 <comment>Activate Safe Performance Options:</comment> # <i>hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda</i>
17564 </pre>
17565
17566 </body>
17567 </subsection>
17568 <subsection id="useraccounts">
17569 <title>Optional: User Accounts</title>
17570 <body>
17571
17572 <p>
17573 If you plan on giving other people access to your installation
17574 environment or you want to chat using <c>irssi</c> without root privileges (for
17575 security reasons), you need to create the necessary user accounts and change
17576 the root password. You need root access to change the root password and add new
17577 users.
17578 </p>
17579
17580 <p>
17581 To change the root password, use the <c>passwd</c> utility:
17582 </p>
17583
17584 <pre caption="Changing the root password">
17585 $ <i>sudo su -</i>
17586 # <i>passwd</i>
17587 New password: <comment>(Enter your new password)</comment>
17588 Re-enter password: <comment>(Re-enter your password)</comment>
17589 </pre>
17590
17591 <p>
17592 To create a user account, we first enter their credentials, followed by
17593 its password. We use <c>useradd</c> and <c>passwd</c> for these tasks.
17594 In the next example, we create a user called &quot;john&quot;.
17595 </p>
17596
17597 <pre caption="Creating a user account">
17598 # <i>useradd -m -G users john</i>
17599 # <i>passwd john</i>
17600 New password: <comment>(Enter john's password)</comment>
17601 Re-enter password: <comment>(Re-enter john's password)</comment>
17602 </pre>
17603
17604 <p>
17605 You can change your user id from root to the newly created user by using
17606 <c>su</c>:
17607 </p>
17608
17609 <pre caption="Changing user id">
17610 # <i>su - john</i>
17611 </pre>
17612
17613 <p>
17614 You can also change the password for the "gentoo" user in the graphical
17615 environment. This account is already suitable for use on the Internet.
17616 </p>
17617
17618 <pre caption="Changing the gentoo password">
17619 $ <i>passwd</i>
17620 New password: <comment>(Enter your new password)</comment>
17621 Re-enter password: <comment>(Re-enter your password)</comment>
17622 </pre>
17623
17624
17625 </body>
17626 </subsection>
17627 <subsection>
17628 <title>Optional: Viewing Documentation while Installing</title>
17629 <body>
17630
17631 <p>
17632 If you want to view the Gentoo Handbook (either from-CD or online) during the
17633 installation, make sure you have created a user account (see <uri
17634 link="#useraccounts">Optional: User Accounts</uri>). Then press <c>Alt-F2</c> to
17635 go to a new terminal and log in.
17636 </p>
17637
17638 <p>
17639 If you want to view the documentation on the CD you can immediately run
17640 <c>links</c> to read it:
17641 </p>
17642
17643 <pre caption="Viewing the on-CD documentation">
17644 # <i>links /mnt/cdrom/docs/handbook/html/index.html</i>
17645 </pre>
17646
17647 <p>
17648 However, it is preferred that you use the online Gentoo Handbook as it will be
17649 more recent than the one provided on the CD. You can view it using <c>links</c>
17650 as well, but only after having completed the <e>Configuring your Network</e>
17651 chapter (otherwise you won't be able to go on the Internet to view the
17652 document):
17653 </p>
17654
17655 <pre caption="Viewing the Online Documentation">
17656 # <i>links http://www.gentoo.org/doc/en/handbook/handbook-x86.xml</i>
17657 </pre>
17658
17659 <p>
17660 You can go back to your original window by pressing <c>Alt-F7</c>.
17661 </p>
17662
17663 <p>
17664 You can now choose to proceed by using the <uri link="?part=1&amp;chap=3">GTK+
17665 based installer</uri> (which needs X) or the <uri
17666 link="?part=1&amp;chap=4">Dialog based installer</uri> that can be run on a
17667 console.
17668 </p>
17669
17670 </body>
17671 </subsection>
17672 </section>
17673 </sections>
17674
17675
17676
17677 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/hb-installer-about.xml
17678
17679 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-installer-about.xml?rev=1.1&view=markup
17680 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-installer-about.xml?rev=1.1&content-type=text/plain
17681
17682 Index: hb-installer-about.xml
17683 ===================================================================
17684 <?xml version='1.0' encoding='UTF-8'?>
17685 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
17686
17687 <!-- The content of this document is licensed under the CC-BY-SA license -->
17688 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
17689
17690 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/hb-installer-about.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
17691
17692 <sections>
17693
17694 <version>1.0</version>
17695 <date>2006-02-27</date>
17696
17697 <section>
17698 <title>Introduction</title>
17699 <subsection>
17700 <title>Welcome!</title>
17701 <body>
17702
17703 <p>
17704 First of all, <e>welcome</e> to Gentoo. You are about to enter the world
17705 of customization and performance. When installing Gentoo, this is made clear to
17706 you several times -- you can choose how much you want to compile yourself, how
17707 to install Gentoo, what system logger you want, etc.
17708 </p>
17709
17710 <p>
17711 Gentoo is a fast, modern meta-distribution with a clean and flexible
17712 design. Gentoo is built around free software and doesn't hide from its
17713 users what is beneath the hood. Portage, the package maintenance system
17714 which Gentoo uses, is written in Python, meaning you can easily view and
17715 modify the source code. Gentoo's packaging system uses source code
17716 (although support for precompiled packages is included too) and
17717 configuring Gentoo happens through regular text files. In other words,
17718 openness everywhere.
17719 </p>
17720
17721 <p>
17722 It is very important that you understand that <e>empowerment</e> is what makes
17723 Gentoo run. We try not to force anything on our users and try our best to
17724 empower you to make the choices you wish. If you feel a change should be made,
17725 please file a <uri link="http://bugs.gentoo.org">bug report</uri> about it.
17726 </p>
17727
17728 </body>
17729 </subsection>
17730 <subsection>
17731 <title>How do I go about Installing Gentoo?</title>
17732 <body>
17733
17734 <p>
17735 Gentoo Linux comes with two versions of an easy to use Installer. A GTK+ based
17736 installer (for use with an X based environment) and a Dialog based installer for
17737 use on the console. Chapter 3 of the handbook deals with the GTK+ based
17738 installer while Chapter 4 is for the Dialog based one.
17739 </p>
17740
17741 <p>
17742 Sometimes, you are given a certain choice in the handbook. We try our best to
17743 explain what the pros and cons are. We will continue then with a default choice,
17744 identified by &quot;Default: &quot; in the title. The other possibilities are
17745 marked by &quot;Alternative: &quot;. Do <e>not</e> think that the default is
17746 what we recommend. It is however what we believe most users will use.
17747 </p>
17748
17749 <p>
17750 Sometimes you can pursue an optional step. Such steps are marked as
17751 &quot;Optional: &quot; and are therefore not needed to install Gentoo.
17752 However, some optional steps are dependant on a previous decision you
17753 made. We will inform you when this happens, both when you make the
17754 decision, and right before the optional step is described.
17755 </p>
17756
17757 </body>
17758 </subsection>
17759 <subsection>
17760 <title>What are my Options?</title>
17761 <body>
17762
17763 <p>
17764 You can install Gentoo in many different ways. You can download and install from
17765 one of our Installation CDs, from an existing distribution, from a bootable CD
17766 (such as Knoppix), from a netbooted environment, from a rescue floppy, etc.
17767 </p>
17768
17769 <p>
17770 This document covers the installation using a Gentoo Linux Installation CD, a
17771 bootable CD that contains everything you need to get Gentoo Linux up and
17772 running. There are two types of Installation CDs, the InstallCD and the
17773 Installer LiveCD. The InstallCD is a minimal environment which contains only
17774 those packages necessary for installing Gentoo Linux. The LiveCD is a complete
17775 Gentoo Linux environment and can be used for multiple tasks, one of which is
17776 installing Gentoo Linux. The LiveCD is not available on all architectures at
17777 this time. If your architecture does not have a LiveCD, then this document will
17778 refer to the Universal InstallCD for you.
17779 </p>
17780
17781 <p>
17782 This installation approach however does not immediately use the latest version
17783 of the available packages; if you want this you should check out the
17784 Installation Instructions inside our <uri
17785 link="/doc/en/handbook/index.xml">Gentoo Linux Handbooks</uri>.
17786 </p>
17787
17788 <p>
17789 For help on the other installation approaches,
17790 please read our <uri link="/doc/en/altinstall.xml">Alternative Installation
17791 Guide</uri>. We also provide a <uri
17792 link="/doc/en/gentoo-x86-tipsntricks.xml">Gentoo Installation Tips &amp;
17793 Tricks</uri> document that might be useful to read as well. If you feel that
17794 the current installation instructions are too elaborate, feel free to use our
17795 Quick Installation Guide available from our <uri
17796 link="/doc/en/index.xml">Documentation Resources</uri> if your architecture
17797 has such a document available.
17798 </p>
17799
17800 </body>
17801 </subsection>
17802 <subsection>
17803 <title>Troubles?</title>
17804 <body>
17805
17806 <p>
17807 If you find a problem in the installation (or in the installation
17808 documentation), please check the errata from our <uri
17809 link="/proj/en/releng/">Gentoo Release Engineering Project</uri>,
17810 visit our <uri link="http://bugs.gentoo.org">bug tracking
17811 system</uri> and check if the bug is known. If not, please create a bug report
17812 for it so we can take care of it. Do not be afraid of the developers who are
17813 assigned to (your) bugs -- they generally don't eat people.
17814 </p>
17815
17816 <p>
17817 Note though that, although the document you are now reading is
17818 architecture-specific, it will contain references to other architectures as
17819 well. This is due to the fact that large parts of the Gentoo Handbook use source
17820 code that is common for all architectures (to avoid duplication of efforts and
17821 starvation of development resources). We will try to keep this to a minimum
17822 to avoid confusion.
17823 </p>
17824
17825 <p>
17826 If you are uncertain if the problem is a user-problem (some error you
17827 made despite having read the documentation carefully) or a
17828 software-problem (some error we made despite having tested the
17829 installation/documentation carefully) you are free to join #gentoo on
17830 irc.freenode.net. Of course, you are welcome otherwise too :)
17831 </p>
17832
17833 <p>
17834 If you have a question regarding Gentoo, check out our <uri
17835 link="/doc/en/faq.xml">Frequently Asked
17836 Questions</uri>, available from the <uri
17837 link="/doc/en/">Gentoo Documentation</uri>. You can
17838 also view the <uri
17839 link="http://forums.gentoo.org/viewforum.php?f=40">FAQs</uri> on our
17840 <uri link="http://forums.gentoo.org">forums</uri>. If you can't find the answer
17841 there ask on #gentoo, our IRC-channel on irc.freenode.net. Yes, several of
17842 us are freaks who sit on IRC :-)
17843 </p>
17844
17845 </body>
17846 </subsection>
17847 </section>
17848 <section>
17849 <title>Fast Installation using the Gentoo Reference Platform</title>
17850 <subsection>
17851 <title>What is the Gentoo Reference Platform?</title>
17852 <body>
17853
17854 <p>
17855 The Gentoo Reference Platform, from now on abbreviated to GRP, is a snapshot of
17856 prebuilt packages users (that means you!) can install during the installation
17857 of Gentoo to speed up the installation process. The GRP consists of all
17858 packages required to have a fully functional Gentoo installation. They are not
17859 just the ones you need to have a base installation up to speed in no time, but
17860 all lengthier builds (such as xorg-x11, GNOME, OpenOffice, Mozilla, ...)
17861 are available as GRP packages too.
17862 </p>
17863
17864 <p>
17865 However, these prebuilt packages aren't maintained during the lifetime of the
17866 Gentoo distribution. They are snapshots released at every Gentoo release and
17867 make it possible to have a functional environment in a short amount of time. You
17868 can then upgrade your system in the background while working in your Gentoo
17869 environment.
17870 </p>
17871
17872 </body>
17873 </subsection>
17874 <subsection>
17875 <title>How Portage Handles GRP Packages</title>
17876 <body>
17877
17878 <p>
17879 Your Portage tree - the collection of <e>ebuilds</e> (files that contain all
17880 information about a package, such as its description, homepage, sourcecode URLs,
17881 compilation instructions, dependencies, etc.) - must be synchronised with the
17882 GRP set: the versions of the available ebuilds and their accompanying GRP
17883 packages must match.
17884 </p>
17885
17886 <p>
17887 For this reason you can only benefit from the GRP packages Gentoo provides while
17888 performing the current installation approach. GRP is not available for those
17889 interested in performing an installation using the latest versions of all
17890 available packages.
17891 </p>
17892
17893 </body>
17894 </subsection>
17895 <subsection>
17896 <title>Is GRP Available?</title>
17897 <body>
17898
17899 <p>
17900 Not all architectures provide GRP packages. That doesn't mean GRP isn't
17901 supported on the other architectures, but it means that we don't have the
17902 resources to build and test the GRP packages.
17903 </p>
17904
17905 <p>
17906 At present we provide GRP packages for the following architectures:
17907 </p>
17908
17909 <ul>
17910 <li>
17911 The <b>amd64</b> architecture (amd64)
17912 </li>
17913 <li>
17914 The <b>ppc</b> architecture (ppc32, ppc64)
17915 </li>
17916 <li>
17917 The <b>sparc</b> architecture (sparc64)
17918 </li>
17919 <li>
17920 The <b>x86</b> architecture (athlon, athlon-xp, athlon-mp, pentium-pro,
17921 pentium2, pentium3, pentium4 and pentium-m) Note: The packages are for i686
17922 and are available on the Installer LiveCD.
17923 </li>
17924 </ul>
17925
17926 <p>
17927 If your architecture (or subarchitecture) isn't on this list, you are not
17928 able to opt for a GRP installation.
17929 </p>
17930
17931 <p>
17932 Now that this introduction is over, let's continue with <uri
17933 link="?part=1&amp;chap=2">Booting the Universal InstallCD/Installer
17934 LiveCD</uri>.
17935 </p>
17936
17937 </body>
17938 </subsection>
17939 </section>
17940 </sections>
17941
17942
17943
17944 1.1 xml/htdocs/doc/en/handbook/draft/2006.1/index.xml
17945
17946 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/index.xml?rev=1.1&view=markup
17947 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/index.xml?rev=1.1&content-type=text/plain
17948
17949 Index: index.xml
17950 ===================================================================
17951 <?xml version='1.0' encoding="UTF-8"?>
17952 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
17953
17954 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2006.1/index.xml,v 1.1 2006/08/09 16:35:14 fox2mike Exp $ -->
17955
17956 <guide link="/doc/en/handbook/2006.1/index.xml">
17957 <title>Gentoo 2006.1 Handbook</title>
17958
17959 <author title="Author">
17960 <mail link="swift@g.o">Sven Vermeulen</mail>
17961 </author>
17962
17963 <abstract>
17964 The Gentoo 2006.1 Handbook is an effort to centralise documentation into a
17965 coherent handbook. It contains the networkless installation instructions for the
17966 2006.1 release and parts on working with Gentoo and Portage.
17967 </abstract>
17968
17969 <license/>
17970
17971 <version>6.0</version>
17972 <date>2006-02-27</date>
17973
17974 <chapter>
17975 <title>The Gentoo Linux 2006.1 Handbooks</title>
17976 <!-- Uncomment when needed, probably for the 2006.1 versions -->
17977 <!--
17978 <section>
17979 <title>Available languages</title>
17980 <body>
17981
17982 <p>
17983 The Gentoo Linux 2006.1 Handbook is available in the following languages:
17984 </p>
17985
17986 <p>
17987 <uri link="/doc/da/handbook">Danish</uri> |
17988 <uri link="/doc/de/handbook">German</uri> |
17989 <uri link="/doc/en/handbook">English</uri> |
17990 <uri link="/doc/fr/handbook">French</uri> |
17991 <uri link="/doc/id/handbook">Indonesian</uri> |
17992 <uri link="/doc/it/handbook">Italian</uri> |
17993 <uri link="/doc/ja/handbook">Japanese</uri> |
17994 <uri link="/doc/pl/handbook">Polish</uri> |
17995 <uri link="/doc/ro/handbook">Romanian</uri> |
17996 <uri link="/doc/es/handbook">Spanish</uri> |
17997 <uri link="/doc/zh_tw/handbook">Traditional Chinese</uri>
17998 </p>
17999
18000 </body>
18001 </section>
18002 -->
18003 <section>
18004 <title>Introduction</title>
18005 <body>
18006
18007 <p>
18008 Welcome to the Gentoo Linux 2006.1 Handbooks. These handbooks are released
18009 together with the Gentoo Linux releases and contain the necessary installation
18010 instructions to install Gentoo Linux 2006.1 <brite>without an internet
18011 connection.</brite>
18012 </p>
18013
18014 <p>
18015 However, if you want to install Gentoo Linux using the latest versions of all
18016 available packages, please use the Installation Instructions in the <uri
18017 link="/doc/en/handbook/">Gentoo Linux Handbook</uri> for your architecture.
18018 </p>
18019
18020 </body>
18021 </section>
18022 </chapter>
18023 <chapter>
18024 <title>View the Handbook</title>
18025 <section>
18026 <body>
18027
18028 <table>
18029 <tr>
18030 <th>Format</th>
18031 <th>Description</th>
18032 <th>Links</th>
18033 </tr>
18034 <tr>
18035 <ti>HTML</ti>
18036 <ti>One page per chapter, perfect for online viewing</ti>
18037 <ti>
18038 <uri link="handbook-x86.xml">x86</uri>,
18039 <uri link="handbook-sparc.xml">sparc</uri>,
18040 <uri link="handbook-alpha.xml">alpha</uri>,
18041 <uri link="handbook-amd64.xml">amd64</uri>,
18042 <uri link="handbook-ppc.xml">ppc</uri>,
18043 <uri link="handbook-ppc64.xml">ppc64</uri>,
18044 <uri link="handbook-hppa.xml">hppa</uri>
18045 </ti>
18046 </tr>
18047 <tr>
18048 <ti>HTML</ti>
18049 <ti>All in one page</ti>
18050 <ti>
18051 <uri link="handbook-x86.xml?full=1">x86</uri>,
18052 <uri link="handbook-sparc.xml?full=1">sparc</uri>,
18053 <uri link="handbook-alpha.xml?full=1">alpha</uri>,
18054 <uri link="handbook-amd64.xml?full=1">amd64</uri>,
18055 <uri link="handbook-ppc.xml?full=1">ppc</uri>,
18056 <uri link="handbook-ppc64.xml?full=1">ppc64</uri>,
18057 <uri link="handbook-hppa.xml?full=1">hppa</uri>
18058 </ti>
18059 </tr>
18060 <tr>
18061 <ti>HTML</ti>
18062 <ti>All in one page, printable version</ti>
18063 <ti>
18064 <uri link="handbook-x86.xml?style=printable&amp;full=1">x86</uri>,
18065 <uri link="handbook-sparc.xml?style=printable&amp;full=1">sparc</uri>,
18066 <uri link="handbook-alpha.xml?style=printable&amp;full=1">alpha</uri>,
18067 <uri link="handbook-amd64.xml?style=printable&amp;full=1">amd64</uri>,
18068 <uri link="handbook-ppc.xml?style=printable&amp;full=1">ppc</uri>,
18069 <uri link="handbook-ppc64.xml?style=printable&amp;full=1">ppc64</uri>,
18070 <uri link="handbook-hppa.xml?style=printable&amp;full=1">hppa</uri>
18071 </ti>
18072 </tr>
18073 </table>
18074
18075 </body>
18076 </section>
18077 </chapter>
18078 </guide>
18079
18080
18081
18082 --
18083 gentoo-doc-cvs@g.o mailing list