Gentoo Archives: gentoo-doc-cvs

From: Josh Saddler <nightmorph@×××××××××××.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-config.xml hb-install-finalise.xml hb-install-gli-dialog.xml hb-install-gli-medium.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-medium.xml hb-install-stage.xml hb-install-system.xml hb-install-tools.xml hb-installer-about! .xml index.xml
Date: Wed, 30 Aug 2006 20:19:14
Message-Id: 20060830201739.10D2764169@smtp.gentoo.org
1 nightmorph 06/08/30 20:17:32
2
3 Added: handbook-alpha.xml handbook-amd64.xml
4 handbook-hppa.xml handbook-ppc.xml
5 handbook-ppc64.xml handbook-sparc.xml
6 handbook-x86.xml hb-install-about.xml
7 hb-install-alpha-bootloader.xml
8 hb-install-alpha-disk.xml
9 hb-install-alpha-kernel.xml
10 hb-install-alpha-medium.xml hb-install-config.xml
11 hb-install-finalise.xml hb-install-gli-dialog.xml
12 hb-install-gli-medium.xml hb-install-gtkfe.xml
13 hb-install-hppa-bootloader.xml
14 hb-install-hppa-disk.xml hb-install-hppa-kernel.xml
15 hb-install-hppa-medium.xml hb-install-network.xml
16 hb-install-next.xml hb-install-ppc-bootloader.xml
17 hb-install-ppc-disk.xml hb-install-ppc-kernel.xml
18 hb-install-ppc-medium.xml
19 hb-install-ppc64-bootloader.xml
20 hb-install-ppc64-disk.xml
21 hb-install-ppc64-kernel.xml
22 hb-install-ppc64-medium.xml
23 hb-install-sparc-bootloader.xml
24 hb-install-sparc-disk.xml
25 hb-install-sparc-kernel.xml
26 hb-install-sparc-medium.xml hb-install-stage.xml
27 hb-install-system.xml hb-install-tools.xml
28 hb-installer-about.xml index.xml
29 Log:
30 Imported 2006.1 networkless handbooks into live CVS
31
32 Revision Changes Path
33 1.1 xml/htdocs/doc/en/handbook/2006.1/handbook-alpha.xml
34
35 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-alpha.xml?rev=1.1&view=markup
36 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-alpha.xml?rev=1.1&content-type=text/plain
37
38 Index: handbook-alpha.xml
39 ===================================================================
40 <?xml version='1.0' encoding='UTF-8'?>
41 <!DOCTYPE book SYSTEM "/dtd/book.dtd">
42
43 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-alpha.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
44
45 <book link="/doc/en/handbook/2006.1/handbook-alpha.xml">
46 <title>Gentoo Linux 2006.1 Alpha Handbook</title>
47
48 <author title="Author">
49 <mail link="swift@g.o">Sven Vermeulen</mail>
50 </author>
51 <author title="Author">
52 <mail link="uberlord@g.o">Roy Marples</mail>
53 </author>
54 <author title="Author">
55 <mail link="drobbins@g.o">Daniel Robbins</mail>
56 </author>
57 <author title="Author">
58 <mail link="chouser@g.o">Chris Houser</mail>
59 </author>
60 <author title="Author">
61 <mail link="jerry@g.o">Jerry Alexandratos</mail>
62 </author>
63 <author title="Gentoo x86 Developer">
64 <mail link="seemant@g.o">Seemant Kulleen</mail>
65 </author>
66 <author title="Gentoo Alpha Developer">
67 <mail link="taviso@g.o">Tavis Ormandy</mail>
68 </author><!-- Does not want to be listed on the rendered page
69 <author title="Gentoo Developer">
70 Aron Griffis
71 </author>
72 -->
73 <author title="Gentoo AMD64 Developer">
74 <mail link="jhuebel@g.o">Jason Huebel</mail>
75 </author>
76 <author title="Gentoo HPPA developer">
77 <mail link="gmsoft@g.o">Guy Martin</mail>
78 </author>
79 <author title="Gentoo PPC developer">
80 <mail link="pvdabeel@g.o">Pieter Van den Abeele</mail>
81 </author>
82 <author title="Gentoo SPARC developer">
83 <mail link="blademan@g.o">Joe Kallar</mail>
84 </author>
85 <author title="Editor">
86 <mail link="zhen@g.o">John P. Davis</mail>
87 </author>
88 <author title="Editor">Pierre-Henri Jondot</author>
89 <author title="Editor">
90 <mail link="stocke2@g.o">Eric Stockbridge</mail>
91 </author>
92 <author title="Editor">
93 <mail link="rajiv@g.o">Rajiv Manglani</mail>
94 </author>
95 <author title="Editor">
96 <mail link="seo@g.o">Jungmin Seo</mail>
97 </author>
98 <author title="Editor">
99 <mail link="zhware@g.o">Stoyan Zhekov</mail>
100 </author>
101 <author title="Editor">
102 <mail link="jhhudso@g.o">Jared Hudson</mail>
103 </author>
104 <author title="Editor">
105 <mail link="peitolm@g.o">Colin Morey</mail>
106 </author>
107 <author title="Editor">
108 <mail link="peesh@g.o">Jorge Paulo</mail>
109 </author>
110 <author title="Editor">
111 <mail link="carl@g.o">Carl Anderson</mail>
112 </author>
113 <author title="Editor">
114 <mail link="avenj@g.o">Jon Portnoy</mail>
115 </author>
116 <author title="Editor">
117 <mail link="klasikahl@g.o">Zack Gilburd</mail>
118 </author>
119 <author title="Editor">
120 <mail link="jmorgan@g.o">Jack Morgan</mail>
121 </author>
122 <author title="Editor">
123 <mail link="bennyc@g.o">Benny Chuang</mail>
124 </author>
125 <author title="Editor">
126 <mail link="erwin@g.o">Erwin</mail>
127 </author>
128 <author title="Editor">
129 <mail link="kumba@g.o">Joshua Kinard</mail>
130 </author>
131 <author title="Editor">
132 <mail link="dertobi123@g.o">Tobias Scherbaum</mail>
133 </author>
134 <author title="Editor">
135 <mail link="neysx@g.o">Xavier Neys</mail>
136 </author>
137 <author title="Reviewer">
138 <mail link="g2boojum@g.o">Grant Goodyear</mail>
139 </author>
140 <author title="Reviewer">
141 <mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail>
142 </author>
143 <author title="Reviewer">
144 <mail link="dberkholz@g.o">Donnie Berkholz</mail>
145 </author>
146 <author title="Reviewer">
147 <mail link="antifa@g.o">Ken Nowack</mail>
148 </author>
149 <author title="Contributor">
150 <mail link="pylon@g.o">Lars Weiler</mail>
151 </author>
152
153 <abstract>
154 This is the Gentoo Handbook, an effort to centralise Gentoo/Linux information.
155 This handbook contains the installation instructions for a networkless
156 installation on Alpha systems and parts about working with Gentoo and Portage.
157 </abstract>
158
159 <!-- The content of this document is licensed under the CC-BY-SA license -->
160 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
161 <license/>
162
163 <version>7.0</version>
164 <date>2006-08-30</date>
165
166 <part>
167 <title>Installing Gentoo</title>
168 <abstract>
169 In this part you learn how to install Gentoo on your system.
170 </abstract>
171
172 <chapter>
173 <title>About the Gentoo Linux Installation</title>
174 <abstract>
175 Users not familiar with Gentoo do not always know that choice is what
176 Gentoo is all about.
177 </abstract>
178 <include href="hb-install-about.xml"/>
179 </chapter>
180
181 <chapter>
182 <title>Booting the Universal Installation CD</title>
183 <abstract>
184 Using our Universal Installation CD you can boot up your system into a running
185 environment that allows you to install Gentoo.
186 </abstract>
187 <include href="hb-install-alpha-medium.xml"/>
188 </chapter>
189
190 <chapter>
191 <title>Configuring your Network</title>
192 <abstract>
193 If you need networking, this is the place where the network (and Internet
194 connection) is configured.
195 </abstract>
196 <include href="hb-install-network.xml"/>
197 </chapter>
198
199 <chapter>
200 <title>Preparing the Disks</title>
201 <abstract>
202 To be able to install Gentoo, you must create the necessary partitions.
203 This chapter describes how to partition a disk for future usage.
204 </abstract>
205 <include href="hb-install-alpha-disk.xml"/>
206 </chapter>
207
208 <chapter>
209 <title>Installing the Gentoo Installation Files</title>
210 <abstract>
211 In this chapter we describe how you extract a stage3 file and how to configure
212 Portage.
213 </abstract>
214 <include href="hb-install-stage.xml"/>
215 </chapter>
216
217 <chapter>
218 <title>Chrooting into the Gentoo Base System</title>
219 <abstract>
220 Now that the stage3 file is extracted, we chroot into the new system and modify
221 the USE variable.
222 </abstract>
223 <include href="hb-install-system.xml"/>
224 </chapter>
225
226 <chapter>
227 <title>Configuring the Kernel</title>
228 <abstract>
229 The Linux kernel is the core of every distribution. This chapter
230 explains how to configure your kernel.
231 </abstract>
232 <include href="hb-install-alpha-kernel.xml"/>
233 </chapter>
234
235 <chapter>
236 <title>Configuring your System</title>
237 <abstract>
238 You need to edit some important configuration files. In this chapter
239 you receive an overview of these files and an explanation on how to
240 proceed.
241 </abstract>
242 <include href="hb-install-config.xml"/>
243 </chapter>
244
245 <chapter>
246 <title>Installing Necessary System Tools</title>
247 <abstract>
248 As mentioned before, Gentoo is about customization. In this chapter we help you
249 choose and install some important tools.
250 </abstract>
251 <include href="hb-install-tools.xml"/>
252 </chapter>
253
254 <chapter>
255 <title>Configuring the Bootloader</title>
256 <abstract>
257 Several bootloaders exist. Each one of them has its own way of
258 configuration. In this chapter we'll describe all possibilities for you
259 and step you through the process of configuring a bootloader to your
260 needs.
261 </abstract>
262 <include href="hb-install-alpha-bootloader.xml"/>
263 </chapter>
264
265 <chapter>
266 <title>Finalizing your Gentoo Installation</title>
267 <abstract>
268 You're almost done. We'll just create one (or more) users for your
269 system and (optionally) install the prebuild packages.
270 </abstract>
271 <include href="hb-install-finalise.xml"/>
272 </chapter>
273
274 <chapter>
275 <title>Where to go from here?</title>
276 <abstract>
277 Now you have your Gentoo system, but what's next?
278 </abstract>
279 <include href="hb-install-next.xml"/>
280 </chapter>
281 </part>
282
283 <part>
284 <title>Working with Gentoo</title>
285 <abstract>
286 Learn how to work with Gentoo: installing software, altering variables, changing
287 Portage behaviour etc.
288 </abstract>
289
290 <chapter>
291 <title>A Portage Introduction</title>
292 <abstract>
293 This chapter explains the "simple" steps a user definitely needs to know to
294 maintain the software on his system.
295 </abstract>
296 <include href="../hb-working-portage.xml"/>
297 </chapter>
298
299 <chapter>
300 <title>USE flags</title>
301 <abstract>
302 USE-flags are a very important aspect of Gentoo. In this chapter, you learn to
303 work with USE-flags and understand how USE-flags interact with your system.
304 </abstract>
305 <include href="../hb-working-use.xml"/>
306 </chapter>
307
308 <chapter>
309 <title>Portage Features</title>
310 <abstract>
311 Discover the features Portage has, such as support for distributed compiling,
312 ccache and more.
313 </abstract>
314 <include href="../hb-working-features.xml"/>
315 </chapter>
316
317 <chapter>
318 <title>Initscripts</title>
319 <abstract>
320 Gentoo uses a special initscript format which, amongst other features, allows
321 dependency-driven decisions and virtual initscripts. This chapter explains all
322 these aspects and explains how to deal with these scripts.
323 </abstract>
324 <include href="../hb-working-rcscripts.xml"/>
325 </chapter>
326
327 <chapter>
328 <title>Environment Variables</title>
329 <abstract>
330 With Gentoo you can easily manage the environment variables for your system.
331 This chapter explains how you do that, and also describes frequently used
332 variables.
333 </abstract>
334 <include href="../hb-working-variables.xml"/>
335 </chapter>
336 </part>
337
338 <part>
339 <title>Working with Portage</title>
340 <abstract>
341 "Working with Portage" provides an in-depth coverage of Portage, Gentoo's
342 Software Management Tool.
343 </abstract>
344
345 <chapter>
346 <title>Files and Directories</title>
347 <abstract>
348 Once you want to know Portage in-depth you need to know where it stores its
349 files and data.
350 </abstract>
351 <include href="../hb-portage-files.xml"/>
352 </chapter>
353
354 <chapter>
355 <title>Configuring through Variables</title>
356 <abstract>
357 Portage is completely configurable through various variables you can set in the
358 configuration file or as environment variable.
359 </abstract>
360 <include href="../hb-portage-configuration.xml"/>
361 </chapter>
362
363 <chapter>
364 <title>Mixing Software Branches</title>
365 <abstract>
366 Gentoo provides software separated in several branches, depending on stability
367 and architectural support. "Mixing Software Branches" inform you how these
368 branches can be configured and how you can override this separation
369 individually.
370 </abstract>
371 <include href="../hb-portage-branches.xml"/>
372 </chapter>
373
374 <chapter>
375 <title>Additional Portage Tools</title>
376 <abstract>
377 Portage comes with a few extra tools that might make your Gentoo experience even
378 better. Read on to discover how to use dispatch-conf and other tools.
379 </abstract>
380 <include href="../hb-portage-tools.xml"/>
381 </chapter>
382
383 <chapter>
384 <title>Diverting from the Official Tree</title>
385 <abstract>
386 "Diverting from the Official Tree" gives you some tips and tricks on how to use
387 your own Portage tree, how to synchronise only the categories you want, inject
388 packages and more.
389 </abstract>
390 <include href="../hb-portage-diverttree.xml"/>
391 </chapter>
392 </part>
393
394 <part>
395 <title>Gentoo Network Configuration</title>
396 <abstract>A comprehensive guide to Networking in Gentoo.</abstract>
397
398 <chapter>
399 <title>Getting Started</title>
400 <abstract>
401 A guide to quickly get your network interface up and running in most common
402 environments.
403 </abstract>
404 <include href="../hb-net-start.xml"/>
405 </chapter>
406
407 <chapter>
408 <title>Advanced Configuration</title>
409 <abstract>
410 Here we learn about how the configuration works - you need to know this
411 before we learn about modular networking.
412 </abstract>
413 <include href="../hb-net-advanced.xml"/>
414 </chapter>
415
416 <chapter>
417 <title>Modular Networking</title>
418 <abstract>
419 Gentoo provides you flexible networking - here you are told about choosing
420 different DHCP clients, setting up bonding, bridging, VLANs and more.
421 </abstract>
422 <include href="../hb-net-modules.xml"/>
423 </chapter>
424
425 <chapter>
426 <title>Wireless Networking</title>
427 <abstract>
428 Wireless isn't straight-forward. Hopefully we'll get you working!
429 </abstract>
430 <include href="../hb-net-wireless.xml"/>
431 </chapter>
432
433 <chapter>
434 <title>Adding Functionality</title>
435 <abstract>
436 If you're feeling adventurous, you can add your own functions to networking.
437 </abstract>
438 <include href="../hb-net-functions.xml"/>
439 </chapter>
440
441 <chapter>
442 <title>Network Management</title>
443 <abstract>
444 For laptop users or people who move their computer around different networks.
445 </abstract>
446 <include href="../hb-net-management.xml"/>
447 </chapter>
448 </part>
449
450 </book>
451
452
453
454 1.1 xml/htdocs/doc/en/handbook/2006.1/handbook-amd64.xml
455
456 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-amd64.xml?rev=1.1&view=markup
457 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-amd64.xml?rev=1.1&content-type=text/plain
458
459 Index: handbook-amd64.xml
460 ===================================================================
461 <?xml version='1.0' encoding='UTF-8'?>
462 <!DOCTYPE book SYSTEM "/dtd/book.dtd">
463
464 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-amd64.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
465
466 <book link="/doc/en/handbook/2006.1/handbook-amd64.xml">
467 <title>Gentoo Linux 2006.1 AMD64 Handbook</title>
468
469 <values>
470 <key id="arch">AMD64</key>
471 <key id="release-dir">releases/amd64/2006.1/</key>
472 <key id="online-book">2006.1/handbook-amd64.xml</key>
473 </values>
474
475 <author title="Author">
476 <mail link="swift@g.o">Sven Vermeulen</mail>
477 </author>
478 <author title="Author">
479 <mail link="uberlord@g.o">Roy Marples</mail>
480 </author>
481 <author title="Author">
482 <mail link="drobbins@g.o">Daniel Robbins</mail>
483 </author>
484 <author title="Author">
485 <mail link="chouser@g.o">Chris Houser</mail>
486 </author>
487 <author title="Author">
488 <mail link="jerry@g.o">Jerry Alexandratos</mail>
489 </author>
490 <author title="Author">
491 <mail link="nightmorph@g.o">Joshua Saddler</mail>
492 </author>
493 <author title="Gentoo x86 Developer">
494 <mail link="seemant@g.o">Seemant Kulleen</mail>
495 </author>
496 <author title="Gentoo Alpha Developer">
497 <mail link="taviso@g.o">Tavis Ormandy</mail>
498 </author>
499 <!-- Does not want to be listed on the rendered page
500 <author title="Gentoo Developer">
501 Aron Griffis
502 </author>
503 -->
504 <author title="Gentoo AMD64 Developer">
505 <mail link="jhuebel@g.o">Jason Huebel</mail>
506 </author>
507 <author title="Gentoo HPPA developer">
508 <mail link="gmsoft@g.o">Guy Martin</mail>
509 </author>
510 <author title="Gentoo PPC developer">
511 <mail link="pvdabeel@g.o">Pieter Van den Abeele</mail>
512 </author>
513 <author title="Gentoo SPARC developer">
514 <mail link="blademan@g.o">Joe Kallar</mail>
515 </author>
516 <author title="Editor">
517 <mail link="zhen@g.o">John P. Davis</mail>
518 </author>
519 <author title="Editor">Pierre-Henri Jondot</author>
520 <author title="Editor">
521 <mail link="stocke2@g.o">Eric Stockbridge</mail>
522 </author>
523 <author title="Editor">
524 <mail link="rajiv@g.o">Rajiv Manglani</mail>
525 </author>
526 <author title="Editor">
527 <mail link="seo@g.o">Jungmin Seo</mail>
528 </author>
529 <author title="Editor">
530 <mail link="zhware@g.o">Stoyan Zhekov</mail>
531 </author>
532 <author title="Editor">
533 <mail link="jhhudso@g.o">Jared Hudson</mail>
534 </author>
535 <author title="Editor">
536 <mail link="peitolm@g.o">Colin Morey</mail>
537 </author>
538 <author title="Editor">
539 <mail link="peesh@g.o">Jorge Paulo</mail>
540 </author>
541 <author title="Editor">
542 <mail link="carl@g.o">Carl Anderson</mail>
543 </author>
544 <author title="Editor">
545 <mail link="avenj@g.o">Jon Portnoy</mail>
546 </author>
547 <author title="Editor">
548 <mail link="klasikahl@g.o">Zack Gilburd</mail>
549 </author>
550 <author title="Editor">
551 <mail link="jmorgan@g.o">Jack Morgan</mail>
552 </author>
553 <author title="Editor">
554 <mail link="bennyc@g.o">Benny Chuang</mail>
555 </author>
556 <author title="Editor">
557 <mail link="erwin@g.o">Erwin</mail>
558 </author>
559 <author title="Editor">
560 <mail link="kumba@g.o">Joshua Kinard</mail>
561 </author>
562 <author title="Editor">
563 <mail link="dertobi123@g.o">Tobias Scherbaum</mail>
564 </author>
565 <author title="Editor">
566 <mail link="neysx@g.o">Xavier Neys</mail>
567 </author>
568 <author title="Editor">
569 <mail link="fox2mike@g.o">Shyam Mani</mail>
570 </author>
571 <author title="Reviewer">
572 <mail link="g2boojum@g.o">Grant Goodyear</mail>
573 </author>
574 <author title="Reviewer">
575 <mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail>
576 </author>
577 <author title="Reviewer">
578 <mail link="dberkholz@g.o">Donnie Berkholz</mail>
579 </author>
580 <author title="Reviewer">
581 <mail link="antifa@g.o">Ken Nowack</mail>
582 </author>
583 <author title="Contributor">
584 <mail link="pylon@g.o">Lars Weiler</mail>
585 </author>
586
587 <abstract>
588 This is the Gentoo Handbook, an effort to centralise Gentoo/Linux information.
589 This handbook contains the installation instructions for a networkless
590 installation on AMD64 &amp; EM64T systems and parts about working with Gentoo
591 and Portage.
592 </abstract>
593
594 <!-- The content of this document is licensed under the CC-BY-SA license -->
595 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
596 <license/>
597
598 <version>7.0</version>
599 <date>2006-08-30</date>
600
601 <part>
602 <title>Installing Gentoo</title>
603 <abstract>
604 In this part you learn how to install Gentoo on your system.
605 </abstract>
606
607 <chapter>
608 <title>About the Gentoo Linux Installation</title>
609 <abstract>
610 Users not familiar with Gentoo do not always know that choice is what
611 Gentoo is all about.
612 </abstract>
613 <include href="hb-installer-about.xml"/>
614 </chapter>
615
616 <chapter>
617 <title>Booting the Installer LiveCD</title>
618 <abstract>
619 Using our Installer LiveCD you can boot up your system into a running
620 environment that allows you to install Gentoo.
621 </abstract>
622 <include href="hb-install-gli-medium.xml"/>
623 </chapter>
624
625 <chapter>
626 <title>Using the GTK+ based Gentoo Linux Installer</title>
627 <abstract>
628 You now have an option of using our graphical installer to install Gentoo.
629 Configure the options you need through an easy to use GUI and you're ready to
630 go.
631 </abstract>
632 <include href="hb-install-gtkfe.xml" />
633 </chapter>
634
635 <chapter>
636 <title>Using the Dialog based Gentoo Linux Installer</title>
637 <abstract>
638 You also have an option of using our text based installer to install Gentoo.
639 Configure the options you need through an easy to use set of menus and you're
640 ready to go.
641 </abstract>
642 <include href="hb-install-gli-dialog.xml" />
643 </chapter>
644
645 <chapter>
646 <title>Where to go from here?</title>
647 <abstract>
648 Now you have your Gentoo system, but what's next?
649 </abstract>
650 <include href="hb-install-next.xml"/>
651 </chapter>
652 </part>
653
654 <part>
655 <title>Working with Gentoo</title>
656 <abstract>
657 Learn how to work with Gentoo: installing software, altering variables,
658 changing Portage behaviour etc.
659 </abstract>
660
661 <chapter>
662 <title>A Portage Introduction</title>
663 <abstract>
664 This chapter explains the "simple" steps a user definitely needs to know to
665 maintain the software on his system.
666 </abstract>
667 <include href="../hb-working-portage.xml"/>
668 </chapter>
669
670 <chapter>
671 <title>USE flags</title>
672 <abstract>
673 USE-flags are a very important aspect of Gentoo. In this chapter, you learn to
674 work with USE-flags and understand how USE-flags interact with your system.
675 </abstract>
676 <include href="../hb-working-use.xml"/>
677 </chapter>
678
679 <chapter>
680 <title>Portage Features</title>
681 <abstract>
682 Discover the features Portage has, such as support for distributed compiling,
683 ccache and more.
684 </abstract>
685 <include href="../hb-working-features.xml"/>
686 </chapter>
687
688 <chapter>
689 <title>Initscripts</title>
690 <abstract>
691 Gentoo uses a special initscript format which, amongst other features, allows
692 dependency-driven decisions and virtual initscripts. This chapter explains all
693 these aspects and explains how to deal with these scripts.
694 </abstract>
695 <include href="../hb-working-rcscripts.xml"/>
696 </chapter>
697
698 <chapter>
699 <title>Environment Variables</title>
700 <abstract>
701 With Gentoo you can easily manage the environment variables for your system.
702 This chapter explains how you do that, and also describes frequently used
703 variables.
704 </abstract>
705 <include href="../hb-working-variables.xml"/>
706 </chapter>
707 </part>
708
709 <part>
710 <title>Working with Portage</title>
711 <abstract>
712 "Working with Portage" provides an in-depth coverage of Portage, Gentoo's
713 Software Management Tool.
714 </abstract>
715
716 <chapter>
717 <title>Files and Directories</title>
718 <abstract>
719 Once you want to know Portage in-depth you need to know where it stores its
720 files and data.
721 </abstract>
722 <include href="../hb-portage-files.xml"/>
723 </chapter>
724
725 <chapter>
726 <title>Configuring through Variables</title>
727 <abstract>
728 Portage is completely configurable through various variables you can set in the
729 configuration file or as environment variable.
730 </abstract>
731 <include href="../hb-portage-configuration.xml"/>
732 </chapter>
733
734 <chapter>
735 <title>Mixing Software Branches</title>
736 <abstract>
737 Gentoo provides software separated in several branches, depending on stability
738 and architectural support. "Mixing Software Branches" inform you how these
739 branches can be configured and how you can override this separation
740 individually.
741 </abstract>
742 <include href="../hb-portage-branches.xml"/>
743 </chapter>
744
745 <chapter>
746 <title>Additional Portage Tools</title>
747 <abstract>
748 Portage comes with a few extra tools that might make your Gentoo experience even
749 better. Read on to discover how to use dispatch-conf and other tools.
750 </abstract>
751 <include href="../hb-portage-tools.xml"/>
752 </chapter>
753
754 <chapter>
755 <title>Diverting from the Official Tree</title>
756 <abstract>
757 "Diverting from the Official Tree" gives you some tips and tricks on how to use
758 your own Portage tree, how to synchronise only the categories you want, inject
759 packages and more.
760 </abstract>
761 <include href="../hb-portage-diverttree.xml"/>
762 </chapter>
763 </part>
764
765 <part>
766 <title>Gentoo Network Configuration</title>
767 <abstract>A comprehensive guide to Networking in Gentoo.</abstract>
768
769 <chapter>
770 <title>Getting Started</title>
771 <abstract>
772 A guide to quickly get your network interface up and running in most common
773 environments.
774 </abstract>
775 <include href="../hb-net-start.xml"/>
776 </chapter>
777
778 <chapter>
779 <title>Advanced Configuration</title>
780 <abstract>
781 Here we learn about how the configuration works - you need to know this
782 before we learn about modular networking.
783 </abstract>
784 <include href="../hb-net-advanced.xml"/>
785 </chapter>
786
787 <chapter>
788 <title>Modular Networking</title>
789 <abstract>
790 Gentoo provides you flexible networking - here you are told about choosing
791 different DHCP clients, setting up bonding, bridging, VLANs and more.
792 </abstract>
793 <include href="../hb-net-modules.xml"/>
794 </chapter>
795
796 <chapter>
797 <title>Wireless Networking</title>
798 <abstract>
799 Wireless isn't straight-forward. Hopefully we'll get you working!
800 </abstract>
801 <include href="../hb-net-wireless.xml"/>
802 </chapter>
803
804 <chapter>
805 <title>Adding Functionality</title>
806 <abstract>
807 If you're feeling adventurous, you can add your own functions to networking.
808 </abstract>
809 <include href="../hb-net-functions.xml"/>
810 </chapter>
811
812 <chapter>
813 <title>Network Management</title>
814 <abstract>
815 For laptop users or people who move their computer around different networks.
816 </abstract>
817 <include href="../hb-net-management.xml"/>
818 </chapter>
819 </part>
820
821 </book>
822
823
824
825 1.1 xml/htdocs/doc/en/handbook/2006.1/handbook-hppa.xml
826
827 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-hppa.xml?rev=1.1&view=markup
828 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-hppa.xml?rev=1.1&content-type=text/plain
829
830 Index: handbook-hppa.xml
831 ===================================================================
832 <?xml version='1.0' encoding='UTF-8'?>
833 <!DOCTYPE book SYSTEM "/dtd/book.dtd">
834
835 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-hppa.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
836
837 <book link="/doc/en/handbook/2006.1/handbook-hppa.xml">
838 <title>Gentoo Linux 2006.1 HPPA Handbook</title>
839
840 <author title="Author">
841 <mail link="swift@g.o">Sven Vermeulen</mail>
842 </author>
843 <author title="Author">
844 <mail link="uberlord@g.o">Roy Marples</mail>
845 </author>
846 <author title="Author">
847 <mail link="drobbins@g.o">Daniel Robbins</mail>
848 </author>
849 <author title="Author">
850 <mail link="chouser@g.o">Chris Houser</mail>
851 </author>
852 <author title="Author">
853 <mail link="jerry@g.o">Jerry Alexandratos</mail>
854 </author>
855 <author title="Gentoo x86 Developer">
856 <mail link="seemant@g.o">Seemant Kulleen</mail>
857 </author>
858 <author title="Gentoo Alpha Developer">
859 <mail link="taviso@g.o">Tavis Ormandy</mail>
860 </author><!-- Does not want to be listed on the rendered page
861 <author title="Gentoo Developer">
862 Aron Griffis
863 </author>
864 -->
865 <author title="Gentoo AMD64 Developer">
866 <mail link="jhuebel@g.o">Jason Huebel</mail>
867 </author>
868 <author title="Gentoo HPPA developer">
869 <mail link="gmsoft@g.o">Guy Martin</mail>
870 </author>
871 <author title="Gentoo PPC developer">
872 <mail link="pvdabeel@g.o">Pieter Van den Abeele</mail>
873 </author>
874 <author title="Gentoo SPARC developer">
875 <mail link="blademan@g.o">Joe Kallar</mail>
876 </author>
877 <author title="Editor">
878 <mail link="zhen@g.o">John P. Davis</mail>
879 </author>
880 <author title="Editor">Pierre-Henri Jondot</author>
881 <author title="Editor">
882 <mail link="stocke2@g.o">Eric Stockbridge</mail>
883 </author>
884 <author title="Editor">
885 <mail link="rajiv@g.o">Rajiv Manglani</mail>
886 </author>
887 <author title="Editor">
888 <mail link="seo@g.o">Jungmin Seo</mail>
889 </author>
890 <author title="Editor">
891 <mail link="zhware@g.o">Stoyan Zhekov</mail>
892 </author>
893 <author title="Editor">
894 <mail link="jhhudso@g.o">Jared Hudson</mail>
895 </author>
896 <author title="Editor">
897 <mail link="peitolm@g.o">Colin Morey</mail>
898 </author>
899 <author title="Editor">
900 <mail link="peesh@g.o">Jorge Paulo</mail>
901 </author>
902 <author title="Editor">
903 <mail link="carl@g.o">Carl Anderson</mail>
904 </author>
905 <author title="Editor">
906 <mail link="avenj@g.o">Jon Portnoy</mail>
907 </author>
908 <author title="Editor">
909 <mail link="klasikahl@g.o">Zack Gilburd</mail>
910 </author>
911 <author title="Editor">
912 <mail link="jmorgan@g.o">Jack Morgan</mail>
913 </author>
914 <author title="Editor">
915 <mail link="bennyc@g.o">Benny Chuang</mail>
916 </author>
917 <author title="Editor">
918 <mail link="erwin@g.o">Erwin</mail>
919 </author>
920 <author title="Editor">
921 <mail link="kumba@g.o">Joshua Kinard</mail>
922 </author>
923 <author title="Editor">
924 <mail link="dertobi123@g.o">Tobias Scherbaum</mail>
925 </author>
926 <author title="Editor">
927 <mail link="neysx@g.o">Xavier Neys</mail>
928 </author>
929 <author title="Reviewer">
930 <mail link="g2boojum@g.o">Grant Goodyear</mail>
931 </author>
932 <author title="Reviewer">
933 <mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail>
934 </author>
935 <author title="Reviewer">
936 <mail link="dberkholz@g.o">Donnie Berkholz</mail>
937 </author>
938 <author title="Reviewer">
939 <mail link="antifa@g.o">Ken Nowack</mail>
940 </author>
941 <author title="Contributor">
942 <mail link="pylon@g.o">Lars Weiler</mail>
943 </author>
944
945 <abstract>
946 This is the Gentoo Handbook, an effort to centralise Gentoo/Linux information.
947 This handbook contains the installation instructions for a networkless
948 installation on HPPA systems and parts about working with Gentoo and Portage.
949 </abstract>
950
951 <!-- The content of this document is licensed under the CC-BY-SA license -->
952 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
953 <license/>
954
955 <version>7.0</version>
956 <date>2006-08-30</date>
957
958 <part>
959 <title>Installing Gentoo</title>
960 <abstract>
961 In this part you learn how to install Gentoo on your system.
962 </abstract>
963
964 <chapter>
965 <title>About the Gentoo Linux Installation</title>
966 <abstract>
967 Users not familiar with Gentoo do not always know that choice is what
968 Gentoo is all about.
969 </abstract>
970 <include href="hb-install-about.xml"/>
971 </chapter>
972
973 <chapter>
974 <title>Booting the Universal Installation CD</title>
975 <abstract>
976 Using our Universal Installation CD you can boot up your system into a running
977 environment that allows you to install Gentoo.
978 </abstract>
979 <include href="hb-install-hppa-medium.xml"/>
980 </chapter>
981
982 <chapter>
983 <title>Configuring your Network</title>
984 <abstract>
985 If you need networking, this is the place where the network (and Internet
986 connection) is configured.
987 </abstract>
988 <include href="hb-install-network.xml"/>
989 </chapter>
990
991 <chapter>
992 <title>Preparing the Disks</title>
993 <abstract>
994 To be able to install Gentoo, you must create the necessary partitions.
995 This chapter describes how to partition a disk for future usage.
996 </abstract>
997 <include href="hb-install-hppa-disk.xml"/>
998 </chapter>
999
1000 <chapter>
1001 <title>Installing the Gentoo Installation Files</title>
1002 <abstract>
1003 Gentoo installs work through so-called stage-files. In this chapter we
1004 describe how you extract a stage-file and configure Portage.
1005 </abstract>
1006 <include href="hb-install-stage.xml"/>
1007 </chapter>
1008
1009 <chapter>
1010 <title>Chrooting into the Gentoo Base System</title>
1011 <abstract>
1012 Now that the stage3 file is extracted, we chroot into the new system and modify
1013 the USE variable.
1014 </abstract>
1015 <include href="hb-install-system.xml"/>
1016 </chapter>
1017
1018 <chapter>
1019 <title>Configuring the Kernel</title>
1020 <abstract>
1021 The Linux kernel is the core of every distribution. This chapter
1022 explains how to configure your kernel.
1023 </abstract>
1024 <include href="hb-install-hppa-kernel.xml"/>
1025 </chapter>
1026
1027 <chapter>
1028 <title>Configuring your System</title>
1029 <abstract>
1030 You need to edit some important configuration files. In this chapter
1031 you receive an overview of these files and an explanation on how to
1032 proceed.
1033 </abstract>
1034 <include href="hb-install-config.xml"/>
1035 </chapter>
1036
1037 <chapter>
1038 <title>Installing Necessary System Tools</title>
1039 <abstract>
1040 As mentioned before, Gentoo is about customization. In this chapter we help you
1041 choose and install some important tools.
1042 </abstract>
1043 <include href="hb-install-tools.xml"/>
1044 </chapter>
1045
1046 <chapter>
1047 <title>Configuring the Bootloader</title>
1048 <abstract>
1049 In this chapter we'll describe the PALO bootloader
1050 and step you through the process of configuring PALO to your
1051 needs.
1052 </abstract>
1053 <include href="hb-install-hppa-bootloader.xml"/>
1054 </chapter>
1055
1056 <chapter>
1057 <title>Finalizing your Gentoo Installation</title>
1058 <abstract>
1059 You're almost done. We'll just create one (or more) users for your
1060 system and (optionally) install prebuilt packages.
1061 </abstract>
1062 <include href="hb-install-finalise.xml"/>
1063 </chapter>
1064
1065 <chapter>
1066 <title>Where to go from here?</title>
1067 <abstract>
1068 Now you have your Gentoo system, but what's next?
1069 </abstract>
1070 <include href="hb-install-next.xml"/>
1071 </chapter>
1072 </part>
1073
1074 <part>
1075 <title>Working with Gentoo</title>
1076 <abstract>
1077 Learn how to work with Gentoo: installing software, altering variables, changing
1078 Portage behaviour etc.
1079 </abstract>
1080
1081 <chapter>
1082 <title>A Portage Introduction</title>
1083 <abstract>
1084 This chapter explains the "simple" steps a user definitely needs to know to
1085 maintain the software on his system.
1086 </abstract>
1087 <include href="../hb-working-portage.xml"/>
1088 </chapter>
1089
1090 <chapter>
1091 <title>USE flags</title>
1092 <abstract>
1093 USE-flags are a very important aspect of Gentoo. In this chapter, you learn to
1094 work with USE-flags and understand how USE-flags interact with your system.
1095 </abstract>
1096 <include href="../hb-working-use.xml"/>
1097 </chapter>
1098
1099 <chapter>
1100 <title>Portage Features</title>
1101 <abstract>
1102 Discover the features Portage has, such as support for distributed compiling,
1103 ccache and more.
1104 </abstract>
1105 <include href="../hb-working-features.xml"/>
1106 </chapter>
1107
1108 <chapter>
1109 <title>Initscripts</title>
1110 <abstract>
1111 Gentoo uses a special initscript format which, amongst other features, allows
1112 dependency-driven decisions and virtual initscripts. This chapter explains all
1113 these aspects and explains how to deal with these scripts.
1114 </abstract>
1115 <include href="../hb-working-rcscripts.xml"/>
1116 </chapter>
1117
1118 <chapter>
1119 <title>Environment Variables</title>
1120 <abstract>
1121 With Gentoo you can easily manage the environment variables for your system.
1122 This chapter explains how you do that, and also describes frequently used
1123 variables.
1124 </abstract>
1125 <include href="../hb-working-variables.xml"/>
1126 </chapter>
1127 </part>
1128
1129 <part>
1130 <title>Working with Portage</title>
1131 <abstract>
1132 "Working with Portage" provides an in-depth coverage of Portage, Gentoo's
1133 Software Management Tool.
1134 </abstract>
1135
1136 <chapter>
1137 <title>Files and Directories</title>
1138 <abstract>
1139 Once you want to know Portage in-depth you need to know where it stores its
1140 files and data.
1141 </abstract>
1142 <include href="../hb-portage-files.xml"/>
1143 </chapter>
1144
1145 <chapter>
1146 <title>Configuring through Variables</title>
1147 <abstract>
1148 Portage is completely configurable through various variables you can set in the
1149 configuration file or as environment variable.
1150 </abstract>
1151 <include href="../hb-portage-configuration.xml"/>
1152 </chapter>
1153
1154 <chapter>
1155 <title>Mixing Software Branches</title>
1156 <abstract>
1157 Gentoo provides software separated in several branches, depending on stability
1158 and architectural support. "Mixing Software Branches" inform you how these
1159 branches can be configured and how you can override this separation
1160 individually.
1161 </abstract>
1162 <include href="../hb-portage-branches.xml"/>
1163 </chapter>
1164
1165 <chapter>
1166 <title>Additional Portage Tools</title>
1167 <abstract>
1168 Portage comes with a few extra tools that might make your Gentoo experience even
1169 better. Read on to discover how to use dispatch-conf and other tools.
1170 </abstract>
1171 <include href="../hb-portage-tools.xml"/>
1172 </chapter>
1173
1174 <chapter>
1175 <title>Diverting from the Official Tree</title>
1176 <abstract>
1177 "Diverting from the Official Tree" gives you some tips and tricks on how to use
1178 your own Portage tree, how to synchronise only the categories you want, inject
1179 packages and more.
1180 </abstract>
1181 <include href="../hb-portage-diverttree.xml"/>
1182 </chapter>
1183 </part>
1184
1185 <part>
1186 <title>Gentoo Network Configuration</title>
1187 <abstract>A comprehensive guide to Networking in Gentoo.</abstract>
1188
1189 <chapter>
1190 <title>Getting Started</title>
1191 <abstract>
1192 A guide to quickly get your network interface up and running in most common
1193 environments.
1194 </abstract>
1195 <include href="../hb-net-start.xml"/>
1196 </chapter>
1197
1198 <chapter>
1199 <title>Advanced Configuration</title>
1200 <abstract>
1201 Here we learn about how the configuration works - you need to know this
1202 before we learn about modular networking.
1203 </abstract>
1204 <include href="../hb-net-advanced.xml"/>
1205 </chapter>
1206
1207 <chapter>
1208 <title>Modular Networking</title>
1209 <abstract>
1210 Gentoo provides you flexible networking - here you are told about choosing
1211 different DHCP clients, setting up bonding, bridging, VLANs and more.
1212 </abstract>
1213 <include href="../hb-net-modules.xml"/>
1214 </chapter>
1215
1216 <chapter>
1217 <title>Wireless Networking</title>
1218 <abstract>
1219 Wireless isn't straight-forward. Hopefully we'll get you working!
1220 </abstract>
1221 <include href="../hb-net-wireless.xml"/>
1222 </chapter>
1223
1224 <chapter>
1225 <title>Adding Functionality</title>
1226 <abstract>
1227 If you're feeling adventurous, you can add your own functions to networking.
1228 </abstract>
1229 <include href="../hb-net-functions.xml"/>
1230 </chapter>
1231
1232 <chapter>
1233 <title>Network Management</title>
1234 <abstract>
1235 For laptop users or people who move their computer around different networks.
1236 </abstract>
1237 <include href="../hb-net-management.xml"/>
1238 </chapter>
1239 </part>
1240
1241 </book>
1242
1243
1244
1245 1.1 xml/htdocs/doc/en/handbook/2006.1/handbook-ppc.xml
1246
1247 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-ppc.xml?rev=1.1&view=markup
1248 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-ppc.xml?rev=1.1&content-type=text/plain
1249
1250 Index: handbook-ppc.xml
1251 ===================================================================
1252 <?xml version='1.0' encoding='UTF-8'?>
1253 <!DOCTYPE book SYSTEM "/dtd/book.dtd">
1254
1255 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-ppc.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
1256
1257 <book link="/doc/en/handbook/2006.1/handbook-ppc.xml">
1258 <title>Gentoo Linux 2006.1 PPC Handbook</title>
1259
1260 <author title="Author">
1261 <mail link="swift@g.o">Sven Vermeulen</mail>
1262 </author>
1263 <author title="Author">
1264 <mail link="uberlord@g.o">Roy Marples</mail>
1265 </author>
1266 <author title="Author">
1267 <mail link="drobbins@g.o">Daniel Robbins</mail>
1268 </author>
1269 <author title="Author">
1270 <mail link="chouser@g.o">Chris Houser</mail>
1271 </author>
1272 <author title="Author">
1273 <mail link="jerry@g.o">Jerry Alexandratos</mail>
1274 </author>
1275 <author title="Gentoo x86 Developer">
1276 <mail link="seemant@g.o">Seemant Kulleen</mail>
1277 </author>
1278 <author title="Gentoo Alpha Developer">
1279 <mail link="taviso@g.o">Tavis Ormandy</mail>
1280 </author><!-- Does not want to be listed on the rendered page
1281 <author title="Gentoo Developer">
1282 Aron Griffis
1283 </author>
1284 -->
1285 <author title="Gentoo AMD64 Developer">
1286 <mail link="jhuebel@g.o">Jason Huebel</mail>
1287 </author>
1288 <author title="Gentoo HPPA developer">
1289 <mail link="gmsoft@g.o">Guy Martin</mail>
1290 </author>
1291 <author title="Gentoo PPC developer">
1292 <mail link="pvdabeel@g.o">Pieter Van den Abeele</mail>
1293 </author>
1294 <author title="Gentoo SPARC developer">
1295 <mail link="blademan@g.o">Joe Kallar</mail>
1296 </author>
1297 <author title="Editor">
1298 <mail link="zhen@g.o">John P. Davis</mail>
1299 </author>
1300 <author title="Editor">Pierre-Henri Jondot</author>
1301 <author title="Editor">
1302 <mail link="stocke2@g.o">Eric Stockbridge</mail>
1303 </author>
1304 <author title="Editor">
1305 <mail link="rajiv@g.o">Rajiv Manglani</mail>
1306 </author>
1307 <author title="Editor">
1308 <mail link="seo@g.o">Jungmin Seo</mail>
1309 </author>
1310 <author title="Editor">
1311 <mail link="zhware@g.o">Stoyan Zhekov</mail>
1312 </author>
1313 <author title="Editor">
1314 <mail link="jhhudso@g.o">Jared Hudson</mail>
1315 </author>
1316 <author title="Editor">
1317 <mail link="peitolm@g.o">Colin Morey</mail>
1318 </author>
1319 <author title="Editor">
1320 <mail link="peesh@g.o">Jorge Paulo</mail>
1321 </author>
1322 <author title="Editor">
1323 <mail link="carl@g.o">Carl Anderson</mail>
1324 </author>
1325 <author title="Editor">
1326 <mail link="avenj@g.o">Jon Portnoy</mail>
1327 </author>
1328 <author title="Editor">
1329 <mail link="klasikahl@g.o">Zack Gilburd</mail>
1330 </author>
1331 <author title="Editor">
1332 <mail link="jmorgan@g.o">Jack Morgan</mail>
1333 </author>
1334 <author title="Editor">
1335 <mail link="bennyc@g.o">Benny Chuang</mail>
1336 </author>
1337 <author title="Editor">
1338 <mail link="erwin@g.o">Erwin</mail>
1339 </author>
1340 <author title="Editor">
1341 <mail link="kumba@g.o">Joshua Kinard</mail>
1342 </author>
1343 <author title="Editor">
1344 <mail link="dertobi123@g.o">Tobias Scherbaum</mail>
1345 </author>
1346 <author title="Editor">
1347 <mail link="pylon@g.o">Lars Weiler</mail>
1348 </author>
1349 <author title="Editor">
1350 <mail link="sejo@g.o">Jochen Maes </mail>
1351 </author>
1352 <author title="Editor">
1353 <mail link="neysx@g.o">Xavier Neys</mail>
1354 </author>
1355 <author title="Editor">
1356 <mail link="josejx@g.o">Joseph Jezak</mail>
1357 </author>
1358 <author title="Reviewer">
1359 <mail link="g2boojum@g.o">Grant Goodyear</mail>
1360 </author>
1361 <author title="Reviewer">
1362 <mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail>
1363 </author>
1364 <author title="Reviewer">
1365 <mail link="dberkholz@g.o">Donnie Berkholz</mail>
1366 </author>
1367 <author title="Reviewer">
1368 <mail link="antifa@g.o">Ken Nowack</mail>
1369 </author>
1370
1371 <abstract>
1372 This is the Gentoo Handbook, an effort to centralise Gentoo/Linux information.
1373 This handbook contains the installation instructions for a networkless
1374 installation on PPC systems and parts about working with Gentoo and Portage.
1375 </abstract>
1376
1377 <!-- The content of this document is licensed under the CC-BY-SA license -->
1378 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
1379 <license/>
1380
1381 <version>7.0</version>
1382 <date>2006-08-30</date>
1383
1384 <part>
1385 <title>Installing Gentoo</title>
1386 <abstract>
1387 In this part you learn how to install Gentoo on your system.
1388 </abstract>
1389
1390 <chapter>
1391 <title>About the Gentoo Linux Installation</title>
1392 <abstract>
1393 Users not familiar with Gentoo do not always know that choice is what
1394 Gentoo is all about.
1395 </abstract>
1396 <include href="hb-install-about.xml"/>
1397 </chapter>
1398
1399 <chapter>
1400 <title>Booting the Universal Installation CD</title>
1401 <abstract>
1402 Using our Universal Installation CD you can boot up your system into a running
1403 environment that allows you to install Gentoo.
1404 </abstract>
1405 <include href="hb-install-ppc-medium.xml"/>
1406 </chapter>
1407
1408 <chapter>
1409 <title>Configuring your Network</title>
1410 <abstract>
1411 If you need networking, this is the place where the network (and Internet
1412 connection) is configured.
1413 </abstract>
1414 <include href="hb-install-network.xml"/>
1415 </chapter>
1416
1417 <chapter>
1418 <title>Preparing the Disks</title>
1419 <abstract>
1420 To be able to install Gentoo, you must create the necessary partitions.
1421 This chapter describes how to partition a disk for future usage.
1422 </abstract>
1423 <include href="hb-install-ppc-disk.xml"/>
1424 </chapter>
1425
1426 <chapter>
1427 <title>Installing the Gentoo Installation Files</title>
1428 <abstract>
1429 In this chapter we describe how you extract a stage3 file and how to configure
1430 Portage.
1431 </abstract>
1432 <include href="hb-install-stage.xml"/>
1433 </chapter>
1434
1435 <chapter>
1436 <title>Chrooting into the Gentoo Base System</title>
1437 <abstract>
1438 Now that the stage3 file is extracted, we chroot into the new system and modify
1439 the USE variable.
1440 </abstract>
1441 <include href="hb-install-system.xml"/>
1442 </chapter>
1443
1444 <chapter>
1445 <title>Configuring the Kernel</title>
1446 <abstract>
1447 The Linux kernel is the core of every distribution. This chapter
1448 explains how to configure your kernel.
1449 </abstract>
1450 <include href="hb-install-ppc-kernel.xml"/>
1451 </chapter>
1452
1453 <chapter>
1454 <title>Configuring your System</title>
1455 <abstract>
1456 You need to edit some important configuration files. In this chapter
1457 you receive an overview of these files and an explanation on how to
1458 proceed.
1459 </abstract>
1460 <include href="hb-install-config.xml"/>
1461 </chapter>
1462
1463 <chapter>
1464 <title>Installing Necessary System Tools</title>
1465 <abstract>
1466 As mentioned before, Gentoo is about customization. In this chapter we help you
1467 choose and install some important tools.
1468 </abstract>
1469 <include href="hb-install-tools.xml"/>
1470 </chapter>
1471
1472 <chapter>
1473 <title>Configuring the Bootloader</title>
1474 <abstract>
1475 Several bootloaders exist. Each one of them has its own way of
1476 configuration. In this chapter we'll describe all possibilities for you
1477 and step you through the process of configuring a bootloader to your
1478 needs.
1479 </abstract>
1480 <include href="hb-install-ppc-bootloader.xml"/>
1481 </chapter>
1482
1483 <chapter>
1484 <title>Finalizing your Gentoo Installation</title>
1485 <abstract>
1486 You're almost done. We'll just create one (or more) users for your
1487 system and (optionally) install prebuilt packages.
1488 </abstract>
1489 <include href="hb-install-finalise.xml"/>
1490 </chapter>
1491
1492 <chapter>
1493 <title>Where to go from here?</title>
1494 <abstract>
1495 Now you have your Gentoo system, but what's next?
1496 </abstract>
1497 <include href="hb-install-next.xml"/>
1498 </chapter>
1499 </part>
1500
1501 <part>
1502 <title>Working with Gentoo</title>
1503 <abstract>
1504 Learn how to work with Gentoo: installing software, altering variables, changing
1505 Portage behaviour etc.
1506 </abstract>
1507
1508 <chapter>
1509 <title>A Portage Introduction</title>
1510 <abstract>
1511 This chapter explains the "simple" steps a user definitely needs to know to
1512 maintain the software on his system.
1513 </abstract>
1514 <include href="../hb-working-portage.xml"/>
1515 </chapter>
1516
1517 <chapter>
1518 <title>USE flags</title>
1519 <abstract>
1520 USE-flags are a very important aspect of Gentoo. In this chapter, you learn to
1521 work with USE-flags and understand how USE-flags interact with your system.
1522 </abstract>
1523 <include href="../hb-working-use.xml"/>
1524 </chapter>
1525
1526 <chapter>
1527 <title>Portage Features</title>
1528 <abstract>
1529 Discover the features Portage has, such as support for distributed compiling,
1530 ccache and more.
1531 </abstract>
1532 <include href="../hb-working-features.xml"/>
1533 </chapter>
1534
1535 <chapter>
1536 <title>Initscripts</title>
1537 <abstract>
1538 Gentoo uses a special initscript format which, amongst other features, allows
1539 dependency-driven decisions and virtual initscripts. This chapter explains all
1540 these aspects and explains how to deal with these scripts.
1541 </abstract>
1542 <include href="../hb-working-rcscripts.xml"/>
1543 </chapter>
1544
1545 <chapter>
1546 <title>Environment Variables</title>
1547 <abstract>
1548 With Gentoo you can easily manage the environment variables for your system.
1549 This chapter explains how you do that, and also describes frequently used
1550 variables.
1551 </abstract>
1552 <include href="../hb-working-variables.xml"/>
1553 </chapter>
1554 </part>
1555
1556 <part>
1557 <title>Working with Portage</title>
1558 <abstract>
1559 "Working with Portage" provides an in-depth coverage of Portage, Gentoo's
1560 Software Management Tool.
1561 </abstract>
1562
1563 <chapter>
1564 <title>Files and Directories</title>
1565 <abstract>
1566 Once you want to know Portage in-depth you need to know where it stores its
1567 files and data.
1568 </abstract>
1569 <include href="../hb-portage-files.xml"/>
1570 </chapter>
1571
1572 <chapter>
1573 <title>Configuring through Variables</title>
1574 <abstract>
1575 Portage is completely configurable through various variables you can set in the
1576 configuration file or as environment variable.
1577 </abstract>
1578 <include href="../hb-portage-configuration.xml"/>
1579 </chapter>
1580
1581 <chapter>
1582 <title>Mixing Software Branches</title>
1583 <abstract>
1584 Gentoo provides software separated in several branches, depending on stability
1585 and architectural support. "Mixing Software Branches" inform you how these
1586 branches can be configured and how you can override this separation
1587 individually.
1588 </abstract>
1589 <include href="../hb-portage-branches.xml"/>
1590 </chapter>
1591
1592 <chapter>
1593 <title>Additional Portage Tools</title>
1594 <abstract>
1595 Portage comes with a few extra tools that might make your Gentoo experience even
1596 better. Read on to discover how to use dispatch-conf and other tools.
1597 </abstract>
1598 <include href="../hb-portage-tools.xml"/>
1599 </chapter>
1600
1601 <chapter>
1602 <title>Diverting from the Official Tree</title>
1603 <abstract>
1604 "Diverting from the Official Tree" gives you some tips and tricks on how to use
1605 your own Portage tree, how to synchronise only the categories you want, inject
1606 packages and more.
1607 </abstract>
1608 <include href="../hb-portage-diverttree.xml"/>
1609 </chapter>
1610 </part>
1611
1612 <part>
1613 <title>Gentoo Network Configuration</title>
1614 <abstract>A comprehensive guide to Networking in Gentoo.</abstract>
1615
1616 <chapter>
1617 <title>Getting Started</title>
1618 <abstract>
1619 A guide to quickly get your network interface up and running in most common
1620 environments.
1621 </abstract>
1622 <include href="../hb-net-start.xml"/>
1623 </chapter>
1624
1625 <chapter>
1626 <title>Advanced Configuration</title>
1627 <abstract>
1628 Here we learn about how the configuration works - you need to know this
1629 before we learn about modular networking.
1630 </abstract>
1631 <include href="../hb-net-advanced.xml"/>
1632 </chapter>
1633
1634 <chapter>
1635 <title>Modular Networking</title>
1636 <abstract>
1637 Gentoo provides you flexible networking - here you are told about choosing
1638 different DHCP clients, setting up bonding, bridging, VLANs and more.
1639 </abstract>
1640 <include href="../hb-net-modules.xml"/>
1641 </chapter>
1642
1643 <chapter>
1644 <title>Wireless Networking</title>
1645 <abstract>
1646 Wireless isn't straight-forward. Hopefully we'll get you working!
1647 </abstract>
1648 <include href="../hb-net-wireless.xml"/>
1649 </chapter>
1650
1651 <chapter>
1652 <title>Adding Functionality</title>
1653 <abstract>
1654 If you're feeling adventurous, you can add your own functions to networking.
1655 </abstract>
1656 <include href="../hb-net-functions.xml"/>
1657 </chapter>
1658
1659 <chapter>
1660 <title>Network Management</title>
1661 <abstract>
1662 For laptop users or people who move their computer around different networks.
1663 </abstract>
1664 <include href="../hb-net-management.xml"/>
1665 </chapter>
1666 </part>
1667
1668 </book>
1669
1670
1671
1672 1.1 xml/htdocs/doc/en/handbook/2006.1/handbook-ppc64.xml
1673
1674 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-ppc64.xml?rev=1.1&view=markup
1675 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-ppc64.xml?rev=1.1&content-type=text/plain
1676
1677 Index: handbook-ppc64.xml
1678 ===================================================================
1679 <?xml version='1.0' encoding='UTF-8'?>
1680 <!DOCTYPE book SYSTEM "/dtd/book.dtd">
1681
1682 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-ppc64.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
1683
1684 <book link="/doc/en/handbook/2006.1/handbook-ppc64.xml">
1685 <title>Gentoo Linux 2006.1 PPC64 Handbook</title>
1686
1687 <author title="Author">
1688 <mail link="swift@g.o">Sven Vermeulen</mail>
1689 </author>
1690 <author title="Author">
1691 <mail link="uberlord@g.o">Roy Marples</mail>
1692 </author>
1693 <author title="Author">
1694 <mail link="drobbins@g.o">Daniel Robbins</mail>
1695 </author>
1696 <author title="Author">
1697 <mail link="chouser@g.o">Chris Houser</mail>
1698 </author>
1699 <author title="Author">
1700 <mail link="jerry@g.o">Jerry Alexandratos</mail>
1701 </author>
1702 <author title="Gentoo x86 Developer">
1703 <mail link="seemant@g.o">Seemant Kulleen</mail>
1704 </author>
1705 <author title="Gentoo Alpha Developer">
1706 <mail link="taviso@g.o">Tavis Ormandy</mail>
1707 </author><!-- Does not want to be listed on the rendered page
1708 <author title="Gentoo Developer">
1709 Aron Griffis
1710 </author>
1711 -->
1712 <author title="Gentoo AMD64 Developer">
1713 <mail link="jhuebel@g.o">Jason Huebel</mail>
1714 </author>
1715 <author title="Gentoo HPPA developer">
1716 <mail link="gmsoft@g.o">Guy Martin</mail>
1717 </author>
1718 <author title="Gentoo PPC developer">
1719 <mail link="pvdabeel@g.o">Pieter Van den Abeele</mail>
1720 </author>
1721 <author title="Gentoo SPARC developer">
1722 <mail link="blademan@g.o">Joe Kallar</mail>
1723 </author>
1724 <author title="Editor">
1725 <mail link="zhen@g.o">John P. Davis</mail>
1726 </author>
1727 <author title="Editor">Pierre-Henri Jondot</author>
1728 <author title="Editor">
1729 <mail link="stocke2@g.o">Eric Stockbridge</mail>
1730 </author>
1731 <author title="Editor">
1732 <mail link="rajiv@g.o">Rajiv Manglani</mail>
1733 </author>
1734 <author title="Editor">
1735 <mail link="seo@g.o">Jungmin Seo</mail>
1736 </author>
1737 <author title="Editor">
1738 <mail link="zhware@g.o">Stoyan Zhekov</mail>
1739 </author>
1740 <author title="Editor">
1741 <mail link="jhhudso@g.o">Jared Hudson</mail>
1742 </author>
1743 <author title="Editor">
1744 <mail link="peitolm@g.o">Colin Morey</mail>
1745 </author>
1746 <author title="Editor">
1747 <mail link="peesh@g.o">Jorge Paulo</mail>
1748 </author>
1749 <author title="Editor">
1750 <mail link="carl@g.o">Carl Anderson</mail>
1751 </author>
1752 <author title="Editor">
1753 <mail link="avenj@g.o">Jon Portnoy</mail>
1754 </author>
1755 <author title="Editor">
1756 <mail link="klasikahl@g.o">Zack Gilburd</mail>
1757 </author>
1758 <author title="Editor">
1759 <mail link="jmorgan@g.o">Jack Morgan</mail>
1760 </author>
1761 <author title="Editor">
1762 <mail link="bennyc@g.o">Benny Chuang</mail>
1763 </author>
1764 <author title="Editor">
1765 <mail link="erwin@g.o">Erwin</mail>
1766 </author>
1767 <author title="Editor">
1768 <mail link="kumba@g.o">Joshua Kinard</mail>
1769 </author>
1770 <author title="Editor">
1771 <mail link="neysx@g.o">Xavier Neys</mail>
1772 </author>
1773 <author title="Reviewer">
1774 <mail link="g2boojum@g.o">Grant Goodyear</mail>
1775 </author>
1776 <author title="Reviewer">
1777 <mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail>
1778 </author>
1779 <author title="Reviewer">
1780 <mail link="dberkholz@g.o">Donnie Berkholz</mail>
1781 </author>
1782 <author title="Reviewer">
1783 <mail link="antifa@g.o">Ken Nowack</mail>
1784 </author>
1785 <author title="Contributor">
1786 <mail link="pylon@g.o">Lars Weiler</mail>
1787 </author>
1788 <author title="Editor">
1789 <mail link="dertobi123@g.o">Tobias Scherbaum</mail>
1790 </author>
1791
1792 <abstract>
1793 This is the Gentoo Handbook, an effort to centralise Gentoo/Linux information.
1794 This handbook contains the installation instructions for a networkless
1795 installation on PPC64 systems and parts about working with Gentoo and Portage.
1796 </abstract>
1797
1798 <!-- The content of this document is licensed under the CC-BY-SA license -->
1799 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
1800 <license/>
1801
1802 <version>7.0</version>
1803 <date>2006-08-30</date>
1804
1805 <part>
1806 <title>Installing Gentoo</title>
1807 <abstract>
1808 In this part you learn how to install Gentoo on your system.
1809 </abstract>
1810
1811 <chapter>
1812 <title>About the Gentoo Linux Installation</title>
1813 <abstract>
1814 Users not familiar with Gentoo do not always know that choice is what
1815 Gentoo is all about.
1816 </abstract>
1817 <include href="hb-install-about.xml"/>
1818 </chapter>
1819
1820 <chapter>
1821 <title>Booting the Universal Installation CD</title>
1822 <abstract>
1823 Using our Universal Installation CD you can boot up your system into a running
1824 environment that allows you to install Gentoo.
1825 </abstract>
1826 <include href="hb-install-ppc64-medium.xml"/>
1827 </chapter>
1828
1829 <chapter>
1830 <title>Configuring your Network</title>
1831 <abstract>
1832 If you need networking, this is the place where the network (and Internet
1833 connection) is configured.
1834 </abstract>
1835 <include href="hb-install-network.xml"/>
1836 </chapter>
1837
1838 <chapter>
1839 <title>Preparing the Disks</title>
1840 <abstract>
1841 To be able to install Gentoo, you must create the necessary partitions.
1842 This chapter describes how to partition a disk for future usage.
1843 </abstract>
1844 <include href="hb-install-ppc64-disk.xml"/>
1845 </chapter>
1846
1847 <chapter>
1848 <title>Installing the Gentoo Installation Files</title>
1849 <abstract>
1850 In this chapter we describe how you extract a stage3 file and how to configure
1851 Portage.
1852 </abstract>
1853 <include href="hb-install-stage.xml"/>
1854 </chapter>
1855
1856 <chapter>
1857 <title>Chrooting into the Gentoo Base System</title>
1858 <abstract>
1859 Now that the stage3 file is extracted, we chroot into the new system and modify
1860 the USE variable.
1861 </abstract>
1862 <include href="hb-install-system.xml"/>
1863 </chapter>
1864
1865 <chapter>
1866 <title>Configuring the Kernel</title>
1867 <abstract>
1868 The Linux kernel is the core of every distribution. This chapter
1869 explains how to configure your kernel.
1870 </abstract>
1871 <include href="hb-install-ppc64-kernel.xml"/>
1872 </chapter>
1873
1874 <chapter>
1875 <title>Configuring your System</title>
1876 <abstract>
1877 You need to edit some important configuration files. In this chapter
1878 you receive an overview of these files and an explanation on how to
1879 proceed.
1880 </abstract>
1881 <include href="hb-install-config.xml"/>
1882 </chapter>
1883
1884 <chapter>
1885 <title>Installing Necessary System Tools</title>
1886 <abstract>
1887 As mentioned before, Gentoo is about customization. In this chapter we help you
1888 choose and install some important tools.
1889 </abstract>
1890 <include href="hb-install-tools.xml"/>
1891 </chapter>
1892
1893 <chapter>
1894 <title>Configuring the Bootloader</title>
1895 <abstract>
1896 Several bootloaders exist. Each one of them has its own way of
1897 configuration. In this chapter we'll describe all possibilities for you
1898 and step you through the process of configuring a bootloader to your
1899 needs.
1900 </abstract>
1901 <include href="hb-install-ppc64-bootloader.xml"/>
1902 </chapter>
1903
1904
1905 <chapter>
1906 <title>Finalizing your Gentoo Installation</title>
1907 <abstract>
1908 You're almost done. We'll just create one (or more) users for your
1909 system and (optionally) install prebuilt packages.
1910 </abstract>
1911 <include href="hb-install-finalise.xml"/>
1912 </chapter>
1913
1914 <chapter>
1915 <title>Where to go from here?</title>
1916 <abstract>
1917 Now you have your Gentoo system, but what's next?
1918 </abstract>
1919 <include href="hb-install-next.xml"/>
1920 </chapter>
1921 </part>
1922
1923 <part>
1924 <title>Working with Gentoo</title>
1925 <abstract>
1926 Learn how to work with Gentoo: installing software, altering variables, changing
1927 Portage behaviour etc.
1928 </abstract>
1929
1930 <chapter>
1931 <title>A Portage Introduction</title>
1932 <abstract>
1933 This chapter explains the "simple" steps a user definitely needs to know to
1934 maintain the software on his system.
1935 </abstract>
1936 <include href="../hb-working-portage.xml"/>
1937 </chapter>
1938
1939 <chapter>
1940 <title>USE flags</title>
1941 <abstract>
1942 USE-flags are a very important aspect of Gentoo. In this chapter, you learn to
1943 work with USE-flags and understand how USE-flags interact with your system.
1944 </abstract>
1945 <include href="../hb-working-use.xml"/>
1946 </chapter>
1947
1948 <chapter>
1949 <title>Portage Features</title>
1950 <abstract>
1951 Discover the features Portage has, such as support for distributed compiling,
1952 ccache and more.
1953 </abstract>
1954 <include href="../hb-working-features.xml"/>
1955 </chapter>
1956
1957 <chapter>
1958 <title>Initscripts</title>
1959 <abstract>
1960 Gentoo uses a special initscript format which, amongst other features, allows
1961 dependency-driven decisions and virtual initscripts. This chapter explains all
1962 these aspects and explains how to deal with these scripts.
1963 </abstract>
1964 <include href="../hb-working-rcscripts.xml"/>
1965 </chapter>
1966
1967 <chapter>
1968 <title>Environment Variables</title>
1969 <abstract>
1970 With Gentoo you can easily manage the environment variables for your system.
1971 This chapter explains how you do that, and also describes frequently used
1972 variables.
1973 </abstract>
1974 <include href="../hb-working-variables.xml"/>
1975 </chapter>
1976 </part>
1977
1978 <part>
1979 <title>Working with Portage</title>
1980 <abstract>
1981 "Working with Portage" provides an in-depth coverage of Portage, Gentoo's
1982 Software Management Tool.
1983 </abstract>
1984
1985 <chapter>
1986 <title>Files and Directories</title>
1987 <abstract>
1988 Once you want to know Portage in-depth you need to know where it stores its
1989 files and data.
1990 </abstract>
1991 <include href="../hb-portage-files.xml"/>
1992 </chapter>
1993
1994 <chapter>
1995 <title>Configuring through Variables</title>
1996 <abstract>
1997 Portage is completely configurable through various variables you can set in the
1998 configuration file or as environment variable.
1999 </abstract>
2000 <include href="../hb-portage-configuration.xml"/>
2001 </chapter>
2002
2003 <chapter>
2004 <title>Mixing Software Branches</title>
2005 <abstract>
2006 Gentoo provides software separated in several branches, depending on stability
2007 and architectural support. "Mixing Software Branches" inform you how these
2008 branches can be configured and how you can override this separation
2009 individually.
2010 </abstract>
2011 <include href="../hb-portage-branches.xml"/>
2012 </chapter>
2013
2014 <chapter>
2015 <title>Additional Portage Tools</title>
2016 <abstract>
2017 Portage comes with a few extra tools that might make your Gentoo experience even
2018 better. Read on to discover how to use dispatch-conf and other tools.
2019 </abstract>
2020 <include href="../hb-portage-tools.xml"/>
2021 </chapter>
2022
2023 <chapter>
2024 <title>Diverting from the Official Tree</title>
2025 <abstract>
2026 "Diverting from the Official Tree" gives you some tips and tricks on how to use
2027 your own Portage tree, how to synchronise only the categories you want, inject
2028 packages and more.
2029 </abstract>
2030 <include href="../hb-portage-diverttree.xml"/>
2031 </chapter>
2032 </part>
2033
2034 <part>
2035 <title>Gentoo Network Configuration</title>
2036 <abstract>A comprehensive guide to Networking in Gentoo.</abstract>
2037
2038 <chapter>
2039 <title>Getting Started</title>
2040 <abstract>
2041 A guide to quickly get your network interface up and running in most common
2042 environments.
2043 </abstract>
2044 <include href="../hb-net-start.xml"/>
2045 </chapter>
2046
2047 <chapter>
2048 <title>Advanced Configuration</title>
2049 <abstract>
2050 Here we learn about how the configuration works - you need to know this
2051 before we learn about modular networking.
2052 </abstract>
2053 <include href="../hb-net-advanced.xml"/>
2054 </chapter>
2055
2056 <chapter>
2057 <title>Modular Networking</title>
2058 <abstract>
2059 Gentoo provides you flexible networking - here you are told about choosing
2060 different DHCP clients, setting up bonding, bridging, VLANs and more.
2061 </abstract>
2062 <include href="../hb-net-modules.xml"/>
2063 </chapter>
2064
2065 <chapter>
2066 <title>Wireless Networking</title>
2067 <abstract>
2068 Wireless isn't straight-forward. Hopefully we'll get you working!
2069 </abstract>
2070 <include href="../hb-net-wireless.xml"/>
2071 </chapter>
2072
2073 <chapter>
2074 <title>Adding Functionality</title>
2075 <abstract>
2076 If you're feeling adventurous, you can add your own functions to networking.
2077 </abstract>
2078 <include href="../hb-net-functions.xml"/>
2079 </chapter>
2080
2081 <chapter>
2082 <title>Network Management</title>
2083 <abstract>
2084 For laptop users or people who move their computer around different networks.
2085 </abstract>
2086 <include href="../hb-net-management.xml"/>
2087 </chapter>
2088 </part>
2089
2090 </book>
2091
2092
2093
2094 1.1 xml/htdocs/doc/en/handbook/2006.1/handbook-sparc.xml
2095
2096 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-sparc.xml?rev=1.1&view=markup
2097 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-sparc.xml?rev=1.1&content-type=text/plain
2098
2099 Index: handbook-sparc.xml
2100 ===================================================================
2101 <?xml version='1.0' encoding='UTF-8'?>
2102 <!DOCTYPE book SYSTEM "/dtd/book.dtd">
2103
2104 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-sparc.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
2105
2106 <book link="/doc/en/handbook/2006.1/handbook-sparc.xml">
2107 <title>Gentoo Linux 2006.1 SPARC Handbook</title>
2108
2109 <author title="Author">
2110 <mail link="swift@g.o">Sven Vermeulen</mail>
2111 </author>
2112 <author title="Author">
2113 <mail link="uberlord@g.o">Roy Marples</mail>
2114 </author>
2115 <author title="Author">
2116 <mail link="drobbins@g.o">Daniel Robbins</mail>
2117 </author>
2118 <author title="Author">
2119 <mail link="chouser@g.o">Chris Houser</mail>
2120 </author>
2121 <author title="Author">
2122 <mail link="jerry@g.o">Jerry Alexandratos</mail>
2123 </author>
2124 <author title="Gentoo x86 Developer">
2125 <mail link="seemant@g.o">Seemant Kulleen</mail>
2126 </author>
2127 <author title="Gentoo Alpha Developer">
2128 <mail link="taviso@g.o">Tavis Ormandy</mail>
2129 </author><!-- Does not want to be listed on the rendered page
2130 <author title="Gentoo Developer">
2131 Aron Griffis
2132 </author>
2133 -->
2134 <author title="Gentoo AMD64 Developer">
2135 <mail link="jhuebel@g.o">Jason Huebel</mail>
2136 </author>
2137 <author title="Gentoo HPPA developer">
2138 <mail link="gmsoft@g.o">Guy Martin</mail>
2139 </author>
2140 <author title="Gentoo PPC developer">
2141 <mail link="pvdabeel@g.o">Pieter Van den Abeele</mail>
2142 </author>
2143 <author title="Gentoo SPARC developer">
2144 <mail link="blademan@g.o">Joe Kallar</mail>
2145 </author>
2146 <author title="Editor">
2147 <mail link="zhen@g.o">John P. Davis</mail>
2148 </author>
2149 <author title="Editor">Pierre-Henri Jondot</author>
2150 <author title="Editor">
2151 <mail link="stocke2@g.o">Eric Stockbridge</mail>
2152 </author>
2153 <author title="Editor">
2154 <mail link="rajiv@g.o">Rajiv Manglani</mail>
2155 </author>
2156 <author title="Editor">
2157 <mail link="seo@g.o">Jungmin Seo</mail>
2158 </author>
2159 <author title="Editor">
2160 <mail link="zhware@g.o">Stoyan Zhekov</mail>
2161 </author>
2162 <author title="Editor">
2163 <mail link="jhhudso@g.o">Jared Hudson</mail>
2164 </author>
2165 <author title="Editor">
2166 <mail link="peitolm@g.o">Colin Morey</mail>
2167 </author>
2168 <author title="Editor">
2169 <mail link="peesh@g.o">Jorge Paulo</mail>
2170 </author>
2171 <author title="Editor">
2172 <mail link="carl@g.o">Carl Anderson</mail>
2173 </author>
2174 <author title="Editor">
2175 <mail link="avenj@g.o">Jon Portnoy</mail>
2176 </author>
2177 <author title="Editor">
2178 <mail link="klasikahl@g.o">Zack Gilburd</mail>
2179 </author>
2180 <author title="Editor">
2181 <mail link="jmorgan@g.o">Jack Morgan</mail>
2182 </author>
2183 <author title="Editor">
2184 <mail link="bennyc@g.o">Benny Chuang</mail>
2185 </author>
2186 <author title="Editor">
2187 <mail link="erwin@g.o">Erwin</mail>
2188 </author>
2189 <author title="Editor">
2190 <mail link="kumba@g.o">Joshua Kinard</mail>
2191 </author>
2192 <author title="Editor">
2193 <mail link="dertobi123@g.o">Tobias Scherbaum</mail>
2194 </author>
2195 <author title="Editor">
2196 <mail link="neysx@g.o">Xavier Neys</mail>
2197 </author>
2198 <author title="Reviewer">
2199 <mail link="g2boojum@g.o">Grant Goodyear</mail>
2200 </author>
2201 <author title="Reviewer">
2202 <mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail>
2203 </author>
2204 <author title="Reviewer">
2205 <mail link="dberkholz@g.o">Donnie Berkholz</mail>
2206 </author>
2207 <author title="Reviewer">
2208 <mail link="antifa@g.o">Ken Nowack</mail>
2209 </author>
2210 <author title="Contributor">
2211 <mail link="pylon@g.o">Lars Weiler</mail>
2212 </author>
2213
2214 <abstract>
2215 This is the Gentoo Handbook, an effort to centralise Gentoo/Linux information.
2216 This handbook contains the installation instructions for a networkless
2217 installation on Sparc systems and parts about working with Gentoo and Portage.
2218 </abstract>
2219
2220 <!-- The content of this document is licensed under the CC-BY-SA license -->
2221 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
2222 <license/>
2223
2224 <version>7.0</version>
2225 <date>2006-08-30</date>
2226
2227 <part>
2228 <title>Installing Gentoo</title>
2229 <abstract>
2230 In this part you learn how to install Gentoo on your system.
2231 </abstract>
2232
2233 <chapter>
2234 <title>About the Gentoo Linux Installation</title>
2235 <abstract>
2236 Users not familiar with Gentoo do not always know that choice is what
2237 Gentoo is all about.
2238 </abstract>
2239 <include href="hb-install-about.xml"/>
2240 </chapter>
2241
2242 <chapter>
2243 <title>Booting the Universal Installation CD</title>
2244 <abstract>
2245 Using our Universal Installation CD you can boot up your system into a running
2246 environment that allows you to install Gentoo.
2247 </abstract>
2248 <include href="hb-install-sparc-medium.xml"/>
2249 </chapter>
2250
2251 <chapter>
2252 <title>Configuring your Network</title>
2253 <abstract>
2254 If you need networking, this is the place where the network (and Internet
2255 connection) is configured.
2256 </abstract>
2257 <include href="hb-install-network.xml"/>
2258 </chapter>
2259
2260 <chapter>
2261 <title>Preparing the Disks</title>
2262 <abstract>
2263 To be able to install Gentoo, you must create the necessary partitions.
2264 This chapter describes how to partition a disk for future usage.
2265 </abstract>
2266 <include href="hb-install-sparc-disk.xml"/>
2267 </chapter>
2268
2269 <chapter>
2270 <title>Installing the Gentoo Installation Files</title>
2271 <abstract>
2272 In this chapter we describe how you extract a stage3 file and how to configure
2273 Portage.
2274 </abstract>
2275 <include href="hb-install-stage.xml"/>
2276 </chapter>
2277
2278 <chapter>
2279 <title>Chrooting into the Gentoo Base System</title>
2280 <abstract>
2281 Now that the stage3 file is extracted, we chroot into the new system and modify
2282 the USE variable.
2283 </abstract>
2284 <include href="hb-install-system.xml"/>
2285 </chapter>
2286
2287 <chapter>
2288 <title>Configuring the Kernel</title>
2289 <abstract>
2290 The Linux kernel is the core of every distribution. This chapter
2291 explains how to configure your kernel.
2292 </abstract>
2293 <include href="hb-install-sparc-kernel.xml"/>
2294 </chapter>
2295
2296 <chapter>
2297 <title>Configuring your System</title>
2298 <abstract>
2299 You need to edit some important configuration files. In this chapter
2300 you receive an overview of these files and an explanation on how to
2301 proceed.
2302 </abstract>
2303 <include href="hb-install-config.xml"/>
2304 </chapter>
2305
2306 <chapter>
2307 <title>Installing Necessary System Tools</title>
2308 <abstract>
2309 As mentioned before, Gentoo is about customization. In this chapter we help you
2310 choose and install some important tools.
2311 </abstract>
2312 <include href="hb-install-tools.xml"/>
2313 </chapter>
2314
2315 <chapter>
2316 <title>Configuring the Bootloader</title>
2317 <abstract>
2318 The SPARC architecture uses the SILO bootloader to fire up your Linux system. In
2319 this chapter we step you through the process of configuring this bootloader to
2320 your needs.
2321 </abstract>
2322 <include href="hb-install-sparc-bootloader.xml"/>
2323 </chapter>
2324
2325 <chapter>
2326 <title>Finalizing your Gentoo Installation</title>
2327 <abstract>
2328 You're almost done. We'll just create one (or more) users for your
2329 system and (optionally) install prebuilt packages.
2330 </abstract>
2331 <include href="hb-install-finalise.xml"/>
2332 </chapter>
2333
2334 <chapter>
2335 <title>Where to go from here?</title>
2336 <abstract>
2337 Now you have your Gentoo system, but what's next?
2338 </abstract>
2339 <include href="hb-install-next.xml"/>
2340 </chapter>
2341 </part>
2342
2343 <part>
2344 <title>Working with Gentoo</title>
2345 <abstract>
2346 Learn how to work with Gentoo: installing software, altering variables, changing
2347 Portage behaviour etc.
2348 </abstract>
2349
2350 <chapter>
2351 <title>A Portage Introduction</title>
2352 <abstract>
2353 This chapter explains the "simple" steps a user definitely needs to know to
2354 maintain the software on his system.
2355 </abstract>
2356 <include href="../hb-working-portage.xml"/>
2357 </chapter>
2358
2359 <chapter>
2360 <title>USE flags</title>
2361 <abstract>
2362 USE-flags are a very important aspect of Gentoo. In this chapter, you learn to
2363 work with USE-flags and understand how USE-flags interact with your system.
2364 </abstract>
2365 <include href="../hb-working-use.xml"/>
2366 </chapter>
2367
2368 <chapter>
2369 <title>Portage Features</title>
2370 <abstract>
2371 Discover the features Portage has, such as support for distributed compiling,
2372 ccache and more.
2373 </abstract>
2374 <include href="../hb-working-features.xml"/>
2375 </chapter>
2376
2377 <chapter>
2378 <title>Initscripts</title>
2379 <abstract>
2380 Gentoo uses a special initscript format which, amongst other features, allows
2381 dependency-driven decisions and virtual initscripts. This chapter explains all
2382 these aspects and explains how to deal with these scripts.
2383 </abstract>
2384 <include href="../hb-working-rcscripts.xml"/>
2385 </chapter>
2386
2387 <chapter>
2388 <title>Environment Variables</title>
2389 <abstract>
2390 With Gentoo you can easily manage the environment variables for your system.
2391 This chapter explains how you do that, and also describes frequently used
2392 variables.
2393 </abstract>
2394 <include href="../hb-working-variables.xml"/>
2395 </chapter>
2396 </part>
2397
2398 <part>
2399 <title>Working with Portage</title>
2400 <abstract>
2401 "Working with Portage" provides an in-depth coverage of Portage, Gentoo's
2402 Software Management Tool.
2403 </abstract>
2404
2405 <chapter>
2406 <title>Files and Directories</title>
2407 <abstract>
2408 Once you want to know Portage in-depth you need to know where it stores its
2409 files and data.
2410 </abstract>
2411 <include href="../hb-portage-files.xml"/>
2412 </chapter>
2413
2414 <chapter>
2415 <title>Configuring through Variables</title>
2416 <abstract>
2417 Portage is completely configurable through various variables you can set in the
2418 configuration file or as environment variable.
2419 </abstract>
2420 <include href="../hb-portage-configuration.xml"/>
2421 </chapter>
2422
2423 <chapter>
2424 <title>Mixing Software Branches</title>
2425 <abstract>
2426 Gentoo provides software separated in several branches, depending on stability
2427 and architectural support. "Mixing Software Branches" inform you how these
2428 branches can be configured and how you can override this separation
2429 individually.
2430 </abstract>
2431 <include href="../hb-portage-branches.xml"/>
2432 </chapter>
2433
2434 <chapter>
2435 <title>Additional Portage Tools</title>
2436 <abstract>
2437 Portage comes with a few extra tools that might make your Gentoo experience even
2438 better. Read on to discover how to use dispatch-conf and other tools.
2439 </abstract>
2440 <include href="../hb-portage-tools.xml"/>
2441 </chapter>
2442
2443 <chapter>
2444 <title>Diverting from the Official Tree</title>
2445 <abstract>
2446 "Diverting from the Official Tree" gives you some tips and tricks on how to use
2447 your own Portage tree, how to synchronise only the categories you want, inject
2448 packages and more.
2449 </abstract>
2450 <include href="../hb-portage-diverttree.xml"/>
2451 </chapter>
2452 </part>
2453
2454 <part>
2455 <title>Gentoo Network Configuration</title>
2456 <abstract>A comprehensive guide to Networking in Gentoo.</abstract>
2457
2458 <chapter>
2459 <title>Getting Started</title>
2460 <abstract>
2461 A guide to quickly get your network interface up and running in most common
2462 environments.
2463 </abstract>
2464 <include href="../hb-net-start.xml"/>
2465 </chapter>
2466
2467 <chapter>
2468 <title>Advanced Configuration</title>
2469 <abstract>
2470 Here we learn about how the configuration works - you need to know this
2471 before we learn about modular networking.
2472 </abstract>
2473 <include href="../hb-net-advanced.xml"/>
2474 </chapter>
2475
2476 <chapter>
2477 <title>Modular Networking</title>
2478 <abstract>
2479 Gentoo provides you flexible networking - here you are told about choosing
2480 different DHCP clients, setting up bonding, bridging, VLANs and more.
2481 </abstract>
2482 <include href="../hb-net-modules.xml"/>
2483 </chapter>
2484
2485 <chapter>
2486 <title>Wireless Networking</title>
2487 <abstract>
2488 Wireless isn't straight-forward. Hopefully we'll get you working!
2489 </abstract>
2490 <include href="../hb-net-wireless.xml"/>
2491 </chapter>
2492
2493 <chapter>
2494 <title>Adding Functionality</title>
2495 <abstract>
2496 If you're feeling adventurous, you can add your own functions to networking.
2497 </abstract>
2498 <include href="../hb-net-functions.xml"/>
2499 </chapter>
2500
2501 <chapter>
2502 <title>Network Management</title>
2503 <abstract>
2504 For laptop users or people who move their computer around different networks.
2505 </abstract>
2506 <include href="../hb-net-management.xml"/>
2507 </chapter>
2508 </part>
2509
2510 </book>
2511
2512
2513
2514 1.1 xml/htdocs/doc/en/handbook/2006.1/handbook-x86.xml
2515
2516 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-x86.xml?rev=1.1&view=markup
2517 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-x86.xml?rev=1.1&content-type=text/plain
2518
2519 Index: handbook-x86.xml
2520 ===================================================================
2521 <?xml version='1.0' encoding='UTF-8'?>
2522 <!DOCTYPE book SYSTEM "/dtd/book.dtd">
2523
2524 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/handbook-x86.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
2525
2526 <book link="/doc/en/handbook/2006.1/handbook-x86.xml">
2527 <title>Gentoo Linux 2006.1 x86 Handbook</title>
2528
2529 <values>
2530 <key id="arch">x86</key>
2531 <key id="release-dir">releases/x86/2006.1/</key>
2532 <key id="online-book">2006.1/handbook-x86.xml</key>
2533 </values>
2534
2535 <author title="Author">
2536 <mail link="swift@g.o">Sven Vermeulen</mail>
2537 </author>
2538 <author title="Author">
2539 <mail link="uberlord@g.o">Roy Marples</mail>
2540 </author>
2541 <author title="Author">
2542 <mail link="drobbins@g.o">Daniel Robbins</mail>
2543 </author>
2544 <author title="Author">
2545 <mail link="chouser@g.o">Chris Houser</mail>
2546 </author>
2547 <author title="Author">
2548 <mail link="jerry@g.o">Jerry Alexandratos</mail>
2549 </author>
2550 <author title="Author">
2551 <mail link="nightmorph@g.o">Joshua Saddler</mail>
2552 </author>
2553 <author title="Gentoo x86 Developer">
2554 <mail link="seemant@g.o">Seemant Kulleen</mail>
2555 </author>
2556 <author title="Gentoo Alpha Developer">
2557 <mail link="taviso@g.o">Tavis Ormandy</mail>
2558 </author><!-- Does not want to be listed on the rendered page
2559 <author title="Gentoo Developer">
2560 Aron Griffis
2561 </author>
2562 -->
2563 <author title="Gentoo AMD64 Developer">
2564 <mail link="jhuebel@g.o">Jason Huebel</mail>
2565 </author>
2566 <author title="Gentoo HPPA developer">
2567 <mail link="gmsoft@g.o">Guy Martin</mail>
2568 </author>
2569 <author title="Gentoo PPC developer">
2570 <mail link="pvdabeel@g.o">Pieter Van den Abeele</mail>
2571 </author>
2572 <author title="Gentoo SPARC developer">
2573 <mail link="blademan@g.o">Joe Kallar</mail>
2574 </author>
2575 <author title="Editor">
2576 <mail link="zhen@g.o">John P. Davis</mail>
2577 </author>
2578 <author title="Editor">Pierre-Henri Jondot</author>
2579 <author title="Editor">
2580 <mail link="stocke2@g.o">Eric Stockbridge</mail>
2581 </author>
2582 <author title="Editor">
2583 <mail link="rajiv@g.o">Rajiv Manglani</mail>
2584 </author>
2585 <author title="Editor">
2586 <mail link="seo@g.o">Jungmin Seo</mail>
2587 </author>
2588 <author title="Editor">
2589 <mail link="zhware@g.o">Stoyan Zhekov</mail>
2590 </author>
2591 <author title="Editor">
2592 <mail link="jhhudso@g.o">Jared Hudson</mail>
2593 </author>
2594 <author title="Editor">
2595 <mail link="peitolm@g.o">Colin Morey</mail>
2596 </author>
2597 <author title="Editor">
2598 <mail link="peesh@g.o">Jorge Paulo</mail>
2599 </author>
2600 <author title="Editor">
2601 <mail link="carl@g.o">Carl Anderson</mail>
2602 </author>
2603 <author title="Editor">
2604 <mail link="avenj@g.o">Jon Portnoy</mail>
2605 </author>
2606 <author title="Editor">
2607 <mail link="klasikahl@g.o">Zack Gilburd</mail>
2608 </author>
2609 <author title="Editor">
2610 <mail link="jmorgan@g.o">Jack Morgan</mail>
2611 </author>
2612 <author title="Editor">
2613 <mail link="bennyc@g.o">Benny Chuang</mail>
2614 </author>
2615 <author title="Editor">
2616 <mail link="erwin@g.o">Erwin</mail>
2617 </author>
2618 <author title="Editor">
2619 <mail link="kumba@g.o">Joshua Kinard</mail>
2620 </author>
2621 <author title="Editor">
2622 <mail link="dertobi123@g.o">Tobias Scherbaum</mail>
2623 </author>
2624 <author title="Editor">
2625 <mail link="neysx@g.o">Xavier Neys</mail>
2626 </author>
2627 <author title="Editor">
2628 <mail link="fox2mike@g.o">Shyam Mani</mail>
2629 </author>
2630 <author title="Reviewer">
2631 <mail link="g2boojum@g.o">Grant Goodyear</mail>
2632 </author>
2633 <author title="Reviewer">
2634 <mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail>
2635 </author>
2636 <author title="Reviewer">
2637 <mail link="dberkholz@g.o">Donnie Berkholz</mail>
2638 </author>
2639 <author title="Reviewer">
2640 <mail link="antifa@g.o">Ken Nowack</mail>
2641 </author>
2642 <author title="Contributor">
2643 <mail link="pylon@g.o">Lars Weiler</mail>
2644 </author>
2645
2646 <abstract>
2647 This is the Gentoo Handbook, an effort to centralise Gentoo/Linux information.
2648 This handbook contains the installation instructions for a networkless
2649 installation on x86 systems and parts about working with Gentoo and Portage.
2650 </abstract>
2651
2652 <!-- The content of this document is licensed under the CC-BY-SA license -->
2653 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
2654 <license/>
2655
2656 <version>7.0</version>
2657 <date>2006-08-30</date>
2658
2659 <part>
2660 <title>Installing Gentoo</title>
2661 <abstract>
2662 In this part you learn how to install Gentoo on your system.
2663 </abstract>
2664
2665 <chapter>
2666 <title>About the Gentoo Linux Installation</title>
2667 <abstract>
2668 Users not familiar with Gentoo do not always know that choice is what
2669 Gentoo is all about.
2670 </abstract>
2671 <include href="hb-installer-about.xml"/>
2672 </chapter>
2673
2674 <chapter>
2675 <title>Booting the Installer LiveCD</title>
2676 <abstract>
2677 Using our Installer LiveCD you can boot up your system into a running
2678 environment that allows you to install Gentoo.
2679 </abstract>
2680 <include href="hb-install-gli-medium.xml"/>
2681 </chapter>
2682
2683 <chapter>
2684 <title>Using the GTK+ based Gentoo Linux Installer</title>
2685 <abstract>
2686 You now have an option of using our graphical installer to install Gentoo.
2687 Configure the options you need through an easy to use GUI and you're ready to
2688 go.
2689 </abstract>
2690 <include href="hb-install-gtkfe.xml" />
2691 </chapter>
2692
2693 <chapter>
2694 <title>Using the Dialog based Gentoo Linux Installer</title>
2695 <abstract>
2696 You also have an option of using our text based installer to install Gentoo.
2697 Configure the options you need through an easy to use set of menus and you're
2698 ready to go.
2699 </abstract>
2700 <include href="hb-install-gli-dialog.xml" />
2701 </chapter>
2702
2703 <chapter>
2704 <title>Where to go from here?</title>
2705 <abstract>
2706 Now you have your Gentoo system, but what's next?
2707 </abstract>
2708 <include href="hb-install-next.xml"/>
2709 </chapter>
2710 </part>
2711
2712 <part>
2713 <title>Working with Gentoo</title>
2714 <abstract>
2715 Learn how to work with Gentoo: installing software, altering variables,
2716 changing Portage behaviour etc.
2717 </abstract>
2718
2719 <chapter>
2720 <title>A Portage Introduction</title>
2721 <abstract>
2722 This chapter explains the "simple" steps a user definitely needs to know to
2723 maintain the software on his system.
2724 </abstract>
2725 <include href="../hb-working-portage.xml"/>
2726 </chapter>
2727
2728 <chapter>
2729 <title>USE flags</title>
2730 <abstract>
2731 USE-flags are a very important aspect of Gentoo. In this chapter, you learn to
2732 work with USE-flags and understand how USE-flags interact with your system.
2733 </abstract>
2734 <include href="../hb-working-use.xml"/>
2735 </chapter>
2736
2737 <chapter>
2738 <title>Portage Features</title>
2739 <abstract>
2740 Discover the features Portage has, such as support for distributed compiling,
2741 ccache and more.
2742 </abstract>
2743 <include href="../hb-working-features.xml"/>
2744 </chapter>
2745
2746 <chapter>
2747 <title>Initscripts</title>
2748 <abstract>
2749 Gentoo uses a special initscript format which, amongst other features, allows
2750 dependency-driven decisions and virtual initscripts. This chapter explains all
2751 these aspects and explains how to deal with these scripts.
2752 </abstract>
2753 <include href="../hb-working-rcscripts.xml"/>
2754 </chapter>
2755
2756 <chapter>
2757 <title>Environment Variables</title>
2758 <abstract>
2759 With Gentoo you can easily manage the environment variables for your system.
2760 This chapter explains how you do that, and also describes frequently used
2761 variables.
2762 </abstract>
2763 <include href="../hb-working-variables.xml"/>
2764 </chapter>
2765 </part>
2766
2767 <part>
2768 <title>Working with Portage</title>
2769 <abstract>
2770 "Working with Portage" provides an in-depth coverage of Portage, Gentoo's
2771 Software Management Tool.
2772 </abstract>
2773
2774 <chapter>
2775 <title>Files and Directories</title>
2776 <abstract>
2777 Once you want to know Portage in-depth you need to know where it stores its
2778 files and data.
2779 </abstract>
2780 <include href="../hb-portage-files.xml"/>
2781 </chapter>
2782
2783 <chapter>
2784 <title>Configuring through Variables</title>
2785 <abstract>
2786 Portage is completely configurable through various variables you can set in the
2787 configuration file or as environment variable.
2788 </abstract>
2789 <include href="../hb-portage-configuration.xml"/>
2790 </chapter>
2791
2792 <chapter>
2793 <title>Mixing Software Branches</title>
2794 <abstract>
2795 Gentoo provides software separated in several branches, depending on stability
2796 and architectural support. "Mixing Software Branches" inform you how these
2797 branches can be configured and how you can override this separation
2798 individually.
2799 </abstract>
2800 <include href="../hb-portage-branches.xml"/>
2801 </chapter>
2802
2803 <chapter>
2804 <title>Additional Portage Tools</title>
2805 <abstract>
2806 Portage comes with a few extra tools that might make your Gentoo experience even
2807 better. Read on to discover how to use dispatch-conf and other tools.
2808 </abstract>
2809 <include href="../hb-portage-tools.xml"/>
2810 </chapter>
2811
2812 <chapter>
2813 <title>Diverting from the Official Tree</title>
2814 <abstract>
2815 "Diverting from the Official Tree" gives you some tips and tricks on how to use
2816 your own Portage tree, how to synchronise only the categories you want, inject
2817 packages and more.
2818 </abstract>
2819 <include href="../hb-portage-diverttree.xml"/>
2820 </chapter>
2821 </part>
2822
2823 <part>
2824 <title>Gentoo Network Configuration</title>
2825 <abstract>A comprehensive guide to Networking in Gentoo.</abstract>
2826
2827 <chapter>
2828 <title>Getting Started</title>
2829 <abstract>
2830 A guide to quickly get your network interface up and running in most common
2831 environments.
2832 </abstract>
2833 <include href="../hb-net-start.xml"/>
2834 </chapter>
2835
2836 <chapter>
2837 <title>Advanced Configuration</title>
2838 <abstract>
2839 Here we learn about how the configuration works - you need to know this
2840 before we learn about modular networking.
2841 </abstract>
2842 <include href="../hb-net-advanced.xml"/>
2843 </chapter>
2844
2845 <chapter>
2846 <title>Modular Networking</title>
2847 <abstract>
2848 Gentoo provides you flexible networking - here you are told about choosing
2849 different DHCP clients, setting up bonding, bridging, VLANs and more.
2850 </abstract>
2851 <include href="../hb-net-modules.xml"/>
2852 </chapter>
2853
2854 <chapter>
2855 <title>Wireless Networking</title>
2856 <abstract>
2857 Wireless isn't straight-forward. Hopefully we'll get you working!
2858 </abstract>
2859 <include href="../hb-net-wireless.xml"/>
2860 </chapter>
2861
2862 <chapter>
2863 <title>Adding Functionality</title>
2864 <abstract>
2865 If you're feeling adventurous, you can add your own functions to networking.
2866 </abstract>
2867 <include href="../hb-net-functions.xml"/>
2868 </chapter>
2869
2870 <chapter>
2871 <title>Network Management</title>
2872 <abstract>
2873 For laptop users or people who move their computer around different networks.
2874 </abstract>
2875 <include href="../hb-net-management.xml"/>
2876 </chapter>
2877 </part>
2878
2879 </book>
2880
2881
2882
2883 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-about.xml
2884
2885 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-about.xml?rev=1.1&view=markup
2886 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-about.xml?rev=1.1&content-type=text/plain
2887
2888 Index: hb-install-about.xml
2889 ===================================================================
2890 <?xml version='1.0' encoding='UTF-8'?>
2891 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
2892
2893 <!-- The content of this document is licensed under the CC-BY-SA license -->
2894 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
2895
2896 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-about.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
2897
2898 <sections>
2899
2900 <version>7.0</version>
2901 <date>2006-08-30</date>
2902
2903 <section>
2904 <title>Introduction</title>
2905 <subsection>
2906 <title>Welcome!</title>
2907 <body>
2908
2909 <p>
2910 First of all, <e>welcome</e> to Gentoo. You are about to enter the world
2911 of customization and performance. When installing Gentoo, this is made clear to
2912 you several times -- you can choose how much you want to compile yourself, how
2913 to install Gentoo, what system logger you want, etc.
2914 </p>
2915
2916 <p>
2917 Gentoo is a fast, modern meta-distribution with a clean and flexible
2918 design. Gentoo is built around free software and doesn't hide from its
2919 users what is beneath the hood. Portage, the package maintenance system
2920 which Gentoo uses, is written in Python, meaning you can easily view and
2921 modify the source code. Gentoo's packaging system uses source code
2922 (although support for precompiled packages is included too) and
2923 configuring Gentoo happens through regular text files. In other words,
2924 openness everywhere.
2925 </p>
2926
2927 <p>
2928 It is very important that you understand that <e>empowerment</e> is what makes
2929 Gentoo run. We try not to force anything on our users and try our best to
2930 empower you to make the choices you wish. If you feel a change should be made,
2931 please file a <uri link="http://bugs.gentoo.org">bug report</uri> about it.
2932 </p>
2933
2934 </body>
2935 </subsection>
2936 <subsection>
2937 <title>How is the Installation Structured?</title>
2938 <body>
2939
2940 <p>
2941 The Gentoo Installation can be seen as a 10-step procedure,
2942 corresponding to chapters 2 - 11. Every step results in
2943 a certain state:
2944 </p>
2945
2946 <ul>
2947 <li>
2948 After step 1, you are in a working environment ready to install Gentoo
2949 </li>
2950 <li>
2951 After step 2, your internet connection is prepared in case you need it (this
2952 is however optional)
2953 </li>
2954 <li>
2955 After step 3, your hard disks are initialized to house your Gentoo
2956 installation
2957 </li>
2958 <li>
2959 After step 4, your installation environment is prepared and you are
2960 ready to chroot into the new environment
2961 </li>
2962 <li>
2963 After step 5, core packages, which are the same on all Gentoo
2964 installations, are installed
2965 </li>
2966 <li>
2967 After step 6, you have compiled your Linux kernel
2968 </li>
2969 <li>
2970 After step 7, you have written most of your Gentoo system
2971 configuration files
2972 </li>
2973 <li>
2974 After step 8, necessary system tools (which you can choose from a nice
2975 list) are installed
2976 </li>
2977 <li>
2978 After step 9, your choice of bootloader has been installed and
2979 configured and you are logged in into your new Gentoo installation
2980 </li>
2981 <li>
2982 After step 10, your Gentoo Linux environment is ready to be explored
2983 </li>
2984 </ul>
2985
2986 <p>
2987 When you are given a certain choice, we try our best to explain what the pros
2988 and cons are. We will continue then with a default
2989 choice, identified by &quot;Default: &quot; in the title. The other
2990 possibilities are marked by &quot;Alternative: &quot;. Do <e>not</e>
2991 think that the default is what we recommend. It is however what we
2992 believe most users will use.
2993 </p>
2994
2995 <p>
2996 Sometimes you can pursue an optional step. Such steps are marked as
2997 &quot;Optional: &quot; and are therefore not needed to install Gentoo.
2998 However, some optional steps are dependant on a previous decision you
2999 made. We will inform you when this happens, both when you make the
3000 decision, and right before the optional step is described.
3001 </p>
3002
3003 </body>
3004 </subsection>
3005 <subsection>
3006 <title>What are my Options?</title>
3007 <body>
3008
3009 <p>
3010 You can install Gentoo in many different ways. You can download and install from
3011 one of our Installation CDs, from an existing distribution,
3012 from a bootable CD (such as Knoppix), from a netbooted environment, from a
3013 rescue floppy, etc.
3014 </p>
3015
3016 <p>
3017 This document covers the installation using a Gentoo Linux Installation CD, a
3018 bootable CD that contains everything you need to get Gentoo Linux up and
3019 running. There are two types of Installation CDs, the InstallCD and the
3020 Installer LiveCD. The InstallCD is a minimal environment which contains only
3021 those packages necessary for installing Gentoo Linux. The LiveCD is a complete
3022 Gentoo Linux environment and can be used for multiple tasks, one of which is
3023 installing Gentoo Linux. The LiveCD is not available on all architectures at
3024 this time. If your architecture does not have a LiveCD, then this document will
3025 refer to the Universal InstallCD for you.
3026 </p>
3027
3028 <p>
3029 This installation approach however does not immediately use the latest version
3030 of the available packages; if you want this you should check out the
3031 Installation Instructions inside our <uri
3032 link="/doc/en/handbook/index.xml">Gentoo Linux Handbooks</uri>.
3033 </p>
3034
3035 <p>
3036 For help on the other installation approaches,
3037 please read our <uri link="/doc/en/altinstall.xml">Alternative Installation
3038 Guide</uri>. We also provide a <uri
3039 link="/doc/en/gentoo-x86-tipsntricks.xml">Gentoo Installation Tips &amp;
3040 Tricks</uri> document that might be useful to read as well. If you feel that
3041 the current installation instructions are too elaborate, feel free to use our
3042 Quick Installation Guide available from our <uri
3043 link="/doc/en/index.xml">Documentation Resources</uri> if your architecture
3044 has such a document available.
3045 </p>
3046
3047 </body>
3048 </subsection>
3049 <subsection>
3050 <title>Troubles?</title>
3051 <body>
3052
3053 <p>
3054 If you find a problem in the installation (or in the installation
3055 documentation), please check the errata from our <uri
3056 link="/proj/en/releng/">Gentoo Release Engineering Project</uri>,
3057 visit our <uri link="http://bugs.gentoo.org">bug tracking
3058 system</uri> and check if the bug is known. If not, please create a bug report
3059 for it so we can take care of it. Do not be afraid of the developers who are
3060 assigned to (your) bugs -- they generally don't eat people.
3061 </p>
3062
3063 <p>
3064 Note though that, although the document you are now reading is
3065 architecture-specific, it will contain references to other architectures as
3066 well. This is due to the fact that large parts of the Gentoo Handbook use source
3067 code that is common for all architectures (to avoid duplication of efforts and
3068 starvation of development resources). We will try to keep this to a minimum
3069 to avoid confusion.
3070 </p>
3071
3072 <p>
3073 If you are uncertain if the problem is a user-problem (some error you
3074 made despite having read the documentation carefully) or a
3075 software-problem (some error we made despite having tested the
3076 installation/documentation carefully) you are free to join #gentoo on
3077 irc.freenode.net. Of course, you are welcome otherwise too :)
3078 </p>
3079
3080 <p>
3081 If you have a question regarding Gentoo, check out our <uri
3082 link="/doc/en/faq.xml">Frequently Asked
3083 Questions</uri>, available from the <uri
3084 link="/doc/en/">Gentoo Documentation</uri>. You can
3085 also view the <uri
3086 link="http://forums.gentoo.org/viewforum.php?f=40">FAQs</uri> on our
3087 <uri link="http://forums.gentoo.org">forums</uri>. If you can't find the answer
3088 there ask on #gentoo, our IRC-channel on irc.freenode.net. Yes, several of
3089 us are freaks who sit on IRC :-)
3090 </p>
3091
3092 </body>
3093 </subsection>
3094 </section>
3095 <section>
3096 <title>Fast Installation using the Gentoo Reference Platform</title>
3097 <subsection>
3098 <title>What is the Gentoo Reference Platform?</title>
3099 <body>
3100
3101 <p>
3102 The Gentoo Reference Platform, from now on abbreviated to GRP, is a snapshot of
3103 prebuilt packages users (that means you!) can install during the installation
3104 of Gentoo to speed up the installation process. The GRP consists of all
3105 packages required to have a fully functional Gentoo installation. They are not
3106 just the ones you need to have a base installation up to speed in no time, but
3107 all lengthier builds (such as xorg-x11, GNOME, OpenOffice, Mozilla, ...)
3108 are available as GRP packages too.
3109 </p>
3110
3111 <p>
3112 However, these prebuilt packages aren't maintained during the lifetime of the
3113 Gentoo distribution. They are snapshots released at every Gentoo release and
3114 make it possible to have a functional environment in a short amount of time. You
3115 can then upgrade your system in the background while working in your Gentoo
3116 environment.
3117 </p>
3118
3119 </body>
3120 </subsection>
3121 <subsection>
3122 <title>How Portage Handles GRP Packages</title>
3123 <body>
3124
3125 <p>
3126 Your Portage tree - the collection of <e>ebuilds</e> (files that contain all
3127 information about a package, such as its description, homepage, sourcecode URLs,
3128 compilation instructions, dependencies, etc.) - must be synchronised with the
3129 GRP set: the versions of the available ebuilds and their accompanying GRP
3130 packages must match.
3131 </p>
3132
3133 <p>
3134 For this reason you can only benefit from the GRP packages Gentoo provides while
3135 performing the current installation approach. GRP is not available for those
3136 interested in performing an installation using the latest versions of all
3137 available packages.
3138 </p>
3139
3140 </body>
3141 </subsection>
3142 <subsection>
3143 <title>Is GRP Available?</title>
3144 <body>
3145
3146 <p>
3147 Not all architectures provide GRP packages. That doesn't mean GRP isn't
3148 supported on the other architectures, but it means that we don't have the
3149 resources to build and test the GRP packages.
3150 </p>
3151
3152 <p>
3153 At present we provide GRP packages for the following architectures:
3154 </p>
3155
3156 <ul>
3157 <li>
3158 The <b>amd64</b> architecture (amd64). Note: The packages are now available
3159 on the Installer LiveCD.
3160 </li>
3161 <li>
3162 The <b>ppc</b> architecture (ppc32, ppc64)
3163 </li>
3164 <li>
3165 The <b>sparc</b> architecture (sparc64)
3166 </li>
3167 <li>
3168 The <b>x86</b> architecture (athlon, athlon-xp, athlon-mp, pentium-pro,
3169 pentium2, pentium3, pentium4 and pentium-m) Note: The packages are for i686
3170 and are available on the Installer LiveCD.
3171 </li>
3172 </ul>
3173
3174 <p>
3175 If your architecture (or subarchitecture) isn't on this list, you are not
3176 able to opt for a GRP installation.
3177 </p>
3178
3179 <p>
3180 Now that this introduction is over, let's continue with <uri
3181 link="?part=1&amp;chap=2">Booting the Universal InstallCD/Installer
3182 LiveCD</uri>.
3183 </p>
3184
3185 </body>
3186 </subsection>
3187 </section>
3188 </sections>
3189
3190
3191
3192 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-alpha-bootloader.xml
3193
3194 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-alpha-bootloader.xml?rev=1.1&view=markup
3195 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-alpha-bootloader.xml?rev=1.1&content-type=text/plain
3196
3197 Index: hb-install-alpha-bootloader.xml
3198 ===================================================================
3199 <?xml version='1.0' encoding='UTF-8'?>
3200 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3201
3202 <!-- The content of this document is licensed under the CC-BY-SA license -->
3203 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
3204
3205 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-alpha-bootloader.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
3206
3207 <sections>
3208
3209 <version>7.0</version>
3210 <date>2006-08-30</date>
3211
3212 <section>
3213 <title>Making your Choice</title>
3214 <subsection>
3215 <title>Introduction</title>
3216 <body>
3217
3218 <p>
3219 Now that your kernel is configured and compiled and the necessary system
3220 configuration files are filled in correctly, it is time to install a
3221 program that will fire up your kernel when you start the system. Such a
3222 program is called a <e>bootloader</e>.
3223 </p>
3224
3225 <p>
3226 Several bootloaders exist for Linux/Alpha. You must choose one of the supported
3227 bootloaders, not all. You have the choice between <uri link="#aboot">aBoot</uri>
3228 and <uri link="#milo">MILO</uri>.
3229 </p>
3230
3231 </body>
3232 </subsection>
3233 </section>
3234 <section id="aboot">
3235 <title>Default: Using aboot</title>
3236 <body>
3237
3238 <note>
3239 <c>aboot</c> only supports booting from <b>ext2</b> and <b>ext3</b>
3240 partitions.
3241 </note>
3242
3243 <p>
3244 We first install aboot on our system. Of course we use <c>emerge</c> to
3245 do so:
3246 </p>
3247
3248 <pre caption="Installing aboot">
3249 # <i>emerge aboot</i>
3250 </pre>
3251
3252 <p>
3253 The next step is to make our bootdisk bootable. This will start
3254 <c>aboot</c> when you boot your system. We make our bootdisk bootable by
3255 writing the <c>aboot</c> bootloader to the start of the disk.
3256 </p>
3257
3258 <pre caption = "Making your bootdisk bootable">
3259 # <i>swriteboot -f3 /dev/sda /boot/bootlx</i>
3260 # <i>abootconf /dev/sda 2</i>
3261 </pre>
3262
3263 <note>
3264 If you use a different partitioning scheme than the one we use
3265 throughout this chapter, you have to change the commands accordingly.
3266 Please read the appropriate manual pages (<c>man 8 swriteboot</c> and
3267 <c>man 8 abootconf</c>). Also, if your root filesystem uses the JFS filesystem,
3268 make sure to pass the <c>ro</c> kernel option so that it can replay its log
3269 before it gets mounted read-write.
3270 </note>
3271
3272 <p>
3273 Additionally, you can make Gentoo boot automatically by setting up the
3274 aboot configuration file and some SRM variables. You can try setting
3275 these variables from Linux, but it may be easier to do so from the SRM
3276 console itself.
3277 </p>
3278
3279 <pre caption = "Automatically booting Gentoo">
3280 # <i>echo '0:2/boot/vmlinux.gz root=/dev/sda2' &gt; /etc/aboot.conf</i>
3281 # <i>cd /proc/srm_environment/named_variables</i>
3282 # <i>echo -n 0 &gt; boot_osflags</i>
3283 # <i>echo -n '' &gt; boot_file</i>
3284 # <i>echo -n 'BOOT' &gt; auto_action</i>
3285 # <i>echo -n 'dkc100' &gt; bootdef_dev</i>
3286 <comment>(Substitute dkc100 with whatever your boot device is)</comment>
3287 </pre>
3288
3289 <p>
3290 If you need to get into the SRM console again in the future (to recover
3291 your Gentoo install, play with some variables, or whatever), just hit
3292 CTRL+C to abort the automatic loading process.
3293 </p>
3294
3295 <p>
3296 If you're installing using a serial console, don't forget to include
3297 the serial console boot flag in <path>aboot.conf</path>. See
3298 <path>/etc/aboot.conf.example</path> for some further information.
3299 </p>
3300
3301 <p>
3302 Aboot is now configured and ready to use. Continue with <uri
3303 link="#reboot">Rebooting the System</uri>.
3304 </p>
3305
3306 </body>
3307 </section>
3308 <section id="milo">
3309 <title>Alternative: Using MILO</title>
3310 <body>
3311
3312 <p>
3313 Before continuing, you should decide on how to use MILO. In this
3314 section, we will assume that you want to make a MILO boot floppy. If you
3315 are going to boot from an MS-DOS partition on your hard disk, you should
3316 amend the commands appropriately.
3317 </p>
3318
3319 <p>
3320 To install MILO, we use <c>emerge</c>.
3321 </p>
3322
3323 <pre caption = "Installing MILO">
3324 # <i>emerge --usepkg milo</i>
3325 </pre>
3326
3327 <p>
3328 After MILO has been installed, the MILO images should be in
3329 <path>/opt/milo</path>. The commands below make a bootfloppy for use
3330 with MILO. Remember to use the correct image for your Alpha-system.
3331 </p>
3332
3333 <pre caption = "Installing MILO on a floppy">
3334 <comment>(First insert a blank floppy)</comment>
3335 # <i>fdformat /dev/fd0</i>
3336 # <i>mformat a:</i>
3337 # <i>mcopy /opt/milo/milo-2.2-18-gentoo-ruffian a:\milo</i>
3338 # <i>mcopy /opt/milo/linload.exe a:\lilnload.exe</i>
3339 <comment>(Only if you have a Ruffian:</comment>
3340 # <i>mcopy /opt/milo/ldmilo.exe a:\ldmilo.exe</i>
3341 <comment>)</comment>
3342 # <i>echo -ne '\125\252' | dd of=/dev/fd0 bs=1 seek=510 count=2</i>
3343 </pre>
3344
3345 <p>
3346 Your MILO boot floppy is now ready to boot Gentoo Linux. You may need to
3347 set environment variables in your ARCS Firmware to get MILO to start;
3348 this is all explained in the <uri
3349 link="http://tldp.org/HOWTO/MILO-HOWTO/">MILO-HOWTO</uri> with some examples
3350 on common systems, and examples of the commands to use in interactive mode.
3351 </p>
3352
3353 <p>
3354 Not reading the <uri link="http://tldp.org/HOWTO/MILO-HOWTO/">MILO-HOWTO</uri>
3355 is a <e>bad</e> idea.
3356 </p>
3357
3358 <p>
3359 Now continue with <uri link="#reboot">Rebooting the System</uri>.
3360 </p>
3361
3362 </body>
3363 </section>
3364 <section id="reboot">
3365 <title>Rebooting the System</title>
3366 <subsection>
3367 <body>
3368
3369 <p>
3370 Exit the chrooted environment and unmount all mounted partitions. Then type in
3371 that one magical command you have been waiting for: <c>reboot</c>.
3372 </p>
3373
3374 <pre caption="Exiting the chroot, unmounting all partitions and rebooting">
3375 # <i>exit</i>
3376 cdimage ~# <i>cd</i>
3377 cdimage ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo</i>
3378 cdimage ~# <i>reboot</i>
3379 </pre>
3380
3381 <p>
3382 Of course, don't forget to remove the bootable CD, otherwise the CD will be
3383 booted again instead of your new Gentoo system.
3384 </p>
3385
3386 <p>
3387 Once rebooted in your Gentoo installation, finish up with <uri
3388 link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
3389 </p>
3390
3391 </body>
3392 </subsection>
3393 </section>
3394
3395 </sections>
3396
3397
3398
3399 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-alpha-disk.xml
3400
3401 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-alpha-disk.xml?rev=1.1&view=markup
3402 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-alpha-disk.xml?rev=1.1&content-type=text/plain
3403
3404 Index: hb-install-alpha-disk.xml
3405 ===================================================================
3406 <?xml version='1.0' encoding='UTF-8'?>
3407 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3408
3409 <!-- The content of this document is licensed under the CC-BY-SA license -->
3410 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
3411
3412 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-alpha-disk.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
3413
3414 <sections>
3415
3416 <version>7.0</version>
3417 <date>2006-08-30</date>
3418
3419 <section>
3420 <title>Introduction to Block Devices</title>
3421 <subsection>
3422 <title>Block Devices</title>
3423 <body>
3424
3425 <p>
3426 We'll take a good look at disk-oriented aspects of Gentoo Linux
3427 and Linux in general, including Linux filesystems, partitions and block devices.
3428 Then, once you're familiar with the ins and outs of disks and filesystems,
3429 you'll be guided through the process of setting up partitions and filesystems
3430 for your Gentoo Linux installation.
3431 </p>
3432
3433 <p>
3434 To begin, we'll introduce <e>block devices</e>. The most famous block device is
3435 probably the one that represents the first SCSI HD in a Linux system, namely
3436 <path>/dev/sda</path>.
3437 </p>
3438
3439 <p>
3440 The block devices above represent an abstract interface to the disk. User
3441 programs can use these block devices to interact with your disk without worrying
3442 about whether your drives are IDE, SCSI or something else. The program can
3443 simply address the storage on the disk as a bunch of contiguous,
3444 randomly-accessible 512-byte blocks.
3445 </p>
3446
3447 </body>
3448 </subsection>
3449 <subsection>
3450 <title>Slices</title>
3451 <body>
3452
3453 <p>
3454 Although it is theoretically possible to use a full disk to house your Linux
3455 system, this is almost never done in practice. Instead, full disk block devices
3456 are split up in smaller, more manageable block devices. On Alpha systems,
3457 these are called <e>slices</e>.
3458 </p>
3459
3460 </body>
3461 </subsection>
3462 </section>
3463 <section>
3464 <title>Designing a Partitioning Scheme</title>
3465 <subsection>
3466 <title>Default Partitioning Scheme</title>
3467 <body>
3468
3469 <p>
3470 As an example we use the following slice layout:
3471 </p>
3472
3473 <table>
3474 <tr>
3475 <th>Slice</th>
3476 <th>Description</th>
3477 </tr>
3478 <tr>
3479 <ti><path>/dev/sda1</path></ti>
3480 <ti>Swap slice</ti>
3481 </tr>
3482 <tr>
3483 <ti><path>/dev/sda2</path></ti>
3484 <ti>Root slice</ti>
3485 </tr>
3486 <tr>
3487 <ti><path>/dev/sda3</path></ti>
3488 <ti>Full disk (required)</ti>
3489 </tr>
3490 </table>
3491
3492
3493 <p>
3494 If you are interested in knowing how big a partition should be, or even how
3495 many partitions (or volumes) you need, read on. Otherwise continue now with
3496 <uri link="#fdisk_SRM">Using fdisk to Partition your Disk (SRM only)</uri>
3497 or <uri link="#fdisk_ARC">Using fdisk to Partition your Disk (ARC/AlphaBIOS
3498 only)</uri>.
3499 </p>
3500
3501 </body>
3502 </subsection>
3503 <subsection>
3504 <title>How Many and How Big?</title>
3505 <body>
3506
3507 <p>
3508 The number of partitions is highly dependent on your environment. For instance,
3509 if you have lots of users, you will most likely want to have your
3510 <path>/home</path> separate as it increases security and makes backups easier.
3511 If you are installing Gentoo to perform as a mailserver, your
3512 <path>/var</path> should be separate as all mails are stored inside
3513 <path>/var</path>. A good choice of filesystem will then maximise your
3514 performance. Gameservers will have a separate <path>/opt</path> as most gaming
3515 servers are installed there. The reason is similar for <path>/home</path>:
3516 security and backups. You will definitely want to keep <path>/usr</path> big:
3517 not only will it contain the majority of applications, the Portage tree alone
3518 takes around 500 Mbyte excluding the various sources that are stored in it.
3519 </p>
3520
3521 <p>
3522 As you can see, it very much depends on what you want to achieve. Separate
3523 partitions or volumes have the following advantages:
3524 </p>
3525
3526 <ul>
3527 <li>
3528 You can choose the best performing filesystem for each partition or volume
3529 </li>
3530 <li>
3531 Your entire system cannot run out of free space if one defunct tool is
3532 continuously writing files to a partition or volume
3533 </li>
3534 <li>
3535 If necessary, file system checks are reduced in time, as multiple checks can
3536 be done in parallel (although this advantage is more with multiple disks than
3537 it is with multiple partitions)
3538 </li>
3539 <li>
3540 Security can be enhanced by mounting some partitions or volumes read-only,
3541 nosuid (setuid bits are ignored), noexec (executable bits are ignored) etc.
3542 </li>
3543 </ul>
3544
3545 <p>
3546 However, multiple partitions have one big disadvantage: if not configured
3547 properly, you might result in having a system with lots
3548 of free space on one partition and none on another.
3549 </p>
3550
3551 </body>
3552 </subsection>
3553 </section>
3554 <section id="fdisk_SRM">
3555 <title>Using fdisk to Partition your Disk (SRM only)</title>
3556 <subsection>
3557 <body>
3558
3559 <p>
3560 The following parts explain how to create the example slice layout described
3561 previously, namely:
3562 </p>
3563
3564 <table>
3565 <tr>
3566 <th>Slice</th>
3567 <th>Description</th>
3568 </tr>
3569 <tr>
3570 <ti><path>/dev/sda1</path></ti>
3571 <ti>Swap slice</ti>
3572 </tr>
3573 <tr>
3574 <ti><path>/dev/sda2</path></ti>
3575 <ti>Root slice</ti>
3576 </tr>
3577 <tr>
3578 <ti><path>/dev/sda3</path></ti>
3579 <ti>Full disk (required)</ti>
3580 </tr>
3581 </table>
3582
3583 <p>
3584 Change your slice layout according to your own preference.
3585 </p>
3586
3587
3588 </body>
3589 </subsection>
3590 <subsection>
3591 <title>Identifying Available Disks</title>
3592 <body>
3593
3594 <p>
3595 To figure out what disks you have running, use the following commands:
3596 </p>
3597
3598 <pre caption="Identifying available disks">
3599 # <i>dmesg | grep 'drive$'</i> <comment>(For IDE disks)</comment>
3600 # <i>dmesg | grep 'scsi'</i> <comment>(For SCSI disks)</comment>
3601 </pre>
3602
3603 <p>
3604 >From this output you should be able to see what disks were detected and their
3605 respective <path>/dev</path> entry. In the following parts we assume that the
3606 disk is a SCSI disk on <path>/dev/sda</path>.
3607 </p>
3608
3609 <p>
3610 Now fire up <c>fdisk</c>:
3611 </p>
3612
3613 <pre caption="Starting fdisk">
3614 # <i>fdisk /dev/sda</i>
3615 </pre>
3616
3617 </body>
3618 </subsection>
3619 <subsection>
3620 <title>Deleting All Slices</title>
3621 <body>
3622
3623 <p>
3624 If your hard drive is completely blank, then you'll have to first create
3625 a BSD disklabel.
3626 </p>
3627
3628 <pre caption="Creating a BSD disklabel">
3629 Command (m for help): <i>b</i>
3630 /dev/sda contains no disklabel.
3631 Do you want to create a disklabel? (y/n) <i>y</i>
3632 <comment>A bunch of drive-specific info will show here</comment>
3633 3 partitions:
3634 # start end size fstype [fsize bsize cpg]
3635 c: 1 5290* 5289* unused 0 0
3636 </pre>
3637
3638 <p>
3639 We start with deleting all slices <e>except</e> the 'c'-slice (a requirement
3640 for using BSD disklabels). The following shows how to delete a slice (in
3641 the example we use 'a'). Repeat the process to delete all other slices
3642 (again, except the 'c'-slice).
3643 </p>
3644
3645 <p>
3646 Use <c>p</c> to view all existing slices. <c>d</c> is used to delete a slice.
3647 </p>
3648
3649 <pre caption="Deleting a slice">
3650 BSD disklabel command (m for help): <i>p</i>
3651
3652 8 partitions:
3653 # start end size fstype [fsize bsize cpg]
3654 a: 1 235* 234* 4.2BSD 1024 8192 16
3655 b: 235* 469* 234* swap
3656 c: 1 5290* 5289* unused 0 0
3657 d: 469* 2076* 1607* unused 0 0
3658 e: 2076* 3683* 1607* unused 0 0
3659 f: 3683* 5290* 1607* unused 0 0
3660 g: 469* 1749* 1280 4.2BSD 1024 8192 16
3661 h: 1749* 5290* 3541* unused 0 0
3662
3663 BSD disklabel command (m for help): <i>d</i>
3664 Partition (a-h): <i>a</i>
3665 </pre>
3666
3667 <p>
3668 After repeating this process for all slices, a listing should show you something
3669 similar to this:
3670 </p>
3671
3672 <pre caption="Viewing an empty scheme">
3673 BSD disklabel command (m for help): <i>p</i>
3674
3675 3 partitions:
3676 # start end size fstype [fsize bsize cpg]
3677 c: 1 5290* 5289* unused 0 0
3678 </pre>
3679
3680 </body>
3681 </subsection>
3682 <subsection>
3683 <title>Creating the Swap Slice</title>
3684 <body>
3685
3686 <p>
3687 On Alpha based systems you don't need a separate boot partition. However, the
3688 first cylinder cannot be used as the <c>aboot</c> image will be placed there.
3689 </p>
3690
3691 <p>
3692 We will create a swap slice starting at the third cylinder, with a total
3693 size of 1 GB. Use <c>n</c> to create a new slice. After creating the slice,
3694 we will change its type to <c>1</c> (one), meaning <e>swap</e>.
3695 </p>
3696
3697 <pre caption="Creating the swap slice">
3698 BSD disklabel command (m for help): <i>n</i>
3699 Partition (a-p): <i>a</i>
3700 First cylinder (1-5290, default 1): <i>3</i>
3701 Last cylinder or +size or +sizeM or +sizeK (3-5290, default 5290): <i>+1024M</i>
3702
3703 BSD disklabel command (m for help): <i>t</i>
3704 Partition (a-c): <i>a</i>
3705 Hex code (type L to list codes): <i>1</i>
3706 </pre>
3707
3708 <p>
3709 After these steps you should see a layout similar to the following:
3710 </p>
3711
3712 <pre caption="Slice layout after creating the swap slice">
3713 BSD disklabel command (m for help): <i>p</i>
3714
3715 3 partitions:
3716 # start end size fstype [fsize bsize cpg]
3717 a: 3 1003 1001 swap
3718 c: 1 5290* 5289* unused 0 0
3719 </pre>
3720
3721 </body>
3722 </subsection>
3723 <subsection>
3724 <title>Create the Root Slice</title>
3725 <body>
3726
3727 <p>
3728 We will now create the root slice, starting from the first cylinder <e>after</e>
3729 the swap slice. Use the <c>p</c> command to view where the swap slice ends. In
3730 our example, this is at 1003, making the root partition start at 1004.
3731 </p>
3732
3733 <p>
3734 Another problem is that there is currently a bug in <c>fdisk</c> making it think
3735 the number of available cylinders is one above the real number of cylinders. In
3736 other words, when you are asked for the last cylinder, decrease the cylinder
3737 number (in this example: 5290) with one.
3738 </p>
3739
3740 <p>
3741 When the partition is created, we change the type to <c>8</c>, for <e>ext2</e>.
3742 </p>
3743
3744 <pre caption="Creating the root slice">
3745 D disklabel command (m for help): <i>n</i>
3746 Partition (a-p): <i>b</i>
3747 First cylinder (1-5290, default 1): <i>1004</i>
3748 Last cylinder or +size or +sizeM or +sizeK (1004-5290, default 5290): <i>5289</i>
3749
3750 BSD disklabel command (m for help): <i>t</i>
3751 Partition (a-c): <i>b</i>
3752 Hex code (type L to list codes): <i>8</i>
3753 </pre>
3754
3755 <p>
3756 Your slice layout should now be similar to this:
3757 </p>
3758
3759 <pre caption="Viewing the slice layout">
3760 BSD disklabel command (m for help): <i>p</i>
3761
3762 3 partitions:
3763 # start end size fstype [fsize bsize cpg]
3764 a: 3 1003 1001 swap
3765 b: 1004 5289 4286 ext2
3766 c: 1 5290* 5289* unused 0 0
3767 </pre>
3768
3769 </body>
3770 </subsection>
3771 <subsection>
3772 <title>Save the Slice Layout and Exit</title>
3773 <body>
3774
3775 <p>
3776 Save <c>fdisk</c> by typing <c>w</c>. This will also save your slice layout.
3777 </p>
3778
3779 <pre caption="Save and exit fdisk">
3780 Command (m for help): <i>w</i>
3781 </pre>
3782
3783 <p>
3784 Now that your slices are created, you can now continue with <uri
3785 link="#filesystems">Creating Filesystems</uri>.
3786 </p>
3787
3788 </body>
3789 </subsection>
3790 </section>
3791 <section id="fdisk_ARC">
3792 <title>Using fdisk to Partition your Disk (ARC/AlphaBIOS only)</title>
3793 <subsection>
3794 <body>
3795
3796 <p>
3797 The following parts explain how to partition the disk with a layout
3798 similar to the one described previously, namely:
3799 </p>
3800
3801 <table>
3802 <tr>
3803 <th>Partition</th>
3804 <th>Description</th>
3805 </tr>
3806 <tr>
3807 <ti><path>/dev/sda1</path></ti>
3808 <ti>Boot partition</ti>
3809 </tr>
3810 <tr>
3811 <ti><path>/dev/sda2</path></ti>
3812 <ti>Swap partition</ti>
3813 </tr>
3814 <tr>
3815 <ti><path>/dev/sda3</path></ti>
3816 <ti>Root partition</ti>
3817 </tr>
3818 </table>
3819
3820 <p>
3821 Change your partition layout according to your own preference.
3822 </p>
3823
3824 </body>
3825 </subsection>
3826 <subsection>
3827 <title>Identifying Available Disks</title>
3828 <body>
3829
3830 <p>
3831 To figure out what disks you have running, use the following commands:
3832 </p>
3833
3834 <pre caption="Identifying available disks">
3835 # <i>dmesg | grep 'drive$'</i> <comment>(For IDE disks)</comment>
3836 # <i>dmesg | grep 'scsi'</i> <comment>(For SCSI disks)</comment>
3837 </pre>
3838
3839 <p>
3840 >From this output you should be able to see what disks were detected and their
3841 respective <path>/dev</path> entry. In the following parts we assume that the
3842 disk is a SCSI disk on <path>/dev/sda</path>.
3843 </p>
3844
3845 <p>
3846 Now fire up <c>fdisk</c>:
3847 </p>
3848
3849 <pre caption="Starting fdisk">
3850 # <i>fdisk /dev/sda</i>
3851 </pre>
3852
3853 </body>
3854 </subsection>
3855 <subsection>
3856 <title>Deleting All Partitions</title>
3857 <body>
3858
3859 <p>
3860 If your hard drive is completely blank, then you'll have to first create
3861 a DOS disklabel.
3862 </p>
3863
3864 <pre caption="Creating a DOS disklabel">
3865 Command (m for help): <i>o</i>
3866 Building a new DOS disklabel.
3867 </pre>
3868
3869 <p>
3870 We start with deleting all partitions. The following shows how to delete
3871 a partition (in the example we use '1'). Repeat the process to delete all
3872 other partitions.
3873 </p>
3874
3875 <p>
3876 Use <c>p</c> to view all existing partitions. <c>d</c> is used to delete a
3877 partition.
3878 </p>
3879
3880 <pre caption="Deleting a partition">
3881 command (m for help): <i>p</i>
3882
3883 Disk /dev/sda: 9150 MB, 9150996480 bytes
3884 64 heads, 32 sectors/track, 8727 cylinders
3885 Units = cylinders of 2048 * 512 = 1048576 bytes
3886
3887 Device Boot Start End Blocks Id System
3888 /dev/sda1 1 478 489456 83 Linux
3889 /dev/sda2 479 8727 8446976 5 Extended
3890 /dev/sda5 479 1433 977904 83 Linux Swap
3891 /dev/sda6 1434 8727 7469040 83 Linux
3892
3893 command (m for help): <i>d</i>
3894 Partition number (1-6): <i>1</i>
3895 </pre>
3896
3897
3898 </body>
3899 </subsection>
3900 <subsection>
3901 <title>Creating the Boot Partition</title>
3902 <body>
3903
3904 <p>
3905 On Alpha systems which use MILO to boot, we have to create a small vfat
3906 boot partition.
3907 </p>
3908
3909 <pre caption="Creating the boot partition">
3910 Command (m for help): <i>n</i>
3911 Command action
3912 e extended
3913 p primary partition (1-4)
3914 <i>p</i>
3915 Partition number (1-4): <i>1</i>
3916 First cylinder (1-8727, default 1): <i>1</i>
3917 Last cylinder or +size or +sizeM or +sizeK (1-8727, default 8727): <i>+16M</i>
3918
3919 Command (m for help): <i>t</i>
3920 Selected partition 1
3921 Hex code (type L to list codes): <i>6</i>
3922 Changed system type of partition 1 to 6 (FAT16)
3923 </pre>
3924
3925 </body>
3926 </subsection>
3927 <subsection>
3928 <title>Creating the Swap Partition</title>
3929 <body>
3930
3931 <p>
3932 We will create a swap partition starting at the third cylinder, with a total
3933 size of 1 GB. Use <c>n</c> to create a new partition.
3934 </p>
3935
3936 <pre caption="Creating the swap partition">
3937 Command (m for help): <i>n</i>
3938 Command action
3939 e extended
3940 p primary partition (1-4)
3941 <i>p</i>
3942 Partition number (1-4): <i>2</i>
3943 First cylinder (17-8727, default 17): <i>17</i>
3944 Last cylinder or +size or +sizeM or +sizeK (17-8727, default 8727): <i>+1000M</i>
3945
3946 Command (m for help): <i>t</i>
3947 Partition number (1-4): <i>1</i>
3948 Hex code (type L to list codes): <i>82</i>
3949 Changed system type of partition 2 to 82 (Linux swap)
3950 </pre>
3951
3952 <p>
3953 After these steps you should see a layout similar to the following:
3954 </p>
3955
3956 <pre caption="Partition listing after creating a swap partition">
3957 Command (m for help): <i>p</i>
3958
3959 Disk /dev/sda: 9150 MB, 9150996480 bytes
3960 64 heads, 32 sectors/track, 8727 cylinders
3961 Units = cylinders of 2048 * 512 = 1048576 bytes
3962
3963 Device Boot Start End Blocks Id System
3964 /dev/sda1 1 16 16368 6 FAT16
3965 /dev/sda2 17 971 977920 82 Linux swap
3966 </pre>
3967
3968 </body>
3969 </subsection>
3970 <subsection>
3971 <title>Creating the Root Partition</title>
3972 <body>
3973
3974 <p>
3975 We will now create the root partition. Again, just use the <c>n</c> command.
3976 </p>
3977
3978 <pre caption="Creating the root partition">
3979 Command (m for help): <i>n</i>
3980 Command action
3981 e extended
3982 p primary partition (1-4)
3983 <i>p</i>
3984 Partition number (1-4): <i>3</i>
3985 First cylinder (972-8727, default 972): <i>972</i>
3986 Last cylinder or +size or +sizeM or +sizeK (972-8727, default 8727): <i>8727</i>
3987 </pre>
3988
3989 <p>
3990 After these steps you should see a layout similar to the following:
3991 </p>
3992
3993 <pre caption="Partition listing after creating the root partition">
3994 Command (m for help): <i>p</i>
3995
3996 Disk /dev/sda: 9150 MB, 9150996480 bytes
3997 64 heads, 32 sectors/track, 8727 cylinders
3998 Units = cylinders of 2048 * 512 = 1048576 bytes
3999
4000 Device Boot Start End Blocks Id System
4001 /dev/sda1 1 16 16368 6 FAT16
4002 /dev/sda2 17 971 977920 82 Linux swap
4003 /dev/sda3 972 8727 7942144 83 Linux
4004 </pre>
4005
4006 </body>
4007 </subsection>
4008 <subsection>
4009 <title>Save the Partition Layout and Exit</title>
4010 <body>
4011
4012 <p>
4013 Save <c>fdisk</c> by typing <c>w</c>. This will also save your partition layout.
4014 </p>
4015
4016 <pre caption="Save and exit fdisk">
4017 Command (m for help): <i>w</i>
4018 </pre>
4019
4020 <p>
4021 Now that your partitions are created, you can now continue with <uri
4022 link="#filesystems">Creating Filesystems</uri>.
4023 </p>
4024
4025 </body>
4026 </subsection>
4027 </section>
4028 <section id="filesystems">
4029 <title>Creating Filesystems</title>
4030 <subsection>
4031 <title>Introduction</title>
4032 <body>
4033
4034 <p>
4035 Now that your partitions are created, it is time to place a filesystem on them.
4036 If you don't care about what filesystem to choose and are happy with what we use
4037 as default in this handbook, continue with <uri
4038 link="#filesystems-apply">Applying a Filesystem to a Partition</uri>.
4039 Otherwise read on to learn about the available filesystems...
4040 </p>
4041
4042 </body>
4043 </subsection>
4044 <subsection>
4045 <title>Filesystems?</title>
4046 <body>
4047
4048 <p>
4049 Several filesystems are available. Most of them are found stable on the
4050 Alpha architecture.
4051 </p>
4052
4053 <note>
4054 <c>aboot</c> only supports booting from <b>ext2</b> and <b>ext3</b>
4055 partitions.
4056 </note>
4057
4058 <p>
4059 <b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata
4060 journaling, which means that routine ext2 filesystem checks at startup time can
4061 be quite time-consuming. There is now quite a selection of newer-generation
4062 journaled filesystems that can be checked for consistency very quickly and are
4063 thus generally preferred over their non-journaled counterparts. Journaled
4064 filesystems prevent long delays when you boot your system and your filesystem
4065 happens to be in an inconsistent state.
4066 </p>
4067
4068 <p>
4069 <b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata
4070 journaling for fast recovery in addition to other enhanced journaling modes like
4071 full data and ordered data journaling. ext3 is a very good and reliable
4072 filesystem.
4073 </p>
4074
4075 <p>
4076 <b>ReiserFS</b> is a B*-tree based filesystem that has very good overall
4077 performance and greatly outperforms both ext2 and ext3 when dealing with small
4078 files (files less than 4k), often by a factor of 10x-15x. ReiserFS also scales
4079 extremely well and has metadata journaling. As of kernel 2.4.18+, ReiserFS is
4080 solid and usable as both general-purpose filesystem and for extreme cases such
4081 as the creation of large filesystems, the use of many small files, very large
4082 files and directories containing tens of thousands of files.
4083 </p>
4084
4085 <p>
4086 <b>XFS</b> is a filesystem with metadata journaling which comes with a robust
4087 feature-set and is optimized for scalability. We only recommend using this
4088 filesystem on Linux systems with high-end SCSI and/or fibre channel storage and
4089 an uninterruptible power supply. Because XFS aggressively caches in-transit data
4090 in RAM, improperly designed programs (those that don't take proper precautions
4091 when writing files to disk and there are quite a few of them) can lose a good
4092 deal of data if the system goes down unexpectedly.
4093 </p>
4094
4095 <p>
4096 <b>JFS</b> is IBM's high-performance journaling filesystem. It has recently
4097 become production-ready and there hasn't been a sufficient track record to
4098 comment positively nor negatively on its general stability at this point.
4099 </p>
4100
4101 </body>
4102 </subsection>
4103 <subsection id="filesystems-apply">
4104 <title>Applying a Filesystem to a Partition</title>
4105 <body>
4106
4107 <p>
4108 To create a filesystem on a partition or volume, there are tools available for
4109 each possible filesystem:
4110 </p>
4111
4112 <table>
4113 <tr>
4114 <th>Filesystem</th>
4115 <th>Creation Command</th>
4116 </tr>
4117 <tr>
4118 <ti>ext2</ti>
4119 <ti><c>mke2fs</c></ti>
4120 </tr>
4121 <tr>
4122 <ti>ext3</ti>
4123 <ti><c>mke2fs -j</c></ti>
4124 </tr>
4125 <tr>
4126 <ti>reiserfs</ti>
4127 <ti><c>mkreiserfs</c></ti>
4128 </tr>
4129 <tr>
4130 <ti>xfs</ti>
4131 <ti><c>mkfs.xfs</c></ti>
4132 </tr>
4133 <tr>
4134 <ti>jfs</ti>
4135 <ti><c>mkfs.jfs</c></ti>
4136 </tr>
4137 </table>
4138
4139 <p>
4140 For instance, to have the root partition (<path>/dev/sda2</path> in our example)
4141 in ext3, you would use:
4142 </p>
4143
4144 <pre caption="Applying a filesystem on a partition">
4145 # <i>mke2fs -j /dev/sda2</i>
4146 </pre>
4147
4148 <p>
4149 Now create the filesystems on your newly created partitions (or logical
4150 volumes).
4151 </p>
4152
4153 </body>
4154 </subsection>
4155 <subsection>
4156 <title>Activating the Swap Partition</title>
4157 <body>
4158
4159 <p>
4160 <c>mkswap</c> is the command that is used to initialize swap partitions:
4161 </p>
4162
4163 <pre caption="Creating a Swap signature">
4164 # <i>mkswap /dev/sda1</i>
4165 </pre>
4166
4167 <p>
4168 To activate the swap partition, use <c>swapon</c>:
4169 </p>
4170
4171 <pre caption="Activating the swap partition">
4172 # <i>swapon /dev/sda1</i>
4173 </pre>
4174
4175 <p>
4176 Create and activate the swap with the commands mentioned above.
4177 </p>
4178
4179 </body>
4180 </subsection>
4181 </section>
4182 <section>
4183 <title>Mounting</title>
4184 <body>
4185
4186 <p>
4187 Now that your partitions are initialized and are housing a filesystem, it is
4188 time to mount those partitions. Use the <c>mount</c> command. Don't forget to
4189 create the necessary mount directories for every partition you created. As an
4190 example we mount the root and boot partition:
4191 </p>
4192
4193 <pre caption="Mounting partitions">
4194 # <i>mount /dev/sda2 /mnt/gentoo</i>
4195 </pre>
4196
4197 <note>
4198 If you want your <path>/tmp</path> to reside on a separate partition, be sure to
4199 change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This
4200 also holds for <path>/var/tmp</path>.
4201 </note>
4202
4203 <p>
4204 We will also have to mount the proc filesystem (a virtual interface with the
4205 kernel) on <path>/proc</path>. But first we will need to place our files on the partitions.
4206 </p>
4207
4208 <p>
4209 Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
4210 Installation Files</uri>.
4211 </p>
4212
4213 </body>
4214 </section>
4215 </sections>
4216
4217
4218
4219 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-alpha-kernel.xml
4220
4221 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-alpha-kernel.xml?rev=1.1&view=markup
4222 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-alpha-kernel.xml?rev=1.1&content-type=text/plain
4223
4224 Index: hb-install-alpha-kernel.xml
4225 ===================================================================
4226 <?xml version='1.0' encoding='UTF-8'?>
4227 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
4228
4229 <!-- The content of this document is licensed under the CC-BY-SA license -->
4230 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
4231
4232 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-alpha-kernel.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
4233
4234 <sections>
4235
4236 <version>7.0</version>
4237 <date>2006-08-30</date>
4238
4239 <section>
4240 <title>Timezone</title>
4241 <body>
4242
4243 <p>
4244 You first need to select your timezone so that your system knows where it is
4245 located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy
4246 it to <path>/etc/localtime</path>. Please avoid the
4247 <path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not
4248 indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8.
4249 </p>
4250
4251 <pre caption="Setting the timezone information">
4252 # <i>ls /usr/share/zoneinfo</i>
4253 <comment>(Suppose you want to use GMT)</comment>
4254 # <i>cp /usr/share/zoneinfo/GMT /etc/localtime</i>
4255 </pre>
4256
4257 </body>
4258 </section>
4259 <section>
4260 <title>Installing the Sources</title>
4261 <subsection>
4262 <title>Choosing a Kernel</title>
4263 <body>
4264
4265 <p>
4266 The core around which all distributions are built is the Linux kernel. It is the
4267 layer between the user programs and your system hardware. Gentoo provides its
4268 users several possible kernel sources. A full listing with description is
4269 available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel
4270 Guide</uri>.
4271 </p>
4272
4273 <p>
4274 For alpha-based systems we have <c>vanilla-sources</c> (the default 2.6 kernel source).
4275 </p>
4276
4277 <p>
4278 Choose your kernel source and install it using <c>emerge</c>. The
4279 <c>USE="-doc"</c> is necessary to avoid installing xorg-x11 or other
4280 dependencies at this point. <c>USE="symlink"</c> is not necessary for a new
4281 install, but ensures proper creation of the <path>/usr/src/linux</path>
4282 symlink.
4283 </p>
4284
4285 <p>
4286 In the next example we install the <c>vanilla-sources</c>.
4287 Of course substitute with your choice of sources, this is merely an example:
4288 </p>
4289
4290 <pre caption="Installing a kernel source">
4291 # <i>USE="-doc symlink" emerge vanilla-sources</i>
4292 </pre>
4293
4294 <p>
4295 When you take a look in <path>/usr/src</path> you should see a symlink called
4296 <path>linux</path> pointing to your kernel source. In this case, the installed
4297 kernel source points to <c>vanilla-sources-2.6.16.19</c>. Your version may be
4298 different, so keep this in mind.
4299 </p>
4300
4301 <pre caption="Viewing the kernel source symlink">
4302 # <i>ls -l /usr/src/linux</i>
4303 lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-2.6.16.19
4304 </pre>
4305
4306 <p>
4307 Now it is time to configure and compile your kernel source. You
4308 can use <c>genkernel</c> for this, which will build a generic kernel as used
4309 by the Installation CD. We explain the "manual" configuration first though, as it is
4310 the best way to optimize your environment.
4311 </p>
4312
4313 <p>
4314 If you want to manually configure your kernel, continue now with <uri
4315 link="#manual">Default: Manual Configuration</uri>. If you want to use
4316 <c>genkernel</c> you should read <uri link="#genkernel">Alternative: Using
4317 genkernel</uri> instead.
4318 </p>
4319
4320 </body>
4321 </subsection>
4322 </section>
4323 <section id="manual">
4324 <title>Default: Manual Configuration</title>
4325 <subsection>
4326 <title>Introduction</title>
4327 <body>
4328
4329 <p>
4330 Manually configuring a kernel is often seen as the most difficult procedure a
4331 Linux user ever has to perform. Nothing is less true -- after configuring a
4332 couple of kernels you don't even remember that it was difficult ;)
4333 </p>
4334
4335 <p>
4336 However, one thing <e>is</e> true: you must know your system when you start
4337 configuring a kernel manually. You can run <c>lsmod</c> to see what kernel
4338 modules the Installation CD uses (it might provide you with a nice hint on
4339 what to enable).
4340 </p>
4341
4342 <p>
4343 Now go to your kernel source directory and execute <c>make menuconfig</c>. This
4344 will fire up an ncurses-based configuration menu.
4345 </p>
4346
4347 <pre caption="Invoking menuconfig">
4348 # <i>cd /usr/src/linux</i>
4349 # <i>make menuconfig</i>
4350 </pre>
4351
4352 <p>
4353 You will be greeted with several configuration sections. We'll first list some
4354 options you must activate (otherwise Gentoo will not function, or not function
4355 properly without additional tweaks).
4356 </p>
4357
4358 </body>
4359 </subsection>
4360 <subsection>
4361 <title>Activating Required Options</title>
4362 <body>
4363
4364 <p>
4365 First of all, activate the use of development and experimental code/drivers.
4366 You need this, otherwise some very important code/drivers won't show up:
4367 </p>
4368
4369 <pre caption="Selecting experimental code/drivers">
4370 Code maturity level options ---&gt;
4371 [*] Prompt for development and/or incomplete code/drivers
4372 </pre>
4373
4374 <p>
4375 Now go to <c>File Systems</c> and select support for the filesystems you use.
4376 <e>Don't</e> compile them as modules, otherwise your Gentoo system will not be
4377 able to mount your partitions. Also select <c>Virtual memory</c>, <c>/proc
4378 file system</c>, (<c>/dev file system</c> + <c>Automatically mount at boot</c> only for 2.4 kernel):
4379 </p>
4380
4381 <pre caption="Selecting necessary file systems">
4382 <comment>(With a 2.4.x kernel)</comment>
4383 File systems ---&gt;
4384 [*] Virtual memory file system support (former shm fs)
4385 [*] /proc file system support
4386 [*] /dev file system support (EXPERIMENTAL)
4387 [*] Automatically mount at boot
4388 [ ] /dev/pts file system for Unix98 PTYs
4389
4390 <comment>(With a 2.6.x kernel)</comment>
4391 File systems ---&gt;
4392 Pseudo Filesystems ---&gt;
4393 [*] /proc file system support
4394 [*] Virtual memory file system support (former shm fs)
4395
4396 <comment>(Select one or more of the following options as needed by your system)</comment>
4397 &lt;*&gt; Reiserfs support
4398 &lt;*&gt; Ext3 journalling file system support
4399 &lt;*&gt; JFS filesystem support
4400 &lt;*&gt; Second extended fs support
4401 &lt;*&gt; XFS filesystem support
4402 </pre>
4403
4404 <p>
4405 If you are using PPPoE to connect to the Internet or you are using a dial-up
4406 modem, you will need the following options in the kernel:
4407 </p>
4408
4409 <pre caption="Selecting PPPoE necessary drivers">
4410 <comment>(With a 2.4.x kernel)</comment>
4411 Network device support ---&gt;
4412 &lt;*&gt; PPP (point-to-point protocol) support
4413 &lt;*&gt; PPP support for async serial ports
4414 &lt;*&gt; PPP support for sync tty ports
4415
4416 <comment>(With a 2.6.x kernel)</comment>
4417 Device Drivers ---&gt;
4418 Networking support ---&gt;
4419 &lt;*&gt; PPP (point-to-point protocol) support
4420 &lt;*&gt; PPP support for async serial ports
4421 &lt;*&gt; PPP support for sync tty ports
4422 </pre>
4423
4424 <p>
4425 The two compression options won't harm but are not definitely needed, neither
4426 does the <c>PPP over Ethernet</c> option, that might only be used by
4427 <c>rp-pppoe</c> when configured to do kernel mode PPPoE.
4428 </p>
4429
4430 <p>
4431 If you require it, don't forget to include support in the kernel for your
4432 ethernet card.
4433 </p>
4434
4435 <p>
4436 The following options are recommended as well:
4437 </p>
4438
4439 <pre caption="Recommended Alpha options">
4440 General setup ---&gt;
4441 &lt;*&gt; SRM environment through procfs
4442 &lt;*&gt; Configure uac policy via sysctl
4443
4444 Plug and Play configuration ---&gt;
4445 &lt;*&gt; Plug and Play support
4446 &lt;M&gt; ISA Plug and Play support
4447
4448 SCSI support ---&gt;
4449 SCSI low-level drivers ---&gt;
4450 &lt;*&gt; SYM53C8XX Version 2 SCSI support (NEW)
4451 &lt;*&gt; Qlogic ISP SCSI support
4452
4453 Network device support ---&gt;
4454 Ethernet (10 or 100 Mbit) ---&gt;
4455 &lt;M&gt; DECchip Tulip (dc21x4x) PCI support
4456 &lt;M&gt; Generic DECchip &amp; DIGITAL EtherWORKS PCI/EISA
4457 &lt;M&gt; EtherExpressPro/100 support (eepro100)
4458 &lt;M&gt; EtherExpressPro/100 support (e100)
4459 Ethernet (1000 Mbit) ---&gt;
4460 &lt;M&gt; Alteon AceNIC
4461 [*] Omit support for old Tigon I
4462 &lt;M&gt; Broadcom Tigon3
4463 [*] FDDI driver support
4464 &lt;M&gt; Digital DEFEA and DEFPA
4465 &lt;*&gt; PPP support
4466 &lt;*&gt; PPP Deflate compression
4467
4468 Character devices ---&gt;
4469 [*] Support for console on serial port
4470 [*] Direct Rendering Manager
4471
4472 File systems ---&gt;
4473 &lt;*&gt; Kernel automounter version 4 support
4474 Network File Systems ---&gt;
4475 &lt;*&gt; NFS
4476 [*] NFSv3 client
4477 &lt;*&gt; NFS server
4478 [*] NFSv3 server
4479 Partition Types ---&gt;
4480 [*] Advanced partition selection
4481 [*] Alpha OSF partition support
4482 Native Language Support
4483 &lt;*&gt; NLS ISO 8859-1
4484
4485 Sound ---&gt;
4486 &lt;M&gt; Sound card support
4487 &lt;M&gt; OSS sound modules
4488 [*] Verbose initialisation
4489 [*] Persistent DMA buffers
4490 &lt;M&gt; 100% Sound Blaster compatibles
4491 </pre>
4492
4493 <p>
4494 When you've finished configuring the kernel, continue with <uri
4495 link="#compiling">Compiling and Installing</uri>.
4496 </p>
4497
4498 </body>
4499 </subsection>
4500 <subsection id="compiling">
4501 <title>Compiling and Installing</title>
4502 <body>
4503
4504 <p>
4505 Now that your kernel is configured, it is time to compile and install it. Exit
4506 the configuration and start the compilation process:
4507 </p>
4508
4509 <pre caption="Compiling the kernel">
4510 <comment>(For 2.4 kernel)</comment>
4511 # <i>make dep &amp;&amp; make vmlinux modules modules_install</i>
4512
4513 <comment>(For 2.6 kernel)</comment>
4514 # <i>make &amp;&amp; make modules_install</i>
4515
4516 <comment>(For all kernels)</comment>
4517 # <i>make boot</i>
4518 </pre>
4519
4520 <p>
4521 When the kernel has finished compiling, copy the kernel image to
4522 <path>/boot</path>. Recent kernels might create <path>vmlinux</path> instead of
4523 <path>vmlinux.gz</path>. Keep this in mind when you copy your kernel image.
4524 </p>
4525
4526 <pre caption="Installing the kernel">
4527 # <i>cp arch/alpha/boot/vmlinux.gz /boot/</i>
4528 </pre>
4529
4530 <p>
4531 Now continue with <uri link="#kernel_modules">Installing Separate Kernel
4532 Modules</uri>.
4533 </p>
4534
4535 </body>
4536 </subsection>
4537 </section>
4538 <section id="genkernel">
4539 <title>Alternative: Using genkernel</title>
4540 <body>
4541
4542 <p>
4543 If you are reading this section, you have chosen to use our <c>genkernel</c>
4544 script to configure your kernel for you.
4545 </p>
4546
4547 <p>
4548 Now that your kernel source tree is installed, it's now time to compile your
4549 kernel by using our <c>genkernel</c> script to automatically build a kernel for
4550 you. <c>genkernel</c> works by configuring a kernel nearly identically to the
4551 way our Installation CD kernel is configured. This means that when you use
4552 <c>genkernel</c> to build your kernel, your system will generally detect all
4553 your hardware at boot-time, just like our Installation CD does. Because genkernel
4554 doesn't require any manual kernel configuration, it is an ideal solution for
4555 those users who may not be comfortable compiling their own kernels.
4556 </p>
4557
4558 <p>
4559 Now, let's see how to use genkernel. First, emerge the genkernel ebuild:
4560 </p>
4561
4562 <pre caption="Emerging genkernel">
4563 # <i>emerge genkernel</i>
4564 </pre>
4565
4566 <p>
4567 Now, compile your kernel sources by running <c>genkernel all</c>.
4568 Be aware though, as <c>genkernel</c> compiles a kernel that supports almost all
4569 hardware, this compilation will take quite a while to finish!
4570 </p>
4571
4572 <p>
4573 Note that, if your boot partition doesn't use ext2 or ext3 as filesystem you
4574 need to manually configure your kernel using <c>genkernel --menuconfig all</c>
4575 and add support for your filesystem <e>in</e> the kernel (i.e. <e>not</e> as a
4576 module).
4577 </p>
4578
4579 <pre caption="Running genkernel">
4580 * Gentoo Linux Genkernel; Version 3.4.0
4581 * Running with options: all
4582
4583 * Linux Kernel 2.6.16.19 for alpha...
4584 * kernel: >> Running mrproper...
4585 # <i>genkernel all</i>
4586 <comment>(Output removed to increase readability)</comment>
4587 * Kernel compiled successfully!
4588 *
4589 * Required Kernel Parameters:
4590 * real_root=/dev/$ROOT
4591 *
4592 * Where $ROOT is the device node for your root partition as the
4593 * one specified in /etc/fstab
4594 *
4595 * If you require Genkernel's hardware detection features; you MUST
4596 * tell your bootloader to use the provided INITRAMFS file. Otherwise;
4597 * substitute the root argument for the real_root argument if you are
4598 * not planning to use the initrd...
4599
4600 * WARNING... WARNING... WARNING...
4601 * Additional kernel cmdline arguments that *may* be required to boot properly...
4602 * Do NOT report kernel bugs as genkernel bugs unless your bug
4603 * is about the default genkernel configuration...
4604 *
4605 * Make sure you have the latest genkernel before reporting bugs.
4606 </pre>
4607
4608 <p>
4609 Once <c>genkernel</c> completes, a kernel, full set of modules and
4610 <e>initial root disk</e> (initrd) will be created. We will use the kernel
4611 and initrd when configuring a boot loader later in this document. Write
4612 down the names of the kernel and initrd as you will need it when writing
4613 the bootloader configuration file. The initrd will be started immediately after
4614 booting to perform hardware autodetection (just like on the Installation CD) before
4615 your "real" system starts up.
4616 </p>
4617
4618 <pre caption="Checking the created kernel image name and initrd">
4619 # <i>ls /boot/kernel* /boot/initramfs*</i>
4620 </pre>
4621
4622 <p>
4623 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
4624 is needed to boot your system, <c>coldplug</c> autodetects everything else.
4625 To emerge and enable <c>coldplug</c>, type the following:
4626 </p>
4627
4628 <pre caption="Emerging and enabling coldplug">
4629 # <i>emerge coldplug</i>
4630 # <i>rc-update add coldplug boot</i>
4631 </pre>
4632
4633 </body>
4634 </section>
4635 <section id="kernel_modules">
4636 <title>Installing Separate Kernel Modules</title>
4637 <subsection>
4638 <title>Installing Extra Modules</title>
4639 <body>
4640
4641 <p>
4642 If appropriate, you should emerge ebuilds for any additional hardware that is
4643 on your system. Here is a list of kernel-related ebuilds that you could emerge:
4644 </p>
4645
4646 <table>
4647 <tcolumn width="1in"/>
4648 <tcolumn width="4in"/>
4649 <tcolumn width="2in"/>
4650 <tr>
4651 <th>Ebuild</th>
4652 <th>Purpose</th>
4653 <th>Command</th>
4654 </tr>
4655 <tr>
4656 <ti>x11-drm</ti>
4657 <ti>
4658 Accelerated graphics for ATI Radeon up to 9200, Rage128, Matrox, Voodoo and
4659 other cards for xorg-x11. Please check the <c>IUSE_VIDEO_CARDS</c> variable
4660 in the <path>/usr/portage/x11-base/x11-drm</path> ebuilds to see what you
4661 need to fill in as <c>yourcard</c>.
4662 </ti>
4663 <ti><c>VIDEO_CARDS="yourcard" emerge x11-drm</c></ti>
4664 </tr>
4665 </table>
4666
4667 <p>
4668 Beware though, some of these ebuilds might deal with big dependencies. To verify
4669 what packages will be installed by emerging an ebuild, use <c>emerge
4670 --pretend</c>. For instance, for the <c>x11-drm</c> package:
4671 </p>
4672
4673 <pre caption="View full installation package listing">
4674 # <i>emerge --pretend x11-drm</i>
4675 </pre>
4676
4677 </body>
4678 </subsection>
4679 <subsection>
4680 <title>Configuring the Modules</title>
4681 <body>
4682
4683 <p>
4684 You should list the modules you want automatically loaded in
4685 <path>/etc/modules.autoload.d/kernel-2.4</path> (or <path>kernel-2.6</path>).
4686 You can add extra options to the modules too if you want.
4687 </p>
4688
4689 <p>
4690 To view all available modules, run the following <c>find</c> command. Don't
4691 forget to substitute "&lt;kernel version&gt;" with the version of the kernel you
4692 just compiled:
4693 </p>
4694
4695 <pre caption="Viewing all available modules">
4696 # <i>find /lib/modules/&lt;kernel version&gt;/ -type f -iname '*.o' -or -iname '*.ko'</i>
4697 </pre>
4698
4699 <p>
4700 For instance, to automatically load the <c>3c59x.o</c> module, edit the
4701 <path>kernel-2.4</path> or <path>kernel-2.6</path> file and enter the module
4702 name in it.
4703 </p>
4704
4705 <pre caption="Editing /etc/modules.autoload.d/kernel-2.4">
4706 <comment>(Example for 2.4 kernels)</comment>
4707 # <i>nano -w /etc/modules.autoload.d/kernel-2.4</i>
4708 </pre>
4709
4710 <pre caption="/etc/modules.autoload.d/kernel-2.4 or kernel-2.6">
4711 3c59x
4712 </pre>
4713
4714 <p>
4715 Continue the installation with <uri link="?part=1&amp;chap=8">Configuring
4716 your System</uri>.
4717 </p>
4718
4719 </body>
4720 </subsection>
4721 </section>
4722 </sections>
4723
4724
4725
4726 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-alpha-medium.xml
4727
4728 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-alpha-medium.xml?rev=1.1&view=markup
4729 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-alpha-medium.xml?rev=1.1&content-type=text/plain
4730
4731 Index: hb-install-alpha-medium.xml
4732 ===================================================================
4733 <?xml version='1.0' encoding='UTF-8'?>
4734 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
4735
4736 <!-- The content of this document is licensed under the CC-BY-SA license -->
4737 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
4738
4739 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-alpha-medium.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
4740
4741 <sections>
4742
4743 <version>7.0</version>
4744 <date>2006-08-30</date>
4745
4746 <section>
4747 <title>Hardware Requirements</title>
4748 <subsection>
4749 <title>Introduction</title>
4750 <body>
4751
4752 <p>
4753 Before we start, we first list what hardware requirements you need to
4754 successfully install Gentoo on your box.
4755 </p>
4756
4757 </body>
4758 </subsection>
4759 <subsection>
4760 <title>Hardware Requirements</title>
4761 <body>
4762
4763 <table>
4764 <tr>
4765 <th>CPU</th>
4766 <ti>
4767 Please check with the <uri
4768 link="http://www.alphalinux.org/faq/FAQ-5.html">Alpha/Linux FAQ</uri>
4769 </ti>
4770 </tr>
4771 <tr>
4772 <th>Memory</th>
4773 <ti>64 MB</ti>
4774 </tr>
4775 <tr>
4776 <th>Diskspace</th>
4777 <ti>1.5 GB (excluding swap space)</ti>
4778 </tr>
4779 <tr>
4780 <th>Swap space</th>
4781 <ti>At least 256 MB</ti>
4782 </tr>
4783 </table>
4784
4785 </body>
4786 </subsection>
4787 </section>
4788 <!-- Copy/paste from the hb-install-x86-medium.xml file but no Universal
4789 Installation CD.
4790 Also s/x86/alpha -->
4791 <!-- START -->
4792 <section>
4793 <title>The Gentoo Universal Installation CD</title>
4794 <subsection>
4795 <title>Introduction</title>
4796 <body>
4797
4798 <p>
4799 Gentoo Linux can be installed using a <e>stage3</e> tarball file.
4800 Such a tarball is an archive that contains a minimal environment from
4801 which you can succesfully install Gentoo Linux onto your system.
4802 </p>
4803
4804 <p>
4805 Installations using a stage1 or stage2 tarball file are not documented in the
4806 Gentoo Handbook - please read the <uri link="/doc/en/faq.xml#stage12">Gentoo
4807 FAQ</uri> on these matters.
4808 </p>
4809
4810 </body>
4811 </subsection>
4812 <subsection>
4813 <title>Gentoo Universal Installation CD</title>
4814 <body>
4815
4816 <p>
4817 An Installation CD is a bootable medium which contains a self-sustained Gentoo
4818 environment. It allows you to boot Linux from the CD. During the boot process
4819 your hardware is detected and the appropriate drivers are loaded. The Gentoo
4820 Installation CDs are maintained by Gentoo developers.
4821 </p>
4822
4823 <p>
4824 There currently are two Installation CDs available:
4825 </p>
4826
4827 <ul>
4828 <li>
4829 The Universal Installation CD contains everything you need to install
4830 Gentoo. It provides stage3 files for common architectures, source code
4831 for the extra applications you need to choose from and, of course, the
4832 installation instructions for your architecture.
4833 </li>
4834 <li>
4835 The Minimal Installation CD contains only a minimal environment that allows
4836 you to boot up and configure your network so you can connect to the
4837 Internet. It does not contain any additional files and cannot be used
4838 during the current installation approach.
4839 </li>
4840 </ul>
4841
4842 </body>
4843 </subsection>
4844 </section>
4845 <!-- STOP -->
4846 <section>
4847 <title>Download, Burn and Boot the Gentoo Universal Installation CD</title>
4848 <subsection>
4849 <title>Downloading and Burning the Installation CD</title>
4850 <body>
4851
4852 <p>
4853 You can download the Universal Installation CD from one of our <uri
4854 link="/main/en/mirrors.xml">mirrors</uri>. The Installation CD is located in
4855 the <path>releases/alpha/2006.1/installcd</path> directory.
4856 </p>
4857
4858 <p>
4859 Inside those directories you'll find ISO-files. Those are full CD images which
4860 you can write on a CD-R.
4861 </p>
4862
4863 <p>
4864 After downloading the file, you can verify its integrity to see if it is
4865 corrupted or not:
4866 </p>
4867
4868 <ul>
4869 <li>
4870 You can check its MD5 checksum and compare it with the MD5 checksum we
4871 provide (for instance with the <c>md5sum</c> tool under Linux/Unix or
4872 <uri link="http://www.etree.org/md5com.html">md5sum</uri> for Windows)
4873 </li>
4874 <li>
4875 You can verify the cryptographic signature that we provide. You need to
4876 obtain the public key we use (17072058) before you proceed though.
4877 </li>
4878 </ul>
4879
4880 <p>
4881 To fetch our public key using the GnuPG application, run the following command:
4882 </p>
4883
4884 <pre caption="Obtaining the public key">
4885 $ <i>gpg --keyserver subkeys.pgp.net --recv-keys 17072058</i>
4886 </pre>
4887
4888 <p>
4889 Now verify the signature:
4890 </p>
4891
4892 <pre caption="Verify the cryptographic signature">
4893 $ <i>gpg --verify &lt;signature file&gt; &lt;downloaded iso&gt;</i>
4894 </pre>
4895
4896 <p>
4897 To burn the downloaded ISO(s), you have to select raw-burning. How you
4898 do this is highly program-dependent. We will discuss <c>cdrecord</c> and
4899 <c>K3B</c> here; more information can be found in our <uri
4900 link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>.
4901 </p>
4902
4903 <ul>
4904 <li>
4905 With cdrecord, you simply type <c>cdrecord dev=/dev/hdc &lt;downloaded iso
4906 file&gt;</c> (replace <path>/dev/hdc</path> with your CD-RW drive's device
4907 path).
4908 </li>
4909 <li>
4910 With K3B, select <c>Tools</c> &gt; <c>CD</c> &gt; <c>Burn Image</c>. Then
4911 you can locate your ISO file within the 'Image to Burn' area. Finally click
4912 <c>Start</c>.
4913 </li>
4914 </ul>
4915
4916 </body>
4917 </subsection>
4918 <subsection>
4919 <title>Booting the Universal Installation CD</title>
4920 <body>
4921
4922 <p>
4923 When your Alpha is powered on, the first thing that gets started is the
4924 firmware. It is loosely synonymous with the BIOS software on PC systems. There
4925 are two types of firmware on Alpha systems: SRM (<e>Systems Reference
4926 Manual</e>) and ARC (<e>Advanced Risc Console</e>).
4927 </p>
4928
4929 <p>
4930 SRM is based on the Alpha Console Subsystem specification, which provides an
4931 operating environment for OpenVMS, Tru64 UNIX, and Linux operating systems. ARC
4932 is based on the Advanced RISC Computing (ARC) specification, which provides
4933 an operating environment for Windows NT. You can find a
4934 <uri link="http://www.alphalinux.org/faq/SRM-HOWTO/">detailed guide</uri> on
4935 using SRM over at the Alpha Linux website.
4936 </p>
4937
4938 <p>
4939 If your Alpha system supports both SRC and ARCs (ARC, AlphaBIOS, ARCSBIOS) you
4940 should follow <uri link="http://www.alphalinux.org/faq/x31.html">these
4941 instructions</uri> for switching to SRM. If your system already uses SRM, you
4942 are all set. If your system can only use ARCs (Ruffian, nautilus, xl, etc.) you
4943 will need to choose <c>MILO</c> later on when we are talking about bootloaders.
4944 </p>
4945
4946 <p>
4947 Now to boot an Alpha Installation CD, put the CD-ROM in the tray and reboot the system.
4948 You can use SRM to boot the Installation CD. If you cannot do that, you will have to use
4949 <c>MILO</c>. If you don't have <c>MILO</c> installed already, use one of the
4950 precompiled <c>MILO</c> images available on <uri
4951 link="http://dev.gentoo.org/~taviso/milo/">taviso's homepage</uri>.
4952 </p>
4953
4954 <p>
4955 This release also includes two entries for people who want to use a serial
4956 console during the installation, possibly boxes with no keyboard and screen
4957 attached. One allow you to boot 2.6 using the serial console and the other will
4958 do the same with our 2.4 kernel.
4959 </p>
4960
4961 <pre caption="Booting a CD-ROM using SRM">
4962 <comment>(List available hardware drives)</comment>
4963 &gt;&gt;&gt; <i>show device</i>
4964 dkb0.0.1.4.0 DKB0 TOSHIBA CDROM
4965 <comment>(...)</comment>
4966 <comment>(Substitute dkb0 with your CD-ROM drive device)</comment>
4967 &gt;&gt;&gt; <i>boot dkb0 -flags 0</i>
4968 <comment>(To boot the 2.4 kernel instead of the default 2.6 kernel use:)</comment>
4969 &gt;&gt;&gt; <i>boot dkb -flags 1</i>
4970 <comment>(If you need serial console support)</comment>
4971 <comment>(To boot the 2.6 kernel with serial console support use:)</comment>
4972 &gt;&gt;&gt; <i>boot dkb0 -flags 2</i>
4973 <comment>(To boot the 2.4 kernel with serial console support use:)</comment>
4974 &gt;&gt;&gt; <i>boot dkb0 -flags 3</i>
4975 </pre>
4976
4977 <pre caption="Booting a CD-ROM using MILO">
4978 <comment>(Substitute hdb with your CD-ROM drive device)</comment>
4979 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>
4980 <comment>(To boot the 2.4 kernel instead of the default 2.6 kernel use:)</comment>
4981 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>
4982 <comment>(If you need serial console support)</comment>
4983 <comment>(To boot the 2.6 kernel with serial console support use:)</comment>
4984 MILO&gt; <i>boot hdb:/boot/gentoo_2.6 initrd=/boot/gentoo_2_6.igz root=/dev/ram0 init=/linuxrc looptype=zisofs loop=/zisofs console=ttyS0</i>
4985 <comment>(To boot the 2.4 kernel with serial console support use:)</comment>
4986 MILO&gt; <i>boot hdb:/boot/gentoo_2.4 initrd=/boot/gentoo_2_4.igz root=/dev/ram0 init=/linuxrc looptype=zisofs loop=/zisofs console=ttyS0 cdroot</i>
4987 </pre>
4988
4989 <p>
4990 You should have a root ("#") prompt on the current console and can also switch
4991 to other consoles by pressing Alt-F2, Alt-F3 and Alt-F4. Get back to the one you
4992 started on by pressing Alt-F1.
4993 </p>
4994
4995 <p>
4996 Now continue with <uri link="#hardware">Extra Hardware Configuration</uri>.
4997 </p>
4998
4999 </body>
5000 </subsection>
5001 <subsection id="hardware">
5002 <title>Extra Hardware Configuration</title>
5003 <body>
5004
5005 <p>
5006 When the Installation CD boots, it tries to detect all your hardware devices and
5007 loads the appropriate kernel modules to support your hardware. In the
5008 vast majority of cases, it does a very good job. However, in some cases (the
5009 SPARC Installation CDs don't even do autodetection), it may not auto-load the kernel
5010 modules you need. If the PCI auto-detection missed some of your system's
5011 hardware, you will have to load the appropriate kernel modules manually.
5012 </p>
5013
5014 <p>
5015 In the next example we try to load the <c>8139too</c> module (support for
5016 certain kinds of network interfaces):
5017 </p>
5018
5019 <pre caption="Loading kernel modules">
5020 # <i>modprobe 8139too</i>
5021 </pre>
5022
5023 <p>
5024 If you need PCMCIA support, you should start the <c>pcmcia</c> init script:
5025 </p>
5026
5027 <pre caption="Starting the PCMCIA init script">
5028 # <i>/etc/init.d/pcmcia start</i>
5029 </pre>
5030
5031 </body>
5032 </subsection>
5033 <subsection>
5034 <title>Optional: Tweaking Hard Disk Performance</title>
5035 <body>
5036
5037 <p>
5038 If you are an advanced user, you might want to tweak the IDE hard disk
5039 performance using <c>hdparm</c>. With the <c>-tT</c> options you can
5040 test the performance of your disk (execute it several times to get a
5041 more precise impression):
5042 </p>
5043
5044 <pre caption="Testing disk performance">
5045 # <i>hdparm -tT /dev/hda</i>
5046 </pre>
5047
5048 <p>
5049 To tweak, you can use any of the following examples (or experiment
5050 yourself) which use <path>/dev/hda</path> as disk (substitute with your
5051 disk):
5052 </p>
5053
5054 <pre caption="Tweaking hard disk performance">
5055 <comment>Activate DMA:</comment> # <i>hdparm -d 1 /dev/hda</i>
5056 <comment>Activate DMA + Safe Performance-enhancing Options:</comment> # <i>hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda</i>
5057 </pre>
5058
5059 </body>
5060 </subsection>
5061 <subsection id="useraccounts">
5062 <title>Optional: User Accounts</title>
5063 <body>
5064
5065 <p>
5066 If you plan on giving other people access to your installation
5067 environment or you want to chat using <c>irssi</c> without root privileges (for
5068 security reasons), you need to create the necessary user accounts and change
5069 the root password.
5070 </p>
5071
5072 <p>
5073 To change the root password, use the <c>passwd</c> utility:
5074 </p>
5075
5076 <pre caption="Changing the root password">
5077 # <i>passwd</i>
5078 New password: <comment>(Enter your new password)</comment>
5079 Re-enter password: <comment>(Re-enter your password)</comment>
5080 </pre>
5081
5082 <p>
5083 To create a user account, we first enter their credentials, followed by
5084 its password. We use <c>useradd</c> and <c>passwd</c> for these tasks.
5085 In the next example, we create a user called &quot;john&quot;.
5086 </p>
5087
5088 <pre caption="Creating a user account">
5089 # <i>useradd -m -G users john</i>
5090 # <i>passwd john</i>
5091 New password: <comment>(Enter john's password)</comment>
5092 Re-enter password: <comment>(Re-enter john's password)</comment>
5093 </pre>
5094
5095 <p>
5096 You can change your user id from root to the newly created user by using
5097 <c>su</c>:
5098 </p>
5099
5100 <pre caption="Changing user id">
5101 # <i>su - john</i>
5102 </pre>
5103
5104 </body>
5105 </subsection>
5106 <subsection>
5107 <title>Optional: Viewing Documentation while Installing</title>
5108 <body>
5109
5110 <p>
5111 If you want to view the Gentoo Handbook (either from-CD or online) during the
5112 installation, make sure you have created a user account (see <uri
5113 link="#useraccounts">Optional: User Accounts</uri>). Then press <c>Alt-F2</c> to
5114 go to a new terminal and log in.
5115 </p>
5116
5117 <p>
5118 If you want to view the documentation on the CD you can immediately run
5119 <c>lynx</c> to read it:
5120 </p>
5121
5122 <pre caption="Viewing the on-CD documentation">
5123 # <i>lynx /mnt/cdrom/docs/html/index.html</i>
5124 </pre>
5125
5126 <p>
5127 However, it is preferred that you use the online Gentoo Handbook as it will be
5128 more recent than the one provided on the CD. You can view it using <c>lynx</c>
5129 as well, but only after having completed the <e>Configuring your Network</e>
5130 chapter (otherwise you won't be able to go on the Internet to view the
5131 document):
5132 </p>
5133
5134 <pre caption="Viewing the Online Documentation">
5135 # <i>lynx http://www.gentoo.org/doc/en/handbook/handbook-alpha.xml</i>
5136 </pre>
5137
5138 <p>
5139 You can go back to your original terminal by pressing <c>Alt-F1</c>.
5140 </p>
5141
5142 </body>
5143 </subsection>
5144 <subsection>
5145 <title>Optional: Starting the SSH Daemon</title>
5146 <body>
5147
5148 <p>
5149 If you want to allow other users to access your computer during the
5150 Gentoo installation (perhaps because those users are going to help you
5151 install Gentoo, or even do it for you), you need to create a user
5152 account for them and perhaps even provide them with your root password
5153 (<e>only</e> do that <e>if</e> you <b>fully trust</b> that user).
5154 </p>
5155
5156 <p>
5157 To fire up the SSH daemon, execute the following command:
5158 </p>
5159
5160 <pre caption="Starting the SSH daemon">
5161 # <i>/etc/init.d/sshd start</i>
5162 </pre>
5163
5164 <p>
5165 To be able to use sshd, you first need to set up your networking. Continue with
5166 the chapter on <uri link="?part=1&amp;chap=3">Configuring your Network</uri>.
5167 </p>
5168
5169 </body>
5170 </subsection>
5171 </section>
5172 </sections>
5173
5174
5175
5176 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-config.xml
5177
5178 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-config.xml?rev=1.1&view=markup
5179 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-config.xml?rev=1.1&content-type=text/plain
5180
5181 Index: hb-install-config.xml
5182 ===================================================================
5183 <?xml version='1.0' encoding='UTF-8'?>
5184 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
5185
5186 <!-- The content of this document is licensed under the CC-BY-SA license -->
5187 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
5188
5189 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-config.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
5190
5191 <sections>
5192
5193 <version>7.0</version>
5194 <date>2006-08-30</date>
5195
5196 <section>
5197 <title>Filesystem Information</title>
5198 <subsection>
5199 <title>What is fstab?</title>
5200 <body>
5201
5202 <p>
5203 Under Linux, all partitions used by the system must be listed in
5204 <path>/etc/fstab</path>. This file contains the mountpoints of those partitions
5205 (where they are seen in the file system structure), how they should be mounted
5206 and with what special options (automatically or not, whether users can mount
5207 them or not, etc.)
5208 </p>
5209
5210 </body>
5211 </subsection>
5212 <subsection>
5213 <title>Creating /etc/fstab</title>
5214 <body>
5215
5216 <p>
5217 <path>/etc/fstab</path> uses a special syntax. Every line consists of six
5218 fields, separated by whitespace (space(s), tabs or a mixture). Each field has
5219 its own meaning:
5220 </p>
5221
5222 <ul>
5223 <li>
5224 The first field shows the <b>partition</b> described (the path to the device
5225 file)
5226 </li>
5227 <li>
5228 The second field shows the <b>mountpoint</b> at which the partition should be
5229 mounted
5230 </li>
5231 <li>
5232 The third field shows the <b>filesystem</b> used by the partition
5233 </li>
5234 <li>
5235 The fourth field shows the <b>mountoptions</b> used by <c>mount</c> when it
5236 wants to mount the partition. As every filesystem has its own mountoptions,
5237 you are encouraged to read the mount man page (<c>man mount</c>) for a full
5238 listing. Multiple mountoptions are comma-separated.
5239 </li>
5240 <li>
5241 The fifth field is used by <c>dump</c> to determine if the partition needs to
5242 be <b>dump</b>ed or not. You can generally leave this as <c>0</c> (zero).
5243 </li>
5244 <li>
5245 The sixth field is used by <c>fsck</c> to determine the order in which
5246 filesystems should be <b>check</b>ed if the system wasn't shut down properly.
5247 The root filesystem should have <c>1</c> while the rest should have <c>2</c>
5248 (or <c>0</c> if a filesystem check isn't necessary).
5249 </li>
5250 </ul>
5251
5252 <p>
5253 The default <path>/etc/fstab</path> file provided by Gentoo <e>is not a valid
5254 fstab file</e>, so start <c>nano</c> (or your favorite editor) to create your
5255 <path>/etc/fstab</path>:
5256 </p>
5257
5258 <pre caption="Opening /etc/fstab">
5259 # <i>nano -w /etc/fstab</i>
5260 </pre>
5261
5262 <p>
5263 Let us take a look at how we write down the options for the <path>/boot</path>
5264 partition. If your architecture doesn't require a seperate <path>/boot</path>
5265 partition (such as Apple PowerPC machines) or you have elected not to create
5266 one, don't include a boot line in your fstab. The Apple Bootstrap partition
5267 is not a <path>/boot</path> partition.
5268 </p>
5269
5270 <p>
5271 In our default x86 partitioning example <path>/boot</path> is the
5272 <path>/dev/hda1</path> partition, with <c>ext2</c> as filesystem.
5273 It needs to be checked during boot, so we would write down:
5274 </p>
5275
5276 <pre caption="An example /boot line for /etc/fstab">
5277 /dev/hda1 /boot ext2 defaults 1 2
5278 </pre>
5279
5280 <p>
5281 Some users don't want their <path>/boot</path> partition to be mounted
5282 automatically to improve their system's security. Those people should
5283 substitute <c>defaults</c> with <c>noauto</c>. This does mean that you need to
5284 manually mount this partition every time you want to use it.
5285 </p>
5286
5287 <p>
5288 Now, to improve performance, most users would want to add the <c>noatime</c>
5289 option as mountoption, which results in a faster system since access times
5290 aren't registered (you don't need those generally anyway):
5291 </p>
5292
5293 <pre caption="An improved /boot line for /etc/fstab">
5294 /dev/hda1 /boot ext2 defaults,noatime 1 2
5295 </pre>
5296
5297 <p>
5298 If we continue with this, we would end up with the following three lines (for
5299 <path>/boot</path>, <path>/</path> and the swap partition):
5300 </p>
5301
5302 <pre caption="Three /etc/fstab lines">
5303 /dev/hda1 /boot ext2 defaults,noatime 1 2
5304 /dev/hda2 none swap sw 0 0
5305 /dev/hda3 / ext3 noatime 0 1
5306 </pre>
5307
5308 <p>
5309 To finish up, you should add a rule for <path>/proc</path>, <c>tmpfs</c>
5310 (required) and for your CD-ROM drive (and of course, if you have other
5311 partitions or drives, for those too):
5312 </p>
5313
5314 <pre caption="A full /etc/fstab example">
5315 /dev/hda1 /boot ext2 defaults,noatime 1 2
5316 /dev/hda2 none swap sw 0 0
5317 /dev/hda3 / ext3 noatime 0 1
5318
5319 none /proc proc defaults 0 0
5320 none /dev/shm tmpfs nodev,nosuid,noexec 0 0
5321
5322 /dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
5323 </pre>
5324
5325 <p>
5326 <c>auto</c> makes <c>mount</c> guess for the filesystem (recommended for
5327 removable media as they can be created with one of many filesystems) and
5328 <c>user</c> makes it possible for non-root users to mount the CD.
5329 </p>
5330
5331 <p>
5332 Now use the above example to create your <path>/etc/fstab</path>. If you are a
5333 <b>SPARC</b>-user, you should add the following line to your
5334 <path>/etc/fstab</path>
5335 too:
5336 </p>
5337
5338 <pre caption="Adding openprom filesystem to /etc/fstab">
5339 none /proc/openprom openpromfs defaults 0 0
5340 </pre>
5341
5342 <p>
5343 Double-check your <path>/etc/fstab</path>, save and quit to continue.
5344 </p>
5345
5346 </body>
5347 </subsection>
5348 </section>
5349 <section>
5350 <title>Networking Information</title>
5351 <subsection>
5352 <title>Hostname, Domainname etc.</title>
5353 <body>
5354
5355 <p>
5356 One of the choices the user has to make is name his/her PC. This seems to be
5357 quite easy, but <e>lots</e> of users are having difficulties finding the
5358 appropriate name for their Linux-pc. To speed things up, know that any name you
5359 choose can be changed afterwards. For all we care, you can just call your system
5360 <c>tux</c> and domain <c>homenetwork</c>.
5361 </p>
5362
5363 <p>
5364 We use these values in the next examples. First we set the hostname:
5365 </p>
5366
5367 <pre caption="Setting the hostname">
5368 # <i>nano -w /etc/conf.d/hostname</i>
5369
5370 <comment>(Set the HOSTNAME variable to your hostname)</comment>
5371 HOSTNAME="<i>tux</i>"
5372 </pre>
5373
5374 <p>
5375 Second we set the domainname:
5376 </p>
5377
5378 <pre caption="Setting the domainname">
5379 # <i>nano -w /etc/conf.d/net</i>
5380
5381 <comment>(Set the dns_domain variable to your domain name)</comment>
5382 dns_domain_lo="<i>homenetwork</i>"
5383 </pre>
5384
5385 <p>
5386 If you have a NIS domain (if you don't know what that is, then you don't have
5387 one), you need to define that one too:
5388 </p>
5389
5390 <pre caption="Setting the NIS domainname">
5391 # <i>nano -w /etc/conf.d/net</i>
5392
5393 <comment>(Set the nis_domain variable to your NIS domain name)</comment>
5394 nis_domain_lo="<i>my-nisdomain</i>"
5395 </pre>
5396
5397 </body>
5398 </subsection>
5399 <subsection>
5400 <title>Configuring your Network</title>
5401 <body>
5402
5403 <p>
5404 Before you get that "Hey, we've had that already"-feeling, you should remember
5405 that the networking you set up in the beginning of the Gentoo installation was
5406 just for the installation. Right now you are going to configure networking for
5407 your Gentoo system permanently.
5408 </p>
5409
5410 <note>
5411 More detailed information about networking, including advanced topics like
5412 bonding, bridging, 802.1Q VLANs or wireless networking is covered in the <uri
5413 link="?part=4">Gentoo Network Configuration</uri> section.
5414 </note>
5415
5416 <p>
5417 All networking information is gathered in <path>/etc/conf.d/net</path>. It uses
5418 a straightforward yet not intuitive syntax if you don't know how to set up
5419 networking manually. But don't fear, we'll explain everything. A fully
5420 commented example that covers many different configurations is available in
5421 <path>/etc/conf.d/net.example</path>.
5422 </p>
5423
5424 <p>
5425 DHCP is used by default and does not require any further configuration.
5426 </p>
5427
5428 <p>
5429 If you need to configure your network connection either because you need
5430 specific DHCP options or because you do not use DHCP at all, open
5431 <path>/etc/conf.d/net</path> with your favorite editor (<c>nano</c> is used in
5432 this example):
5433 </p>
5434
5435 <pre caption="Opening /etc/conf.d/net for editing">
5436 # <i>nano -w /etc/conf.d/net</i>
5437 </pre>
5438
5439 <p>
5440 You will see the following file:
5441 </p>
5442
5443 <pre caption="Default /etc/conf.d/net">
5444 # This blank configuration will automatically use DHCP for any net.*
5445 # scripts in /etc/init.d. To create a more complete configuration,
5446 # please review /etc/conf.d/net.example and save your configuration
5447 # in /etc/conf.d/net (this file :]!).
5448 </pre>
5449
5450 <p>
5451 To enter your own IP address, netmask and gateway, you need
5452 to set both <c>config_eth0</c> and <c>routes_eth0</c>:
5453 </p>
5454
5455 <pre caption="Manually setting IP information for eth0">
5456 config_eth0=( "192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255" )
5457 routes_eth0=( "default gw 192.168.0.1" )
5458 </pre>
5459
5460 <p>
5461 To use DHCP and add specific DHCP options, define <c>config_eth0</c> and
5462 <c>dhcp_eth0</c>:
5463 </p>
5464
5465 <pre caption="Automatically obtaining an IP address for eth0">
5466 config_eth0=( "dhcp" )
5467 dhcp_eth0="nodns nontp nonis"
5468 </pre>
5469
5470 <p>
5471 Please read <path>/etc/conf.d/net.example</path> for a list of all available
5472 options.
5473 </p>
5474
5475 <p>
5476 If you have several network interfaces repeat the above steps for
5477 <c>config_eth1</c>, <c>config_eth2</c>, etc.
5478 </p>
5479
5480 <p>
5481 Now save the configuration and exit to continue.
5482 </p>
5483
5484 </body>
5485 </subsection>
5486 <subsection>
5487 <title>Automatically Start Networking at Boot</title>
5488 <body>
5489
5490 <p>
5491 To have your network interfaces activated at boot, you need to add them to the
5492 default runlevel. If you have PCMCIA interfaces you should skip this action as
5493 the PCMCIA interfaces are started by the PCMCIA init script.
5494 </p>
5495
5496 <pre caption="Adding net.eth0 to the default runlevel">
5497 # <i>rc-update add net.eth0 default</i>
5498 </pre>
5499
5500 <p>
5501 If you have several network interfaces, you need to create the appropriate
5502 <path>net.eth1</path>, <path>net.eth2</path> etc. initscripts for those. You can
5503 use <c>ln</c> to do this:
5504 </p>
5505
5506 <pre caption="Creating extra initscripts">
5507 # <i>cd /etc/init.d</i>
5508 # <i>ln -s net.lo net.eth1</i>
5509 # <i>rc-update add net.eth1 default</i>
5510 </pre>
5511
5512 </body>
5513 </subsection>
5514 <subsection>
5515 <title>Writing Down Network Information</title>
5516 <body>
5517
5518 <p>
5519 You now need to inform Linux about your network. This is defined in
5520 <path>/etc/hosts</path> and helps in resolving hostnames to IP addresses for
5521 hosts that aren't resolved by your nameserver. You need to define your system.
5522 You may also want to define other systems on your network if you don't want to
5523 set up your own internal DNS system.
5524 </p>
5525
5526 <pre caption="Opening /etc/hosts">
5527 # <i>nano -w /etc/hosts</i>
5528 </pre>
5529
5530 <pre caption="Filling in the networking information">
5531 <comment>(This defines the current system)</comment>
5532 127.0.0.1 tux.homenetwork tux localhost
5533
5534 <comment>(Define extra systems on your network,
5535 they need to have a static IP to be defined this way.)</comment>
5536 192.168.0.5 jenny.homenetwork jenny
5537 192.168.0.6 benny.homenetwork benny
5538 </pre>
5539
5540 <p>
5541 Save and exit the editor to continue.
5542 </p>
5543
5544 <p>
5545 If you don't have PCMCIA, you can now continue with <uri
5546 link="#doc_chap3">System Information</uri>. PCMCIA-users should read the
5547 following topic on PCMCIA.
5548 </p>
5549
5550 </body>
5551 </subsection>
5552 <subsection>
5553 <title>Optional: Get PCMCIA Working</title>
5554 <body>
5555
5556 <note>
5557 pcmcia-cs is only available for x86, amd64 and ppc platforms.
5558 </note>
5559
5560 <p>
5561 PCMCIA-users should first install the <c>pcmcia-cs</c> package. This also
5562 includes users who will be working with a 2.6 kernel (even though they won't be
5563 using the PCMCIA drivers from this package). The <c>USE="-X"</c> is necessary
5564 to avoid installing xorg-x11 at this moment:
5565 </p>
5566
5567 <pre caption="Installing pcmcia-cs">
5568 # <i>USE="-X" emerge pcmcia-cs</i>
5569 </pre>
5570
5571 <p>
5572 When <c>pcmcia-cs</c> is installed, add <c>pcmcia</c> to the <e>default</e>
5573 runlevel:
5574 </p>
5575
5576 <pre caption="Adding pcmcia to the default runlevel">
5577 # <i>rc-update add pcmcia default</i>
5578 </pre>
5579
5580 </body>
5581 </subsection>
5582 </section>
5583 <section>
5584 <title>System Information</title>
5585 <subsection>
5586 <title>Root Password</title>
5587 <body>
5588
5589 <p>
5590 First we set the root password by typing:
5591 </p>
5592
5593 <pre caption="Setting the root password">
5594 # <i>passwd</i>
5595 </pre>
5596
5597 <p>
5598 If you want root to be able to log on through the serial console, add
5599 <c>tts/0</c> to <path>/etc/securetty</path>:
5600 </p>
5601
5602 <pre caption="Adding tts/0 to /etc/securetty">
5603 # <i>echo "tts/0" &gt;&gt; /etc/securetty</i>
5604 </pre>
5605
5606 </body>
5607 </subsection>
5608 <subsection>
5609 <title>System Information</title>
5610 <body>
5611
5612 <p>
5613 Gentoo uses <path>/etc/rc.conf</path> for general, system-wide configuration.
5614 Open up <path>/etc/rc.conf</path> and enjoy all the comments in that file :)
5615 </p>
5616
5617 <pre caption="Opening /etc/rc.conf">
5618 # <i>nano -w /etc/rc.conf</i>
5619 </pre>
5620
5621 <p>
5622 When you're finished configuring <path>/etc/rc.conf</path>, save and exit.
5623 </p>
5624
5625 <p>
5626 As you can see, this file is well commented to help you set up the necessary
5627 configuration variables. You can configure your system to use unicode and
5628 define your default editor and your display manager (like gdm or kdm).
5629 </p>
5630
5631 <p>
5632 Gentoo uses <path>/etc/conf.d/keymaps</path> to handle keyboard configuration.
5633 Edit it to configure your keyboard.
5634 </p>
5635
5636 <pre caption="Opening /etc/conf.d/keymaps">
5637 # <i>nano -w /etc/conf.d/keymaps</i>
5638 </pre>
5639
5640 <p>
5641 Take special care with the <c>KEYMAP</c> variable. If you select the wrong
5642 <c>KEYMAP</c>, you will get weird results when typing on your keyboard.
5643 </p>
5644
5645 <note>
5646 Users of <b>SPARC</b> systems and <b>SPARC</b> clones should choose old-style,
5647 sparc-specific keymaps if they have 2.4 kernel. But if you go for 2.6 kernel
5648 (which is default), you should rather choose pc-style i386 keymaps (like "us").
5649 <b>PPC</b> uses x86 keymaps on most systems. Users who want to be able to use
5650 ADB keymaps on boot have to enable ADB keycode sendings in their kernel and
5651 have to set a mac/ppc keymap in <path>/etc/conf.d/keymaps</path>.
5652 </note>
5653
5654 <p>
5655 When you're finished configuring <path>/etc/conf.d/keymaps</path>, save and
5656 exit.
5657 </p>
5658
5659 <p>
5660 Gentoo uses <path>/etc/conf.d/clock</path> to set clock options. Edit it
5661 according to your needs.
5662 </p>
5663
5664 <pre caption="Opening /etc/conf.d/clock">
5665 # <i>nano -w /etc/conf.d/clock</i>
5666 </pre>
5667
5668 <p>
5669 If your hardware clock is not using UTC, you need to add <c>CLOCK="local"</c> to
5670 the file. Otherwise you will notice some clock skew.
5671 </p>
5672
5673 <p>
5674 When you're finished configuring <path>/etc/conf.d/clock</path>, save and
5675 exit.
5676 </p>
5677
5678 <p>
5679 If you are not installing Gentoo on IBM PPC64 hardware, continue with
5680 <uri link="?part=1&amp;chap=9">Installing Necessary System Tools</uri>.
5681 </p>
5682
5683 </body>
5684 </subsection>
5685 <subsection>
5686 <title>Configuring the Console</title>
5687 <body>
5688
5689 <note>
5690 The following section applies to the IBM PPC64 hardware platforms.
5691 </note>
5692
5693 <p>
5694 If you are running Gentoo on IBM PPC64 hardware and using a virtual console
5695 you must uncomment the appropriate line in <path>/etc/inittab</path> for the
5696 virtual console to spawn a login prompt.
5697 </p>
5698
5699 <pre caption="Enabling hvc or hvsi support in /etc/inittab">
5700 hvc0:12345:respawn:/sbin/agetty -L 9600 hvc0
5701 hvsi:12345:respawn:/sbin/agetty -L 19200 hvsi0
5702 </pre>
5703
5704 <p>
5705 You should also take this time to verify that the appropriate console is
5706 listed in <path>/etc/securetty</path>.
5707 </p>
5708
5709 <p>
5710 You may now continue with <uri link="?part=1&amp;chap=9">Installing Necessary
5711 System Tools</uri>.
5712 </p>
5713
5714 </body>
5715 </subsection>
5716 </section>
5717 </sections>
5718
5719
5720
5721 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-finalise.xml
5722
5723 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-finalise.xml?rev=1.1&view=markup
5724 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-finalise.xml?rev=1.1&content-type=text/plain
5725
5726 Index: hb-install-finalise.xml
5727 ===================================================================
5728 <?xml version='1.0' encoding='UTF-8'?>
5729 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
5730
5731 <!-- The content of this document is licensed under the CC-BY-SA license -->
5732 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
5733
5734 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-finalise.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
5735
5736 <sections>
5737
5738 <version>7.0</version>
5739 <date>2006-08-30</date>
5740
5741 <section>
5742 <title>User Administration</title>
5743 <subsection>
5744 <title>Adding a User for Daily Use</title>
5745 <body>
5746
5747 <p>
5748 Working as root on a Unix/Linux system is <e>dangerous</e> and should be avoided
5749 as much as possible. Therefore it is <e>strongly</e> recommended to add a user
5750 for day-to-day use.
5751 </p>
5752
5753 <p>
5754 The groups the user is member of define what activities the user can perform.
5755 The following table lists a number of important groups you might wish to use:
5756 </p>
5757
5758 <table>
5759 <tr>
5760 <th>Group</th>
5761 <th>Description</th>
5762 </tr>
5763 <tr>
5764 <ti>audio</ti>
5765 <ti>be able to access the audio devices</ti>
5766 </tr>
5767 <tr>
5768 <ti>cdrom</ti>
5769 <ti>be able to directly access optical devices</ti>
5770 </tr>
5771 <tr>
5772 <ti>floppy</ti>
5773 <ti>be able to directly access floppy devices</ti>
5774 </tr>
5775 <tr>
5776 <ti>games</ti>
5777 <ti>be able to play games</ti>
5778 </tr>
5779 <tr>
5780 <ti>portage</ti>
5781 <ti>be able to use <c>emerge --pretend</c> as a normal user</ti>
5782 </tr>
5783 <tr>
5784 <ti>usb</ti>
5785 <ti>be able to access USB devices</ti>
5786 </tr>
5787 <tr>
5788 <ti>plugdev</ti>
5789 <ti>
5790 Be able to mount and use pluggable devices such as cameras and USB sticks
5791 </ti>
5792 </tr>
5793 <tr>
5794 <ti>video</ti>
5795 <ti>
5796 be able to access video capturing hardware and doing hardware
5797 acceleration
5798 </ti>
5799 </tr>
5800 <tr>
5801 <ti>wheel</ti>
5802 <ti>be able to use <c>su</c></ti>
5803 </tr>
5804 </table>
5805
5806 <p>
5807 For instance, to create a user called <c>john</c> who is member of the
5808 <c>wheel</c>, <c>users</c> and <c>audio</c> groups, log in as root first
5809 (only root can create users) and run <c>useradd</c>:
5810 </p>
5811
5812 <pre caption="Adding a user for day-to-day use">
5813 Login: <i>root</i>
5814 Password: <comment>(Your root password)</comment>
5815
5816 # <i>useradd -m -G users,wheel,audio -s /bin/bash john</i>
5817 # <i>passwd john</i>
5818 Password: <comment>(Enter the password for john)</comment>
5819 Re-enter password: <comment>(Re-enter the password to verify)</comment>
5820 </pre>
5821
5822 <p>
5823 If a user ever needs to perform some task as root, they can use <c>su -</c>
5824 to temporarily receive root privileges. Another way is to use the <c>sudo</c>
5825 package which is, if correctly configured, very secure.
5826 </p>
5827
5828 </body>
5829 </subsection>
5830 </section>
5831 <section>
5832 <title>Optional: Install GRP Packages</title>
5833 <body>
5834
5835 <impo>
5836 This part is for GRP users only. Other users should skip this part and continue
5837 with <uri link="?part=1&amp;chap=12">Where to go from here?</uri>.
5838 </impo>
5839
5840 <p>
5841 Now that your system is booted, log on as the user you created (for instance,
5842 <c>john</c>) and use <c>su -</c> to gain root privileges:
5843 </p>
5844
5845 <pre caption="Gaining root privileges">
5846 $ <i>su -</i>
5847 Password: <comment>(Enter your root password)</comment>
5848 </pre>
5849
5850 <p>
5851 Now we need to change the Portage configuration to look for the prebuilt
5852 binaries from the second CD (Gentoo Packages CD). First mount this CD:
5853 </p>
5854
5855 <pre caption="Mount the Packages CD">
5856 <comment>(Put the Gentoo Packages CD in the CD tray)</comment>
5857 # <i>mount /mnt/cdrom</i>
5858 </pre>
5859
5860 <p>
5861 Now configure Portage to use <path>/mnt/cdrom</path> for its prebuilt packages:
5862 </p>
5863
5864 <pre caption="Configuring Portage to use /mnt/cdrom">
5865 # <i>ls /mnt/cdrom</i>
5866
5867 <comment>(If there is a /mnt/cdrom/packages directory:)</comment>
5868 # <i>export PKGDIR="/mnt/cdrom/packages"</i>
5869
5870 <comment>(Otherwise:)</comment>
5871 # <i>export PKGDIR="/mnt/cdrom"</i>
5872 </pre>
5873
5874 <p>
5875 Now install the packages you want. The Packages CD contains several prebuilt
5876 binaries, for instance KDE and GNOME.
5877 </p>
5878
5879 <pre caption="Installing GNOME">
5880 # <i>emerge --usepkg gnome</i>
5881 </pre>
5882
5883 <p>
5884 To find out what prebuilt packages are available, do a quick listing of all
5885 the files in <path>/mnt/cdrom/All</path>. For instance, to find out if KDE is
5886 emergeable:
5887 </p>
5888
5889 <pre caption="Finding out if KDE is installable">
5890 # <i>ls /mnt/cdrom/All/kde*</i>
5891 </pre>
5892
5893 <p>
5894 Be sure to install the binaries now. When you do an <c>emerge --sync</c> to
5895 update Portage (as you will learn later), the prebuilt binaries might not match
5896 against the ebuilds in your updated Portage. You can try to circumvent this by
5897 using <c>emerge --usepkgonly</c> instead of <c>emerge --usepkg</c>.
5898 </p>
5899
5900 <p>
5901 Congratulations, your system is now fully equipped! Continue with <uri
5902 link="?part=1&amp;chap=12">Where to go from here?</uri> to learn more about
5903 Gentoo.
5904 </p>
5905
5906 </body>
5907 </section>
5908 </sections>
5909
5910
5911
5912 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-gli-dialog.xml
5913
5914 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-gli-dialog.xml?rev=1.1&view=markup
5915 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-gli-dialog.xml?rev=1.1&content-type=text/plain
5916
5917 Index: hb-install-gli-dialog.xml
5918 ===================================================================
5919 <?xml version='1.0' encoding='UTF-8'?>
5920 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
5921 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-gli-dialog.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
5922
5923 <!-- The content of this document is licensed under the CC-BY-SA license -->
5924 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
5925
5926 <sections>
5927
5928 <version>2.0</version>
5929 <date>2006-08-30</date>
5930
5931 <section>
5932 <title>Welcome</title>
5933 <subsection>
5934 <title>Before you begin</title>
5935 <body>
5936
5937 <p>
5938 After you boot the Gentoo Linux Installer LiveCD, it will attempt to load a
5939 graphical desktop. If it is unable to do so, it will instead display a command
5940 line prompt. To launch the installer, simply type:
5941 </p>
5942
5943 <pre caption="Start the installer">
5944 # <i>installer</i>
5945 </pre>
5946
5947 <p>
5948 Once the installer has finished loading, you will be greeted by the welcome
5949 screen. It provides a friendly introduction to the process of installing Gentoo
5950 on your computer. Remember to read each option carefully. There is detailed
5951 help available for each step of installation at the top of the screen. We
5952 recommend that you always read the help provided before making your choices.
5953 Note that at any time during the installation process, you can save your
5954 configuration progress in case you need to resume your installation at a later
5955 time. Use the <c>Tab</c> key (on your keyboard) to move around the menus within
5956 a screen and the <c>Enter</c> key to confirm an action.
5957 </p>
5958
5959 <p>
5960 There are two types of installation modes available. Choose <c>Networkless</c>
5961 to begin installing Gentoo Linux.
5962 </p>
5963
5964 <note>
5965 Selecting <c>Networkless</c> will make some later configuration options
5966 unavailable. Simply proceed to the next screen.
5967 </note>
5968
5969 </body>
5970 </subsection>
5971 </section>
5972
5973 <section>
5974 <title>Preinstallation Configuration</title>
5975 <subsection>
5976 <title>Optional: Manual Network Configuration</title>
5977 <body>
5978
5979 <p>
5980 Even though you will be installing without a connection to the internet, you
5981 can manually set up connections to your local area network (LAN), in case you
5982 want to install Gentoo from another machine on your LAN.
5983 </p>
5984
5985 <p>
5986 If you wish to enable SSH access to the machine (for remote installation), you
5987 can start <c>sshd</c> and specify a root password.
5988 </p>
5989
5990 </body>
5991 </subsection>
5992 <subsection>
5993 <title>Optional: Load Additional Kernel Modules</title>
5994 <body>
5995
5996 <p>
5997 If you need to load more kernel modules to support your hardware, enter their
5998 names, each separated by a space.
5999 </p>
6000
6001 </body>
6002 </subsection>
6003 </section>
6004
6005 <section>
6006 <title>Partitioning</title>
6007 <subsection>
6008 <title>Preparing the disks</title>
6009 <body>
6010
6011 <p>
6012 In order to install Gentoo on your machine, you will need to prepare your
6013 disks. The <c>Partitioning</c> screen will show you a list of detected disks and
6014 allow you to specify the filesystems you would like to have on your
6015 partitions. Selecting <c>Clear partitions</c> will erase all previous partitions on
6016 your disk, so be careful with this option! It is also possible to resize
6017 certain partition types.
6018 </p>
6019
6020 <p>
6021 If you choose to go with the <c>Recommended layout</c>, the installer will
6022 create three partitions: 100MB for <path>/boot</path>, a <path>/swap</path>
6023 partition up to 512MB in size, and the rest of the available space on the disk
6024 is used for <path>/</path>, the root partition. If you have more than 4GB of
6025 unpartitioned space, using the "Recommended layout" will automatically configure
6026 your partitions without destroying any data on any existing partitions.
6027 </p>
6028
6029 </body>
6030 </subsection>
6031 </section>
6032
6033 <section>
6034 <title>Network Mounts</title>
6035 <subsection>
6036 <title>Optional: Define network mounts</title>
6037 <body>
6038
6039 <p>
6040 This screen lets you set up and use any existing network mounts during and
6041 after installation. At this time, only NFS is supported.
6042 </p>
6043
6044 </body>
6045 </subsection>
6046 </section>
6047
6048 <!-- removed per codeman's suggestion on IRC; selecting "Networkless at
6049 beginning makes these options unavailable
6050
6051 <section>
6052 <title>Stage Selection</title>
6053 <subsection>
6054 <title>Dynamic stage generation</title>
6055 <body>
6056
6057 <p>
6058 Since you are performing an installation <e>without</e> an internet connection,
6059 you <e>must</e> select <c>3+GRP</c> from the stage options present. Then, on the next
6060 screen, select <c>Create from CD</c>. Everything you need to build your system will
6061 then be generated from the files on the LiveCD.
6062 </p>
6063
6064 <warn>
6065 Do <e>not</e> select any options other than those specified above when you are
6066 installing without an internet connection.
6067 </warn>
6068
6069 </body>
6070 </subsection>
6071 </section>
6072
6073 <section>
6074 <title>Portage Tree</title>
6075 <subsection>
6076 <title>Obtaining a Portage tree</title>
6077 <body>
6078
6079 <p>
6080 You must choose <c>Snapshot</c> on this screen. The installer will automatically
6081 install a Portage tree from the LiveCD once you select Snapshot; you do not
6082 need to specify a snapshot URI.
6083 </p>
6084
6085 </body>
6086 </subsection>
6087 </section>
6088
6089 -->
6090
6091 <section>
6092 <title>make.conf</title>
6093 <subsection>
6094 <title>USE flags</title>
6095 <body>
6096
6097 <p>
6098 Since you are performing a GRP/networkless install, you will not be allowed to
6099 select USE flags before installation. However, you are free to set your own USE
6100 flags in <path>/etc/make.conf</path> after you have rebooted into your finished
6101 system.
6102 </p>
6103
6104 </body>
6105 </subsection>
6106 <subsection>
6107 <title>CFLAGS</title>
6108 <body>
6109
6110 <p>
6111 Select your processor type in the CFLAGS section along with any custom
6112 optimizations you may want, such as <c>-O2</c> and <c>-pipe</c>.
6113 </p>
6114
6115 </body>
6116 </subsection>
6117 <subsection>
6118 <title>Features</title>
6119 <body>
6120
6121 <p>
6122 Any other options you wish to set for future use should be selected now. Read
6123 through the available FEATURES and make your choices.
6124 </p>
6125
6126 </body>
6127 </subsection>
6128 </section>
6129
6130 <section>
6131 <title>Kernel Sources</title>
6132 <subsection>
6133 <title>Using the LiveCD kernel</title>
6134 <body>
6135
6136 <p>
6137 You must use the kernel present on the LiveCD for the GRP/networkless
6138 install. This is merely a <c>gentoo-sources</c> kernel compiled by
6139 <c>genkernel</c>, Gentoo's automated compilation utility, and will give you a
6140 kernel that automatically detects and configures your hardware upon boot.
6141 </p>
6142
6143 </body>
6144 </subsection>
6145 </section>
6146
6147 <section>
6148 <title>Bootloader</title>
6149 <subsection>
6150 <title>Making your choice</title>
6151 <body>
6152
6153 <p>
6154 This screen allows to you choose your bootloader. Next, select your boot device
6155 and (optionally) specify any additional boot options.
6156 </p>
6157
6158 </body>
6159 </subsection>
6160 </section>
6161
6162 <section>
6163 <title>Timezone</title>
6164 <subsection>
6165 <title>Choose your timezone</title>
6166 <body>
6167
6168 <p>
6169 Study the list and select the region closest to your actual location.
6170 </p>
6171
6172 </body>
6173 </subsection>
6174 </section>
6175
6176 <section>
6177 <title>Networking</title>
6178 <subsection>
6179 <title>Add network device</title>
6180 <body>
6181
6182 <p>
6183 On this screen, you will be able to configure the various network interface
6184 devices detected on your computer. Read the available options carefully.
6185 </p>
6186
6187 <p>
6188 The next screen gives you a choice between DHCP and manual IP address
6189 configuration. Once your network interface is properly configured, you will
6190 need to create a hostname for your system. Optionally, you may specify a
6191 domainname and any DNS server information needed.
6192 </p>
6193
6194 </body>
6195 </subsection>
6196 </section>
6197
6198 <section>
6199 <title>Extra Packages</title>
6200 <subsection>
6201 <title>Optional: installing extra packages</title>
6202 <body>
6203
6204 <p>
6205 The LiveCD contains a number of available pre-built packages. If you wish to
6206 install any of them, check the appropriate box.
6207 </p>
6208
6209 </body>
6210 </subsection>
6211 </section>
6212
6213 <section>
6214 <title>Startup Services</title>
6215 <subsection>
6216 <body>
6217
6218 <p>
6219 This screen allows you to choose various services to load at system boot. Study
6220 the available options and their descriptions carefully, and then select your
6221 desired services. For example, if you have chosen to install <c>xorg-x11</c>
6222 and want to boot straight into a graphical desktop, then you would select
6223 "xdm" from the list.
6224 </p>
6225
6226 </body>
6227 </subsection>
6228 </section>
6229
6230 <section>
6231 <title>Other Settings</title>
6232 <subsection>
6233 <title>Miscellaneous options</title>
6234 <body>
6235
6236 <p>
6237 Now you will be able to change various settings, including keyboard layout,
6238 graphical display manager, the default editor, and whether to set your hardware
6239 clock to UTC or local time.
6240 </p>
6241
6242 </body>
6243 </subsection>
6244 </section>
6245
6246 <section>
6247 <title>Users</title>
6248 <subsection>
6249 <title>Adding users and groups</title>
6250 <body>
6251
6252 <p>
6253 First set the root password for the system administrator (the <e>root</e>
6254 user).
6255 </p>
6256
6257 <p>
6258 We <e>strongly</e> recommend that you create a regular user for daily work.
6259 Working as root all the time is <e>dangerous</e> and should be avoided! Create
6260 your users, set their passwords, and add them to the appropriate groups. You
6261 can optionally change their home directories, select their login shell, and set
6262 helpful comments.
6263 </p>
6264
6265 </body>
6266 </subsection>
6267 </section>
6268
6269 <section>
6270 <title>Review</title>
6271 <subsection>
6272 <title>Finishing up</title>
6273 <body>
6274
6275 <p>
6276 Please take the time to double-check each step of the installation process,
6277 ensuring that your system is properly configured. When you have finished
6278 reviewing, you may save your progress and exit, or select <c>Install</c> to
6279 begin automatically installing Gentoo.
6280 </p>
6281
6282 <p>
6283 The installer will alert you when it has finished. It will then return you to
6284 the command prompt. All you need to do to reboot is type:
6285 </p>
6286
6287 <pre caption="Rebooting">
6288 # <i>shutdown -r now</i>
6289 </pre>
6290
6291 <p>
6292 Congratulations, your system is now fully equipped! Continue with <uri
6293 link="?part=1&amp;chap=5">Where to go from here?</uri> to learn more about
6294 Gentoo.
6295 </p>
6296
6297 </body>
6298 </subsection>
6299 </section>
6300 </sections>
6301
6302 <!--
6303 Steps of the dialog:
6304 (pre): type installer at the prompt to begin the dialog
6305 1. Partitioning
6306 (note: we absolutely must include partitioning info here; gli-dialog refers
6307 users to the partitioning info in the gentoo handbook! note that the gtkfe
6308 installer already has this partition info in its graphical help screens)
6309
6310 2. Network mounts
6311 3. Stage Selection
6312 4. kernel sources
6313 5. bootloader
6314 6. timezone
6315 7. network interface selection/configuration (inc. dhcp/static-manual)
6316 8. hostname/domainname/dns
6317 9. Optional: install additional packages
6318 10. set root password
6319 11. add user, set passwords/groups
6320 12. review
6321 (post) finishes, drops to prompt: shutdown -r now
6322 -->
6323
6324
6325
6326 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-gli-medium.xml
6327
6328 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-gli-medium.xml?rev=1.1&view=markup
6329 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-gli-medium.xml?rev=1.1&content-type=text/plain
6330
6331 Index: hb-install-gli-medium.xml
6332 ===================================================================
6333 <?xml version='1.0' encoding='UTF-8'?>
6334 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
6335
6336 <!-- The content of this document is licensed under the CC-BY-SA license -->
6337 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6338
6339 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-gli-medium.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
6340
6341 <sections>
6342
6343 <version>7.0</version>
6344 <date>2006-08-30</date>
6345
6346 <section>
6347 <title>Hardware Requirements</title>
6348 <subsection>
6349 <title>Introduction</title>
6350 <body>
6351
6352 <p>
6353 Before we start, we first list what hardware requirements you need to
6354 successfully install Gentoo on your box using the Installer LiveCD.
6355 </p>
6356
6357 </body>
6358 </subsection>
6359 <subsection>
6360 <title>Hardware Requirements</title>
6361 <body>
6362
6363 <table>
6364 <tr test="func:keyval('arch')='x86'">
6365 <th>CPU</th>
6366 <ti>i686 or later</ti>
6367 </tr>
6368 <tr test="func:keyval('arch')='AMD64'">
6369 <th>CPU</th>
6370 <ti>Any AMD64 or EM64T CPU</ti>
6371 </tr>
6372 <tr>
6373 <th>Memory</th>
6374 <ti>128 MB</ti>
6375 </tr>
6376 <tr>
6377 <th>Diskspace</th>
6378 <ti>1.5 GB (excluding swap space)</ti>
6379 </tr>
6380 <tr>
6381 <th>Swap space</th>
6382 <ti>At least 256 MB</ti>
6383 </tr>
6384 </table>
6385
6386
6387 </body>
6388 </subsection>
6389 </section>
6390 <!-- General description, propagated to other architectures as well -->
6391 <!-- START -->
6392 <section>
6393 <title>The Gentoo Linux Installer LiveCD</title>
6394 <subsection>
6395 <title>Introduction</title>
6396 <body>
6397
6398 <p>
6399 Gentoo Linux can be installed using a <e>stage3</e> tarball file.
6400 Such a tarball is an archive that contains a minimal environment from
6401 which you can successfully install Gentoo Linux onto your system.
6402 </p>
6403
6404 <p>
6405 Installations using a stage1 or stage2 tarball file are not documented in the
6406 Gentoo Handbook - please read the <uri link="/doc/en/faq.xml#stage12">Gentoo
6407 FAQ</uri> on these matters.
6408 </p>
6409
6410 </body>
6411 </subsection>
6412 <subsection>
6413 <title>Gentoo Linux Installer LiveCD</title>
6414 <body>
6415
6416 <p>
6417 A LiveCD is a bootable medium which contains a self-sustained Gentoo
6418 environment. It allows you to boot Linux from the CD. During the boot process
6419 your hardware is detected and the appropriate drivers are loaded. The Gentoo
6420 Installation CDs are maintained by Gentoo developers.
6421 </p>
6422
6423 <p>
6424 There currently are two Installation CDs available:
6425 </p>
6426
6427 <ul>
6428 <li>
6429 The Installer LiveCD contains everything you need to install Gentoo. It
6430 provides a graphical environment, a graphical as well as console based
6431 installer which automatically carries out the installation for you, and of
6432 course, the installation instructions for your architecture.
6433 </li>
6434 <li>
6435 The Minimal Installation CD contains only a minimal environment that allows
6436 you to boot up and configure your network so you can connect to the
6437 Internet. It does not contain any additional files and cannot be used
6438 during the current installation approach.
6439 </li>
6440 </ul>
6441
6442 </body>
6443 </subsection>
6444 </section>
6445 <!-- STOP -->
6446 <section>
6447 <title>Download, Burn and Boot the Gentoo Linux Installer LiveCD</title>
6448 <subsection>
6449 <title>Downloading and Burning the Installer LiveCD</title>
6450 <body>
6451
6452 <p>
6453 You can download the Installer LiveCDs from one of our <uri
6454 link="/main/en/mirrors.xml">mirrors</uri>. They are located in the
6455 <path><keyval id="release-dir"/>/livecd</path> directory.
6456 </p>
6457
6458 <p>
6459 Inside that directory you'll find an ISO-file. That is a full CD image which
6460 you can write on a CD-R.
6461 </p>
6462
6463 <p>
6464 After downloading the file, you can verify its integrity to see if it is
6465 corrupted or not:
6466 </p>
6467
6468 <ul>
6469 <li>
6470 You can check its MD5 checksum and compare it with the MD5 checksum we
6471 provide (for instance with the <c>md5sum</c> tool under Linux/Unix or <uri
6472 link="http://www.etree.org/md5com.html">md5sum</uri> for Windows)
6473 </li>
6474 <li>
6475 You can verify the cryptographic signature that we provide. You need to
6476 obtain the public key we use (17072058) before you proceed though.
6477 </li>
6478 </ul>
6479
6480 <p>
6481 To fetch our public key using the GnuPG application, run the following command:
6482 </p>
6483
6484 <pre caption="Obtaining the public key">
6485 $ <i>gpg --keyserver subkeys.pgp.net --recv-keys 17072058</i>
6486 </pre>
6487
6488 <p>
6489 Now verify the signature:
6490 </p>
6491
6492 <pre caption="Verify the cryptographic signature">
6493 $ <i>gpg --verify &lt;signature file&gt; &lt;downloaded iso&gt;</i>
6494 </pre>
6495
6496 <p>
6497 To burn the downloaded ISO(s), you have to select raw-burning. How you do this
6498 is highly program-dependent. We will discuss <c>cdrecord</c> and <c>K3B</c>
6499 here; more information can be found in our <uri
6500 link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>.
6501 </p>
6502
6503 <ul>
6504 <li>
6505 With cdrecord, you simply type <c>cdrecord dev=/dev/hdc &lt;downloaded iso
6506 file&gt;</c> (replace <path>/dev/hdc</path> with your CD-RW drive's device
6507 path).
6508 </li>
6509 <li>
6510 With K3B, select <c>Tools</c> &gt; <c>CD</c> &gt; <c>Burn Image</c>. Then
6511 you can locate your ISO file within the 'Image to Burn' area. Finally click
6512 <c>Start</c>.
6513 </li>
6514 </ul>
6515
6516 </body>
6517 </subsection>
6518 <subsection>
6519 <title>Booting the Installer LiveCD</title>
6520 <body>
6521
6522 <impo>
6523 Read this whole subsection before continuing, as you will probably not have the
6524 opportunity to read it before doing things later.
6525 </impo>
6526
6527 <p>
6528 Once you have burned your LiveCD, it is time to boot it. Remove all CDs from
6529 your CD drives, reboot your system and enter the BIOS. This is usually done by
6530 hitting DEL, F1 or ESC, depending on your BIOS. Inside the BIOS, change the
6531 boot order so that the CD-ROM is tried before the hard disk. This is often
6532 found under "CMOS Setup". If you don't do this, your system will just reboot
6533 from the hard disk, ignoring the CD-ROM.
6534 </p>
6535
6536 <p>
6537 Now place the LiveCD in the CD-ROM drive and reboot. You should see a boot
6538 prompt. At this screen, you can hit Enter to begin the boot process with the
6539 default boot options, or boot the LiveCD with custom boot options by specifying
6540 a kernel followed by boot options and then hitting Enter.
6541 </p>
6542
6543 <p>
6544 Specifying a kernel? Yes, we provide several kernels on our LiveCD. The default
6545 one is <c>gentoo</c>. Other kernels are for specific hardware needs and the
6546 <c>-nofb</c> variants which disable framebuffer.
6547 </p>
6548
6549 <p>
6550 Below you'll find a short overview on the available kernels:
6551 </p>
6552
6553 <table>
6554 <tr>
6555 <th>Kernel</th>
6556 <th>Description</th>
6557 </tr>
6558 <tr test="func:keyval('arch')='x86'">
6559 <ti>gentoo</ti>
6560 <ti>Default 2.6 kernel with support for multiple CPUs</ti>
6561 </tr>
6562 <tr test="func:keyval('arch')='x86'">
6563 <ti>gentoo-nofb</ti>
6564 <ti>Same as <c>gentoo</c> but without framebuffer support</ti>
6565 </tr>
6566 <tr test="func:keyval('arch')='AMD64'">
6567 <ti>gentoo</ti>
6568 <ti>
6569 Default kernel with support for K8 CPUS (including NUMA support) and EM64T
6570 CPUs
6571 </ti>
6572 </tr>
6573 <tr>
6574 <ti>memtest86</ti>
6575 <ti>Test your local RAM for errors</ti>
6576 </tr>
6577 </table>
6578
6579 <p>
6580 You can also provide kernel options. They represent optional settings you can
6581 (de)activate at will. The following list is the same as the one you receive
6582 when you press F2 through F7 at the bootscreen.
6583 </p>
6584
6585 <pre caption="Options available to pass to your kernel of choice">
6586 <comment>Hardware options:</comment>
6587
6588 acpi=on This loads support for ACPI and also causes the acpid daemon to
6589 be started by the CD on boot. This is only needed if your
6590 system requires ACPI to function properly. This is not
6591 required for Hyperthreading support.
6592
6593 acpi=off Completely disables ACPI. This is useful on some older
6594 systems, and is also a requirement for using APM. This will
6595 disable any Hyperthreading support of your processor.
6596
6597 console=X This sets up serial console access for the CD. The first
6598 option is the device, usually ttyS0 on x86, followed by any
6599 connection options, which are comma separated. The default
6600 options are 9600,8,n,1.
6601
6602 dmraid=X This allows for passing options to the device-mapper RAID
6603 subsystem. Options should be encapsulated in quotes.
6604
6605 doapm This loads APM driver support. This requires you to also use
6606 acpi=off.
6607
6608 dobladecenter This adds some extra pauses into the boot process for the slow
6609 USB CDROM of the IBM BladeCenter.
6610
6611 dopcmcia This loads support for PCMCIA and Cardbus hardware and also
6612 causes the pcmcia cardmgr to be started by the CD on boot.
6613 This is only required when booting from a PCMCIA/Cardbus device.
6614
6615 doscsi This loads support for most SCSI controllers. This is also a
6616 requirement for booting most USB devices, as they use the SCSI
6617 subsystem of the kernel.
6618
6619 hda=stroke This allows you to partition the whole hard disk even when your
6620 BIOS is unable to handle large disks. This option is only used
6621 on machines with an older BIOS. Replace hda with the device
6622 that is requiring this option.
6623
6624 ide=nodma This forces the disabling of DMA in the kernel and is required
6625 by some IDE chipsets and also by some CDROM drives. If your
6626 system is having trouble reading from your IDE CDROM, try this
6627 option. This also disables the default hdparm settings from
6628 being executed.
6629
6630 noapic This disables the Advanced Programmable Interrupt Controller
6631 that is present on newer motherboards. It has been known to
6632 cause some problems on older hardware.
6633
6634 nodetect This disables all of the autodetection done by the CD,
6635 including device autodetection and DHCP probing. This is
6636 useful for doing debugging of a failing CD or driver.
6637
6638 nodhcp This disables DHCP probing on detected network cards. This is
6639 useful on networks with only static addresses.
6640
6641 nodmraid Disables support for device-mapper RAID, such as that used for
6642 on-board IDE/SATA RAID controllers.
6643
6644 nofirewire This disables the loading of Firewire modules. This should only
6645 be necessary if your Firewire hardware is causing a problem
6646 with booting the CD.
6647
6648 nogpm This disables gpm console mouse support.
6649
6650 nohotplug This disables the loading of the hotplug and coldplug init
6651 scripts at boot. This is useful for doing debugging of a
6652 failing CD or driver.
6653
6654 nokeymap This disables the keymap selection used to select non-US
6655 keyboard layouts.
6656
6657 nolapic This disables the local APIC on Uniprocessor kernels.
6658
6659 nosata This disables the loading of Serial ATA modules. This is
6660 useful if your system is having problems with the SATA subsystem.
6661
6662 nosmp This disables SMP, or Symmetric Multiprocessing, on SMP-enabled
6663 kernels. This is useful for debugging SMP-related issues with
6664 certain drivers and motherboards.
6665
6666 nosound This disables sound support and volume setting. This is useful
6667 for systems where sound support causes problems.
6668
6669 nousb This disables the autoloading of USB modules. This is useful
6670 for debugging USB issues.
6671
6672 <comment>Volume/Device Management:</comment>
6673
6674 dodevfs This enables the deprecated device filesystem on 2.6 systems.
6675 You will also need to use noudev for this to take effect.
6676 Since devfs is the only option with a 2.4 kernel, this option
6677 has no effect if booting a 2.4 kernel.
6678
6679 doevms2 This enables support for IBM's pluggable EVMS, or Enterprise
6680 Volume Management System. This is not safe to use with lvm2.
6681
6682 dolvm2 This enables support for Linux's Logical Volume Management.
6683 This is not safe to use with evms2.
6684
6685 noudev This disables udev support on 2.6 kernels. This option
6686 requires that dodevfs is used. Since udev is not an option for
6687 2.4 kernels, this options has no effect if booting a 2.4
6688 kernel.
6689
6690 unionfs Enables support for Unionfs on supported CD images. This will
6691 create a writable Unionfs overlay in a tmpfs, allowing you to
6692 change any file on the CD.
6693
6694 unionfs=X Enables support for Unionfs on supported CD images. This will
6695 create a writable Unionfs overlay on the device you specify.
6696 The device must be formatted with a filesystem recognized and
6697 writable by the kernel.
6698
6699 <comment>Other options:</comment>
6700
6701 debug Enables debugging code. This might get messy, as it displays
6702 a lot of data to the screen.
6703
6704 docache This caches the entire runtime portion of the CD into RAM,
6705 which allows you to umount /mnt/cdrom and mount another CDROM.
6706 This option requires that you have at least twice as much
6707 available RAM as the size of the CD.
6708
6709 doload=X This causes the initial ramdisk to load any module listed, as
6710 well as dependencies. Replace X with the module name. Multiple
6711 modules can be specified by a comma-separated list.
6712
6713 noload=X This causes the initial ramdisk to skip the loading of a
6714 specific module that may be causing a problem. Syntax matches
6715 that of doload.
6716
6717 nox This causes an X-enabled LiveCD to not automatically start X,
6718 but rather, to drop to the command line instead.
6719
6720 scandelay This causes the CD to pause for 10 seconds during certain
6721 portions the boot process to allow for devices that are slow to
6722 initialize to be ready for use.
6723
6724 scandelay=X This allows you to specify a given delay, in seconds, to be
6725 added to certain portions of the boot process to allow for
6726 devices that are slow to initialize to be ready for use.
6727 Replace X with the number of seconds to pause.
6728 </pre>
6729
6730 <p>
6731 Now boot your CD, select a kernel (if you are not happy with the default
6732 <c>gentoo</c> kernel) and boot options. As an example, we show you how
6733 to boot the <c>gentoo</c> kernel, with <c>dopcmcia</c> as kernel
6734 parameters:
6735 </p>
6736
6737 <pre caption="Booting an Installation CD">
6738 boot: <i>gentoo dopcmcia</i>
6739 </pre>
6740
6741 <p>
6742 You will then be greeted with a boot screen and progress bar. If you are
6743 installing Gentoo on a system with a non-US keyboard, make sure you
6744 immediately press Alt-F1 to switch to verbose mode and follow the prompt. If no
6745 selection is made in 10 seconds the default (US keyboard) will be accepted and
6746 the boot process will continue. Once the boot process completes, Gnome will
6747 start up and you will be automatically logged in to the "Live" Gentoo Linux
6748 system as "gentoo" in graphical mode. You will be logged in as "root", the
6749 superuser on the other consoles and should have a root ("#") prompt there. You
6750 can switch to those consoles by pressing Alt-F2, Alt-F3, Alt-F4 Alt-F5, Alt-F6.
6751 Get back to the graphical desktop you started on by pressing Alt-F7. To switch
6752 to other consoles from within X, you must prefix the above with Ctrl. You are
6753 able to run commands as root from any terminal within the graphical environment
6754 by using the <c>sudo</c> application. You can even become root within a
6755 terminal to perform multiple tasks.
6756 </p>
6757
6758 <pre caption="Using sudo to run applications">
6759 <comment>(Example only)</comment>
6760 <comment>(Editing the group file)</comment>
6761 # <i>sudo vi /etc/group</i>
6762 <comment>(Becoming root for a session)</comment>
6763 # <i>sudo su -</i>
6764 </pre>
6765
6766 </body>
6767 </subsection>
6768 <subsection id="hardware">
6769 <title>Extra Hardware Configuration</title>
6770 <body>
6771
6772 <p>
6773 When the LiveCD boots, it tries to detect all your hardware devices and loads
6774 the appropriate kernel modules to support your hardware. In the vast majority
6775 of cases, it does a very good job. However, in some cases, it may not auto-load
6776 the kernel modules you need. If the PCI auto-detection missed some of your
6777 system's hardware, you will have to load the appropriate kernel modules
6778 manually. These tasks require root access.
6779 </p>
6780
6781 <p>
6782 In the next example we try to load the <c>8139too</c> module (support for
6783 certain kinds of network interfaces):
6784 </p>
6785
6786 <pre caption="Loading kernel modules">
6787 # <i>modprobe 8139too</i>
6788 </pre>
6789
6790 <p>
6791 If you need PCMCIA support, you should start the <c>pcmcia</c> init script:
6792 </p>
6793
6794 <pre caption="Starting the PCMCIA init script">
6795 # <i>/etc/init.d/pcmcia start</i>
6796 </pre>
6797
6798 </body>
6799 </subsection>
6800 <subsection>
6801 <title>Optional: Tweaking Hard Disk Performance</title>
6802 <body>
6803
6804 <p>
6805 If you are an advanced user, you might want to tweak the IDE hard disk
6806 performance using <c>hdparm</c>. You will need root access to use <c>hdparm</c>.
6807 With the <c>-tT</c> options you can test the performance of your disk (execute
6808 it several times to get a more precise impression):
6809 </p>
6810
6811 <pre caption="Testing disk performance">
6812 # <i>hdparm -tT /dev/hda</i>
6813 </pre>
6814
6815 <p>
6816 To tweak, you can use any of the following examples (or experiment
6817 yourself) which use <path>/dev/hda</path> as disk (substitute with your
6818 disk):
6819 </p>
6820
6821 <pre caption="Tweaking hard disk performance">
6822 <comment>(Activate DMA:)</comment>
6823 # <i>hdparm -d 1 /dev/hda</i>
6824
6825 <comment>(Or with Safe Performance Options:)</comment>
6826 # <i>hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda</i>
6827 </pre>
6828
6829 </body>
6830 </subsection>
6831 <subsection id="useraccounts">
6832 <title>Optional: User Accounts</title>
6833 <body>
6834
6835 <p>
6836 If you plan on giving other people access to your installation environment or
6837 you want to chat using <c>irssi</c> without root privileges (for security
6838 reasons), you need to create the necessary user accounts and change the root
6839 password. You need root access to change the root password and add new users.
6840 </p>
6841
6842 <p>
6843 To change the root password, use the <c>passwd</c> utility:
6844 </p>
6845
6846 <pre caption="Changing the root password">
6847 $ <i>sudo su -</i>
6848 # <i>passwd</i>
6849 New password: <comment>(Enter your new password)</comment>
6850 Re-enter password: <comment>(Re-enter your password)</comment>
6851 </pre>
6852
6853 <p>
6854 To create a user account, we first enter their credentials, followed by its
6855 password. We use <c>useradd</c> and <c>passwd</c> for these tasks. In the next
6856 example, we create a user called "john".
6857 </p>
6858
6859 <pre caption="Creating a user account">
6860 # <i>useradd -m -G users john</i>
6861 # <i>passwd john</i>
6862 New password: <comment>(Enter john's password)</comment>
6863 Re-enter password: <comment>(Re-enter john's password)</comment>
6864 </pre>
6865
6866 <p>
6867 You can change your user id from root to the newly created user by using
6868 <c>su</c>:
6869 </p>
6870
6871 <pre caption="Changing user id">
6872 # <i>su - john</i>
6873 </pre>
6874
6875 <p>
6876 You can also change the password for the "gentoo" user in the graphical
6877 environment. This account is already suitable for use on the Internet.
6878 </p>
6879
6880 <pre caption="Changing the gentoo password">
6881 $ <i>passwd</i>
6882 New password: <comment>(Enter your new password)</comment>
6883 Re-enter password: <comment>(Re-enter your password)</comment>
6884 </pre>
6885
6886 </body>
6887 </subsection>
6888 <subsection>
6889 <title>Optional: Viewing Documentation while Installing</title>
6890 <body>
6891
6892 <p>
6893 If you want to view the Gentoo Handbook (either from-CD or online) during the
6894 installation, you can view it with Mozilla Firefox (from the graphical
6895 environment) or with <c>links</c> (from a terminal environment).
6896 </p>
6897
6898 <pre caption="Viewing the on-CD documentation with Firefox">
6899 # <i>firefox /mnt/cdrom/docs/handbook/html/index.html</i>
6900 </pre>
6901
6902 <p>
6903 If you would prefer to use <c>links</c> to see a text-only version of the
6904 handbook, make sure you have created a user account (see <uri
6905 link="#useraccounts">Optional: User Accounts</uri>). Then press <c>Alt-F2</c>
6906 to go to a new terminal and log in.
6907 </p>
6908
6909 <pre caption="Viewing the on-CD documentation with links">
6910 # <i>links /mnt/cdrom/docs/handbook/html/index.html</i>
6911 </pre>
6912
6913 <p>
6914 You can go back to your original window by pressing <c>Alt-F7</c>.
6915 </p>
6916
6917 <p>
6918 However, it is preferred that you use the online Gentoo Handbook as it will be
6919 more recent than the one provided on the CD. You can view it using Firefox or
6920 <c>links</c> as well, but only after having completed the <e>Configuring your
6921 Network</e> chapter (otherwise you won't be able to go on the Internet to view
6922 the document):
6923 </p>
6924
6925 <pre caption="Viewing the online documentation with Firefox">
6926 # <i>firefox http://www.gentoo.org/doc/en/handbook/<keyval id="online-book"/></i>
6927 </pre>
6928
6929 <pre caption="Viewing the online documentation with links">
6930 # <i>links http://www.gentoo.org/doc/en/handbook/<keyval id="online-book"/></i>
6931 </pre>
6932
6933 <p>
6934 You can now choose to proceed by using the <uri link="?part=1&amp;chap=3">GTK+
6935 based installer</uri> (which needs X) or the <uri
6936 link="?part=1&amp;chap=4">Dialog based installer</uri> that can be run on a
6937 console.
6938 </p>
6939
6940 </body>
6941 </subsection>
6942 </section>
6943 </sections>
6944
6945
6946
6947 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-gtkfe.xml
6948
6949 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-gtkfe.xml?rev=1.1&view=markup
6950 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-gtkfe.xml?rev=1.1&content-type=text/plain
6951
6952 Index: hb-install-gtkfe.xml
6953 ===================================================================
6954 <?xml version='1.0' encoding='UTF-8'?>
6955 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
6956 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-gtkfe.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
6957
6958 <!-- The content of this document is licensed under the CC-BY-SA license -->
6959 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6960
6961 <sections>
6962
6963 <version>2.0</version>
6964 <date>2006-08-30</date>
6965
6966 <section>
6967 <title>Welcome</title>
6968 <subsection>
6969 <title>Before you begin</title>
6970 <body>
6971
6972 <p>
6973 Once the Gentoo Linux Installer (GLI) has finished loading, you will be
6974 greeted by the welcome screen. It provides a friendly introduction to the
6975 process of installing Gentoo on your computer. Remember to read each option
6976 carefully. There is detailed help available for each step of installation;
6977 just click <c>Help</c> in the lower left corner of the installer. We recommend that
6978 you always read the help pages before making your choices. Note that at any
6979 time during the installation process, you can save your configuration
6980 progress in case you need to resume your installation at a later time.
6981 </p>
6982
6983 <p>
6984 There are two types of installation modes available. Choose <c>Networkless</c>
6985 to begin installing Gentoo Linux.
6986 </p>
6987
6988 <note>
6989 Selecting <c>Networkless</c> will make some later configuration options
6990 unavailable. Simply proceed to the next screen.
6991 </note>
6992
6993 </body>
6994 </subsection>
6995 </section>
6996
6997 <section>
6998 <title>Pre-installation Configuration</title>
6999 <subsection>
7000 <title>Optional: Manual Network Configuration</title>
7001 <body>
7002
7003 <p>
7004 In the next section, you are required to configure your network. The Installer
7005 should have already detected and set up your network for you, but if it didn't,
7006 you can manually configure your network. On the <e>Misc.</e> tab, you can
7007 specify a location of your choice or keep the default of
7008 <path>/var/log/installer.log</path> where the Installer will store its logs.
7009 </p>
7010
7011 </body>
7012 </subsection>
7013 <subsection>
7014 <title>Optional: Remote Installation</title>
7015 <body>
7016
7017 <p>
7018 If you wish to enable SSH access to the machine, you can start <c>sshd</c> and
7019 specify a root password.
7020 </p>
7021
7022 </body>
7023 </subsection>
7024 <subsection>
7025 <title>Optional: Load Additional Kernel Modules</title>
7026 <body>
7027
7028 <p>
7029 If you need to load more kernel modules to support your hardware, enter their
7030 names into the appropriate line, each separated by a space.
7031 </p>
7032
7033 <warn>
7034 Do not change the <e>Install mode</e> selection to anything besides
7035 <b>Normal</b>. This feature is still experimental and changing it will leave you
7036 with an unbootable system!
7037 </warn>
7038 <!-- still experimental for 2006.1? -->
7039
7040 </body>
7041 </subsection>
7042 </section>
7043
7044 <section>
7045 <title>Partitioning</title>
7046 <subsection>
7047 <title>Preparing the disks</title>
7048 <body>
7049
7050 <p>
7051 In order to install Gentoo on your machine, you will need to prepare your
7052 disks. The <e>Partitioning</e> screen will show you a list of detected disks and
7053 allow you to specify the filesystems you would like to have on your
7054 partitions. Clicking <c>Clear partitions</c> will erase all previous partitions on
7055 your disk, so be careful with this option! It is also possible to resize
7056 certain partition types.
7057 </p>
7058
7059 <p>
7060 If you choose to go with the <c>Recommended layout</c>, the installer will
7061 create three partitions: 100MB for <path>/boot</path>, a <path>/swap</path>
7062 partition up to 512MB in size, and the rest of the available space on the disk
7063 is used for <path>/</path>, the root partition. If you have more than 4GB of
7064 unpartitioned space, using the "Recommended layout" will automatically configure
7065 your partitions without destroying any data on any existing partitions.
7066 </p>
7067
7068 </body>
7069 </subsection>
7070 </section>
7071
7072 <section>
7073 <title>Network Mounts</title>
7074 <subsection>
7075 <title>Optional: Define network mounts</title>
7076 <body>
7077
7078 <p>
7079 This screen lets you set up and use any existing network mounts during and after
7080 installation. Click <c>New</c> to begin configuration. At this time, only NFS is
7081 supported.
7082 </p>
7083
7084 </body>
7085 </subsection>
7086 </section>
7087
7088 <section>
7089 <title>make.conf</title>
7090 <subsection>
7091 <title>USE flags</title>
7092 <body>
7093
7094 <p>
7095 Since you are performing a GRP/networkless install, you will not be allowed
7096 to select USE flags before installation. However, you are free to set your own
7097 USE flags in <path>/etc/make.conf</path> after you have rebooted into your
7098 finished system.
7099 </p>
7100
7101 </body>
7102 </subsection>
7103 <subsection>
7104 <title>CFLAGS</title>
7105 <body>
7106
7107 <p>
7108 You should, however, select your processor type in the <e>CFLAGS</e> section along
7109 with any custom optimizations you may want, such as <c>-O2</c> and
7110 <c>-pipe</c>.
7111 </p>
7112
7113 </body>
7114 </subsection>
7115 <subsection>
7116 <title>Other</title>
7117 <body>
7118
7119 <p>
7120 Any other options you wish to set for future use should be selected now.
7121 <e>Build binary packages</e> creates ready-to-install binary tarballs of all
7122 packages you compile on your system. <e>DistCC</e> allows you to share the
7123 burden of compiling with another computer via your network connection.
7124 <e>ccache</e> saves compiled code for later use, and thus can greatly speed up
7125 compilation time if you re-install the same package.
7126 </p>
7127
7128 <p>
7129 You will not be allowed to change your <e>CHOST</e>, as this can seriously damage
7130 your installation. In <e>MAKEOPTS</e> you define how many parallel compilations
7131 should occur when you install a package. A good choice is the number of CPUs
7132 in your system plus one, but this guideline isn't always perfect. On a
7133 uniprocessor system, <c>-j2</c> might be used.
7134 </p>
7135
7136 </body>
7137 </subsection>
7138 </section>
7139
7140 <section>
7141 <title>Kernel Sources</title>
7142 <subsection>
7143 <title>Using the LiveCD kernel</title>
7144 <body>
7145
7146 <p>
7147 You must use the kernel present on the LiveCD for the GRP/networkless install.
7148 This is merely a <c>gentoo-sources</c> kernel compiled by <c>genkernel</c>,
7149 Gentoo's automated kernel compilation utility and will give you a kernel that
7150 automatically detects and configures your hardware upon boot.
7151 </p>
7152
7153 <p>
7154 If you want to have a nifty background image during system boot, select the
7155 <c>Enable bootsplash</c> option.
7156 </p>
7157
7158 </body>
7159 </subsection>
7160 </section>
7161
7162 <section>
7163 <title>Bootloader</title>
7164 <subsection>
7165 <title>Making your choice</title>
7166 <body>
7167
7168 <p>
7169 This screen allows to you choose your bootloader and, optionally, specify
7170 additional kernel parameters that will be used at bootup.
7171 </p>
7172
7173 <p>
7174 You may specify which disk to boot from by choosing the appropriate option
7175 from <e>Boot Drive</e>. In Linux, the first IDE disk in your system is called
7176 <c>hda</c>, the second IDE disk is <c>hdb</c>, and so on. If you have SATA or
7177 SCSI disks, they will be called <c>sda</c>, <c>sdb</c>, etc. Please make the
7178 correct selection for your system.
7179 </p>
7180 <!-- more bootloader inclusions needed about vga, etc. just don't include pure
7181 CLI stuff, but only what can go on the extra kernel params line -->
7182 <p>
7183 If you need to pass any additional options to the kernel, such as video and/or
7184 VGA statements, simply add them to the "Extra kernel parameters" section.
7185 </p>
7186
7187 <p>
7188 If you jumpered your harddrive because the BIOS can't handle large harddrives
7189 you'll need to append <c>hdx=stroke</c>. If you have SCSI devices, you should
7190 add <c>doscsi</c> as a kernel option.
7191 </p>
7192
7193 <!-- do we need to cover all the stuff about lilo/grub and kernel parameter
7194 lines and/or block devices here? -->
7195
7196 </body>
7197 </subsection>
7198 </section>
7199
7200 <section>
7201 <title>Timezone</title>
7202 <subsection>
7203 <title>Choose your timezone</title>
7204 <body>
7205
7206 <p>
7207 Study the map and select the region closest to your actual location. Later,
7208 you will be asked to select if you want your clock to be set to UTC or local
7209 time.
7210 </p>
7211
7212 </body>
7213 </subsection>
7214 </section>
7215
7216 <section>
7217 <title>Networking</title>
7218 <subsection>
7219 <title>Device information</title>
7220 <body>
7221
7222 <p>
7223 On this screen, you will be able to configure the various network interface
7224 devices on your computer. Read the available options carefully.
7225 </p>
7226
7227 <p>
7228 On the <e>Hostname/Proxy Information/Other</e> tab, you will need to choose a
7229 hostname for your machine. You may also specify proxy server and DNS settings
7230 if needed.
7231 </p>
7232
7233 </body>
7234 </subsection>
7235 </section>
7236
7237 <section>
7238 <title>Daemons</title>
7239 <subsection>
7240 <title>Cron daemon</title>
7241 <body>
7242
7243 <p>
7244 Cron daemons are helpful programs that run tasks at scheduled times. While you
7245 do not <e>need</e> to install one, they can be quite useful.
7246 </p>
7247
7248 </body>
7249 </subsection>
7250 <subsection>
7251 <title>System logger</title>
7252 <body>
7253
7254 <p>
7255 A system logger is a necessity for any Linux operating system. Make your
7256 selection from the available choices.
7257 </p>
7258
7259 </body>
7260 </subsection>
7261 </section>
7262
7263 <section>
7264 <title>Extra Packages</title>
7265 <subsection>
7266 <title>Optional: installing extra packages</title>
7267 <body>
7268
7269 <p>
7270 The LiveCD contains a number of available pre-built packages. If you wish to
7271 install any of them, check the appropriate box.
7272 </p>
7273
7274 </body>
7275 </subsection>
7276 </section>
7277
7278 <section>
7279 <title>Startup Services</title>
7280 <subsection>
7281 <body>
7282
7283 <p>
7284 This screen allows you to choose various services to load at system boot.
7285 Study the available options and their descriptions carefully, and then select
7286 your desired services. For example, if you have chosen to install
7287 <c>xorg-x11</c> and want to boot straight into a graphical desktop, then you
7288 would select "xdm" from the list.
7289 </p>
7290
7291 </body>
7292 </subsection>
7293 </section>
7294
7295 <section>
7296 <title>Other Settings</title>
7297 <subsection>
7298 <title>Miscellaneous options</title>
7299 <body>
7300
7301 <p>
7302 Now you will be able to change various settings, including keyboard layout,
7303 graphical display manager, the default editor, and whether to set your
7304 hardware clock to UTC or local time.
7305 </p>
7306
7307 </body>
7308 </subsection>
7309 </section>
7310
7311 <section>
7312 <title>Users</title>
7313 <subsection>
7314 <title>Adding users and groups</title>
7315 <body>
7316
7317 <p>
7318 First set the root password for the system administrator (the <e>root</e>
7319 user).
7320 </p>
7321
7322 <p>
7323 We <e>strongly</e> recommend that you create a regular user for daily work.
7324 Working as root all the time is <e>dangerous</e> and should be avoided! Create
7325 your users, add them to the appropriate groups, and set their passwords. You
7326 can optionally change their home directories, select their login shell, and
7327 set helpful comments.
7328 </p>
7329
7330 </body>
7331 </subsection>
7332 </section>
7333
7334 <section>
7335 <title>Review</title>
7336 <subsection>
7337 <title>Finishing up</title>
7338 <body>
7339
7340 <p>
7341 Please take the time to double-check each step of the installation process,
7342 ensuring that your system is properly configured. When you have finished
7343 reviewing, you may save your progress and exit, or click <c>Install</c> to begin
7344 automatically installing Gentoo.
7345 </p>
7346
7347 <p>
7348 You are free to browse around on the LiveCD while the installation proceeds.
7349 The installer window will alert you when it has finished. At that point, can
7350 close the window by clicking the <c>x</c> in the top right corner. When you are
7351 ready, you may log out and reboot. Make sure you remove the LiveCD during the
7352 reboot.
7353 </p>
7354
7355 <p>
7356 Congratulations, your system is now fully equipped! Continue with <uri
7357 link="?part=1&amp;chap=5">Where to go from here?</uri> to learn more about
7358 Gentoo.
7359 </p>
7360
7361 </body>
7362 </subsection>
7363 </section>
7364 </sections>
7365
7366
7367
7368 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-hppa-bootloader.xml
7369
7370 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-hppa-bootloader.xml?rev=1.1&view=markup
7371 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-hppa-bootloader.xml?rev=1.1&content-type=text/plain
7372
7373 Index: hb-install-hppa-bootloader.xml
7374 ===================================================================
7375 <?xml version='1.0' encoding='UTF-8'?>
7376 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
7377
7378 <!-- The content of this document is licensed under the CC-BY-SA license -->
7379 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
7380
7381 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-hppa-bootloader.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
7382
7383 <sections>
7384
7385 <version>7.0</version>
7386 <date>2006-08-30</date>
7387
7388 <section>
7389 <title>Installing PALO</title>
7390 <body>
7391
7392 <p>
7393 On the PA-RISC platform, the boot loader is called palo. You can find
7394 the configuration file in <path>/etc/palo.conf</path>. Here is a sample
7395 configuration:
7396 </p>
7397
7398 <pre caption = "/etc/palo.conf example">
7399 --commandline=2/kernel-2.6.16.18-pa11 root=/dev/sda4
7400 --recoverykernel=/vmlinux.old
7401 --init-partitioned=/dev/sda
7402 </pre>
7403
7404 <p>
7405 The first line tells palo the location of the kernel and which boot parameters
7406 it must use. <c>2/kernel-2.6.16.18-pa11</c> means the kernel named
7407 <c>kernel-2.6.16.18-pa11</c> resides on the second partition. Beware, the path
7408 to the kernel is relative to the partition, not to the root of your filesystem.
7409 </p>
7410
7411 <p>
7412 The second line indicates which recovery kernel to use. If it is your
7413 first install and you do not have a recovery kernel, please comment this
7414 out. The third line indicates on which disk palo will reside.
7415 </p>
7416
7417 <p>
7418 When configuration is done, just run <c>palo</c>.
7419 </p>
7420
7421 <pre caption = "Applying the PALO configuration">
7422 # <i>palo</i>
7423 </pre>
7424
7425 <p>
7426 Now continue with <uri link="#reboot">Rebooting the System</uri>.
7427 </p>
7428
7429 </body>
7430 </section>
7431 <section id="reboot">
7432 <title>Rebooting the System</title>
7433 <subsection>
7434 <body>
7435
7436 <p>
7437 Exit the chrooted environment and unmount all mounted partitions. Then type in
7438 that one magical command you have been waiting for: <c>reboot</c>.
7439 </p>
7440
7441 <pre caption="Exiting the chroot, unmounting all partitions and rebooting">
7442 # <i>exit</i>
7443 cdimage ~# <i>cd</i>
7444 cdimage ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo</i>
7445 cdimage ~# <i>reboot</i>
7446 </pre>
7447
7448 <p>
7449 Of course, don't forget to remove the bootable CD, otherwise the CD will be
7450 booted again instead of your new Gentoo system.
7451 </p>
7452
7453 <p>
7454 Once rebooted in your Gentoo installation, finish up with <uri
7455 link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
7456 </p>
7457
7458 </body>
7459 </subsection>
7460 </section>
7461 </sections>
7462
7463
7464
7465 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-hppa-disk.xml
7466
7467 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-hppa-disk.xml?rev=1.1&view=markup
7468 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-hppa-disk.xml?rev=1.1&content-type=text/plain
7469
7470 Index: hb-install-hppa-disk.xml
7471 ===================================================================
7472 <?xml version='1.0' encoding='UTF-8'?>
7473 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
7474
7475 <!-- The content of this document is licensed under the CC-BY-SA license -->
7476 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
7477
7478 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-hppa-disk.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
7479
7480 <sections>
7481
7482 <version>7.0</version>
7483 <date>2006-08-30</date>
7484
7485 <section>
7486 <title>Introduction to Block Devices</title>
7487 <subsection>
7488 <title>Block Devices</title>
7489 <body>
7490
7491 <p>
7492 We'll take a good look at disk-oriented aspects of Gentoo Linux
7493 and Linux in general, including Linux filesystems, partitions and block devices.
7494 Then, once you're familiar with the ins and outs of disks and filesystems,
7495 you'll be guided through the process of setting up partitions and filesystems
7496 for your Gentoo Linux installation.
7497 </p>
7498
7499 <p>
7500 To begin, we'll introduce <e>block devices</e>. The most famous block device is
7501 probably the one that represents the first SCSI HD in a Linux system, namely
7502 <path>/dev/sda</path>.
7503 </p>
7504
7505 <p>
7506 The block devices above represent an abstract interface to the disk. User
7507 programs can use these block devices to interact with your disk without worrying
7508 about whether your drives are IDE, SCSI or something else. The program can
7509 simply address the storage on the disk as a bunch of contiguous,
7510 randomly-accessible 512-byte blocks.
7511 </p>
7512
7513 </body>
7514 </subsection>
7515 <subsection>
7516 <title>Partitions and Slices</title>
7517 <body>
7518
7519 <p>
7520 Although it is theoretically possible to use a full disk to house your Linux
7521 system, this is almost never done in practice. Instead, full disk block devices
7522 are split up in smaller, more manageable block devices. On most systems,
7523 these are called <e>partitions</e>. Other architectures use a similar technique,
7524 called <e>slices</e>.
7525 </p>
7526
7527 </body>
7528 </subsection>
7529 </section>
7530 <section>
7531 <title>Designing a Partitioning Scheme</title>
7532 <subsection>
7533 <title>How Many and How Big?</title>
7534 <body>
7535
7536 <p>
7537 The number of partitions is highly dependent on your environment. For instance,
7538 if you have lots of users, you will most likely want to have your
7539 <path>/home</path> separate as it increases security and makes backups easier.
7540 If you are installing Gentoo to perform as a mailserver, your
7541 <path>/var</path> should be separate as all mails are stored inside
7542 <path>/var</path>. A good choice of filesystem will then maximise your
7543 performance. Gameservers will have a separate <path>/opt</path> as most gaming
7544 servers are installed there. The reason is similar for <path>/home</path>:
7545 security and backups. You will definitely want to keep <path>/usr</path> big:
7546 not only will it contain the majority of applications, the Portage tree alone
7547 takes around 500 Mbyte excluding the various sources that are stored in it.
7548 </p>
7549
7550 <p>
7551 As you can see, it very much depends on what you want to achieve. Separate
7552 partitions or volumes have the following advantages:
7553 </p>
7554
7555 <ul>
7556 <li>
7557 You can choose the best performing filesystem for each partition or volume
7558 </li>
7559 <li>
7560 Your entire system cannot run out of free space if one defunct tool is
7561 continuously writing files to a partition or volume
7562 </li>
7563 <li>
7564 If necessary, file system checks are reduced in time, as multiple checks can
7565 be done in parallel (although this advantage is more with multiple disks than
7566 it is with multiple partitions)
7567 </li>
7568 <li>
7569 Security can be enhanced by mounting some partitions or volumes read-only,
7570 nosuid (setuid bits are ignored), noexec (executable bits are ignored) etc.
7571 </li>
7572 </ul>
7573
7574 <p>
7575 However, multiple partitions have one big disadvantage: if not configured
7576 properly, you might result in having a system with lots
7577 of free space on one partition and none on another. There is also a 15-partition
7578 limit for SCSI and SATA.
7579 </p>
7580
7581 </body>
7582 </subsection>
7583 </section>
7584 <section>
7585 <title>Using fdisk on HPPA to Partition your Disk</title>
7586 <body>
7587
7588 <p>
7589 Use <c>fdisk</c> to create the partitions you want:
7590 </p>
7591
7592 <pre caption="Partitioning the disk">
7593 # <i>fdisk /dev/sda</i>
7594 </pre>
7595
7596 <p>
7597 HPPA machines use the PC standard DOS partition tables. To create a new
7598 DOS partition table, simply use the <c>o</c> command.
7599 </p>
7600
7601 <pre caption="Creating a DOS partition table">
7602 # <i>fdisk /dev/sda</i>
7603
7604 Command (m for help): <i>o</i>
7605 Building a new DOS disklabel.
7606 </pre>
7607
7608 <p>
7609 PALO (the HPPA bootloader) needs a special partition to work. You have
7610 to create a partition of at least 16MB at the beginning of your disk.
7611 The partition type must be of type <e>f0</e> (Linux/PA-RISC boot).
7612 </p>
7613
7614 <impo>
7615 If you ignore this and continue without a special PALO partition, your system
7616 will stop loving you and fail to start. Also, if your disk is larger than 2GB,
7617 make sure that the boot partition is in the first 2GB of your disk. PALO is
7618 unable to read a kernel after the 2GB limit.
7619 </impo>
7620
7621 <pre caption="A simple default partition schema">
7622 # <i>cat /etc/fstab</i>
7623 /dev/sda2 /boot ext3 noauto,noatime 1 1
7624 /dev/sda3 none swap sw 0 0
7625 /dev/sda4 / ext3 noatime 0 0
7626
7627 # <i>fdisk /dev/sda</i>
7628
7629 Command (m for help): <i>p</i>
7630
7631 Disk /dev/sda: 4294 MB, 4294816768 bytes
7632 133 heads, 62 sectors/track, 1017 cylinders
7633 Units = cylinders of 8246 * 512 = 4221952 bytes
7634
7635 Device Boot Start End Blocks Id System
7636 /dev/sda1 1 8 32953 f0 Linux/PA-RISC boot
7637 /dev/sda2 9 20 49476 83 Linux
7638 /dev/sda3 21 70 206150 82 Linux swap
7639 /dev/sda4 71 1017 3904481 83 Linux
7640 </pre>
7641
7642 <p>
7643 Now that your partitions are created, you can now continue with <uri
7644 link="#filesystems">Creating Filesystems</uri>.
7645 </p>
7646
7647 </body>
7648 </section>
7649 <section id="filesystems">
7650 <title>Creating Filesystems</title>
7651 <subsection>
7652 <title>Introduction</title>
7653 <body>
7654
7655 <p>
7656 Now that your partitions are created, it is time to place a filesystem on them.
7657 If you don't care about what filesystem to choose and are happy with what we use
7658 as default in this handbook, continue with <uri
7659 link="#filesystems-apply">Applying a Filesystem to a Partition</uri>.
7660 Otherwise read on to learn about the available filesystems...
7661 </p>
7662
7663 </body>
7664 </subsection>
7665 <subsection>
7666 <title>Filesystems?</title>
7667 <body>
7668
7669 <p>
7670 Several filesystems are available. Ext2, ext3, XFS and reiserfs are found stable on
7671 the HPPA architecture. The others are very experimental.
7672 </p>
7673
7674 <p>
7675 <b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata
7676 journaling, which means that routine ext2 filesystem checks at startup time can
7677 be quite time-consuming. There is now quite a selection of newer-generation
7678 journaled filesystems that can be checked for consistency very quickly and are
7679 thus generally preferred over their non-journaled counterparts. Journaled
7680 filesystems prevent long delays when you boot your system and your filesystem
7681 happens to be in an inconsistent state.
7682 </p>
7683
7684 <p>
7685 <b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata
7686 journaling for fast recovery in addition to other enhanced journaling modes like
7687 full data and ordered data journaling. ext3 is a very good and reliable
7688 filesystem.
7689 </p>
7690
7691 <p>
7692 <b>ReiserFS</b> is a B*-tree based filesystem that has very good overall
7693 performance and greatly outperforms both ext2 and ext3 when dealing with small
7694 files (files less than 4k), often by a factor of 10x-15x. ReiserFS also scales
7695 extremely well and has metadata journaling. As of kernel 2.4.18+, ReiserFS is
7696 solid and usable as both general-purpose filesystem and for extreme cases such
7697 as the creation of large filesystems, the use of many small files, very large
7698 files and directories containing tens of thousands of files.
7699 </p>
7700
7701 <p>
7702 <b>XFS</b> is a filesystem with metadata journaling which comes with a robust
7703 feature-set and is optimized for scalability. We only recommend using this
7704 filesystem on Linux systems with high-end SCSI and/or fibre channel storage and
7705 an uninterruptible power supply. Because XFS aggressively caches in-transit data
7706 in RAM, improperly designed programs (those that don't take proper precautions
7707 when writing files to disk and there are quite a few of them) can lose a good
7708 deal of data if the system goes down unexpectedly.
7709 </p>
7710
7711 <p>
7712 <b>JFS</b> is IBM's high-performance journaling filesystem. It has recently
7713 become production-ready and there hasn't been a sufficient track record to
7714 comment positively nor negatively on its general stability at this point.
7715 </p>
7716
7717 </body>
7718 </subsection>
7719 <subsection id="filesystems-apply">
7720 <title>Applying a Filesystem to a Partition</title>
7721 <body>
7722
7723 <p>
7724 To create a filesystem on a partition or volume, there are tools available for
7725 each possible filesystem:
7726 </p>
7727
7728 <table>
7729 <tr>
7730 <th>Filesystem</th>
7731 <th>Creation Command</th>
7732 </tr>
7733 <tr>
7734 <ti>ext2</ti>
7735 <ti><c>mke2fs</c></ti>
7736 </tr>
7737 <tr>
7738 <ti>ext3</ti>
7739 <ti><c>mke2fs -j</c></ti>
7740 </tr>
7741 <tr>
7742 <ti>reiserfs</ti>
7743 <ti><c>mkreiserfs</c></ti>
7744 </tr>
7745 <tr>
7746 <ti>xfs</ti>
7747 <ti><c>mkfs.xfs</c></ti>
7748 </tr>
7749 <tr>
7750 <ti>jfs</ti>
7751 <ti><c>mkfs.jfs</c></ti>
7752 </tr>
7753 </table>
7754
7755 <p>
7756 For instance, to have the boot partition (<path>/dev/sda2</path> in our
7757 example) in ext2 and the root partition (<path>/dev/sda4</path> in our example)
7758 in ext3 (as in our example), you would use:
7759 </p>
7760
7761 <pre caption="Applying a filesystem on a partition">
7762 # <i>mke2fs /dev/sda2</i>
7763 # <i>mke2fs -j /dev/sda4</i>
7764 </pre>
7765
7766 <p>
7767 Now create the filesystems on your newly created partitions (or logical
7768 volumes).
7769 </p>
7770
7771 </body>
7772 </subsection>
7773 <subsection>
7774 <title>Activating the Swap Partition</title>
7775 <body>
7776
7777 <p>
7778 <c>mkswap</c> is the command that is used to initialize swap partitions:
7779 </p>
7780
7781 <pre caption="Creating a Swap signature">
7782 # <i>mkswap /dev/sda3</i>
7783 </pre>
7784
7785 <p>
7786 To activate the swap partition, use <c>swapon</c>:
7787 </p>
7788
7789 <pre caption="Activating the swap partition">
7790 # <i>swapon /dev/sda3</i>
7791 </pre>
7792
7793 <p>
7794 Create and activate the swap now.
7795 </p>
7796
7797 </body>
7798 </subsection>
7799 </section>
7800 <section>
7801 <title>Mounting</title>
7802 <body>
7803
7804 <p>
7805 Now that your partitions are initialized and are housing a filesystem, it is
7806 time to mount those partitions. Use the <c>mount</c> command. Don't forget to
7807 create the necessary mount directories for every partition you created. As an
7808 example we mount the root and boot partition:
7809 </p>
7810
7811 <pre caption="Mounting partitions">
7812 # <i>mount /dev/sda4 /mnt/gentoo</i>
7813 # <i>mkdir /mnt/gentoo/boot</i>
7814 # <i>mount /dev/sda2 /mnt/gentoo/boot</i>
7815 </pre>
7816
7817 <note>
7818 If you want your <path>/tmp</path> to reside on a separate partition, be sure to
7819 change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This
7820 also holds for <path>/var/tmp</path>.
7821 </note>
7822
7823 <p>
7824 We will also have to mount the proc filesystem (a virtual interface with the
7825 kernel) on <path>/proc</path>. But first we will need to place our files on the partitions.
7826 </p>
7827
7828 <p>
7829 Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
7830 Installation Files</uri>.
7831 </p>
7832
7833 </body>
7834 </section>
7835 </sections>
7836
7837
7838
7839 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-hppa-kernel.xml
7840
7841 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-hppa-kernel.xml?rev=1.1&view=markup
7842 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-hppa-kernel.xml?rev=1.1&content-type=text/plain
7843
7844 Index: hb-install-hppa-kernel.xml
7845 ===================================================================
7846 <?xml version='1.0' encoding='UTF-8'?>
7847 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
7848
7849 <!-- The content of this document is licensed under the CC-BY-SA license -->
7850 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
7851
7852 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-hppa-kernel.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
7853
7854 <sections>
7855
7856 <version>7.0</version>
7857 <date>2006-08-30</date>
7858
7859 <section>
7860 <title>Timezone</title>
7861 <body>
7862
7863 <p>
7864 You first need to select your timezone so that your system knows where it is
7865 located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy
7866 it to <path>/etc/localtime</path>. Please avoid the
7867 <path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not
7868 indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8.
7869 </p>
7870
7871 <pre caption="Setting the timezone information">
7872 # <i>ls /usr/share/zoneinfo</i>
7873 <comment>(Suppose you want to use GMT)</comment>
7874 # <i>cp /usr/share/zoneinfo/GMT /etc/localtime</i>
7875 </pre>
7876
7877 </body>
7878 </section>
7879 <section>
7880 <title>Installing the Sources</title>
7881 <subsection>
7882 <title>Choosing a Kernel</title>
7883 <body>
7884
7885 <p>
7886 The core around which all distributions are built is the Linux kernel. It is the
7887 layer between the user programs and your system hardware. Gentoo provides its
7888 users several possible kernel sources. A full listing with description is
7889 available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel
7890 Guide</uri>.
7891 </p>
7892
7893 <p>
7894 For HPPA we have <c>hppa-sources</c>. Default these sources are based on the
7895 2.6 kernel sources. If you want to install a 2.4 kernel, you will need to
7896 install Gentoo from a working Internet connection as we do not supply those
7897 sources on our Installation CD. Continue by installing the kernel source. The
7898 <c>USE="-doc"</c> is necessary to avoid installing xorg-x11 or other
7899 dependencies at this point. <c>USE="symlink"</c> is not necessary for a new
7900 install, but ensures proper creation of the <path>/usr/src/linux</path>
7901 symlink.
7902 </p>
7903
7904 <pre caption="Installing a kernel source">
7905 # <i>USE="-doc symlink" emerge hppa-sources</i>
7906 </pre>
7907
7908 <p>
7909 When you take a look in <path>/usr/src</path> you should see a symlink called
7910 <path>linux</path> pointing to your kernel source. In this case, the installed
7911 kernel source points to <c>hppa-sources-2.6.16.18-pa11</c>. Your version may be
7912 different, so keep this in mind.
7913 </p>
7914
7915 <pre caption="Viewing the kernel source symlink">
7916 # <i>ls -l /usr/src/linux</i>
7917 lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; hppa-sources-2.6.16.18-pa11
7918 </pre>
7919
7920 <p>
7921 Now it is time to configure and compile your kernel source. All architectures
7922 can use <c>genkernel</c> for this, which will build a generic kernel as used
7923 by the Installation CD. We explain the "manual" configuration first though, as
7924 it is the best way to optimize your environment.
7925 </p>
7926
7927 <p>
7928 If you want to manually configure your kernel, continue now with <uri
7929 link="#manual">Default: Manual Configuration</uri>. If you want to use
7930 <c>genkernel</c> you should read <uri link="#genkernel">Alternative: Using
7931 genkernel</uri> instead.
7932 </p>
7933
7934 </body>
7935 </subsection>
7936 </section>
7937 <section id="manual">
7938 <title>Default: Manual Configuration</title>
7939 <subsection>
7940 <title>Introduction</title>
7941 <body>
7942
7943 <p>
7944 Manually configuring a kernel is often seen as the most difficult procedure a
7945 Linux user ever has to perform. Nothing is less true -- after configuring a
7946 couple of kernels you don't even remember that it was difficult ;)
7947 </p>
7948
7949 <p>
7950 However, one thing <e>is</e> true: you must know your system when you start
7951 configuring a kernel manually. Most information can be gathered by emerging
7952 pciutils (<c>emerge pciutils</c>) which contains <c>lspci</c>. You will now
7953 be able to use <c>lspci</c> within the chrooted environment. You may safely
7954 ignore any <e>pcilib</e> warnings (like pcilib: cannot open
7955 /sys/bus/pci/devices) that <c>lspci</c> throws out. Alternatively, you can run
7956 <c>lspci</c> from a <e>non-chrooted</e> environment. The results are the same.
7957 You can also run <c>lsmod</c> to see what kernel modules the Installation CD
7958 uses (it might provide you with a nice hint on what to enable).
7959 </p>
7960
7961 <p>
7962 Now go to your kernel source directory and execute <c>make menuconfig</c>. This
7963 will fire up an ncurses-based configuration menu.
7964 </p>
7965
7966 <pre caption="Invoking menuconfig">
7967 # <i>cd /usr/src/linux</i>
7968 # <i>make menuconfig</i>
7969 </pre>
7970
7971 <p>
7972 You will be greeted with several configuration sections. We'll first list some
7973 options you must activate (otherwise Gentoo will not function, or not function
7974 properly without additional tweaks).
7975 </p>
7976
7977 </body>
7978 </subsection>
7979 <subsection>
7980 <title>Activating Required Options</title>
7981 <body>
7982
7983 <p>
7984 First of all, activate the use of development and experimental code/drivers.
7985 You need this, otherwise some very important code/drivers won't show up:
7986 </p>
7987
7988 <pre caption="Selecting experimental code/drivers">
7989 Code maturity level options ---&gt;
7990 [*] Prompt for development and/or incomplete code/drivers
7991 </pre>
7992
7993 <p>
7994 Now go to <c>File Systems</c> and select support for the filesystems you use.
7995 <e>Don't</e> compile them as modules, otherwise your Gentoo system will not be
7996 able to mount your partitions. Also select <c>Virtual memory</c> and <c>/proc
7997 file system</c>.
7998 </p>
7999
8000 <pre caption="Selecting necessary file systems">
8001 File systems ---&gt;
8002 Pseudo Filesystems ---&gt;
8003 [*] /proc file system support
8004 [*] Virtual memory file system support (former shm fs)
8005
8006 <comment>(Select one or more of the following options as needed by your system)</comment>
8007 &lt;*&gt; Reiserfs support
8008 &lt;*&gt; Ext3 journalling file system support
8009 &lt;*&gt; JFS filesystem support
8010 &lt;*&gt; Second extended fs support
8011 &lt;*&gt; XFS filesystem support
8012 </pre>
8013
8014 <p>
8015 If you are using PPPoE to connect to the Internet or you are using a dial-up
8016 modem, you will need the following options in the kernel:
8017 </p>
8018
8019 <pre caption="Selecting PPPoE necessary drivers">
8020 Device Drivers ---&gt;
8021 Networking support ---&gt;
8022 &lt;*&gt; PPP (point-to-point protocol) support
8023 &lt;*&gt; PPP support for async serial ports
8024 &lt;*&gt; PPP support for sync tty ports
8025 </pre>
8026
8027 <p>
8028 The two compression options won't harm but are not definitely needed, neither
8029 does the <c>PPP over Ethernet</c> option, that might only be used by
8030 <c>rp-pppoe</c> when configured to do kernel mode PPPoE.
8031 </p>
8032
8033 <p>
8034 If you require it, don't forget to include support in the kernel for your
8035 ethernet card.
8036 </p>
8037
8038 <p>
8039 If you have a HIL mouse or keyboard, do not forget to compile in support for
8040 them.
8041 </p>
8042
8043 <pre caption="Activating HIL support">
8044 Input core support ---&gt;
8045 [*] Keyboard support
8046 [*] Mouse support
8047 [*] Event interface support
8048 </pre>
8049
8050 <p>
8051 If you have no mouse on your HIL port, only use the basic support:
8052 </p>
8053
8054 <pre caption="Basic HIL support">
8055 HIL support ---&gt;
8056 [*] HIL Keyboard (basic) support
8057 </pre>
8058
8059 <p>
8060 If you however want <e>full</e> HIL support, select the following options:
8061 </p>
8062
8063 <pre caption="Full HIL support">
8064 HIL support ---&gt;
8065 [*] HP System Device Controller i8042 Support
8066 [*] HIL MLC Support
8067 [*] HIL Keyboard (full) support
8068 [*] HIL Mouse &amp; Pointer support
8069 </pre>
8070
8071 <p>
8072 Also include display driver support:
8073 </p>
8074
8075 <pre caption="Display Driver support">
8076 Graphics support ---&gt;
8077 [*] Support for frame buffer devices
8078 [*] HP STI frame buffer device support
8079 Console display driver support ---&gt;
8080 [*] STI text console
8081 </pre>
8082
8083 <p>
8084 When you're done configuring your kernel, continue with <uri
8085 link="#compiling">Compiling and Installing</uri>.
8086 </p>
8087
8088 </body>
8089 </subsection>
8090 <subsection id="compiling">
8091 <title>Compiling and Installing</title>
8092 <body>
8093
8094 <p>
8095 Now that your kernel is configured, it is time to compile and install it. Exit
8096 the configuration and start the compilation process:
8097 </p>
8098
8099 <pre caption="Compiling the kernel">
8100 # <i>make &amp;&amp; make modules_install</i>
8101 </pre>
8102
8103 <p>
8104 When the kernel has finished compiling, copy the kernel image to
8105 <path>/boot</path>. Use whatever name you feel is appropriate for your kernel
8106 choice and remember it as you will need it later on when you configure your
8107 bootloader. Remember to replace <path>&lt;kernel-version&gt;</path> with the
8108 name and version of your kernel.
8109 </p>
8110
8111 <pre caption="Installing the kernel">
8112 # <i>cp vmlinux /boot/&lt;kernel-version&gt;</i>
8113 </pre>
8114
8115 <p>
8116 Now continue with <uri link="#kernel_modules">Configuring Kernel
8117 Modules</uri>.
8118 </p>
8119
8120 </body>
8121 </subsection>
8122 </section>
8123 <section id="genkernel">
8124 <title>Alternative: Using genkernel</title>
8125 <body>
8126
8127 <p>
8128 If you are reading this section, you have chosen to use our <c>genkernel</c>
8129 script to configure your kernel for you.
8130 </p>
8131
8132 <p>
8133 Now that your kernel source tree is installed, it's now time to compile your
8134 kernel by using our <c>genkernel</c> script to automatically build a kernel for
8135 you. <c>genkernel</c> works by configuring a kernel nearly identically to the
8136 way our Installation CD kernel is configured. This means that when you use
8137 <c>genkernel</c> to build your kernel, your system will generally detect all
8138 your hardware at boot-time, just like our Installation CD does. Because genkernel
8139 doesn't require any manual kernel configuration, it is an ideal solution for
8140 those users who may not be comfortable compiling their own kernels.
8141 </p>
8142
8143 <p>
8144 Now, let's see how to use genkernel. First, emerge the genkernel ebuild:
8145 </p>
8146
8147 <pre caption="Emerging genkernel">
8148 # <i>emerge genkernel</i>
8149 </pre>
8150
8151 <p>
8152 Now, compile your kernel sources by running <c>genkernel all</c>.
8153 Be aware though, as <c>genkernel</c> compiles a kernel that supports almost all
8154 hardware, this compilation will take quite a while to finish!
8155 </p>
8156
8157 <p>
8158 Note that, if your boot partition doesn't use ext2 or ext3 as filesystem you
8159 need to manually configure your kernel using <c>genkernel --menuconfig all</c>
8160 and add support for your filesystem <e>in</e> the kernel (i.e. <e>not</e> as a
8161 module).
8162 </p>
8163
8164 <pre caption="Running genkernel">
8165 # <i>genkernel all</i>
8166 <comment>(Output removed to increase readability)</comment>
8167 * Kernel compiled successfully!
8168 * Required Kernel Params:
8169 * : root=/dev/ram0 init=/linuxrc real_root=/dev/$ROOT
8170 * where $ROOT is the devicenode for your root partition as
8171 * you should have specified in /etc/fstab
8172 *
8173 * You MUST tell your bootloader to use the generated initrd
8174 *
8175 * Recommended Kernel Params:
8176 * : vga=0x317 splash=verbose
8177 *
8178 * Do NOT report kernel bugs (configs included) as genkernel bugs.
8179 * Make sure you have the latest genkernel before reporting bugs
8180 *
8181 * For more info see /usr/share/genkernel/README
8182 </pre>
8183
8184 <p>
8185 Once <c>genkernel</c> completes, a kernel, full set of modules and
8186 <e>initial root disk</e> (initrd) will be created. We will use the kernel
8187 and initrd when configuring a boot loader later in this document. Write
8188 down the names of the kernel and initrd as you will need it when writing
8189 the bootloader configuration file. The initrd will be started immediately after
8190 booting to perform hardware autodetection (just like on the Installation CD)
8191 before your "real" system starts up.
8192 </p>
8193
8194 <pre caption="Checking the created kernel image name and initrd">
8195 # <i>ls /boot/kernel* /boot/initramfs*</i>
8196 </pre>
8197
8198 <p>
8199 Now, let's perform one more step to get our system to be more like the
8200 Installation CD -- let's emerge <c>coldplug</c>. While the initrd autodetects
8201 hardware that is needed to boot your system, <c>coldplug</c> autodetects
8202 everything else. To emerge and enable <c>coldplug</c>, type the following:
8203 </p>
8204
8205 <pre caption="Emerging and enabling coldplug">
8206 # <i>emerge coldplug</i>
8207 # <i>rc-update add coldplug default</i>
8208 </pre>
8209
8210 </body>
8211 </section>
8212 <section id="kernel_modules">
8213 <title>Configuring Kernel Modules</title>
8214 <subsection>
8215 <title>Configuring the Modules</title>
8216 <body>
8217
8218 <p>
8219 You should list the modules you want automatically loaded in
8220 <path>/etc/modules.autoload.d/kernel-2.6</path>.
8221 You can add extra options to the modules too if you want.
8222 </p>
8223
8224 <p>
8225 To view all available modules, run the following <c>find</c> command. Don't
8226 forget to substitute "&lt;kernel version&gt;" with the version of the kernel you
8227 just compiled:
8228 </p>
8229
8230 <pre caption="Viewing all available modules">
8231 # <i>find /lib/modules/&lt;kernel version&gt;/ -type f -iname '*.o' -or -iname '*.ko'</i>
8232 </pre>
8233
8234 <p>
8235 For instance, to automatically load the <c>3c59x.o</c> module, edit the
8236 <path>kernel-2.6</path> file and enter the module
8237 name in it.
8238 </p>
8239
8240 <pre caption="Editing /etc/modules.autoload.d/kernel-2.6">
8241 # <i>nano -w /etc/modules.autoload.d/kernel-2.6</i>
8242 </pre>
8243
8244 <pre caption="/etc/modules.autoload.d/kernel-2.6">
8245 3c59x
8246 </pre>
8247
8248 <p>
8249 Continue the installation with <uri link="?part=1&amp;chap=8">Configuring
8250 your System</uri>.
8251 </p>
8252
8253 </body>
8254 </subsection>
8255 </section>
8256 </sections>
8257
8258
8259
8260 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-hppa-medium.xml
8261
8262 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-hppa-medium.xml?rev=1.1&view=markup
8263 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-hppa-medium.xml?rev=1.1&content-type=text/plain
8264
8265 Index: hb-install-hppa-medium.xml
8266 ===================================================================
8267 <?xml version='1.0' encoding='UTF-8'?>
8268 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
8269
8270 <!-- The content of this document is licensed under the CC-BY-SA license -->
8271 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
8272
8273 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-hppa-medium.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
8274
8275 <sections>
8276
8277 <version>7.0</version>
8278 <date>2006-08-30</date>
8279
8280 <section>
8281 <title>Hardware Requirements</title>
8282 <subsection>
8283 <title>Introduction</title>
8284 <body>
8285
8286 <p>
8287 Before we start, we first list what hardware requirements you need to
8288 successfully install Gentoo on your box.
8289 </p>
8290
8291 </body>
8292 </subsection>
8293 <subsection>
8294 <title>Hardware Requirements</title>
8295 <body>
8296
8297 <p>
8298 A list of supported hardware can be found on the <uri
8299 link="http://www.pateam.org/list.html">PA Team website</uri>. You may find
8300 additional information about your box in the <uri
8301 link="http://hwdb.parisc-linux.org">Parisc-Linux Hardware Database</uri> and
8302 the <uri link="http://www.openpa.net/cpu.html">processor list</uri> on
8303 <uri>www.openpa.net</uri>.
8304 </p>
8305
8306 <p>
8307 If you don't know which version of PA-RISC your box is using, please check the
8308 links above to find out whether you're using version 1.1 or 2.0. You will need
8309 this information later on.
8310 </p>
8311
8312 <table>
8313 <tr>
8314 <th>Memory</th>
8315 <ti>64 MB</ti>
8316 </tr>
8317 <tr>
8318 <th>Diskspace</th>
8319 <ti>1.5 GB (excluding swap space)</ti>
8320 </tr>
8321 <tr>
8322 <th>Swap space</th>
8323 <ti>At least 256 MB</ti>
8324 </tr>
8325 </table>
8326
8327 </body>
8328 </subsection>
8329 </section>
8330 <!-- Copy/paste from hb-install-x86-medium.xml -->
8331 <!-- START -->
8332 <section>
8333 <title>The Gentoo Universal Installation CD</title>
8334 <subsection>
8335 <title>Introduction</title>
8336 <body>
8337
8338 <p>
8339 Gentoo Linux can be installed using a <e>stage3</e> tarball file.
8340 Such a tarball is an archive that contains a minimal environment from
8341 which you can succesfully install Gentoo Linux onto your system.
8342 </p>
8343
8344 <p>
8345 Installations using a stage1 or stage2 tarball file are not documented in the
8346 Gentoo Handbook - please read the <uri link="/doc/en/faq.xml#stage12">Gentoo
8347 FAQ</uri> on these matters.
8348 </p>
8349
8350 </body>
8351 </subsection>
8352 <subsection>
8353 <title>Gentoo Universal Installation CD</title>
8354 <body>
8355
8356 <p>
8357 An Installation CD is a bootable medium which contains a self-sustained Gentoo
8358 environment. It allows you to boot Linux from the CD. During the boot process
8359 your hardware is detected and the appropriate drivers are loaded. The Gentoo
8360 Installation CDs are maintained by Gentoo developers.
8361 </p>
8362
8363 <p>
8364 There currently are two Installation CDs available:
8365 </p>
8366
8367 <ul>
8368 <li>
8369 The Universal Installation CD contains everything you need to install
8370 Gentoo. It provides stage3 files for common architectures, source code
8371 for the extra applications you need to choose from and, of course, the
8372 installation instructions for your architecture.
8373 </li>
8374 <li>
8375 The Minimal Installation CD contains only a minimal environment that allows
8376 you to boot up and configure your network so you can connect to the
8377 Internet. It does not contain any additional files and cannot be used
8378 during the current installation approach.
8379 </li>
8380 </ul>
8381
8382 </body>
8383 </subsection>
8384 </section>
8385 <!-- STOP -->
8386 <section>
8387 <title>Download, Burn and Boot the Gentoo Universal Installation CD</title>
8388 <subsection>
8389 <title>Downloading and Burning the Installation CD</title>
8390 <body>
8391
8392 <p>
8393 You can download the Universal Installation CD from one of our <uri
8394 link="/main/en/mirrors.xml">mirrors</uri>. The Installation CD is located in
8395 the <path>releases/hppa/2006.1/installcd</path> directory.
8396 </p>
8397
8398 <p>
8399 Inside those directories you'll find ISO-files. Those are full CD images which
8400 you can write on a CD-R.
8401 </p>
8402
8403 <p>
8404 After downloading the file, you can verify its integrity to see if it is
8405 corrupted or not:
8406 </p>
8407
8408 <ul>
8409 <li>
8410 You can check its MD5 checksum and compare it with the MD5 checksum we
8411 provide (for instance with the <c>md5sum</c> tool under Linux/Unix or
8412 <uri link="http://www.etree.org/md5com.html">md5sum</uri> for Windows)
8413 </li>
8414 <li>
8415 You can verify the cryptographic signature that we provide. You need to
8416 obtain the public key we use (17072058) before you proceed though.
8417 </li>
8418 </ul>
8419
8420 <p>
8421 To fetch our public key using the GnuPG application, run the following command:
8422 </p>
8423
8424 <pre caption="Obtaining the public key">
8425 $ <i>gpg --keyserver subkeys.pgp.net --recv-keys 17072058</i>
8426 </pre>
8427
8428 <p>
8429 Now verify the signature:
8430 </p>
8431
8432 <pre caption="Verify the cryptographic signature">
8433 $ <i>gpg --verify &lt;signature file&gt; &lt;downloaded iso&gt;</i>
8434 </pre>
8435
8436 <p>
8437 To burn the downloaded ISO(s), you have to select raw-burning. How you
8438 do this is highly program-dependent. We will discuss <c>cdrecord</c> and
8439 <c>K3B</c> here; more information can be found in our <uri
8440 link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>.
8441 </p>
8442
8443 <ul>
8444 <li>
8445 With cdrecord, you simply type <c>cdrecord dev=/dev/hdc &lt;downloaded iso
8446 file&gt;</c> (replace <path>/dev/hdc</path> with your CD-RW drive's device
8447 path).
8448 </li>
8449 <li>
8450 With K3B, select <c>Tools</c> &gt; <c>CD</c> &gt; <c>Burn Image</c>. Then
8451 you can locate your ISO file within the 'Image to Burn' area. Finally click
8452 <c>Start</c>.
8453 </li>
8454 </ul>
8455
8456 </body>
8457 </subsection>
8458 <subsection>
8459 <title>Booting the Universal Installation CD</title>
8460 <body>
8461
8462 <note>
8463 If you have problems booting the Installation CD or any other media, please
8464 read the <uri
8465 link="http://www.tldp.org/HOWTO/PA-RISC-Linux-Boot-HOWTO/index.html">
8466 PA-RISC Linux Boot HOWTO</uri>.
8467 </note>
8468
8469 <p>
8470 Boot your HPPA system. During the boot process, you will see a message similar
8471 to the following:
8472 </p>
8473
8474 <pre caption="HPPA boot message">
8475 Searching for Potential Boot Devices.
8476 To terminate search, press and hold the ESCAPE key.
8477 </pre>
8478
8479 <p>
8480 When this message appears, press and hold the Esc-key until an option menu
8481 appears. This can take a while, be patient. By default, you should enter the
8482 BOOT_ADMIN console. If you receive an option menu, choose <c>Enter Boot
8483 Administration mode</c> to enter the BOOT_ADMIN console. You should now have an
8484 '&gt;' prompt.
8485 </p>
8486
8487 <p>
8488 Put the Gentoo Installation CD in the CD-ROM. If you do not know the SCSI ID of
8489 your CD-ROM drive, your PA-RISC station will search for it when you issue the
8490 <c>search</c> command.
8491 </p>
8492
8493 <pre caption="Searching for SCSI ID">
8494 &gt; <i>search</i>
8495 Searching for Devices with Bootable Media.
8496 To terminate search, please press and hold the ESCAPE key.
8497 </pre>
8498
8499 <p>
8500 Your PA-RISC station will now display all the available boot media. This is an
8501 example result of this command:
8502 </p>
8503
8504 <pre caption="Available boot media">
8505 Device Selection Device Path Device Type and Utilities
8506 ---------------------------------------------------------------------------
8507
8508 P0 scsi.5.0 TOSHIBA CD-ROM XM-3301TA
8509 IPL
8510 P1 scsi.2.0 COMPAQ ST32550N
8511 IPL
8512 P2 lan.0010a7-06d1b6.3.6 server
8513 IPL
8514 </pre>
8515
8516 <p>
8517 To boot from a CD-ROM you need the accompanying Device Path. For instance, if we
8518 want to boot from the TOSHIBA CD-ROM in the above example, we would need to type
8519 the following command:
8520 </p>
8521
8522 <pre caption="Booting from a CD-ROM">
8523 &gt; <i>boot scsi.5.0 ipl</i>
8524
8525 Trying scsi.5.0
8526 </pre>
8527
8528 <p>
8529 The <c>ipl</c> keyword (Initial Program Loader) tells palo (the PA-RISC boot
8530 LOader) to enter interactive mode. This will allow you to change, for example,
8531 the kernel boot parameters.
8532 </p>
8533
8534 <p>
8535 When the boot is successful, palo will start in interactive mode:
8536 </p>
8537
8538 <pre caption="PALO Interactive Mode">
8539 Boot path initialized.
8540 Attempting to load IPL.
8541
8542
8543 HARD Booted.
8544 palo ipl 1.5 root@hope Sat Apr 23 18:06:47 CEST 2005
8545
8546 Boot image contains:
8547 0/vmlinux32 6241293 bytes @ 0x3904000
8548 0/vmlinux64 8352719 bytes @ 0x3ef8000
8549 0/ramdisk 1007589 bytes @ 0x105800
8550
8551 Information: No console specified on kernel command line. This is normal.
8552 PALO will choose the console currently used by firmware (serial).Current command line:
8553 0/vmlinux initrd=initrd TERM=linux root=/dev/ram0 init=/linuxrc cdroot looptype=squashfs loop=/livecd.squashfs hda=scsi console=ttyS0
8554 0: 0/vmlinux
8555 1: initrd=initrd
8556 2: TERM=linux
8557 3: root=/dev/ram0
8558 4: init=/linuxrc
8559 5: cdroot
8560 6: looptype=squashfs
8561 7: loop=/livecd.squashfs
8562 8: hda=scsi
8563 9: console=ttyS0
8564
8565 &lt;#&gt; edit the numbered field
8566 'b' boot with this command line
8567 'r' restore command line
8568 'l' list dir
8569 </pre>
8570
8571 <p>
8572 These parameters are suitable for most situations.
8573 </p>
8574
8575 <p>
8576 If you need extra features you must add the appropriate keyword(s) to the end of
8577 the command line. To add a keyword, edit the last field, add a space and type
8578 your keyword. The only implemented keywords as of now are <c>cdcache</c> which
8579 tells the Installation CD to load itself into RAM, allowing you to unmount the
8580 CD, and <c>noload=module1[,module2[,...]]</c> which allows you to explicitly
8581 disable loading of particular modules.
8582 </p>
8583
8584 <pre caption="Adding hdb=scsi as boot option">
8585 (or 'b' to boot with this command line)? <i>9</i>
8586 console=ttyS0 <i>hdb=scsi</i>
8587 </pre>
8588
8589 <p>
8590 Now that you have tweaked your kernel boot params, boot it.
8591 </p>
8592
8593 <pre caption="Booting the kernel">
8594 (or 'b' to boot with this command line)? <i>b</i>
8595 </pre>
8596
8597 <p>
8598 You should have a root ("#") prompt on the current console and can also switch
8599 to other consoles by pressing Alt-F2, Alt-F3 and Alt-F4. Get back to the one you
8600 started on by pressing Alt-F1.
8601 </p>
8602
8603 <p>
8604 Now continue with <uri link="#hardware">Extra Hardware
8605 Configuration</uri>.
8606 </p>
8607
8608 </body>
8609 </subsection>
8610 <subsection id="hardware">
8611 <title>Extra Hardware Configuration</title>
8612 <body>
8613
8614 <p>
8615 Most hppa machines have an onboard ethernet card. Old ones use the lasi driver
8616 which is compiled in the kernel. Newer ones need the tulip driver which is
8617 compiled as a module. To use the latter, you need to load its driver.
8618 </p>
8619
8620 <p>
8621 In the next example, we try to load the <c>tulip</c> module (support for
8622 certain kinds of network interfaces):
8623 </p>
8624
8625 <pre caption="Loading kernel modules">
8626 # <i>modprobe tulip</i>
8627 </pre>
8628
8629 </body>
8630 </subsection>
8631
8632 <subsection id="useraccounts">
8633 <title>Optional: User Accounts</title>
8634 <body>
8635
8636 <p>
8637 If you plan on giving other people access to your installation
8638 environment or you want to chat using <c>irssi</c> without root privileges (for
8639 security reasons), you need to create the necessary user accounts and change
8640 the root password.
8641 </p>
8642
8643 <p>
8644 To change the root password, use the <c>passwd</c> utility:
8645 </p>
8646
8647 <pre caption="Changing the root password">
8648 # <i>passwd</i>
8649 New password: <comment>(Enter your new password)</comment>
8650 Re-enter password: <comment>(Re-enter your password)</comment>
8651 </pre>
8652
8653 <p>
8654 To create a user account, we first enter their credentials, followed by
8655 its password. We use <c>useradd</c> and <c>passwd</c> for these tasks.
8656 In the next example, we create a user called &quot;john&quot;.
8657 </p>
8658
8659 <pre caption="Creating a user account">
8660 # <i>useradd -m -G users john</i>
8661 # <i>passwd john</i>
8662 New password: <comment>(Enter john's password)</comment>
8663 Re-enter password: <comment>(Re-enter john's password)</comment>
8664 </pre>
8665
8666 <p>
8667 You can change your user id from root to the newly created user by using
8668 <c>su</c>:
8669 </p>
8670
8671 <pre caption="Changing user id">
8672 # <i>su - john</i>
8673 </pre>
8674
8675 </body>
8676 </subsection>
8677 <subsection>
8678 <title>Optional: Viewing Documentation while Installing</title>
8679 <body>
8680
8681 <p>
8682 If you want to view the Gentoo Handbook (either from-CD or online) during the
8683 installation, make sure you have created a user account (see <uri
8684 link="#useraccounts">Optional: User Accounts</uri>). Then press <c>Alt-F2</c> to
8685 go to a new terminal and log in.
8686 </p>
8687
8688 <p>
8689 If you want to view the documentation on the CD you can immediately run
8690 <c>links</c> to read it:
8691 </p>
8692
8693 <pre caption="Viewing the on-CD documentation">
8694 # <i>links /mnt/cdrom/docs/handbook/html/index.html</i>
8695 </pre>
8696
8697 <p>
8698 However, it is preferred that you use the online Gentoo Handbook as it will be
8699 more recent than the one provided on the CD. You can view it using <c>links</c>
8700 as well, but only after having completed the <e>Configuring your Network</e>
8701 chapter (otherwise you won't be able to go on the Internet to view the
8702 document):
8703 </p>
8704
8705 <pre caption="Viewing the Online Documentation">
8706 # <i>links http://www.gentoo.org/doc/en/handbook/handbook-hppa.xml</i>
8707 </pre>
8708
8709 <p>
8710 You can go back to your original terminal by pressing <c>Alt-F1</c>.
8711 </p>
8712
8713 </body>
8714 </subsection>
8715 <subsection>
8716 <title>Optional: Starting the SSH Daemon</title>
8717 <body>
8718
8719 <p>
8720 If you want to allow other users to access your computer during the
8721 Gentoo installation (perhaps because those users are going to help you
8722 install Gentoo, or even do it for you), you need to create a user
8723 account for them and perhaps even provide them with your root password
8724 (<e>only</e> do that <e>if</e> you <b>fully trust</b> that user).
8725 </p>
8726
8727 <p>
8728 To fire up the SSH daemon, execute the following command:
8729 </p>
8730
8731 <pre caption="Starting the SSH daemon">
8732 # <i>/etc/init.d/sshd start</i>
8733 </pre>
8734
8735 <p>
8736 To be able to use sshd, you first need to set up your networking. Continue with
8737 the chapter on <uri link="?part=1&amp;chap=3">Configuring your Network</uri>.
8738 </p>
8739
8740 </body>
8741 </subsection>
8742 </section>
8743 </sections>
8744
8745
8746
8747 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-network.xml
8748
8749 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-network.xml?rev=1.1&view=markup
8750 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-network.xml?rev=1.1&content-type=text/plain
8751
8752 Index: hb-install-network.xml
8753 ===================================================================
8754 <?xml version='1.0' encoding='UTF-8'?>
8755 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
8756
8757 <!-- The content of this document is licensed under the CC-BY-SA license -->
8758 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
8759
8760 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-network.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
8761
8762 <sections>
8763
8764 <version>7.0</version>
8765 <date>2006-08-30</date>
8766
8767 <section>
8768 <title>Do you need Networking?</title>
8769 <subsection>
8770 <title>Who can do without?</title>
8771 <body>
8772
8773 <p>
8774 Generally, you don't need a working network connection to install Gentoo using
8775 either the Universal InstallCD or the Installer LiveCD. However, there are some
8776 circumstances where you do want to have a working Internet connection:
8777 </p>
8778
8779 <ul>
8780 <li>
8781 The stage3 files that are stored in the Universal InstallCD do not
8782 match your architecture and you need to download the correct stage3 file
8783 </li>
8784 <li>
8785 The stage3 file that is generated by the Installer LiveCD does not
8786 match your architecture and you need to download the correct stage3 file
8787 </li>
8788 <li>
8789 You need to install a specific networking application that will allow you to
8790 connect to the Internet which isn't available on the Universal InstallCD or
8791 the Installer LiveCD, but is supported by the CD (i.e. you can connect to
8792 the Internet using the CD but the necessary sources are not available on
8793 the CD)
8794 </li>
8795 <li>
8796 You want remote assistance during the installation (using SSH or through
8797 direct conversations using IRC)
8798 </li>
8799 </ul>
8800
8801 </body>
8802 </subsection>
8803 <subsection>
8804 <title>Do I need Networking?</title>
8805 <body>
8806
8807 <p>
8808 To find out if the stage3 file for your architecture is available and you are
8809 using a Universal InstallCD, take a look inside <path>/mnt/cdrom/stages</path>
8810 and check if one of the available stages matches your architecture. If not, you
8811 can still opt for a stage3 file of an architecture compatible with yours.
8812 </p>
8813
8814 <p>
8815 The stage3 file built by the x86 Installer LiveCD is optimized for i686 or
8816 better and uses NPTL. The stage3 file built by the amd64 Installer LiveCD is
8817 optimized for generic amd64 usage and uses NPTL.
8818 </p>
8819
8820 <p>
8821 If you, on the other hand, want to use a stage3 file optimized for your
8822 architecture and the stage3 file of your choice is not available, then you will
8823 need networking to download the appropriate stage3 file.
8824 </p>
8825
8826 <p>
8827 So, if you don't need networking, you can skip the rest of this chapter and
8828 continue with <uri link="?part=1&amp;chap=4">Preparing the Disks</uri>.
8829 Otherwise, continue with the networking configuration sections below.
8830 </p>
8831
8832 </body>
8833 </subsection>
8834 </section>
8835 <section>
8836 <title>Automatic Network Detection</title>
8837 <subsection>
8838 <title>Maybe it just works?</title>
8839 <body>
8840
8841 <p>
8842 If your system is plugged into an Ethernet network with a DHCP server, it is
8843 very likely that your networking configuration has already been set up
8844 automatically for you. If so, you should be able to take advantage of the many
8845 included network-aware commands on the Installation CD such as <c>ssh</c>,
8846 <c>scp</c>, <c>ping</c>, <c>irssi</c>, <c>wget</c> and <c>links</c>, among
8847 others.
8848 </p>
8849
8850 <p>
8851 If networking has been configured for you, the <c>/sbin/ifconfig</c> command
8852 should list some network interfaces besides lo, such as eth0:
8853 </p>
8854
8855 <pre caption="/sbin/ifconfig for a working network configuration">
8856 # <i>/sbin/ifconfig</i>
8857 <comment>(...)</comment>
8858 eth0 Link encap:Ethernet HWaddr 00:50:BA:8F:61:7A
8859 inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
8860 inet6 addr: fe80::50:ba8f:617a/10 Scope:Link
8861 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
8862 RX packets:1498792 errors:0 dropped:0 overruns:0 frame:0
8863 TX packets:1284980 errors:0 dropped:0 overruns:0 carrier:0
8864 collisions:1984 txqueuelen:100
8865 RX bytes:485691215 (463.1 Mb) TX bytes:123951388 (118.2 Mb)
8866 Interrupt:11 Base address:0xe800
8867 </pre>
8868
8869 </body>
8870 </subsection>
8871 <subsection>
8872 <title>Optional: Configure any Proxies</title>
8873 <body>
8874
8875 <p>
8876 If you access the Internet through a proxy, you might need to set up proxy
8877 information during the installation. It is very easy to define a proxy: you just
8878 need to define a variable which contains the proxy server information.
8879 </p>
8880
8881 <p>
8882 In most cases, you can just define the variables using the server hostname. As
8883 an example, we assume the proxy is called <c>proxy.gentoo.org</c> and the port
8884 is <c>8080</c>.
8885 </p>
8886
8887 <pre caption="Defining proxy servers">
8888 <comment>(If the proxy filters HTTP traffic)</comment>
8889 # <i>export http_proxy="http://proxy.gentoo.org:8080"</i>
8890 <comment>(If the proxy filters FTP traffic)</comment>
8891 # <i>export ftp_proxy="ftp://proxy.gentoo.org:8080"</i>
8892 <comment>(If the proxy filters RSYNC traffic)</comment>
8893 # <i>export RSYNC_PROXY="proxy.gentoo.org:8080"</i>
8894 </pre>
8895
8896 <p>
8897 If your proxy requires a username and password, you should use the following
8898 syntax for the variable:
8899 </p>
8900
8901 <pre caption="Adding username/password to the proxy variable">
8902 http://<i>username</i>:<i>password</i>@proxy.gentoo.org:8080
8903 </pre>
8904
8905 </body>
8906 </subsection>
8907 <subsection>
8908 <title>Testing the Network</title>
8909 <body>
8910
8911 <p>
8912 You may want to try pinging your ISP's DNS server (found in
8913 <path>/etc/resolv.conf</path>) and a Web site of your choice, just to make sure
8914 that your packets are reaching the net, DNS name resolution is working
8915 correctly, etc.
8916 </p>
8917
8918 <pre caption="Further network testing">
8919 # <i>ping -c 3 www.yahoo.com</i>
8920 </pre>
8921
8922 <p>
8923 If you are now able to use your network, you can skip the rest of this
8924 section and continue with <uri link="?part=1&amp;chap=4">Preparing the
8925 Disks</uri>. If not, read on.
8926 </p>
8927
8928 </body>
8929 </subsection>
8930 </section>
8931 <section>
8932 <title>Automatic Network Configuration</title>
8933 <subsection>
8934 <body>
8935
8936 <p>
8937 If the network doesn't work immediately, some installation media allow you to
8938 use <c>net-setup</c> (for regular or wireless networks), <c>pppoe-setup</c>
8939 (for ADSL-users) or <c>pptp</c> (for PPTP-users - only available on x86).
8940 </p>
8941
8942 <p>
8943 If your installation medium does not contain any of these tools or your network
8944 doesn't function yet, continue with <uri link="#doc_chap3">Manual Network
8945 Configuration</uri>.
8946 </p>
8947
8948 <ul>
8949 <li>
8950 Regular Ethernet users should continue with <uri
8951 link="#net-setup">Default: Using net-setup</uri>
8952 </li>
8953 <li>
8954 ADSL users should continue with <uri link="#rp-pppoe">Alternative:
8955 Using RP-PPPoE</uri>
8956 </li>
8957 <li>
8958 PPTP users should continue with <uri link="#pptp">Alternative:
8959 Using PPTP</uri>
8960 </li>
8961 </ul>
8962
8963 </body>
8964 </subsection>
8965 <subsection id="net-setup">
8966 <title>Default: Using net-setup</title>
8967 <body>
8968
8969 <p>
8970 The simplest way to set up networking if it didn't get configured
8971 automatically is to run the <c>net-setup</c> script:
8972 </p>
8973
8974 <pre caption="Running the net-setup script">
8975 # <i>net-setup eth0</i>
8976 </pre>
8977
8978 <p>
8979 <c>net-setup</c> will ask you some questions about your network
8980 environment. When all is done, you should have a working network
8981 connection. Test your network connection as stated before. If the tests
8982 are positive, congratulations! You are now ready to install Gentoo. Skip
8983 the rest of this section and continue with <uri
8984 link="?part=1&amp;chap=4">Preparing the Disks</uri>.
8985 </p>
8986
8987 <p>
8988 If your network still doesn't work, continue with <uri link="#doc_chap3">Manual
8989 Network Configuration</uri>.
8990 </p>
8991
8992
8993 </body>
8994 </subsection>
8995 <subsection id="rp-pppoe">
8996 <title>Alternative: Using RP-PPPoE</title>
8997 <body>
8998
8999 <p>
9000 Assuming you need PPPoE to connect to the internet, the Installation CD (any
9001 version) has made things easy for you by including <c>rp-pppoe</c>. Use the
9002 provided <c>pppoe-setup</c> script to configure your connection. You will be
9003 prompted for the ethernet device that is connected to your adsl modem, your
9004 username and password, the IPs of your DNS servers and if you need a basic
9005 firewall or not.
9006 </p>
9007
9008 <pre caption="Using rp-pppoe">
9009 # <i>pppoe-setup</i>
9010 # <i>pppoe-start</i>
9011 </pre>
9012
9013 <p>
9014 If something goes wrong, double-check that you correctly typed your username and
9015 password by looking at <path>/etc/ppp/pap-secrets</path> or
9016 <path>/etc/ppp/chap-secrets</path> and make sure you are using the right
9017 ethernet device. If your ethernet device doesn't exist, you will have to load
9018 the appropriate network modules. In that case you should continue with
9019 <uri link="#doc_chap3">Manual Network Configuration</uri> as we explain how to
9020 load the appropriate network modules there.
9021 </p>
9022
9023 <p>
9024 If everything worked, continue with <uri link="?part=1&amp;chap=4">Preparing the
9025 Disks</uri>.
9026 </p>
9027
9028 </body>
9029 </subsection>
9030 <subsection id="pptp">
9031 <title>Alternative: Using PPTP</title>
9032 <body>
9033
9034 <note>
9035 PPTP support is only available for x86
9036 </note>
9037
9038 <p>
9039 If you need PPTP support, you can use <c>pptpclient</c> which is provided by our
9040 Installation CDs. But first you need to make sure that your configuration is
9041 correct. Edit <path>/etc/ppp/pap-secrets</path> or
9042 <path>/etc/ppp/chap-secrets</path> so it contains the correct username/password
9043 combination:
9044 </p>
9045
9046 <pre caption="Editing /etc/ppp/chap-secrets">
9047 # <i>nano -w /etc/ppp/chap-secrets</i>
9048 </pre>
9049
9050 <p>
9051 Then adjust <path>/etc/ppp/options.pptp</path> if necessary:
9052 </p>
9053
9054 <pre caption="Editing /etc/ppp/options.pptp">
9055 # <i>nano -w /etc/ppp/options.pptp</i>
9056 </pre>
9057
9058 <p>
9059 When all that is done, just run <c>pptp</c> (along with the options you couldn't
9060 set in <path>options.pptp</path>) to connect the server:
9061 </p>
9062
9063 <pre caption="Connection to a dial-in server">
9064 # <i>pptp &lt;server ip&gt;</i>
9065 </pre>
9066
9067 <p>
9068 Now continue with <uri link="?part=1&amp;chap=4">Preparing the Disks</uri>.
9069 </p>
9070
9071 </body>
9072 </subsection>
9073 </section>
9074 <section>
9075 <title>Manual Network Configuration</title>
9076 <subsection>
9077 <title>Loading the Appropriate Network Modules</title>
9078 <body>
9079
9080 <p>
9081 When the Installation CD boots, it tries to detect all your hardware devices and
9082 loads the appropriate kernel modules (drivers) to support your hardware. In the
9083 vast majority of cases, it does a very good job. However, in some cases,
9084 it may not auto-load the kernel modules you need.
9085 </p>
9086
9087 <p>
9088 If <c>net-setup</c> or <c>pppoe-setup</c> failed, then it is possible that
9089 your network card wasn't found immediately. This means you may have to load
9090 the appropriate kernel modules manually.
9091 </p>
9092
9093 <p>
9094 To find out what kernel modules we provide for networking, use
9095 <c>ls</c>:
9096 </p>
9097
9098 <pre caption="Searching for provided modules">
9099 # <i>ls /lib/modules/`uname -r`/kernel/drivers/net</i>
9100 </pre>
9101
9102 <p>
9103 If you find a driver for your network card, use <c>modprobe</c> to load
9104 the kernel module:
9105 </p>
9106
9107 <pre caption="Using modprobe to load a kernel module">
9108 <comment>(As an example, we load the pcnet32 module)</comment>
9109 # <i>modprobe pcnet32</i>
9110 </pre>
9111
9112 <p>
9113 To check if your network card is now detected, use <c>ifconfig</c>. A
9114 detected network card would result in something like this:
9115 </p>
9116
9117 <pre caption="Testing availability of your network card, successful">
9118 # <i>ifconfig eth0</i>
9119 eth0 Link encap:Ethernet HWaddr FE:FD:00:00:00:00
9120 BROADCAST NOARP MULTICAST MTU:1500 Metric:1
9121 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
9122 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
9123 collisions:0 txqueuelen:0
9124 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
9125 </pre>
9126
9127 <p>
9128 If however you receive the following error, the network card is not
9129 detected:
9130 </p>
9131
9132 <pre caption="Testing availability of your network card, failed">
9133 # <i>ifconfig eth0</i>
9134 eth0: error fetching interface information: Device not found
9135 </pre>
9136
9137 <p>
9138 If you have multiple network cards in your system they are named <e>eth0</e>,
9139 <e>eth1</e>, etc. Make sure that the network card you want to use works well and
9140 remember to use the correct naming throughout this document. We will assume that
9141 the network card <e>eth0</e> is used.
9142 </p>
9143
9144 <p>
9145 Assuming that you now have a detected network card, you can
9146 retry <c>net-setup</c> or <c>pppoe-setup</c> again (which should work
9147 now), but for the hardcore people amongst you we explain how to configure your
9148 network manually.
9149 </p>
9150
9151 <p>
9152 Select one of the following sections based on your network setup:
9153 </p>
9154
9155 <ul>
9156 <li><uri link="#install-dhcp">Using DHCP</uri> for automatic IP retrieval</li>
9157 <li>
9158 <uri link="#wireless">Preparing for Wireless Access</uri> if you have a
9159 wireless card
9160 </li>
9161 <li>
9162 <uri link="#network_term">Understanding Network Terminology</uri> explains
9163 what you need to know about networking
9164 </li>
9165 <li>
9166 <uri link="#ifconfig_route">Using ifconfig and route</uri> explains how to
9167 set up your networking manually
9168 </li>
9169 </ul>
9170
9171 </body>
9172 </subsection>
9173 <subsection id="install-dhcp">
9174 <title>Using DHCP</title>
9175 <body>
9176
9177 <p>
9178 DHCP (Dynamic Host Configuration Protocol) makes it possible to
9179 automatically receive networking information (IP address, netmask,
9180 broadcast address, gateway, nameservers etc.). This only works if you
9181 have a DHCP server in your network (or if your provider provides a DHCP
9182 service). To have a network interface receive this information automatically,
9183 use <c>dhcpcd</c>:
9184 </p>
9185
9186 <pre caption="Using dhcpcd">
9187 # <i>dhcpcd eth0</i>
9188 <comment>Some network admins require that you use the</comment>
9189 <comment>hostname and domainname provided by the DHCP server.</comment>
9190 <comment>In that case, use</comment>
9191 # <i>dhcpcd -HD eth0</i>
9192 </pre>
9193
9194 <p>
9195 If this works (try pinging some internet server, like <uri
9196 link="http://www.google.com">Google</uri>), then you are all set and
9197 ready to continue. Skip the rest of this section and continue with <uri
9198 link="?part=1&amp;chap=4">Preparing the Disks</uri>.
9199 </p>
9200
9201 </body>
9202 </subsection>
9203 <subsection id="wireless">
9204 <title>Preparing for Wireless Access</title>
9205 <body>
9206
9207 <note>
9208 Support for the <c>iwconfig</c> command is only available on x86, amd64 and ppc
9209 Installation CDs. You can still get the extensions working otherwise
9210 by following the instructions of the
9211 <uri link="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/README">linux-wlan-ng
9212 project</uri>.
9213 </note>
9214
9215 <p>
9216 If you are using a wireless (802.11) card, you may need to configure your
9217 wireless settings before going any further. To see the current wireless settings
9218 on your card, you can use <c>iwconfig</c>. Running <c>iwconfig</c> might show
9219 something like:
9220 </p>
9221
9222 <pre caption="Showing the current wireless settings">
9223 # <i>iwconfig eth0</i>
9224 eth0 IEEE 802.11-DS ESSID:"GentooNode"
9225 Mode:Managed Frequency:2.442GHz Access Point: 00:09:5B:11:CC:F2
9226 Bit Rate:11Mb/s Tx-Power=20 dBm Sensitivity=0/65535
9227 Retry limit:16 RTS thr:off Fragment thr:off
9228 Power Management:off
9229 Link Quality:25/10 Signal level:-51 dBm Noise level:-102 dBm
9230 Rx invalid nwid:5901 Rx invalid crypt:0 Rx invalid frag:0 Tx
9231 excessive retries:237 Invalid misc:350282 Missed beacon:84
9232 </pre>
9233
9234 <note>
9235 Some wireless cards may have a device name of <c>wlan0</c> or <c>ra0</c> instead
9236 of <c>eth0</c>. Run <c>iwconfig</c> without any command-line parameters to
9237 determine the correct device name.
9238 </note>
9239
9240 <p>
9241 For most users, there are only two settings that might be important to change,
9242 the ESSID (aka wireless network name) or the WEP key. If the ESSID and Access
9243 Point address listed are already that of your access point and you are not using
9244 WEP, then your wireless is working. If you need to change your ESSID, or add a
9245 WEP key, you can issue the following commands:
9246 </p>
9247
9248 <pre caption="Changing ESSID and/or adding WEP key">
9249 <comment>(This sets the network name to "GentooNode")</comment>
9250 # <i>iwconfig eth0 essid GentooNode</i>
9251
9252 <comment>(This sets a hex WEP key)</comment>
9253 # <i>iwconfig eth0 key 1234123412341234abcd</i>
9254
9255 <comment>(This sets an ASCII key - prefix it with "s:")</comment>
9256 # <i>iwconfig eth0 key s:some-password</i>
9257 </pre>
9258
9259 <p>
9260 You can then confirm your wireless settings again by using <c>iwconfig</c>.
9261 Once you have wireless working, you can continue configuring the IP level
9262 networking options as described in the next section (<uri
9263 link="#network_term">Understanding Network Terminology</uri>) or use the
9264 <c>net-setup</c> tool as described previously.
9265 </p>
9266
9267 </body>
9268 </subsection>
9269 <subsection id="network_term">
9270 <title>Understanding Network Terminology</title>
9271 <body>
9272
9273 <note>
9274 If you know your IP address, broadcast address, netmask and nameservers,
9275 then you can skip this subsection and continue with <uri
9276 link="#ifconfig_route">Using ifconfig and route</uri>.
9277 </note>
9278
9279 <p>
9280 If all of the above fails, you will have to configure your network manually.
9281 This is not difficult at all. However, you need to be familiar with some
9282 network terminology, as you will need it to be able to
9283 configure your network to your satisfaction. After reading this, you
9284 will know what a <e>gateway</e> is, what a <e>netmask</e> serves for,
9285 how a <e>broadcast</e> address is formed and why you need
9286 <e>nameservers</e>.
9287 </p>
9288
9289 <p>
9290 In a network, hosts are identified by their <e>IP address</e> (Internet
9291 Protocol address). Such an address is a combination of four numbers
9292 between 0 and 255. Well, at least that is how we perceive it. In
9293 reality, such an IP address consists of 32 bits (ones and zeros). Let's
9294 view an example:
9295 </p>
9296
9297 <pre caption="Example of an IP address">
9298 IP Address (numbers): 192.168.0.2
9299 IP Address (bits): 11000000 10101000 00000000 00000010
9300 -------- -------- -------- --------
9301 192 168 0 2
9302 </pre>
9303
9304 <p>
9305 Such an IP address is unique to a host as far as all accessible networks are
9306 concerned (i.e. every host that you are able to reach must have a unique IP
9307 address). In order to distinguish between hosts inside and outside a
9308 network, the IP address is divided in two parts: the
9309 <e>network</e> part and the <e>host</e> part.
9310 </p>
9311
9312 <p>
9313 The separation is written down with the <e>netmask</e>, a collection of
9314 ones followed by a collection of zeros. The part of the IP that can be
9315 mapped on the ones is the network-part, the other one is the host-part.
9316 As usual, the netmask can be written down as an IP-address.
9317 </p>
9318
9319 <pre caption="Example of network/host separation">
9320 IP-address: 192 168 0 2
9321 11000000 10101000 00000000 00000010
9322 Netmask: 11111111 11111111 11111111 00000000
9323 255 255 255 0
9324 +--------------------------+--------+
9325 Network Host
9326 </pre>
9327
9328 <p>
9329 In other words, 192.168.0.14 is still part of our example network, but
9330 192.168.1.2 is not.
9331 </p>
9332
9333 <p>
9334 The <e>broadcast</e> address is an IP-address with the same network-part
9335 as your network, but with only ones as host-part. Every host on your
9336 network listens to this IP address. It is truly meant for broadcasting
9337 packets.
9338 </p>
9339
9340 <pre caption="Broadcast address">
9341 IP-address: 192 168 0 2
9342 11000000 10101000 00000000 00000010
9343 Broadcast: 11000000 10101000 00000000 11111111
9344 192 168 0 255
9345 +--------------------------+--------+
9346 Network Host
9347 </pre>
9348
9349 <p>
9350 To be able to surf on the internet, you must know which host shares the
9351 Internet connection. This host is called the <e>gateway</e>. Since it is
9352 a regular host, it has a regular IP address (for instance 192.168.0.1).
9353 </p>
9354
9355 <p>
9356 We previously stated that every host has its own IP address. To be able
9357 to reach this host by a name (instead of an IP address) you need a
9358 service that translates a name (such as <e>dev.gentoo.org</e>) to an IP
9359 address (such as <e>64.5.62.82</e>). Such a service is called a name
9360 service. To use such a service, you must define the necessary <e>name
9361 servers</e> in <path>/etc/resolv.conf</path>.
9362 </p>
9363
9364 <p>
9365 In some cases, your gateway also serves as nameserver. Otherwise you
9366 will have to enter the nameservers provided by your ISP.
9367 </p>
9368
9369 <p>
9370 To summarise, you will need the following information before continuing:
9371 </p>
9372
9373 <table>
9374 <tr>
9375 <th>Network Item</th>
9376 <th>Example</th>
9377 </tr>
9378 <tr>
9379 <ti>Your IP address</ti>
9380 <ti>192.168.0.2</ti>
9381 </tr>
9382 <tr>
9383 <ti>Netmask</ti>
9384 <ti>255.255.255.0</ti>
9385 </tr>
9386 <tr>
9387 <ti>Broadcast</ti>
9388 <ti>192.168.0.255</ti>
9389 </tr>
9390 <tr>
9391 <ti>Gateway</ti>
9392 <ti>192.168.0.1</ti>
9393 </tr>
9394 <tr>
9395 <ti>Nameserver(s)</ti>
9396 <ti>195.130.130.5, 195.130.130.133</ti>
9397 </tr>
9398 </table>
9399
9400 </body>
9401 </subsection>
9402 <subsection id="ifconfig_route">
9403 <title>Using ifconfig and route</title>
9404 <body>
9405
9406 <p>
9407 Setting up your network consists of three steps. First we assign
9408 ourselves an IP address using <c>ifconfig</c>. Then we set up routing to
9409 the gateway using <c>route</c>. Then we finish up by placing the
9410 nameserver IPs in <path>/etc/resolv.conf</path>.
9411 </p>
9412
9413 <p>
9414 To assign an IP address, you will need your IP address, broadcast
9415 address and netmask. Then execute the following command, substituting
9416 <c>${IP_ADDR}</c> with your IP address, <c>${BROADCAST}</c> with your
9417 broadcast address and <c>${NETMASK}</c> with your netmask:
9418 </p>
9419
9420 <pre caption="Using ifconfig">
9421 # <i>ifconfig eth0 ${IP_ADDR} broadcast ${BROADCAST} netmask ${NETMASK} up</i>
9422 </pre>
9423
9424 <p>
9425 Now set up routing using <c>route</c>. Substitute <c>${GATEWAY}</c> with
9426 your gateway IP address:
9427 </p>
9428
9429 <pre caption="Using route">
9430 # <i>route add default gw ${GATEWAY}</i>
9431 </pre>
9432
9433 <p>
9434 Now open <path>/etc/resolv.conf</path> with your favorite editor (in our
9435 example, we use <c>nano</c>):
9436 </p>
9437
9438 <pre caption="Creating /etc/resolv.conf">
9439 # <i>nano -w /etc/resolv.conf</i>
9440 </pre>
9441
9442 <p>
9443 Now fill in your nameserver(s) using the following as a template. Make
9444 sure you substitute <c>${NAMESERVER1}</c> and <c>${NAMESERVER2}</c> with
9445 the appropriate nameserver addresses:
9446 </p>
9447
9448 <pre caption="/etc/resolv.conf template">
9449 nameserver ${NAMESERVER1}
9450 nameserver ${NAMESERVER2}
9451 </pre>
9452
9453 <p>
9454 That's it. Now test your network by pinging some Internet server (like
9455 <uri link="http://www.google.com">Google</uri>). If this works,
9456 congratulations then. You are now ready to install Gentoo. Continue with <uri
9457 link="?part=1&amp;chap=4">Preparing the Disks</uri>.
9458 </p>
9459
9460 </body>
9461 </subsection>
9462 </section>
9463 </sections>
9464
9465
9466
9467 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-next.xml
9468
9469 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-next.xml?rev=1.1&view=markup
9470 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-next.xml?rev=1.1&content-type=text/plain
9471
9472 Index: hb-install-next.xml
9473 ===================================================================
9474 <?xml version='1.0' encoding='UTF-8'?>
9475 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
9476
9477 <!-- The content of this document is licensed under the CC-BY-SA license -->
9478 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
9479
9480 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-next.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
9481
9482 <sections>
9483
9484 <version>7.0</version>
9485 <date>2006-08-30</date>
9486
9487 <section>
9488 <title>Documentation</title>
9489 <subsection>
9490 <body>
9491
9492 <p>
9493 Congratulations! You now have a working Gentoo system. But where to go from
9494 here? What are your options now? What to explore first? Gentoo provides its
9495 users with lots of possibilities, and therefore lots of documented (and less
9496 documented) features.
9497 </p>
9498
9499 <p>
9500 You should definitely take a look at the next part of the Gentoo Handbook
9501 entitled <uri link="?part=2">Working with Gentoo</uri> which explains
9502 how to keep your software up to date, how to install more software, what USE
9503 flags are, how the Gentoo Init system works, etc.
9504 </p>
9505
9506 <p>
9507 If you are interested in optimizing your system for desktop use, or you want to
9508 learn how to configure your system to be a full working desktop system, consult
9509 our extensive <uri link="/doc/en/index.xml?catid=desktop">Gentoo Desktop
9510 Documentation Resources</uri>. Besides, you might want to use our <uri
9511 link="/doc/en/guide-localization.xml">localization guide</uri> to make your
9512 system feel more at home.
9513 </p>
9514
9515 <p>
9516 We also have a <uri link="/doc/en/security/">Gentoo Security Handbook</uri>
9517 which is worth reading.
9518 </p>
9519
9520 <p>
9521 For a full listing of all our available documentation check out our <uri
9522 link="/doc/en/index.xml">Documentation Resources</uri> page.
9523 </p>
9524
9525 </body>
9526 </subsection>
9527 </section>
9528 <section>
9529 <title>Gentoo Online</title>
9530 <body>
9531
9532 <p>
9533 You are of course always welcome on our <uri
9534 link="http://forums.gentoo.org">Gentoo Forums</uri> or on one of our many
9535 <uri link="/main/en/irc.xml">Gentoo IRC channels</uri>.
9536 </p>
9537
9538 <p>
9539 We also have several <uri
9540 link="/main/en/lists.xml">mailinglists</uri> open to all
9541 our users. Information on how to join is contained in that page.
9542 </p>
9543
9544 <p>
9545 We'll shut up now and let you enjoy your installation :)
9546 </p>
9547
9548 </body>
9549 </section>
9550 <section>
9551 <title>Gentoo Changes since 2006.1</title>
9552 <subsection>
9553 <title>Changes?</title>
9554 <body>
9555
9556 <p>
9557 Gentoo is a fast-moving target. The following sections describe important
9558 changes that affect a Gentoo installation. We only list those that have anything
9559 in common with the installation, not with package changes that did not occur
9560 during the installation.
9561 </p>
9562
9563 <p>
9564 There have been no significant changes since.
9565 </p>
9566
9567 </body>
9568 </subsection>
9569 </section>
9570 </sections>
9571
9572
9573
9574 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc-bootloader.xml
9575
9576 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc-bootloader.xml?rev=1.1&view=markup
9577 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc-bootloader.xml?rev=1.1&content-type=text/plain
9578
9579 Index: hb-install-ppc-bootloader.xml
9580 ===================================================================
9581 <?xml version='1.0' encoding='UTF-8'?>
9582 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
9583
9584 <!-- The content of this document is licensed under the CC-BY-SA license -->
9585 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
9586
9587 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc-bootloader.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
9588
9589 <sections>
9590
9591 <version>7.0</version>
9592 <date>2006-08-30</date>
9593
9594 <section>
9595 <title>Choosing a Bootloader</title>
9596 <subsection>
9597 <title>Introduction</title>
9598 <body>
9599
9600 <p>
9601 Now that the kernel is configured and compiled, you'll need a <e>bootloader</e>
9602 to start your new linux installation. The <e>bootloader</e> that you use will
9603 depend upon the type of PPC machine you have.
9604 </p>
9605
9606 <p>
9607 If you are using a NewWorld Apple or IBM machine, you need to use
9608 <uri link="#yaboot">yaboot</uri>. OldWorld Apple machines have two options,
9609 <uri link="#bootx">BootX</uri> (recommended) and <uri link="#quik">quik</uri>.
9610 The Pegasos does not require a bootloader, but you will need to emerge
9611 <uri link="#bootcreator">BootCreator</uri> to create SmartFirmware bootmenus.
9612 </p>
9613
9614 </body>
9615 </subsection>
9616 </section>
9617 <section id="yaboot">
9618 <title>Default: Using yaboot</title>
9619 <subsection>
9620 <title>Introduction</title>
9621 <body>
9622
9623 <impo>
9624 yaboot can only be used on NewWorld Apple and IBM systems!
9625 </impo>
9626
9627 <p>
9628 In order to find the boot devices, yaboot needs access to the device nodes
9629 created by udev on startup and the sysfs filesystem. These two filesystems
9630 are found at <path>/dev</path> and <path>sys</path> respectively. To do this,
9631 you will need to "bind mount" these filesystems from the Installation CD's root
9632 to the <path>/dev</path> and <path>/sys</path> mount points inside the chroot.
9633 If you have already bind mounted these filesystems, there is no need to do it
9634 again.
9635 </p>
9636
9637 <pre caption="Bind-mounting the device and sysfs filesystems">
9638 # <i>exit </i> # this will exit the chroot
9639 # <i>mount -o bind /dev /mnt/gentoo/dev</i>
9640 # <i>mount -o bind /sys /mnt/gentoo/sys</i>
9641 # <i>chroot /mnt/gentoo /bin/bash</i>
9642 # <i>/usr/sbin/env-update &amp;&amp; source /etc/profile </i>
9643 </pre>
9644
9645 <p>
9646 To set up yaboot, you can use <c>yabootconfig</c> to automatically create a
9647 configuration file for you. If you are installing Gentoo on a G5 (where
9648 <c>yabootconfig</c> does not always work), or you plan to boot from firewire
9649 or USB, you will need to manually configure yaboot.
9650 </p>
9651
9652 <note>
9653 You will need to manually edit the yaboot.conf when using genkernel, even if
9654 yabootconfig is used. The kernel image section of yaboot.conf should be
9655 modified as follows:
9656 </note>
9657
9658 <pre caption="Adding genkernel boot arguments to yaboot.conf">
9659 <comment>###########################################################
9660 ## This section can be duplicated if you have more than one
9661 ## kernel or set of boot options - replace kernel-name
9662 ## and initrd-name with the exact filename of your kernel
9663 ## and initrd image.
9664 ###########################################################</comment>
9665 image=/boot/kernel-name
9666 label=Linux
9667 root=/dev/ram0
9668 partition=3
9669 initrd=/boot/initrd-name
9670 append="real_root=/dev/hda3 init=/linuxrc"
9671 <comment># You can add additional kernel arguments to append such as
9672 # rootdelay=10 for a USB/Firewire Boot</comment>
9673 read-only
9674 <comment>##########################################################</comment>
9675 </pre>
9676
9677 <ul>
9678 <li><uri link="#yabootconfig">Default: Using yabootconfig</uri></li>
9679 <li>
9680 <uri link="#manual_yaboot">Alternative: Manual yaboot Configuration</uri>
9681 </li>
9682 </ul>
9683
9684 </body>
9685 </subsection>
9686 <subsection id="yabootconfig">
9687 <title>Default: Using yabootconfig</title>
9688 <body>
9689
9690 <p>
9691 <c>yabootconfig</c> will auto-detect the partitions on your machine and will
9692 set up dual and triple boot combinations with Linux, Mac OS, and Mac OS X.
9693 </p>
9694
9695 <p>
9696 To use <c>yabootconfig</c>, your drive must have an Apple_Bootstrap partition,
9697 and <path>/etc/fstab</path> must be configured to reflect your Linux
9698 partitions. These steps should have already been completed before, but check
9699 <path>/etc/fstab</path> before proceeding. Now, ensure that you have
9700 <c>yaboot</c> installed.
9701 </p>
9702
9703 <pre caption = "Installing yaboot with GRP">
9704 # <i>emerge --usepkg yaboot</i>
9705 </pre>
9706
9707 <p>
9708 Now exit the chroot and run <c>yabootconfig --chroot /mnt/gentoo</c>. First,
9709 the program will confirm the location of the bootstrap partition. If you are
9710 using the suggested disk partitioning scheme, your bootstrap partition should
9711 be /dev/hda2. Type <c>Y</c> if the output is correct. If not, double check your
9712 <path>/etc/fstab</path>. <c>yabootconfig</c> will then scan your system setup,
9713 create <path>/etc/yaboot.conf</path> and run <c>mkofboot</c> for you.
9714 <c>mkofboot</c> is used to format the Apple_Bootstrap partition, and install
9715 the yaboot configuration file into it. After this enter the chroot again.
9716 </p>
9717
9718 <pre caption="Re-enter the chroot">
9719 # <i>chroot /mnt/gentoo /bin/bash</i>
9720 # <i>/usr/sbin/env-update &amp;&amp; source /etc/profile</i>
9721 </pre>
9722
9723 <p>
9724 You might want to verify the contents of <path>/etc/yaboot.conf</path>. If you
9725 make changes to <path>/etc/yaboot.conf</path> (like setting the default/boot
9726 OS), make sure to rerun <c>ybin -v</c> to apply changes to the Apple_Bootstrap
9727 partition.
9728 </p>
9729
9730 <p>
9731 Now continue with <uri link="#reboot">Rebooting the System</uri>.
9732 </p>
9733
9734 </body>
9735 </subsection>
9736 <subsection id="manual_yaboot">
9737 <title>Alternative: Manual yaboot Configuration</title>
9738 <body>
9739
9740 <p>
9741 First make sure you have <c>yaboot</c> installed on your system:
9742 </p>
9743
9744 <pre caption = "Installing yaboot with GRP">
9745 # <i>emerge --usepkg yaboot</i>
9746 </pre>
9747
9748 <p>
9749 An example <path>yaboot.conf</path> file is given below, but you will need to
9750 alter it to fit your needs. G5 users and users booting from firewire and USB
9751 should be aware that their disks are seen as SCSI disks by the Linux kernel, so
9752 you will need to substitute <path>/dev/hda</path> with <path>/dev/sda</path>).
9753 </p>
9754
9755 <pre caption = "/etc/yaboot.conf">
9756 <comment>## /etc/yaboot.conf
9757 ##
9758 ## run: "man yaboot.conf" for details. Do not make changes until you have!!
9759 ## see also: /usr/share/doc/yaboot/examples for example configurations.
9760 ##
9761 ## For a dual-boot menu, add one or more of:
9762 ## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ
9763
9764 ## The bootstrap partition:</comment>
9765
9766 boot=/dev/hda2
9767
9768 <comment>## ofboot is the openfirmware way to specify the bootstrap partition.
9769 ## If this isn't defined, yaboot fails on the G5 and some G4s (unless
9770 ## you pass the necessary arguments to the mkofboot/ybin program).
9771 ## hd:X means /dev/sdaX (or /dev/hdaX).
9772 ##
9773 ## G5 users should uncomment this line!!
9774
9775 #ofboot=hd:2
9776
9777 ## Users booting from firewire should use something like this line:
9778 # ofboot=fw/node/sbp-2/disk@0:
9779
9780 ## Users booting from USB should use something like this line:
9781 # ofboot=usb/disk@0:
9782
9783 ## hd: is shorthand for the first hard drive OpenFirmware sees</comment>
9784 device=hd:
9785
9786 <comment>## Firewire and USB users will need to specify the whole OF device name
9787 ## This can be found using ofpath, which is included with yaboot.
9788
9789 # device=fw/node@0001d200e00d0207/sbp-2@c000/disk@0:
9790 </comment>
9791
9792 delay=5
9793 defaultos=macosx
9794 timeout=30
9795 install=/usr/lib/yaboot/yaboot
9796 magicboot=/usr/lib/yaboot/ofboot
9797
9798 <comment>#################
9799 ## This section can be duplicated if you have more than one kernel or set of
9800 ## boot options - replace kernel-name with your kernel-version
9801 #################</comment>
9802 image=/boot/kernel-name
9803 label=Linux
9804 root=/dev/hda3
9805 partition=3
9806 <comment># append="rootdelay=10" # Required for booting USB/Firewire</comment>
9807 read-only
9808 <comment>##################
9809
9810 ## G5 users and some G4 users should set
9811 ## macos=hd:13
9812 ## macosx=hd:12
9813 ## instead of the example values.</comment>
9814 macos=/dev/hda13
9815 macosx=/dev/hda12
9816 enablecdboot
9817 enableofboot
9818 </pre>
9819
9820 <p>
9821 Once <path>yaboot.conf</path> is configured, run <c>mkofboot -v</c> to format
9822 the Apple_bootstrap partition and install the settings. If you change
9823 yaboot.conf after the Apple_bootstrap partition has been created, you can
9824 update the settings by running <c>ybin -v</c>
9825 </p>
9826
9827 <p>
9828 For more information on yaboot, take a look at the <uri
9829 link="http://penguinppc.org/bootloaders/yaboot">yaboot project</uri>. For
9830 now, continue the installation with <uri link="#reboot">Rebooting the
9831 System</uri>.
9832 </p>
9833
9834 </body>
9835 </subsection>
9836 </section>
9837 <section id="bootx">
9838 <title>Alternative: BootX</title>
9839 <body>
9840
9841 <impo>
9842 BootX can only be used on OldWorld Apple systems with MacOS 9 or earlier!
9843 </impo>
9844
9845 <p>
9846 Since BootX boots Linux from within MacOS, the kernel will need to be copied
9847 from the Linux Partition to the MacOS partition. First, mount the MacOS
9848 partition from outside of the chroot. Use <c>mac-fdisk -l</c> to find the
9849 MacOS partition number, sda6 is used as an example here. Once the partition is
9850 mounted, we'll copy the kernel to the system folder so BootX can find it.
9851 </p>
9852
9853 <pre caption="Copying the kernel to the MacOS partition">
9854 # <i>exit</i>
9855 cdimage ~# <i>mkdir /mnt/mac</i>
9856 cdimage ~# <i>mount /dev/sda6 /mnt/mac -t hfs</i>
9857 cdimage ~# <i>cp /mnt/gentoo/usr/src/linux/vmlinux "/mnt/mac/System Folder/Linux Kernels"</i>
9858 </pre>
9859
9860 <p>
9861 If genkernel is used, both the kernel and initrd will need to be copied to the
9862 MacOS partition.
9863 </p>
9864
9865 <pre caption="Copying the Genkernel kernel and initrd to the MacOS partition">
9866 # <i>exit</i>
9867 cdimage ~# <i>mkdir /mnt/mac</i>
9868 cdimage ~# <i>mount /dev/sda6 /mnt/mac -t hfs</i>
9869 cdimage ~# <i>cp /mnt/gentoo/boot/kernel-* "/mnt/mac/System Folder/Linux Kernels"</i>
9870 cdimage ~# <i>cp /mnt/gentoo/boot/initramfs-* "/mnt/mac/System Folder"</i>
9871 </pre>
9872
9873 <p>
9874 Now that the kernel is copied over, we'll need to reboot to set up BootX.
9875 </p>
9876
9877 <pre caption="Unmounting all partitions and rebooting">
9878 cdimage ~# <i>cd /</i>
9879 cdimage ~# <i>umount /mnt/gentoo/proc /mnt/gentoo/dev /mnt/gentoo/sys /mnt/gentoo /mnt/mac</i>
9880 cdimage ~# <i>reboot</i>
9881 </pre>
9882
9883 <p>
9884 Of course, don't forget to remove the bootable CD, otherwise the CD will be
9885 booted again instead of MacOS.
9886 </p>
9887
9888 <p>
9889 Once the machine has booted into MacOS, open the BootX control panel. If you're
9890 not using genkernel, select <c>Options</c> and uncheck <c>Use specified RAM
9891 disk</c>. If you are using genkernel, ensure that the genkernel initrd is
9892 selected instead of the Installation CD initrd. If not using genkernel,
9893 there is now an option to specify the machine's Linux root disk and partition.
9894 Fill these in with the appropriate values. Depending upon the kernel
9895 configuration, additional boot arguments may need to be applied.
9896 </p>
9897
9898 <p>
9899 BootX can be configured to start Linux upon boot. If you do this, you will first
9900 see your machine boot into MacOS then, during startup, BootX will load and start
9901 Linux. See the <uri link="http://penguinppc.org/bootloaders/bootx/">BootX home
9902 page</uri> for more information.
9903 </p>
9904
9905 <impo>
9906 Make sure that you have support for HFS and HFS+ filesystems in your kernel,
9907 otherwise you will not be able to upgrade or change the kernel on your MacOS
9908 partition.
9909 </impo>
9910
9911 <p>
9912 Now reboot again and boot into Linux, then continue with <uri
9913 link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
9914 </p>
9915
9916 </body>
9917 </section>
9918 <section id="quik">
9919 <title>Alternative: quik</title>
9920 <body>
9921
9922 <p>
9923 quik allows OldWorld Macs to boot without MacOS. However, it isn't well
9924 supported and has a number of quirks. If you have the option, it is recommended
9925 that you use BootX instead since it is much more reliable and easier to set up
9926 than quik.
9927 </p>
9928
9929 <p>
9930 First, we'll need to install quik:
9931 </p>
9932
9933 <pre caption="Emerge quik">
9934 # <i>emerge quik</i>
9935 </pre>
9936
9937 <p>
9938 Next, we'll need to set it up. Edit /etc/quik.conf and set your image to the
9939 kernel that we copied to your boot partition.
9940 </p>
9941
9942 <pre caption="Configuring quik.conf">
9943 # Example of quik.conf
9944 init-message = "Gentoo 2006.1\n"
9945 partition = 2 <comment># This is the boot partition</comment>
9946 root = /dev/hda4
9947 timeout = 30
9948 default = gentoo
9949 image = /vmlinux <comment># This is your kernel</comment>
9950 label = gentoo
9951 </pre>
9952
9953 <p>
9954 Your quik.conf file <e>must</e> be on the same disk as the quik boot images,
9955 however it can be on a different partition on the same disk, although it is
9956 recommended to move it to your boot partition.
9957 </p>
9958
9959 <pre caption="Moving quik.conf to /boot">
9960 # <i>mv /etc/quik.conf /boot/quik.conf</i>
9961 </pre>
9962
9963 <p>
9964 We will now set your boot variables so that quik loads on boot. To do this,
9965 we'll use a program called <c>nvsetenv</c>. The variables that you want to
9966 set vary from machine to machine, it's best to find your machine's
9967 <uri link="http://penguinppc.org/bootloaders/quik/quirks.php">quirks</uri>
9968 before attempting this.
9969 </p>
9970
9971 <pre caption="Setting the boot variables">
9972 # <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>
9973 # <i>nvsetenv output-device video</i> <comment># Check the quirks page, there are many variations here</comment>
9974 # <i>nvsetenv input-device kbd</i>
9975 # <i>nvsetenv boot-device scsi/sd@1:0</i> <comment># For SCSI</comment>
9976 # <i>nvsetenv boot-device ata/ata-disk@0:0</i> <comment># For ATA</comment>
9977 # <i>nvsetenv boot-file /boot/vmlinux-2.6.17 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>
9978 # <i>nvsetenv boot-command boot</i> <comment># Set this to bye for MacOS and boot for Linux</comment>
9979 </pre>
9980
9981 <note>
9982 It is also possible to change your boot variables from MacOS. Depending
9983 upon the model, either
9984 <uri link="http://penguinppc.org/bootloaders/quik/BootVars.sit.hqx">bootvars</uri> or
9985 <uri link="ftp://ftp.apple.com/developer/macosxserver/utilities/SystemDisk2.3.1.smi.bin">
9986 Apple System Disk</uri> should be used. Please see the quik quirks page
9987 above for more information.
9988 </note>
9989
9990 <p>
9991 Now that we've set up our machine to boot, we'll need to make sure the boot
9992 images are installed correctly. Run <c>quik -v -C /boot/quik.conf</c>. It
9993 should tell you that it has installed the first stage QUIK boot block.
9994 </p>
9995
9996 <note>
9997 If something has gone wrong, you can always reset your PRAM back to the default
9998 values by holding down <c>command + option + p + r</c> before powering on your
9999 machine. This will clear the values you set with nvsetenv and should allow you
10000 to boot either a MacOS bootdisk or a Linux bootdisk.
10001 </note>
10002
10003 <p>
10004 Now, continue the installation with
10005 <uri link="#reboot">Rebooting the System</uri>.
10006 </p>
10007
10008 </body>
10009 </section>
10010 <section id="bootcreator">
10011 <title>Alternative: BootCreator</title>
10012 <body>
10013
10014 <impo>
10015 BootCreator will build a nice SmartFirmware bootmenu written in Forth for the
10016 Pegasos.
10017 </impo>
10018
10019 <p>
10020 First make sure you have <c>bootcreator</c> installed on your system:
10021 </p>
10022
10023 <pre caption = "Installing bootcreator">
10024 # <i>emerge --usepkg bootcreator</i>
10025 </pre>
10026
10027 <p>
10028 Now copy the file <path>/etc/bootmenu.example</path> into
10029 <path>/etc/bootmenu</path> and edit it to your needs:
10030 </p>
10031
10032 <pre caption = "Edit the bootcreator config file">
10033 # <i>cp /etc/bootmenu.example /etc/bootmenu</i>
10034 # <i>nano -w /etc/bootmenu</i>
10035 </pre>
10036
10037 <p>
10038 Below is a complete <path>/etc/bootmenu</path> config file. The kernel-name
10039 and initrd-name should be replaced by your kernel and initrd image names.
10040 </p>
10041
10042 <pre caption = "bootcreator config file">
10043 <comment>#
10044 # Example description file for bootcreator 1.1
10045 #</comment>
10046
10047 [VERSION]
10048 1
10049
10050 [TITLE]
10051 Boot Menu
10052
10053 [SETTINGS]
10054 AbortOnKey = false
10055 Timeout = 9
10056 Default = 1
10057
10058 [SECTION]
10059 Local HD -> Morphos (Normal)
10060 ide:0 boot2.img ramdebug edebugflags="logkprintf"
10061
10062 [SECTION]
10063 Local HD -> Linux (Normal)
10064 ide:0 kernel-name video=radeonfb:1024x768@70 root=/dev/hda3
10065
10066 [SECTION]
10067 Local HD -> Genkernel (Normal)
10068 ide:0 kernel-name root=/dev/ram0 real_root=/dev/hda3 init=/linuxrc initrd=initrd-name
10069 </pre>
10070
10071 <p>
10072 Finally the <path>bootmenu</path> must be transfered into Forth and copied to
10073 your boot partition, so that the SmartFirmware can read it. Therefore you have
10074 to call <c>bootcreator</c>:
10075 </p>
10076
10077 <pre caption = "Install the bootmenu">
10078 # <i>bootcreator /etc/bootmenu /boot/menu</i>
10079 </pre>
10080
10081 <note>
10082 Be sure to have a look into the SmartFirmware's settings when you reboot, that
10083 <path>menu</path> is the file that will be loaded by default.
10084 </note>
10085
10086 <p>
10087 For now, continue the installation with <uri link="#reboot">Rebooting the
10088 System</uri>.
10089 </p>
10090
10091 </body>
10092 </section>
10093 <section id="reboot">
10094 <title>Rebooting the System</title>
10095 <subsection>
10096 <body>
10097
10098 <p>
10099 Exit the chrooted environment and unmount all mounted partitions. Then type in
10100 that one magical command you have been waiting for: <c>reboot</c>.
10101 </p>
10102
10103 <pre caption="Exiting the chroot, unmounting all partitions and rebooting">
10104 # <i>exit</i>
10105 livecd ~# <i>umount /mnt/gentoo/proc /mnt/gentoo/dev /mnt/gentoo/sys /mnt/gentoo</i>
10106 livecd ~# <i>reboot</i>
10107 </pre>
10108
10109 <p>
10110 Once rebooted in your Gentoo installation, finish up with <uri
10111 link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
10112 </p>
10113
10114 </body>
10115 </subsection>
10116 </section>
10117 </sections>
10118
10119
10120
10121 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc-disk.xml
10122
10123 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc-disk.xml?rev=1.1&view=markup
10124 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc-disk.xml?rev=1.1&content-type=text/plain
10125
10126 Index: hb-install-ppc-disk.xml
10127 ===================================================================
10128 <?xml version='1.0' encoding='UTF-8'?>
10129 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
10130
10131 <!-- The content of this document is licensed under the CC-BY-SA license -->
10132 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
10133
10134 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc-disk.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
10135
10136 <sections>
10137
10138 <version>7.0</version>
10139 <date>2006-08-30</date>
10140
10141 <section>
10142 <title>Introduction to Block Devices</title>
10143 <subsection>
10144 <title>Block Devices</title>
10145 <body>
10146
10147 <p>
10148 We'll take a good look at disk-oriented aspects of Gentoo Linux
10149 and Linux in general, including Linux filesystems, partitions and block devices.
10150 Then, once you're familiar with the ins and outs of disks and filesystems,
10151 you'll be guided through the process of setting up partitions and filesystems
10152 for your Gentoo Linux installation.
10153 </p>
10154
10155 <p>
10156 To begin, we'll introduce <e>block devices</e>. The most common block device is
10157 the one that represents the first IDE drive in a Linux system, namely
10158 <path>/dev/hda</path>. If you are installing onto SCSI, FireWire, USB or SATA
10159 drives, then your first hard drive would be <path>/dev/sda</path>.
10160 </p>
10161
10162 <p>
10163 The block devices above represent an abstract interface to the disk. User
10164 programs can use these block devices to interact with your disk without worrying
10165 about whether your drives are IDE, SCSI or something else. The program can
10166 simply address the storage on the disk as a bunch of contiguous,
10167 randomly-accessible 512-byte blocks.
10168 </p>
10169
10170 </body>
10171 </subsection>
10172 <subsection>
10173 <title>Partitions</title>
10174 <body>
10175
10176 <p>
10177 Although it is theoretically possible to use a full disk to house your Linux
10178 system, this is almost never done in practice. Instead, full disk block devices
10179 are split up in smaller, more manageable block devices. On most systems,
10180 these are called <e>partitions</e>.
10181 </p>
10182
10183 </body>
10184 </subsection>
10185 </section>
10186 <section>
10187 <title>Designing a Partitioning Scheme</title>
10188 <subsection>
10189 <title>Default Partitioning Scheme</title>
10190 <body>
10191
10192 <p>
10193 If you are not interested in drawing up a partitioning scheme for your system,
10194 you can use the partitioning scheme we use throughout this book:
10195 </p>
10196
10197 <note>
10198 If you are using an OldWorld machine, you will need to keep MacOS available.
10199 The layout here assumes MacOS is installed on a separate drive.
10200 </note>
10201
10202 <table>
10203 <tr>
10204 <th>Partition NewWorld</th>
10205 <th>Partition OldWorld</th>
10206 <th>Partition Pegasos</th>
10207 <th>Partition RS/6000</th>
10208 <th>Filesystem</th>
10209 <th>Size</th>
10210 <th>Description</th>
10211 </tr>
10212 <tr>
10213 <ti><path>/dev/hda1</path></ti>
10214 <ti><path>/dev/hda1</path></ti>
10215 <ti>(Not applicable)</ti>
10216 <ti>(Not applicable)</ti>
10217 <ti>(Partition Map)</ti>
10218 <ti>32k</ti>
10219 <ti>Apple_partition_map</ti>
10220 </tr>
10221 <tr>
10222 <ti><path>/dev/hda2</path></ti>
10223 <ti>(Not needed)</ti>
10224 <ti>(Not applicable)</ti>
10225 <ti>(Not applicable)</ti>
10226 <ti>(bootstrap)</ti>
10227 <ti>800k</ti>
10228 <ti>Apple_Bootstrap</ti>
10229 </tr>
10230 <tr>
10231 <ti>(Not applicable)</ti>
10232 <ti>(Not applicable)</ti>
10233 <ti>(Not applicable)</ti>
10234 <ti><path>/dev/sda1</path></ti>
10235 <ti>(PReP Boot)</ti>
10236 <ti>800k</ti>
10237 <ti>Type 0x41</ti>
10238 </tr>
10239 <tr>
10240 <ti>(Not applicable)</ti>
10241 <ti><path>/dev/hda2</path> (If using quik)</ti>
10242 <ti><path>/dev/hda1</path></ti>
10243 <ti>(Not applicable)</ti>
10244 <ti>ext2</ti>
10245 <ti>32MB</ti>
10246 <ti>Boot partition</ti>
10247 </tr>
10248 <tr>
10249 <ti><path>/dev/hda3</path></ti>
10250 <ti><path>/dev/hda2</path> (<path>/dev/hda3</path> if using quik)</ti>
10251 <ti><path>/dev/hda2</path></ti>
10252 <ti><path>/dev/sda2</path></ti>
10253 <ti>(swap)</ti>
10254 <ti>512M</ti>
10255 <ti>Swap partition, Type 0x82</ti>
10256 </tr>
10257 <tr>
10258 <ti><path>/dev/hda4</path></ti>
10259 <ti><path>/dev/hda3</path> (<path>/dev/hda4</path> if using quik)</ti>
10260 <ti><path>/dev/hda3</path></ti>
10261 <ti><path>/dev/sda3</path></ti>
10262 <ti>ext3, xfs</ti>
10263 <ti>Rest of the disk</ti>
10264 <ti>Root partition, Type 0x83</ti>
10265 </tr>
10266 </table>
10267
10268 <note>
10269 There are some partitions named: <path>Apple_Driver63, Apple_Driver_ATA,
10270 Apple_FWDriver, Apple_Driver_IOKit, Apple_Patches</path>. If you are not
10271 planning to use MacOS 9 you can delete them, because MacOS X and Linux don't
10272 need them. To delete them, either use parted or erase the whole disk by
10273 initializing the partition map.
10274 </note>
10275
10276 <warn>
10277 <c>parted</c> is able to resize partitions including HFS+. Unfortunately it is
10278 not possible to resize HFS+ journaled filesystems, so switch off journaling in
10279 Mac OS X before resizing. Remember that any resizing operation is dangerous,
10280 so attempt at your own risk! Be sure to always have a backup of your data
10281 before resizing!
10282 </warn>
10283
10284 <p>
10285 If you are interested in knowing how big a partition should be, or even how many
10286 partitions you need, read on. Otherwise continue now with
10287 <uri link="#mac-fdisk"> Default: Using mac-fdisk (Apple) to Partition your Disk
10288 </uri> or <uri link="#parted">Alternative: Using parted (IBM/Pegasos) to
10289 Partition your Disk</uri>.
10290 </p>
10291
10292 </body>
10293 </subsection>
10294 <subsection>
10295 <title>How Many and How Big?</title>
10296 <body>
10297
10298 <p>
10299 The number of partitions is highly dependent on your environment. For instance,
10300 if you have lots of users, you will most likely want to have your
10301 <path>/home</path> separate as it increases security and makes backups easier.
10302 If you are installing Gentoo to perform as a mailserver, your <path>/var</path>
10303 should be separate as all mails are stored inside <path>/var</path>. A good
10304 choice of filesystem will then maximise your performance. Gameservers will have
10305 a separate <path>/opt</path> as most gaming servers are installed there. The
10306 reason is similar for <path>/home</path>: security and backups. You will
10307 definitely want to keep <path>/usr</path> big: not only will it contain the
10308 majority of applications, the Portage tree alone takes around 500 Mbyte
10309 excluding the various sources that are stored in it.
10310 </p>
10311
10312 <p>
10313 As you can see, it very much depends on what you want to achieve. Separate
10314 partitions or volumes have the following advantages:
10315 </p>
10316
10317 <ul>
10318 <li>
10319 You can choose the best performing filesystem for each partition or volume
10320 </li>
10321 <li>
10322 Your entire system cannot run out of free space if one defunct tool is
10323 continuously writing files to a partition or volume
10324 </li>
10325 <li>
10326 If necessary, file system checks are reduced in time, as multiple checks can
10327 be done in parallel (although this advantage is more with multiple disks than
10328 it is with multiple partitions)
10329 </li>
10330 <li>
10331 Security can be enhanced by mounting some partitions or volumes read-only,
10332 nosuid (setuid bits are ignored), noexec (executable bits are ignored) etc.
10333 </li>
10334 </ul>
10335
10336 <p>
10337 However, multiple partitions have one big disadvantage: if not configured
10338 properly, you might result in having a system with lots of free space on one
10339 partition and none on another. There is also a 15-partition limit for SCSI and
10340 SATA.
10341 </p>
10342
10343 </body>
10344 </subsection>
10345 </section>
10346 <section id="mac-fdisk">
10347 <title>Default: Using mac-fdisk (Apple) Partition your Disk</title>
10348 <body>
10349
10350 <p>
10351 At this point, create your partitions using <c>mac-fdisk</c>:
10352 </p>
10353
10354 <pre caption="Starting mac-fdisk">
10355 # <i>mac-fdisk /dev/hda</i>
10356 </pre>
10357
10358 <p>
10359 First delete the partitions you have cleared previously to make room for your
10360 Linux partitions. Use <c>d</c> in <c>mac-fdisk</c> to delete those partition(s).
10361 It will ask for the partition number to delete. Usually the first partition on
10362 NewWorld machines (Apple_partition_map) could not be deleted.
10363 </p>
10364
10365 <p>
10366 Second, create an <e>Apple_Bootstrap</e> partition by using <c>b</c>. It will
10367 ask for what block you want to start. Enter the number of your first free
10368 partition, followed by a <c>p</c>. For instance this is <c>2p</c>.
10369 </p>
10370
10371 <note>
10372 This partition is <e>not</e> a <path>/boot</path> partition. It is not used by
10373 Linux at all; you don't have to place any filesystem on it and you should never
10374 mount it. Apple users don't need an extra partition for <path>/boot</path>.
10375 </note>
10376
10377 <p>
10378 Now create a swap partition by pressing <c>c</c>. Again <c>mac-fdisk</c> will
10379 ask for what block you want to start this partition from. As we used <c>2</c>
10380 before to create the Apple_Bootstrap partition, you now have to enter
10381 <c>3p</c>. When you're asked for the size, enter <c>512M</c> (or whatever size
10382 you want -- 512MB is recommended though). When asked for a name, enter <c>swap</c>
10383 (mandatory).
10384 </p>
10385
10386 <p>
10387 To create the root partition, enter <c>c</c>, followed by <c>4p</c> to select
10388 from what block the root partition should start. When asked for the size, enter
10389 <c>4p</c> again. <c>mac-fdisk</c> will interpret this as "Use all available
10390 space". When asked for the name, enter <c>root</c> (mandatory).
10391 </p>
10392
10393 <p>
10394 To finish up, write the partition to the disk using <c>w</c> and <c>q</c> to
10395 quit <c>mac-fdisk</c>.
10396 </p>
10397
10398 <note>
10399 To make sure everything is ok, you should run mac-fdisk once more and check
10400 whether all the partitions are there. If you don't see any of the partitions
10401 you created, or the changes you made, you should reinitialize your partitions
10402 by pressing "i" in mac-fdisk. Note that this will recreate the partition map
10403 and thus remove all your partitions.
10404 </note>
10405
10406 <p>
10407 Now that your partitions are created, you can continue with <uri
10408 link="#filesystems">Creating Filesystems</uri>.
10409 </p>
10410
10411 </body>
10412 </section>
10413 <section id="parted">
10414 <title>Using parted (especially Pegasos) to Partition your Disk</title>
10415 <body>
10416
10417 <p>
10418 <c>parted</c>, the Partition Editor, can now handle HFS+ partitions used by
10419 Mac OS and Mac OS X. With this tool you can resize your Mac-partitions and
10420 create space for your Linux partitions. Nevertheless, the example below
10421 describes partitioning for Pegasos machines only.
10422 </p>
10423
10424 <p>
10425 To begin let's fire up <c>parted</c>:
10426 </p>
10427
10428 <pre caption="Starting parted">
10429 # <i>parted /dev/hda</i>
10430 </pre>
10431
10432 <p>
10433 If the drive is unpartitioned, run <c>mklabel amiga</c> to create a new
10434 disklabel for the drive.
10435 </p>
10436
10437 <p>
10438 You can type <c>print</c> at any time in parted to display the current partition
10439 table. If at any time you change your mind or made a mistake you can press
10440 <c>Ctrl-c</c> to abort parted.
10441 </p>
10442
10443 <p>
10444 If you intend to also install MorphOS on your Pegasos create an affs1 filesystem
10445 named "BI0" (BI zero) at the start of the drive. 32MB should be more than enough
10446 to store the MorphOS kernel. If you have a Pegasos I or intend to use reiserfs or
10447 xfs, you will also have to store your Linux kernel on this partition (the
10448 Pegasos II can only boot from ext2/ext3 or affs1 partitions). To create the partition run
10449 <c>mkpart primary affs1 START END</c> where <c>START</c> and <c>END</c> should
10450 be replaced with the megabyte range (e.g. <c>0 32</c> creates a 32 MB partition
10451 starting at 0MB and ending at 32MB.
10452 </p>
10453
10454 <p>
10455 You need to create two partitions for Linux, one root filesystem for all your
10456 program files etc, and one swap partition. To create the root filesystem you
10457 must first decide which filesystem to use. Possible options are ext2, ext3,
10458 reiserfs and xfs. Unless you know what you are doing, use ext3. Run
10459 <c>mkpart primary ext3 START END</c> to create an ext3 partition. Again, replace
10460 <c>START</c> and <c>END</c> with the megabyte start and stop marks for the
10461 partition.
10462 </p>
10463
10464 <p>
10465 It is generally recommended that you create a swap partition the same size as
10466 the amount of RAM in your computer times two. You will probably get away with a
10467 smaller swap partition unless you intend to run a lot of applications at the
10468 same time (although at least 512MB is recommended). To create the swap
10469 partition, run <c>mkpart primary linux-swap START END</c>.
10470 </p>
10471
10472 <p>
10473 Write down the partition minor numbers as they are required during the
10474 installation process. To display the minor numbers run <c>print</c>. Your drives
10475 are accessed as <path>/dev/hdaX</path> where X is replaced with the minor number
10476 of the partition.
10477 </p>
10478
10479 <p>
10480 When you are done in parted simply run <c>quit</c>.
10481 </p>
10482
10483 </body>
10484 </section>
10485 <section id="filesystems">
10486 <title>Creating Filesystems</title>
10487 <subsection>
10488 <title>Introduction</title>
10489 <body>
10490
10491 <p>
10492 Now that your partitions are created, it is time to place a filesystem on them.
10493 If you don't care about what filesystem to choose and are happy with what we use
10494 as default in this handbook, continue with <uri
10495 link="#filesystems-apply">Applying a Filesystem to a Partition</uri>.
10496 Otherwise read on to learn about the available filesystems...
10497 </p>
10498
10499 </body>
10500 </subsection>
10501 <subsection>
10502 <title>Filesystems?</title>
10503 <body>
10504
10505 <p>
10506 Several filesystems are available. ext2, ext3, ReiserFS and XFS have been found
10507 stable on the PPC architecture.
10508 </p>
10509
10510 <p>
10511 <b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata
10512 journaling, which means that routine ext2 filesystem checks at startup time can
10513 be quite time-consuming. There is now quite a selection of newer-generation
10514 journaled filesystems that can be checked for consistency very quickly and are
10515 thus generally preferred over their non-journaled counterparts. Journaled
10516 filesystems prevent long delays when you boot your system and your filesystem
10517 happens to be in an inconsistent state.
10518 </p>
10519
10520 <p>
10521 <b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata
10522 journaling for fast recovery in addition to other enhanced journaling modes like
10523 full data and ordered data journaling. ext3 is a very good and reliable
10524 filesystem.
10525 </p>
10526
10527 <p>
10528 <b>ReiserFS</b> is a B*-tree based filesystem that has very good overall
10529 performance and greatly outperforms both ext2 and ext3 when dealing with small
10530 files (files less than 4k), often by a factor of 10x-15x. ReiserFS also scales
10531 extremely well and has metadata journaling. As of kernel 2.4.18+, ReiserFS is
10532 solid and usable as both general-purpose filesystem and for extreme cases such
10533 as the creation of large filesystems, the use of many small files, very large
10534 files and directories containing tens of thousands of files.
10535 </p>
10536
10537 <p>
10538 <b>XFS</b> is a filesystem with metadata journaling which comes with a robust
10539 feature-set and is optimized for scalability. We only recommend using this
10540 filesystem on Linux systems with high-end SCSI and/or fibre channel storage and
10541 an uninterruptible power supply. Because XFS aggressively caches in-transit data
10542 in RAM, improperly designed programs (those that don't take proper precautions
10543 when writing files to disk and there are quite a few of them) can lose a good
10544 deal of data if the system goes down unexpectedly.
10545 </p>
10546
10547 </body>
10548 </subsection>
10549 <subsection id="filesystems-apply">
10550 <title>Applying a Filesystem to a Partition</title>
10551 <body>
10552
10553 <p>
10554 To create a filesystem on a partition or volume, there are tools available for
10555 each possible filesystem:
10556 </p>
10557
10558 <table>
10559 <tr>
10560 <th>Filesystem</th>
10561 <th>Creation Command</th>
10562 </tr>
10563 <tr>
10564 <ti>ext2</ti>
10565 <ti><c>mkfs.ext2</c></ti>
10566 </tr>
10567 <tr>
10568 <ti>ext3</ti>
10569 <ti><c>mkfs.ext3</c></ti>
10570 </tr>
10571 <tr>
10572 <ti>reiserfs</ti>
10573 <ti><c>mkfs.reiserfs</c></ti>
10574 </tr>
10575 <tr>
10576 <ti>xfs</ti>
10577 <ti><c>mkfs.xfs</c></ti>
10578 </tr>
10579 </table>
10580
10581 <p>
10582 For instance, to have the root partition (<path>/dev/hda4</path> in our example)
10583 in ext3 (as in our example), you would use:
10584 </p>
10585
10586 <pre caption="Applying a filesystem on a partition">
10587 # <i>mkfs.ext3 /dev/hda4</i>
10588 </pre>
10589
10590 <p>
10591 Now create the filesystems on your newly created partitions (or logical
10592 volumes).
10593 </p>
10594
10595 <note>
10596 On the PegasosII your partition which holds the kernel must be ext2/ext3 or
10597 affs1. NewWorld machines can boot from any of ext2, ext3, XFS, ReiserFS or
10598 even HFS/HFS+ filesystems. On OldWorld machines booting with BootX, the kernel
10599 must be placed on an HFS partition, but this will be completed when you
10600 configure your bootloader.
10601 </note>
10602
10603 </body>
10604 </subsection>
10605 <subsection>
10606 <title>Activating the Swap Partition</title>
10607 <body>
10608
10609 <p>
10610 <c>mkswap</c> is the command that is used to initialize swap partitions:
10611 </p>
10612
10613 <pre caption="Creating a Swap signature">
10614 # <i>mkswap /dev/hda3</i>
10615 </pre>
10616
10617 <p>
10618 To activate the swap partition, use <c>swapon</c>:
10619 </p>
10620
10621 <pre caption="Activating the swap partition">
10622 # <i>swapon /dev/hda3</i>
10623 </pre>
10624
10625 <p>
10626 Create and activate the swap now.
10627 </p>
10628
10629 </body>
10630 </subsection>
10631 </section>
10632 <section>
10633 <title>Mounting</title>
10634 <body>
10635
10636 <p>
10637 Now that your partitions are initialized and are housing a filesystem, it is
10638 time to mount those partitions. Use the <c>mount</c> command. As an example we
10639 mount the root partition:
10640 </p>
10641
10642 <pre caption="Mounting partitions">
10643 # <i>mount /dev/hda4 /mnt/gentoo</i>
10644 </pre>
10645
10646 <note>
10647 If you want your <path>/tmp</path> to reside on a separate partition, be sure to
10648 change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This
10649 also holds for <path>/var/tmp</path>.
10650 </note>
10651
10652 <p>
10653 We will have to mount the proc filesystem (a virtual interface with the
10654 kernel) on <path>/proc</path>. But first we will need to place our files on the
10655 partitions.
10656 </p>
10657
10658 <p>
10659 Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
10660 Installation Files</uri>.
10661 </p>
10662
10663 </body>
10664 </section>
10665 </sections>
10666
10667
10668
10669 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc-kernel.xml
10670
10671 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc-kernel.xml?rev=1.1&view=markup
10672 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc-kernel.xml?rev=1.1&content-type=text/plain
10673
10674 Index: hb-install-ppc-kernel.xml
10675 ===================================================================
10676 <?xml version='1.0' encoding='UTF-8'?>
10677 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
10678
10679 <!-- The content of this document is licensed under the CC-BY-SA license -->
10680 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
10681
10682 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc-kernel.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
10683
10684 <sections>
10685
10686 <version>7.0</version>
10687 <date>2006-08-30</date>
10688
10689 <section>
10690 <title>Timezone</title>
10691 <body>
10692
10693 <p>
10694 You first need to select your timezone so that your system knows where it is
10695 located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy
10696 it to <path>/etc/localtime</path>. Please avoid the
10697 <path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not
10698 indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8.
10699 </p>
10700
10701 <pre caption="Setting the timezone information">
10702 # <i>ls /usr/share/zoneinfo</i>
10703 <comment>(Suppose you want to use GMT)</comment>
10704 # <i>cp /usr/share/zoneinfo/GMT /etc/localtime</i>
10705 </pre>
10706
10707 </body>
10708 </section>
10709 <section>
10710 <title>Installing the Sources</title>
10711 <subsection>
10712 <title>Choosing a Kernel</title>
10713 <body>
10714
10715 <p>
10716 The core around which all distributions are built is the Linux kernel. It is the
10717 layer between the user programs and your system hardware. Gentoo provides its
10718 users several possible kernel sources. A full listing with description is
10719 available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel
10720 Guide</uri>.
10721 </p>
10722
10723 <p>
10724 We suggest using either <c>vanilla-sources</c> or <c>gentoo-sources</c> on PPC,
10725 which are both 2.6 kernels. The latter is available when you perform a
10726 networkless installation. So let's continue with <c>emerge</c>'ing the kernel
10727 sources. The <c>USE="-doc"</c> is necessary to avoid installing xorg-x11 or
10728 other dependencies at this point. <c>USE="symlink"</c> is not necessary for a
10729 new install, but ensures proper creation of the <path>/usr/src/linux</path>
10730 symlink.
10731 </p>
10732
10733 <pre caption="Installing a kernel source">
10734 # <i>USE="-doc symlink" emerge gentoo-sources</i>
10735 </pre>
10736
10737 <p>
10738 If you take a look in <path>/usr/src</path> you should see a symlink named
10739 <path>linux</path> pointing to your current kernel source. In this case, the
10740 installed kernel source points to <c>gentoo-sources-2.6.15</c>. Your version
10741 may be different, so keep this in mind.
10742 </p>
10743
10744 <pre caption="Viewing the kernel source symlink">
10745 # <i>ls -l /usr/src/linux</i>
10746 lrwxrwxrwx 1 root root 22 Mar 18 16:23 /usr/src/linux -&gt; linux-2.6.15
10747 </pre>
10748
10749 <p>
10750 Now it is time to configure and compile your kernel source. You
10751 can use <c>genkernel</c> for this, which will build a generic kernel as used
10752 by the Installation CD. We explain the "manual" configuration first though, as
10753 it is the best way to optimize your environment.
10754 </p>
10755
10756 <p>
10757 If you want to manually configure your kernel, continue now with <uri
10758 link="#manual">Default: Manual Configuration</uri>. If you want to use
10759 <c>genkernel</c> you should read <uri link="#genkernel">Alternative: Using
10760 genkernel</uri> instead.
10761 </p>
10762
10763 </body>
10764 </subsection>
10765 </section>
10766 <section id="manual">
10767 <title>Default: Manual Configuration</title>
10768 <subsection>
10769 <title>Introduction</title>
10770 <body>
10771
10772 <p>
10773 Manually configuring a kernel is often seen as the most difficult procedure a
10774 Linux user ever has to perform. Nothing is less true -- after configuring a
10775 couple of kernels you don't even remember that it was difficult ;)
10776 </p>
10777
10778 <p>
10779 However, one thing <e>is</e> true: you must know your system when you start
10780 configuring a kernel manually. Most information can be gathered by emerging
10781 pciutils (<c>emerge pciutils</c>) which contains <c>lspci</c>. You will now
10782 be able to use <c>lspci</c> within the chrooted environment. You may safely
10783 ignore any <e>pcilib</e> warnings (like pcilib: cannot open
10784 /sys/bus/pci/devices) that <c>lspci</c> throws out. Alternatively, you can run
10785 <c>lspci</c> from a <e>non-chrooted</e> environment. The results are the same.
10786 You can also run <c>lsmod</c> to see what kernel modules the Installation CD
10787 uses (it might provide you with a nice hint on what to enable). Another place
10788 to look for clues as to what components to enable is to check the kernel
10789 message logs from the successful boot that got you this far. Type <c>dmesg</c>
10790 to see the kernel messages.
10791 </p>
10792
10793 <p>
10794 Now, go to your kernel source directory, it's time to configure your kernel.
10795 It is recommended that you add the default settings to your configuration by
10796 first running <c>make defconfig</c>. After the default configuration has been
10797 generated, run <c>make menuconfig</c> which will fire up an ncurses-based
10798 configuration menu.
10799 </p>
10800
10801 <pre caption="Invoking menuconfig">
10802 # <i>cd /usr/src/linux</i>
10803 # <i>make defconfig</i>
10804 # <i>make menuconfig</i>
10805 </pre>
10806
10807 <p>
10808 You will be greeted with several configuration sections. We'll first list some
10809 options you must activate (otherwise Gentoo will not function, or not function
10810 properly without additional tweaks).
10811 </p>
10812
10813 </body>
10814 </subsection>
10815 <subsection>
10816 <title>Activating Required Options</title>
10817 <body>
10818
10819 <p>
10820 First of all, activate the use of development and experimental code/drivers.
10821 You need this, otherwise some very important code/drivers won't show up:
10822 </p>
10823
10824 <pre caption="Selecting experimental code/drivers">
10825 Code maturity level options ---&gt;
10826 [*] Prompt for development and/or incomplete code/drivers
10827 </pre>
10828
10829 <p>
10830 Now go to <c>File Systems</c> and select support for the filesystems you use.
10831 <e>Don't</e> compile them as modules, otherwise your Gentoo system will not be
10832 able to mount your partitions. Also select the <c>/proc file system</c> and
10833 <c>Virtual memory</c>. Make sure that you also enable support for Amiga
10834 partitions if you are using a Pegasos, or Macintosh partitions if you are using
10835 an Apple computer.
10836 </p>
10837
10838 <pre caption="Selecting necessary file systems">
10839 File systems ---&gt;
10840 Pseudo Filesystems ---&gt;
10841 [*] /proc file system support
10842 [*] Virtual memory file system support (former shm fs)
10843 Partition Types ---&gt;
10844 [*] Amiga partition table support
10845 [*] Macintosh partition map support
10846
10847 <comment>(Select one or more of the following options as needed by your system)</comment>
10848 &lt;*&gt; Reiserfs support
10849 &lt;*&gt; Ext3 journalling file system support
10850 &lt;*&gt; Second extended fs support
10851 &lt;*&gt; XFS filesystem support
10852 </pre>
10853
10854 <p>
10855 If you are using PPPoE to connect to the Internet or you are using a dial-up
10856 modem, you will need the following options in the kernel:
10857 </p>
10858
10859 <pre caption="Selecting PPPoE necessary drivers">
10860 Device Drivers ---&gt;
10861 Networking support ---&gt;
10862 &lt;*&gt; PPP (point-to-point protocol) support
10863 &lt;*&gt; PPP support for async serial ports
10864 &lt;*&gt; PPP support for sync tty ports
10865 </pre>
10866
10867 <p>
10868 The two compression options won't harm but are not definitely needed, neither
10869 does the <c>PPP over Ethernet</c> option, that might only be used by
10870 <c>rp-pppoe</c> when configured to do kernel mode PPPoE.
10871 </p>
10872
10873 <p>
10874 If you require it, don't forget to include support in the kernel for your
10875 ethernet card.
10876 </p>
10877
10878 <p>
10879 Users of NewWorld and OldWorld machines will want HFS support as well. OldWorld
10880 users require it for copying compiled kernels to the MacOS partition. NewWorld
10881 users require it for configuring the special Apple_Bootstrap partition:
10882 </p>
10883
10884 <pre caption="Activating HFS support">
10885 File Systems ---&gt;
10886 [*] HFS Support
10887 </pre>
10888
10889 <p>
10890 At this time, kernel preemption is still unstable on PPC and may cause
10891 compilation failures and random segfaults. It is <e>strongly</e> suggested
10892 that you do not use this feature.
10893 </p>
10894
10895 <pre caption="Ensure the Preemptible Kernel Option is Off">
10896 Kernel options ---&gt;
10897 Preemption Model (No Forced Preemption (Server))
10898 </pre>
10899
10900 <p>
10901 If you're booting from Firewire, you'll need to enable these options. If you do
10902 not want to compile in support, you'll need to include these modules and their
10903 dependencies in an initrd.
10904 </p>
10905
10906 <pre caption="Enable support for firewire devices on boot">
10907 Device Drivers ---&gt;
10908 IEEE 1394 (FireWire) support ---&gt;
10909 &lt;*&gt; IEEE 1394 (FireWire) support
10910 &lt;*&gt; OHCI-1394 support
10911 &lt;*&gt; SBP-2 support (Harddisks etc.)
10912 </pre>
10913
10914 <p>
10915 If you're booting from USB, you'll need to enable these options. If you do not
10916 want to compile in support, you'll need to include these modules and their
10917 dependencies in an initrd.
10918 </p>
10919
10920 <pre caption="Enable support for USB devices on boot">
10921 Device Drivers ---&gt;
10922 USB support ---&gt;
10923 &lt;*&gt; Support for Host-side USB
10924 &lt;*&gt; OHCI HCD support
10925 &lt;*&gt; USB Mass Storage support
10926 </pre>
10927
10928 <p>
10929 Do not turn off kernel framebuffer support as it is required for a successful
10930 boot. If you are using an NVIDIA based chipset, you should use the OpenFirmware
10931 framebuffer. If you are using an ATI based chipset, you should select the
10932 framebuffer driver based upon your chipset (Mach64, Rage128 or Radeon).
10933 </p>
10934
10935 <pre caption="Chosing a Framebuffer Driver">
10936 Device Drivers ---&gt;
10937 Graphics support ---&gt;
10938 &lt;*&gt; Support for frame buffer devices
10939 [*] Open Firmware frame buffer device support
10940 &lt;*&gt; ATI Radeon display support
10941 &lt;*&gt; ATI Rage128 display support
10942 &lt;*&gt; ATI Mach64 display support
10943 Console display driver support ---&gt;
10944 &lt;*&gt; Framebuffer Console support
10945 </pre>
10946
10947 <note>
10948 If you select more than one framebuffer device, it may default to a less than
10949 optimal driver. Either use only one framebuffer device or specify which
10950 to use by passing the driver to use to the kernel on boot such as
10951 <c>video=radeonfb</c>.
10952 </note>
10953
10954 <p>
10955 When you're done configuring your kernel, continue with <uri
10956 link="#compiling">Compiling and Installing</uri>.
10957 </p>
10958
10959 </body>
10960 </subsection>
10961 <subsection id="compiling">
10962 <title>Compiling and Installing</title>
10963 <body>
10964
10965 <p>
10966 Now that your kernel is configured, it is time to compile and install it. Exit
10967 the configuration and run the commands which will compile the kernel:
10968 </p>
10969
10970 <pre caption="Compiling the kernel">
10971 # <i>make &amp;&amp; make modules_install</i>
10972 </pre>
10973
10974 <p>
10975 When the kernel has finished compiling, copy the kernel image to
10976 <path>/boot</path> (be sure that it is mounted properly on Pegasos computers).
10977 If you are using BootX to boot, we'll copy the kernel later.
10978 </p>
10979
10980 <p>
10981 Yaboot and BootX expect to use an uncompressed kernel unlike many other
10982 bootloaders. The uncompressed kernel is called vmlinux and it is placed in
10983 <path>/usr/src/linux</path> after the kernel has finished compiling. If you
10984 are using a Pegasos machine, the Pegasos firmware requires a compressed
10985 kernel called zImage.chrp which can be found in
10986 <path>/usr/src/linux/arch/ppc/boot/images</path>.
10987 </p>
10988
10989 <pre caption="Installing the kernel">
10990 # <i>cd /usr/src/linux</i>
10991 <comment>replace &lt;kernel-version&gt; with your kernel version</comment>
10992 <comment>(Apple/IBM)</comment>
10993 # <i>cp vmlinux /boot/&lt;kernel-version&gt;</i>
10994 <comment>(Pegasos)</comment>
10995 # <i>cp arch/ppc/boot/images/zImage.chrp /boot/&lt;kernel-version&gt;</i>
10996 </pre>
10997
10998 <p>
10999 Now continue with <uri link="#kernel_modules">Installing Separate Kernel
11000 Modules</uri>.
11001 </p>
11002
11003 </body>
11004 </subsection>
11005 </section>
11006 <section id="kernel_modules">
11007 <title>Installing Separate Kernel Modules</title>
11008 <subsection>
11009 <title>Configuring the Modules</title>
11010 <body>
11011
11012 <p>
11013 You should list the modules you want automatically loaded in
11014 <path>/etc/modules.autoload.d/kernel-2.6</path>.
11015 You can add extra options to the modules too if you want.
11016 </p>
11017
11018 <p>
11019 To view all available modules, run the following <c>find</c> command. Don't
11020 forget to substitute "&lt;kernel version&gt;" with the version of the kernel you
11021 just compiled:
11022 </p>
11023
11024 <pre caption="Viewing all available modules">
11025 # <i>find /lib/modules/&lt;kernel version&gt;/ -type f -iname '*.o' -or -iname '*.ko'</i>
11026 </pre>
11027
11028 <p>
11029 For instance, to automatically load the <c>3c59x.o</c> module, edit the
11030 <path>kernel-2.6</path> file and enter the module
11031 name in it.
11032 </p>
11033
11034 <pre caption="Editing /etc/modules.autoload.d/kernel-2.6">
11035 # <i>nano -w /etc/modules.autoload.d/kernel-2.6</i>
11036 </pre>
11037
11038 <pre caption="/etc/modules.autoload.d/kernel-2.6">
11039 3c59x
11040 </pre>
11041
11042 <p>
11043 Continue the installation with <uri link="?part=1&amp;chap=8">Configuring
11044 your System</uri>.
11045 </p>
11046
11047 </body>
11048 </subsection>
11049 </section>
11050 <section id="genkernel">
11051 <title>Alternative: Using genkernel</title>
11052 <body>
11053
11054 <p>
11055 If you are reading this section, you have chosen to use our <c>genkernel</c>
11056 script to configure your kernel for you.
11057 </p>
11058
11059 <p>
11060 Now that your kernel source tree is installed, it's now time to compile your
11061 kernel by using our <c>genkernel</c> script to automatically build a kernel for
11062 you. <c>genkernel</c> works by configuring a kernel nearly identically to the
11063 way our Installation CD kernel is configured. This means that when you use
11064 <c>genkernel</c> to build your kernel, your system will generally detect all
11065 your hardware at boot-time, just like our Installation CD does. Because genkernel
11066 doesn't require any manual kernel configuration, it is an ideal solution for
11067 those users who may not be comfortable compiling their own kernels.
11068 </p>
11069
11070 <p>
11071 Now, let's see how to use genkernel. First, emerge the genkernel ebuild:
11072 </p>
11073
11074 <pre caption="Emerging genkernel">
11075 # <i>emerge genkernel</i>
11076 </pre>
11077
11078 <p>
11079 Next, copy over the kernel configuration used by the Installation CD to the
11080 location where genkernel looks for the default kernel configuration:
11081 </p>
11082
11083 <pre caption="Copying over the Installation CD kernel config">
11084 # <i>zcat /proc/config.gz > /usr/share/genkernel/ppc/kernel-config-2.6</i>
11085 </pre>
11086
11087 <p>
11088 If you are using firewire or USB to boot, you'll need to add modules to the
11089 initrd. Edit <path>/usr/share/genkernel/ppc/modules_load</path> and change
11090 <c>MODULES_FIREWIRE="ieee1394 ohci1394 sbp2"</c> for firewire support or
11091 <c>MODULES_USB="usbcore ohci-hcd ehci-hcd usb-storage"</c> for USB support.
11092 </p>
11093
11094
11095 <p>
11096 Now, compile your kernel sources by running <c>genkernel --genzimage all</c>.
11097 For Pegasos, we will need to use a different config and create a zImage instead
11098 of the vmlinux kernel used on Apple machines. Be aware, as <c>genkernel</c>
11099 compiles a kernel that supports almost all hardware, this compilation can take
11100 quite a while to finish!
11101 </p>
11102
11103 <p>
11104 Note that, if your partition where the kernel should be located doesn't use ext2
11105 or ext3 as filesystem you might need to manually configure your kernel using
11106 <c>genkernel --menuconfig --genzimage all</c> and add support for your
11107 filesystem <e>in</e> the kernel (i.e. <e>not</e> as a module). Users of EVMS2 or
11108 LVM2 will probably want to add <c>--evms2</c> or <c>--lvm2</c> as argument as
11109 well.
11110 </p>
11111
11112 <pre caption="Running genkernel">
11113 # <i>genkernel --genzimage all</i>
11114 </pre>
11115
11116 <pre caption="Running genkernel on the Pegasos">
11117 # <i>genkernel --genzimage --kernel-config=/usr/share/genkernel/ppc/Pegasos all</i>
11118 </pre>
11119
11120 <p>
11121 Once <c>genkernel</c> completes, a kernel, full set of modules and
11122 <e>initial root disk</e> (initrd) will be created. We will use the kernel
11123 and initrd when configuring a boot loader later in this document. Write
11124 down the names of the kernel and initrd as you will need it when writing
11125 the bootloader configuration file. The initrd will be started immediately after
11126 booting to perform hardware autodetection (just like on the Installation CD)
11127 before your "real" system starts up. Be sure to also copy down the required
11128 boot arguments, these are required for a successful boot with genkernel.
11129 </p>
11130
11131 <pre caption="Checking the created kernel image name and initrd">
11132 # <i>ls /boot/kernel* /boot/initramfs*</i>
11133 </pre>
11134
11135 <p>
11136 If you want your system to be more like the Installation CD you should,
11137 when your Gentoo installation is over, emerge <c>coldplug</c>. While the
11138 initrd autodetects hardware that is needed to boot your system,
11139 <c>coldplug</c> autodetects everything else. <c>coldplug</c> is available as one
11140 of the packages on the Package CD.
11141 </p>
11142
11143 <pre caption="Emerging and enabling coldplug">
11144 <comment>(Do this after the installation, during the GRP installation instructions)</comment>
11145 # <i>emerge -k coldplug</i>
11146 # <i>rc-update add coldplug boot</i>
11147 </pre>
11148
11149 <p>
11150 If you want your system to react to hotplugging events, you will need to install
11151 and setup <c>hotplug</c> as well:
11152 </p>
11153
11154 <pre caption="Emerging and enabling hotplug">
11155 # <i>emerge hotplug</i>
11156 # <i>rc-update add hotplug default</i>
11157 </pre>
11158
11159 <p>
11160 Now continue with <uri link="?part=1&amp;chap=8">Configuring your System</uri>.
11161 </p>
11162
11163 </body>
11164 </section>
11165
11166 </sections>
11167
11168
11169
11170
11171 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc-medium.xml
11172
11173 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc-medium.xml?rev=1.1&view=markup
11174 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc-medium.xml?rev=1.1&content-type=text/plain
11175
11176 Index: hb-install-ppc-medium.xml
11177 ===================================================================
11178 <?xml version='1.0' encoding='UTF-8'?>
11179 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
11180
11181 <!-- The content of this document is licensed under the CC-BY-SA license -->
11182 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
11183
11184 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc-medium.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
11185
11186 <sections>
11187
11188 <version>7.0</version>
11189 <date>2006-08-30</date>
11190
11191 <section>
11192 <title>Hardware Requirements</title>
11193 <subsection>
11194 <title>Introduction</title>
11195 <body>
11196
11197 <p>
11198 Before we start, we first list what hardware requirements you need to
11199 successfully install Gentoo on your box.
11200 </p>
11201
11202 </body>
11203 </subsection>
11204 <subsection>
11205 <title>Hardware Requirements</title>
11206 <body>
11207
11208 <table>
11209 <tr>
11210 <th>Apple NewWorld Machines</th>
11211 <ti>
11212 Power/PowerPC microprocessors (G3, G4, G5) such as iMac, eMac, iBook
11213 PowerBook, Xserver, PowerMac
11214 </ti>
11215 </tr>
11216 <tr>
11217 <th>Apple OldWorld machines</th>
11218 <ti>
11219 Apple Machines with an OpenFirmware revision less than 3, such as the Beige
11220 G3s, PCI PowerMacs and PCI PowerBooks. PCI based Apple Clones should also
11221 be supported.
11222 </ti>
11223 </tr>
11224 <tr>
11225 <th>Genesi's Pegasos</th>
11226 <ti>
11227 Pegasos I/II, Open Desktop Workstation
11228 </ti>
11229 </tr>
11230 <tr>
11231 <th>IBM</th>
11232 <ti>
11233 RS/6000, iSeries, pSeries
11234 </ti>
11235 </tr>
11236 <tr>
11237 <th>Memory</th>
11238 <ti>At least 64 MB</ti>
11239 </tr>
11240 <tr>
11241 <th>Diskspace</th>
11242 <ti>1.5 GB (excluding swap space)</ti>
11243 </tr>
11244 <tr>
11245 <th>Swap space</th>
11246 <ti>At least 256 MB</ti>
11247 </tr>
11248 </table>
11249
11250 <p>
11251 Be sure to read the <uri link="/doc/en/gentoo-ppc-faq.xml">Gentoo PPC FAQ</uri>
11252 for help with some common installation related issues or if you're unsure as to
11253 just what's in that PowerPC machine you've got sitting on your desk right now.
11254 </p>
11255
11256 </body>
11257 </subsection>
11258 </section>
11259 <!-- Copy/paste of hb-install-x86-medium.xml, with s/x86/ppc/ -->
11260 <!-- START -->
11261 <section>
11262 <title>The Gentoo Universal Installation CD</title>
11263 <subsection>
11264 <title>Introduction</title>
11265 <body>
11266
11267 <p>
11268 Gentoo Linux can be installed using a <e>stage3</e> tarball file.
11269 Such a tarball is an archive that contains a minimal environment from
11270 which you can succesfully install Gentoo Linux onto your system.
11271 </p>
11272
11273 <p>
11274 Installations using a stage1 or stage2 tarball file are not documented in the
11275 Gentoo Handbook - please read the <uri link="/doc/en/faq.xml#stage12">Gentoo
11276 FAQ</uri> on these matters.
11277 </p>
11278
11279 </body>
11280 </subsection>
11281 <subsection>
11282 <title>Gentoo Universal Installation CD</title>
11283 <body>
11284
11285 <p>
11286 An Installation CD is a bootable medium which contains a self-sustained Gentoo
11287 environment. It allows you to boot Linux from the CD. During the boot process
11288 your hardware is detected and the appropriate drivers are loaded. The Gentoo
11289 Installation CDs are maintained by Gentoo developers.
11290 </p>
11291
11292 <p>
11293 There currently are two Installation CDs available:
11294 </p>
11295
11296 <ul>
11297 <li>
11298 The Universal Installation CD contains everything you need to install
11299 Gentoo. It provides stage3 files for common architectures, source code
11300 for the extra applications you need to choose from and, of course, the
11301 installation instructions for your architecture.
11302 </li>
11303 <li>
11304 The Minimal Installation CD contains only a minimal environment that allows
11305 you to boot up and configure your network so you can connect to the
11306 Internet. It does not contain any additional files and cannot be used
11307 during the current installation approach.
11308 </li>
11309 </ul>
11310
11311 <p>
11312 Gentoo also provides a Package CD. This is not an Installation CD but an
11313 additional resource that you can exploit during the installation of your Gentoo
11314 system. It contains prebuilt packages (also known as the GRP set) that allow
11315 you to easily and quickly install additional applications (such as
11316 OpenOffice.org, KDE, GNOME, ...) immediately after the Gentoo installation and
11317 right before you update your Portage tree.
11318 </p>
11319
11320 <p>
11321 The use of the Package CD is covered later in this document.
11322 </p>
11323
11324 </body>
11325 </subsection>
11326 </section>
11327 <!-- STOP -->
11328 <section>
11329 <title>Download, Burn and Boot the Gentoo Universal Installation CD</title>
11330 <subsection>
11331 <title>Downloading and Burning the Installation CD</title>
11332 <body>
11333
11334 <p>
11335 You can download the Universal Installation CD (and, if you want to, the
11336 Packages CD as well) from one of our <uri
11337 link="/main/en/mirrors.xml">mirrors</uri>. The Installation CDs are located
11338 in the <path>releases/ppc/2006.1/ppc32/installcd</path> directory;
11339 the Package CDs are located in the
11340 <path>releases/ppc/2006.1/ppc32/packagecd</path> directory.
11341 </p>
11342
11343 <p>
11344 Inside those directories you'll find ISO-files. Those are full CD images which
11345 you can write on a CD-R.
11346 </p>
11347
11348 <p>
11349 After downloading the file, you can verify its integrity to see if it is
11350 corrupted or not:
11351 </p>
11352
11353 <ul>
11354 <li>
11355 You can check its MD5 checksum and compare it with the MD5 checksum we
11356 provide (for instance with the <c>md5sum</c> tool under Linux/Unix or
11357 <uri link="http://www.etree.org/md5com.html">md5sum</uri> for Windows).
11358 Verifying MD5 checksums with Mac OS X is described in the <uri
11359 link="/doc/en/gentoo-ppc-faq.xml#doc_chap1">Gentoo PPC FAQ</uri>.
11360 </li>
11361 <li>
11362 You can verify the cryptographic signature that we provide. You need to
11363 obtain the public key we use (0x17072058) before you proceed though.
11364 </li>
11365 </ul>
11366
11367 <p>
11368 To fetch our public key using the GnuPG application, run the following command:
11369 </p>
11370
11371 <pre caption="Obtaining the public key">
11372 $ <i>gpg --keyserver subkeys.pgp.net --recv-keys 0x17072058</i>
11373 </pre>
11374
11375 <p>
11376 Now verify the signature:
11377 </p>
11378
11379 <pre caption="Verify the cryptographic signature">
11380 $ <i>gpg --verify &lt;signature file&gt; &lt;downloaded iso&gt;</i>
11381 </pre>
11382
11383 <p>
11384 To burn the downloaded ISO(s), you have to select raw-burning. How you
11385 do this is highly program-dependent. We will discuss <c>cdrecord</c> and
11386 <c>K3B</c> here; more information can be found in our <uri
11387 link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>.
11388 </p>
11389
11390 <ul>
11391 <li>
11392 With cdrecord, you simply type <c>cdrecord dev=/dev/hdc &lt;downloaded iso
11393 file&gt;</c> (replace <path>/dev/hdc</path> with your CD-RW drive's device
11394 path).
11395 </li>
11396 <li>
11397 With K3B, select <c>Tools</c> &gt; <c>CD</c> &gt; <c>Burn Image</c>. Then
11398 you can locate your ISO file within the 'Image to Burn' area. Finally click
11399 <c>Start</c>.
11400 </li>
11401 </ul>
11402
11403 </body>
11404 </subsection>
11405 <subsection>
11406 <title>Default: Booting the Installation CD with Yaboot</title>
11407 <body>
11408
11409 <p>
11410 On NewWorld machines place the Installation CD in the CD-ROM and reboot the
11411 system. When the system-start-bell sounds, simply hold down the 'C' until the
11412 CD loads.
11413 </p>
11414
11415 <p>
11416 After the Installation CD loaded, you will be greeted by a friendly welcome
11417 message and a <e>boot:</e> prompt at the bottom of the screen.
11418 </p>
11419
11420 <p>
11421 We provide one generic kernel, <e>apple</e>. This kernel is built with support
11422 for multiple CPUs, but it will boot on single processor machines as well.
11423 </p>
11424
11425 <p>
11426 You can tweak some kernel options at this prompt. The following table lists
11427 some of the available boot options you can add:
11428 </p>
11429
11430 <table>
11431 <tr>
11432 <th>Boot Option</th>
11433 <th>Description</th>
11434 </tr>
11435 <tr>
11436 <ti><c>video</c></ti>
11437 <ti>
11438 This option takes one of the following vendor-specific tags:
11439 <c>nvidiafb</c>, <c>radeonfb</c>, <c>rivafb</c>, <c>atyfb</c>,
11440 <c>aty128</c> or <c>ofonly</c>. You can follow this tag with the resolution
11441 refresh rate and color depth you want to use. For instance,
11442 <c>video=radeonfb:1280x1024@75-32</c> will select the ATI Radeon frame buffer
11443 at a resolution of 1280x1024 with a refresh rate of 75Hz and a color depth of
11444 32 bits. If you are uncertain what to choose, and the default doesn't work,
11445 <c>video=ofonly</c> will most certainly work.
11446 </ti>
11447 </tr>
11448 <tr>
11449 <ti><c>nol3</c></ti>
11450 <ti>
11451 Disables level 3 cache on some PowerBooks (needed for at least the 17&quot;)
11452 </ti>
11453 </tr>
11454 <tr>
11455 <ti><c>dofirewire</c></ti>
11456 <ti>
11457 Enables support for IEEE1394 (FireWire) devices, like external harddisks.
11458 </ti>
11459 </tr>
11460 <tr>
11461 <ti><c>dopcmcia</c></ti>
11462 <ti>
11463 If you want to use PCMCIA devices during your installation (like PCMCIA
11464 network cards) you have to enable this option.
11465 </ti>
11466 </tr>
11467 </table>
11468
11469 <p>
11470 To use the above options, at the <e>boot:</e> prompt, type <e>apple</e> followed
11471 by the desired option. In the example below, we'll force the kernel to use the
11472 OpenFirmware framebuffer instead of the device specific driver.
11473 </p>
11474
11475 <pre caption="Force the use of the OpenFirmware framebuffer">
11476 boot: <i>apple video=ofonly</i>
11477 </pre>
11478
11479 <p>
11480 If you don't need to add any options, just hit enter at this prompt, and a
11481 complete Gentoo Linux environment will be loaded from the CD. Continue with
11482 <uri link="#booted">And When You're Booted...</uri>.
11483 </p>
11484
11485 </body>
11486 </subsection>
11487 <subsection>
11488 <title>Alternative: Booting the Installation CD on a Pegasos</title>
11489 <body>
11490
11491 <p>
11492 On the Pegasos simply insert the CD and at the SmartFirmware boot-prompt type
11493 <c>boot cd /boot/menu</c>. This will open a small bootmenu where you can choose
11494 between several preconfigured video configs. If you need any special boot
11495 options you can append them to the command-line just like with Yaboot above.
11496 For example: <c>boot cd /boot/pegasos video=radeonfb:1280x1024@75 mem=256M</c>.
11497 The default kernel options (in case something goes wrong and you need it) are
11498 preconfigured with <c>console=ttyS0,115200 console=tty0 init=/linuxrc
11499 looptype=squashfs loop=/image.squashfs cdroot root=/dev/ram0</c>.
11500 </p>
11501
11502 </body>
11503 </subsection>
11504
11505 <subsection>
11506 <title>Alternative: Booting the Installation CD with BootX</title>
11507 <body>
11508
11509 <p>
11510 If you have an OldWorld Mac the bootable portion of the livecd can't be used.
11511 The most simple solution is to use MacOS 9 or earlier to bootstrap into a Linux
11512 environment with a tool called BootX.
11513 </p>
11514
11515 <p>
11516 First, download <uri link="http://penguinppc.org/projects/bootx/">BootX</uri>
11517 and unpack the archive. Copy the the <c>BootX Extension</c> from the unpacked
11518 archive into <c>Extensions Folder</c> and the BootX App Control Panel into
11519 <c>Control Panels</c>, both of which are located in your MacOS System Folder.
11520 Next, create a folder called "Linux Kernels" in your System folder and copy the
11521 <c>apple</c> kernel from the CD to this folder. Finally, copy <c>apple.igz</c>
11522 from the Installation CD <path>boot</path> folder into the MacOS
11523 <c>System Folder</c>.
11524 </p>
11525
11526 <p>
11527 To prepare BootX, start the BootX App Control Panel. First select the Options
11528 dialog and check <c>Use Specified RAM Disk</c> and select <c>apple.igz</c> from
11529 your System Folder. Continue back to the initial screen and ensure that the
11530 ramdisk size is at least <c>32000</c>. Finally, set the kernel arguments as
11531 shown below:
11532 </p>
11533
11534 <pre caption="BootX kernel arguments">
11535 cdroot root=/dev/ram0 init=linuxrc loop=image.squashfs looptype=squashfs console=tty0
11536 </pre>
11537
11538 <note>
11539 The kernel parameters in the yaboot section above are also applicable here. You
11540 can append any of those options to the kernel arguments above.
11541 </note>
11542
11543 <p>
11544 Check once more to make sure the settings are correct and then save the
11545 configuration. This saves typing just in case it doesn't boot or something is
11546 missing. Press the Linux button at the top of the window. If everything goes
11547 correctly, it should boot into the Installation CD. Continue with
11548 <uri link="#booted">And When You're Booted...</uri>
11549 </p>
11550
11551 </body>
11552 </subsection>
11553
11554 <subsection id="booted">
11555 <title>And When You're Booted...</title>
11556 <body>
11557
11558 <p>
11559 You will be greeted by a root ("#") prompt on the current console. You can also
11560 switch to other consoles by pressing Alt-F2, Alt-F3 and Alt-F4. Get
11561 back to the one you started on by pressing Alt-F1. Due to the keyboard layout,
11562 you may need to press Alt-fn-Fx on Apple machines.
11563 </p>
11564
11565 <p>
11566 If you are installing Gentoo on a system with a non-US keyboard, use
11567 <c>loadkeys</c> to load the keymap for your keyboard. To list the available
11568 keymaps, execute <c>ls /usr/share/keymaps/i386</c>. On NewWorld machines or the
11569 Pegasos do not use the keymaps in <path>ppc</path> or <path>mac</path> as they
11570 are for ADB-based OldWorld machines.
11571 </p>
11572
11573 <pre caption="Listing available keymaps">
11574 <comment>(PPC uses x86 keymaps on most systems. The mac/ppc keymaps provided
11575 on the Installation CD are ADB keymaps and unusable with the Installation CD
11576 kernel)</comment>
11577 # <i>ls /usr/share/keymaps/i386</i>
11578 </pre>
11579
11580 <p>
11581 Now load the keymap of your choice:
11582 </p>
11583
11584 <pre caption="Loading a keymap">
11585 # <i>loadkeys be-latin1</i>
11586 </pre>
11587
11588 <p>
11589 Now continue with <uri link="#hardware">Extra Hardware Configuration</uri>.
11590 </p>
11591
11592 </body>
11593 </subsection>
11594 <subsection id="hardware">
11595 <title>Extra Hardware Configuration</title>
11596 <body>
11597
11598 <p>
11599 When the Installation CD boots, it tries to detect all your hardware devices and
11600 loads the appropriate kernel modules to support your hardware. In the
11601 vast majority of cases, it does a very good job. However, in some cases, it may
11602 not auto-load the kernel modules you need. If the PCI auto-detection missed some
11603 of your system's hardware, you will have to load the appropriate kernel modules
11604 manually.
11605 </p>
11606
11607 <p>
11608 In the next example we try to load the <c>airport</c> module. This module
11609 supports only the old Airport cards (802.11b). Airport Extreme (802.11g) is not
11610 supported on the InstallCD due to restrictions on firmware distribution.
11611 </p>
11612
11613 <pre caption="Loading the airport module">
11614 # <i>modprobe airport</i>
11615 </pre>
11616
11617 <p>
11618 On older iMacs, sometimes the network card is not detected properly. These use
11619 the BMAC driver:
11620 </p>
11621
11622 <pre caption="Loading the bmac module">
11623 # <i>modprobe bmac</i>
11624 </pre>
11625
11626 </body>
11627 </subsection>
11628 <subsection>
11629 <title>Optional: Tweaking Hard Disk Performance</title>
11630 <body>
11631
11632 <p>
11633 If you are an advanced user, you might want to tweak the IDE hard disk
11634 performance using <c>hdparm</c>. With the <c>-tT</c> options you can
11635 test the performance of your disk (execute it several times to get a
11636 more precise impression):
11637 </p>
11638
11639 <pre caption="Testing disk performance">
11640 # <i>hdparm -tT /dev/hda</i>
11641 </pre>
11642
11643 <p>
11644 To tweak, you can use any of the following examples (or experiment
11645 yourself) which use <path>/dev/hda</path> as disk (substitute with your
11646 disk):
11647 </p>
11648
11649 <pre caption="Tweaking hard disk performance">
11650 <comment>Activate DMA:</comment> # <i>hdparm -d 1 /dev/hda</i>
11651 <comment>Activate DMA + Safe Performance-enhancing Options:</comment> # <i>hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda</i>
11652 </pre>
11653
11654 </body>
11655 </subsection>
11656 <subsection id="useraccounts">
11657 <title>Optional: User Accounts</title>
11658 <body>
11659
11660 <p>
11661 If you plan on giving other people access to your installation
11662 environment or you want to chat using <c>irssi</c> without root privileges (for
11663 security reasons), you need to create the necessary user accounts and change
11664 the root password.
11665 </p>
11666
11667 <p>
11668 To change the root password, use the <c>passwd</c> utility:
11669 </p>
11670
11671 <pre caption="Changing the root password">
11672 # <i>passwd</i>
11673 New password: <comment>(Enter your new password)</comment>
11674 Re-enter password: <comment>(Re-enter your password)</comment>
11675 </pre>
11676
11677 <p>
11678 To create a user account, we first enter their credentials, followed by
11679 its password. We use <c>useradd</c> and <c>passwd</c> for these tasks.
11680 In the next example, we create a user called &quot;john&quot;.
11681 </p>
11682
11683 <pre caption="Creating a user account">
11684 # <i>useradd -m -G users john</i>
11685 # <i>passwd john</i>
11686 New password: <comment>(Enter john's password)</comment>
11687 Re-enter password: <comment>(Re-enter john's password)</comment>
11688 </pre>
11689
11690 <p>
11691 You can change your user id from root to the newly created user by using
11692 <c>su</c>:
11693 </p>
11694
11695 <pre caption="Changing user id">
11696 # <i>su - john</i>
11697 </pre>
11698
11699 </body>
11700 </subsection>
11701 <subsection>
11702 <title>Optional: Viewing Documentation while Installing</title>
11703 <body>
11704
11705 <p>
11706 If you want to view the Gentoo Handbook (either from-CD or online) during the
11707 installation, make sure you have created a user account (see <uri
11708 link="#useraccounts">Optional: User Accounts</uri>). Then press <c>Alt-F2</c> to
11709 go to a new terminal and log in.
11710 </p>
11711
11712 <p>
11713 If you want to view the documentation on the CD you can immediately run
11714 <c>links</c> or even <c>links -g</c> for a graphical framebuffer browser to
11715 read it:
11716 </p>
11717
11718 <pre caption="Viewing the on-CD documentation">
11719 # <i>links /mnt/cdrom/docs/html/index.html</i>
11720 </pre>
11721
11722 <p>
11723 However, it is preferred that you use the online Gentoo Handbook as it will be
11724 more recent than the one provided on the CD. You can view it using <c>links</c>
11725 as well, but only after having completed the <e>Configuring your Network</e>
11726 chapter (otherwise you won't be able to go on the Internet to view the
11727 document):
11728 </p>
11729
11730 <pre caption="Viewing the Online Documentation">
11731 # <i>links http://www.gentoo.org/doc/en/handbook/handbook-ppc.xml</i>
11732 </pre>
11733
11734 <p>
11735 You can go back to your original terminal by pressing <c>Alt-F1</c>.
11736 </p>
11737
11738 </body>
11739 </subsection>
11740 <subsection>
11741 <title>Optional: Starting the SSH Daemon</title>
11742 <body>
11743
11744 <p>
11745 If you want to allow other users to access your computer during the
11746 Gentoo installation (perhaps because those users are going to help you
11747 install Gentoo, or even do it for you), you need to create a user
11748 account for them and perhaps even provide them with your root password
11749 (<e>only</e> do that <e>if</e> you <b>fully trust</b> that user).
11750 </p>
11751
11752 <p>
11753 To fire up the SSH daemon, execute the following command:
11754 </p>
11755
11756 <pre caption="Starting the SSH daemon">
11757 # <i>/etc/init.d/sshd start</i>
11758 </pre>
11759
11760 <p>
11761 To be able to use sshd, you first need to set up your networking. Continue with
11762 the chapter on <uri link="?part=1&amp;chap=3">Configuring your Network</uri>.
11763 </p>
11764
11765 </body>
11766 </subsection>
11767 </section>
11768 </sections>
11769
11770
11771
11772 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc64-bootloader.xml
11773
11774 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc64-bootloader.xml?rev=1.1&view=markup
11775 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc64-bootloader.xml?rev=1.1&content-type=text/plain
11776
11777 Index: hb-install-ppc64-bootloader.xml
11778 ===================================================================
11779 <?xml version='1.0' encoding='UTF-8'?>
11780 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
11781
11782 <!-- The content of this document is licensed under the CC-BY-SA license -->
11783 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
11784
11785 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc64-bootloader.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
11786
11787 <sections>
11788
11789 <version>7.0</version>
11790 <date>2006-08-30</date>
11791
11792 <section>
11793 <title>Making your Choice</title>
11794 <subsection>
11795 <title>Introduction</title>
11796 <body>
11797
11798 <p>
11799 Now that your kernel is configured and compiled and the necessary system
11800 configuration files are filled in correctly, it is time to install a
11801 program that will fire up your kernel when you start the system. Such a
11802 program is called a <e>bootloader</e>.
11803 </p>
11804
11805 <p>
11806 On Linux/PPC64 we have only yaBoot as a bootloader until grub2 is
11807 finished.
11808 </p>
11809
11810 </body>
11811 </subsection>
11812 </section>
11813 <section id="yaboot">
11814 <title>Using yaBoot</title>
11815 <subsection>
11816 <title>Introduction</title>
11817 <body>
11818
11819 <impo>
11820 For a 64bit userland use yaboot-static instead of yaboot, because yaboot won't
11821 compile on 64bit userland systems. For a 32bit userland use yaboot as you
11822 normally would.
11823 </impo>
11824
11825 <p>
11826 There are two ways to configure yaBoot for your system. You can use the
11827 new and improved <c>yabootconfig</c> included with
11828 <path>yaboot-1.3.8-r1</path> and later to automatically set up yaboot. If
11829 for some reason you do not want to run <c>yabootconfig</c> to
11830 automatically set up <path>/etc/yaboot.conf</path> or you are installing Gentoo
11831 on a G5 (on which <c>yabootconfig</c> does not always work), you can just edit
11832 the sample file already installed on your system.
11833 </p>
11834
11835 <impo>
11836 If you are installing on a G5 using an online install and have not used the
11837 G5 optimized stages you must change what profile you are linked to now. If you
11838 do not you will not get dependencies necessary for yaboot to run on Apple
11839 equipment. In the command below replace <c>(userland)</c> with your chosen
11840 userland bit level. If you are installing on a G5 using an offline install
11841 you have to install these packages by hand.
11842 </impo>
11843
11844 <pre caption = "(ONLINE INSTALL FOR G5 USERS ONLY) Changing your profile">
11845 # <i>rm /etc/make.profile</i>
11846 # <i>ln -sf /usr/portage/profiles/default-linux/ppc/2006.1/ppc64/(userland)/970/pmac /etc/make.profile</i>
11847 </pre>
11848
11849 <pre caption = "(OFFLINE INSTALL FOR G5 USERS ONLY) Installing Necessary File System Tools">
11850 # <i>emerge hfsutils hfsplusutils</i>
11851 </pre>
11852
11853 <pre caption = "Installing the bootloader">
11854 <comment>(64bit userland)</comment>
11855 # <i>emerge --update yaboot-static</i>
11856 <comment>(32bit userland)</comment>
11857 # <i>emerge --update yaboot</i>
11858 </pre>
11859
11860 <impo>
11861 yabootconfig/ybin won't work on IBM. You have to install yaboot another way:
11862 <uri link="#yaboot-ibm">Using yaboot on IBM hardware</uri>
11863 </impo>
11864
11865 <note>
11866 If your root filesystem uses the JFS filesystem, be sure to add <c>ro</c> as a
11867 kernel parameter. JFS must be able to replay its log in read-only mode before it
11868 gets mounted read-write.
11869 </note>
11870
11871 <ul>
11872 <li><uri link="#yabootconfig">Default: Using yabootconfig</uri></li>
11873 <li>
11874 <uri link="#manual_yaboot">Alternative: Manual yaBoot Configuration</uri>
11875 </li>
11876 </ul>
11877
11878 </body>
11879 </subsection>
11880 <subsection id="yabootconfig">
11881 <title>Default: Using yabootconfig</title>
11882 <body>
11883
11884 <p>
11885 <c>yabootconfig</c> will auto-detect the partitions on your machine and will
11886 set up dual and triple boot combinations with Linux, Mac OS, and Mac OS
11887 X.
11888 </p>
11889
11890 <p>
11891 To use <c>yabootconfig</c>, your drive must have a bootstrap partition, and
11892 <path>/etc/fstab</path> must be configured with your Linux partitions. Both of
11893 these should have been done already in the steps above. To start, ensure that
11894 you have the latest version of yaboot installed by running <c>emerge --update
11895 yaboot-static</c>. This is necessary as the latest version will be available via
11896 Portage, but it may not have made it into the stage files.
11897 </p>
11898
11899 <p>
11900 Now run <c>yabootconfig</c>. The program will run and it will confirm
11901 the location of the bootstrap partition. Type <c>Y</c> if it is correct. If
11902 not, double check <path>/etc/fstab</path>. yabootconfig will then scan your
11903 system setup, create <path>/etc/yaboot.conf</path> and run <c>mkofboot</c> for
11904 you. <c>mkofboot</c> is used to format the bootstrap partition, and install
11905 the yaboot configuration file into it.
11906 </p>
11907
11908 <p>
11909 You might want to verify the contents of <path>/etc/yaboot.conf</path>. If
11910 you make changes to <path>/etc/yaboot.conf</path> (like setting the
11911 default/boot OS), make sure to rerun <c>ybin -v</c> to apply changes to the
11912 bootstrap partition.
11913 </p>
11914
11915 <p>
11916 Now continue with <uri link="#reboot">Rebooting your System</uri>.
11917 </p>
11918
11919 </body>
11920 </subsection>
11921 <subsection id="manual_yaboot">
11922 <title>Alternative: Manual yaBoot Configuration</title>
11923 <body>
11924
11925 <p>
11926 Below you find a completed <path>yaboot.conf</path> file. Alter it at
11927 will.
11928 </p>
11929
11930 <pre caption = "/etc/yaboot.conf">
11931 <comment>## /etc/yaboot.conf
11932 ##
11933 ## run: "man yaboot.conf" for details. Do not make changes until you have!!
11934 ## see also: /usr/share/doc/yaboot/examples for example configurations.
11935 ##
11936 ## For a dual-boot menu, add one or more of:
11937 ## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ
11938
11939 ## our bootstrap partition:</comment>
11940
11941 boot=/dev/hda2
11942
11943 <comment>## ofboot is the openfirmware way to specify the bootstrap partition.
11944 ## If this isn't defined, yaboot fails on the G5 and some G4s (unless
11945 ## you pass the necessary arguments to the mkofboot/ybin program).
11946 ## hd:X means /dev/sdaX (or /dev/hdaX).</comment>
11947
11948 ofboot=hd:2
11949
11950 <comment>## hd: is open firmware speak for hda</comment>
11951 device=hd:
11952
11953 delay=5
11954 defaultos=macosx
11955 timeout=30
11956 install=/usr/lib/yaboot/yaboot
11957 magicboot=/usr/lib/yaboot/ofboot
11958
11959 <comment>#################
11960 ## This section can be duplicated if you have more than one kernel or set of
11961 ## boot options - replace 2.6.17-gentoo-r5 with your kernel-version
11962 #################</comment>
11963 image=/boot/kernel-2.6.17-gentoo-r5
11964 label=Linux
11965 root=/dev/hda3
11966 partition=3
11967 read-only
11968
11969 macos=hd:13
11970 macosx=hd:12
11971 enablecdboot
11972 enableofboot
11973 </pre>
11974
11975 <p>
11976 Once <path>yaboot.conf</path> is set up the way you want it, you run
11977 <c>mkofboot -v</c> to install the settings in the bootstrap partition.
11978 <e>Don't forget this!</e> Confirm when <c>mkofboot</c> asks you to create a new
11979 filesystem.
11980 </p>
11981
11982 <p>
11983 If all goes well, and you have the same
11984 options as the sample above, your next reboot will give you a simple,
11985 five-entry boot menu. If you update your yaboot config later on, you'll
11986 just need to run <c>ybin -v</c> to update the bootstrap partition -
11987 <c>mkofboot</c> is for initial setup only.
11988 </p>
11989
11990 <p>
11991 For more information on yaboot, take a look at the <uri
11992 link="http://penguinppc.org/projects/yaboot">yaboot project</uri>. For
11993 now, continue the installation with <uri link="#reboot">Rebooting your
11994 System</uri>.
11995 </p>
11996
11997 </body>
11998 </subsection>
11999 </section>
12000 <section id="yaboot-ibm">
12001 <title>Using yaboot on IBM hardware</title>
12002 <body>
12003
12004 <p>
12005 On IBM hardware you cannot run yabootconfig or ybin. You must proceed with the
12006 following steps:
12007 </p>
12008
12009 <ul>
12010 <li>Install yaboot-static</li>
12011 <li>Run 'dd if=/usr/lib/yaboot/yaboot.chrp of=/dev/sdXX' (fill in XX
12012 with your disk and partition for the PReP partition; this was in our
12013 example /dev/sda1)</li>
12014 <li>Next construct your own yaboot.conf file and place into /etc.
12015 (Take a look at the config above, look into the man page of
12016 yaboot.conf or look at the below yaboot.conf example)</li>
12017 <li>Assuming your boot device in OF is pointing to the harddrive you
12018 prep boot partition is on then it'll just work, otherwise at IPL time,
12019 go into the multiboot menu and set the boot device to the one with
12020 your prep boot partition.</li>
12021 <li>That's it!</li>
12022 </ul>
12023
12024 <pre caption = "yaboot.conf for IBM hardware">
12025 device=disk:
12026 partition=2
12027 root=/dev/sda2
12028 default=2.6.17-gentoo-r5
12029 timeout=50
12030
12031 image=/boot/kernel-2.6.17-gentoo-r5
12032 label=Linux
12033 append="console=ttyS0,9600"
12034 read-only
12035 </pre>
12036
12037 <p>
12038 For POWER4, POWER5, and blade-based hardware where the PReP disk partition
12039 and the disk partition that contains your kernel are on the same physical disk,
12040 you can use a simplified yaboot.conf. The following should be sufficient:
12041 </p>
12042
12043 <pre caption="yaboot.conf for PReP hardware">
12044 default = linux
12045 timeout = 100
12046 image=/boot/kernel-2.6.17-gentoo-r5
12047 label=linux
12048 read-only
12049 root = /dev/sda2
12050 append="root=/dev/sda2"
12051 </pre>
12052
12053 <p>
12054 To verify that yaboot has been copied to the PReP partition:
12055 </p>
12056
12057 <pre caption="Verifying the yaboot install on PReP">
12058 # <i>dd if=/dev/sda1 count=10 | grep ELF</i>
12059 Binary file (standard input) matches
12060 10+0 records in
12061 10+0 records out
12062 </pre>
12063
12064 <p>
12065 A match signifies that yaboot was installed correctly.
12066 </p>
12067
12068 </body>
12069 </section>
12070 <section id="reboot">
12071 <title>Rebooting the System</title>
12072 <subsection>
12073 <body>
12074
12075 <p>
12076 Exit the chrooted environment and unmount all mounted partitions. Then type in
12077 that one magical command you have been waiting for: <c>reboot</c>.
12078 </p>
12079
12080 <pre caption="Exiting the chroot, unmounting all partitions and rebooting">
12081 # <i>exit</i>
12082 ~# <i>cd</i>
12083 ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo</i>
12084 ~# <i>reboot</i>
12085 </pre>
12086
12087 <p>
12088 Of course, don't forget to remove the bootable CD, otherwise the CD will be
12089 booted again instead of your new Gentoo system.
12090 </p>
12091
12092 <p>
12093 Once rebooted in your Gentoo installation, finish up with <uri
12094 link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
12095 </p>
12096
12097 </body>
12098 </subsection>
12099 </section>
12100
12101 </sections>
12102
12103
12104
12105 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc64-disk.xml
12106
12107 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc64-disk.xml?rev=1.1&view=markup
12108 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc64-disk.xml?rev=1.1&content-type=text/plain
12109
12110 Index: hb-install-ppc64-disk.xml
12111 ===================================================================
12112 <?xml version='1.0' encoding='UTF-8'?>
12113 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
12114
12115 <!-- The content of this document is licensed under the CC-BY-SA license -->
12116 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
12117
12118 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc64-disk.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
12119
12120 <sections>
12121
12122 <version>7.0</version>
12123 <date>2006-08-30</date>
12124
12125 <section>
12126 <title>Introduction to Block Devices</title>
12127 <subsection>
12128 <title>Block Devices</title>
12129 <body>
12130
12131 <p>
12132 We'll take a good look at disk-oriented aspects of Gentoo Linux
12133 and Linux in general, including Linux filesystems, partitions and block devices.
12134 Then, once you're familiar with the ins and outs of disks and filesystems,
12135 you'll be guided through the process of setting up partitions and filesystems
12136 for your Gentoo Linux installation.
12137 </p>
12138
12139 <p>
12140 To begin, we'll introduce <e>block devices</e>. The most famous block device is
12141 probably the one that represents the first IDE drive in a Linux system, namely
12142 <path>/dev/hda</path>. If your system uses SCSI drives, then your first hard
12143 drive would be <path>/dev/sda</path>. Serial ATA drives are also
12144 <path>/dev/sda</path> even if they are IDE drives.
12145 </p>
12146
12147 <p>
12148 The block devices above represent an abstract interface to the disk. User
12149 programs can use these block devices to interact with your disk without worrying
12150 about whether your drives are IDE, SCSI or something else. The program can
12151 simply address the storage on the disk as a bunch of contiguous,
12152 randomly-accessible 512-byte blocks.
12153 </p>
12154
12155 </body>
12156 </subsection>
12157 <subsection>
12158 <title>Partitions and Slices</title>
12159 <body>
12160
12161 <p>
12162 Although it is theoretically possible to use a full disk to house your Linux
12163 system, this is almost never done in practice. Instead, full disk block devices
12164 are split up in smaller, more manageable block devices. On most systems,
12165 these are called <e>partitions</e>. Other architectures use a similar technique,
12166 called <e>slices</e>.
12167 </p>
12168
12169 </body>
12170 </subsection>
12171 </section>
12172 <section>
12173 <title>Designing a Partitioning Scheme</title>
12174 <subsection>
12175 <title>Default Partitioning Scheme</title>
12176 <body>
12177
12178 <p>
12179 If you are not interested in drawing up a partitioning scheme for your system,
12180 you can use the partitioning scheme we use throughout this book:
12181 </p>
12182
12183 <table>
12184 <tr>
12185 <th>Partition</th>
12186 <th>Filesystem</th>
12187 <th>Size</th>
12188 <th>Description</th>
12189 </tr>
12190 <tr>
12191 <ti><path>/dev/sda1</path></ti>
12192 <ti>Partition map</ti>
12193 <ti>31.5k</ti>
12194 <ti>Partition map</ti>
12195 </tr>
12196 <tr>
12197 <ti><path>/dev/sda2</path></ti>
12198 <ti>(bootstrap)</ti>
12199 <ti>800k</ti>
12200 <ti>Apple_Bootstrap</ti>
12201 </tr>
12202 <tr>
12203 <ti><path>/dev/sda3</path></ti>
12204 <ti>(swap)</ti>
12205 <ti>512M</ti>
12206 <ti>Swap partition</ti>
12207 </tr>
12208 <tr>
12209 <ti><path>/dev/sda4</path></ti>
12210 <ti>ext3</ti>
12211 <ti>Rest of the disk</ti>
12212 <ti>Root partition</ti>
12213 </tr>
12214 </table>
12215
12216 <note>
12217 There are some partitions named like this: <path>Apple_Driver43,
12218 Apple_Driver_ATA, Apple_FWDriver, Apple_Driver_IOKit,
12219 Apple_Patches</path>. If you are not planning to use MacOS 9 you can
12220 delete them, because MacOS X and Linux don't need them.
12221 You might have to use parted in order to delete them, as mac-fdisk can't delete them yet.
12222 </note>
12223
12224 <p>
12225 If you are interested in knowing how big a partition should be, or even how
12226 many partitions you need, read on. Otherwise continue now with
12227 <uri link="#mac-fdisk">Apple G5: Using mac-fdisk to Partition your
12228 Disk</uri> or <uri link="#fdisk">IBM pSeries: using fdisk to Partition
12229 your Disk</uri>
12230 </p>
12231
12232 </body>
12233 </subsection>
12234 <subsection>
12235 <title>How Many and How Big?</title>
12236 <body>
12237
12238 <p>
12239 The number of partitions is highly dependent on your environment. For instance,
12240 if you have lots of users, you will most likely want to have your
12241 <path>/home</path> separate as it increases security and makes backups easier.
12242 If you are installing Gentoo to perform as a mailserver, your
12243 <path>/var</path> should be separate as all mails are stored inside
12244 <path>/var</path>. A good choice of filesystem will then maximise your
12245 performance. Gameservers will have a separate <path>/opt</path> as most gaming
12246 servers are installed there. The reason is similar for <path>/home</path>:
12247 security and backups. You will definitely want to keep <path>/usr</path> big:
12248 not only will it contain the majority of applications, the Portage tree alone
12249 takes around 500 Mbyte excluding the various sources that are stored in it.
12250 </p>
12251
12252 <p>
12253 As you can see, it very much depends on what you want to achieve. Separate
12254 partitions or volumes have the following advantages:
12255 </p>
12256
12257 <ul>
12258 <li>
12259 You can choose the best performing filesystem for each partition or volume
12260 </li>
12261 <li>
12262 Your entire system cannot run out of free space if one defunct tool is
12263 continuously writing files to a partition or volume
12264 </li>
12265 <li>
12266 If necessary, file system checks are reduced in time, as multiple checks can
12267 be done in parallel (although this advantage is more with multiple disks than
12268 it is with multiple partitions)
12269 </li>
12270 <li>
12271 Security can be enhanced by mounting some partitions or volumes read-only,
12272 nosuid (setuid bits are ignored), noexec (executable bits are ignored) etc.
12273 </li>
12274 </ul>
12275
12276 <p>
12277 However, multiple partitions have one big disadvantage: if not configured
12278 properly, you might result in having a system with lots
12279 of free space on one partition and none on another. There is also a 15-partition
12280 limit for SCSI and SATA.
12281 </p>
12282
12283 </body>
12284 </subsection>
12285 </section>
12286 <section id="mac-fdisk">
12287 <title>Default: Using mac-fdisk (Apple G5) Partition your Disk</title>
12288 <body>
12289
12290 <p>
12291 At this point, create your partitions using <c>mac-fdisk</c>:
12292 </p>
12293
12294 <pre caption="Starting mac-fdisk">
12295 # <i>mac-fdisk /dev/sda</i>
12296 </pre>
12297
12298 <p>
12299 First delete the partitions you have cleared previously to make room for your
12300 Linux partitions. Use <c>d</c> in <c>mac-fdisk</c> to delete those partition(s).
12301 It will ask for the partition number to delete.
12302 </p>
12303
12304 <p>
12305 Second, create an <e>Apple_Bootstrap</e> partition by using <c>b</c>. It will
12306 ask for what block you want to start. Enter the number of your first free
12307 partition, followed by a <c>p</c>. For instance this is <c>2p</c>.
12308 </p>
12309
12310 <note>
12311 This partition is <e>not</e> a "boot" partition. It is not used by Linux at all;
12312 you don't have to place any filesystem on it and you should never mount it. PPC
12313 users don't need an extra partition for <path>/boot</path>.
12314 </note>
12315
12316 <p>
12317 Now create a swap partition by pressing <c>c</c>. Again <c>mac-fdisk</c> will
12318 ask for what block you want to start this partition from. As we used <c>2</c>
12319 before to create the Apple_Bootstrap partition, you now have to enter
12320 <c>3p</c>. When you're asked for the size, enter <c>512M</c> (or whatever size
12321 you want). When asked for a name, enter <c>swap</c> (mandatory).
12322 </p>
12323
12324 <p>
12325 To create the root partition, enter <c>c</c>, followed by <c>4p</c> to select
12326 from what block the root partition should start. When asked for the size, enter
12327 <c>4p</c> again. <c>mac-fdisk</c> will interpret this as "Use all available
12328 space". When asked for the name, enter <c>root</c> (mandatory).
12329 </p>
12330
12331 <p>
12332 To finish up, write the partition to the disk using <c>w</c> and <c>q</c> to
12333 quit <c>mac-fdisk</c>.
12334 </p>
12335
12336 <note>
12337 To make sure everything is ok, you should run mac-fdisk once more and check whether all the partitions are there.
12338 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.
12339 Note that this will recreate the partition map and thus remove all your partitions.
12340 </note>
12341
12342 <p>
12343 Now that your partitions are created, you can now continue with <uri
12344 link="#filesystems">Creating Filesystems</uri>.
12345 </p>
12346
12347 </body>
12348 </section>
12349 <section id="fdisk">
12350 <title>IBM pSeries, iSeries and OpenPower: using fdisk to Partition your Disk</title>
12351 <subsection>
12352 <body>
12353
12354 <note>
12355 If you are planning to use a RAID disk array for your gentoo installation and
12356 you are using POWER5-based hardware, you should now run <c>iprconfig</c> to
12357 format the disks to Advanced Function format and create the disk array. You
12358 should emerge <c>iprutils</c> after your install is complete.
12359 </note>
12360
12361 <p>
12362 If you have an ipr based SCSI adapter, you should start the ipr utilities now.
12363 </p>
12364
12365 <pre caption="Starting ipr utilities">
12366 # <i>/etc/init.d/iprinit start</i>
12367 </pre>
12368
12369 <p>
12370 The following parts explain how to create the example partition layout
12371 described previously, namely:
12372 </p>
12373
12374 <table>
12375 <tr>
12376 <th>Partition</th>
12377 <th>Description</th>
12378 </tr>
12379 <tr>
12380 <ti><path>/dev/sda1</path></ti>
12381 <ti>PPC PReP Boot partition</ti>
12382 </tr>
12383 <tr>
12384 <ti><path>/dev/sda2</path></ti>
12385 <ti>Swap partition</ti>
12386 </tr>
12387 <tr>
12388 <ti><path>/dev/sda3</path></ti>
12389 <ti>Root partition</ti>
12390 </tr>
12391 </table>
12392
12393 <p>
12394 Change your partition layout according to your own preference.
12395 </p>
12396
12397 </body>
12398 </subsection>
12399 <subsection>
12400 <title>Viewing the Current Partition Layout</title>
12401 <body>
12402
12403 <p>
12404 <c>fdisk</c> is a popular and powerful tool to split your disk into
12405 partitions. Fire up <c>fdisk</c> on your disk (in our example, we
12406 use <path>/dev/sda</path>):
12407 </p>
12408
12409 <pre caption="Starting fdisk">
12410 # <i>fdisk /dev/sda</i>
12411 </pre>
12412
12413 <p>
12414 Once in <c>fdisk</c>, you'll be greeted with a prompt that looks like
12415 this:
12416 </p>
12417
12418 <pre caption="fdisk prompt">
12419 Command (m for help):
12420 </pre>
12421
12422 <p>
12423 Type <c>p</c> to display your disk's current partition configuration:
12424 </p>
12425
12426 <pre caption="An example partition configuration">
12427 Command (m for help): p
12428
12429 Disk /dev/sda: 30.7 GB, 30750031872 bytes
12430 141 heads, 63 sectors/track, 6761 cylinders
12431 Units = cylinders of 8883 * 512 = 4548096 bytes
12432
12433 Device Boot Start End Blocks Id System
12434 /dev/sda1 1 12 53266+ 83 Linux
12435 /dev/sda2 13 233 981571+ 82 Linux swap
12436 /dev/sda3 234 674 1958701+ 83 Linux
12437 /dev/sda4 675 6761 27035410+ 5 Extended
12438 /dev/sda5 675 2874 9771268+ 83 Linux
12439 /dev/sda6 2875 2919 199836 83 Linux
12440 /dev/sda7 2920 3008 395262 83 Linux
12441 /dev/sda8 3009 6761 16668918 83 Linux
12442
12443 Command (m for help):
12444 </pre>
12445
12446 <p>
12447 This particular disk is configured to house six Linux filesystems
12448 (each with a corresponding partition listed as "Linux") as well as a
12449 swap partition (listed as "Linux swap").
12450 </p>
12451
12452 </body>
12453 </subsection>
12454 <subsection>
12455 <title>Removing all Partitions</title>
12456 <body>
12457
12458 <p>
12459 We will first remove all existing partitions from the disk. Type
12460 <c>d</c> to delete a partition. For instance, to delete an existing
12461 <path>/dev/sda1</path>:
12462 </p>
12463
12464 <note>
12465 If you don't want to delete all partitions just delete those you
12466 want to delete. At this point the author recommends a backup of your
12467 data to avoid the lose of it.
12468 </note>
12469
12470 <pre caption="Deleting a partition">
12471 Command (m for help): <i>d</i>
12472 Partition number (1-4): <i>1</i>
12473 </pre>
12474
12475 <p>
12476 The partition has been scheduled for deletion. It will no longer show up
12477 if you type <c>p</c>, but it will not be erased until your changes have
12478 been saved. If you made a mistake and want to abort without saving your
12479 changes, type <c>q</c> immediately and hit enter and your partition will
12480 not be deleted.
12481 </p>
12482
12483 <p>
12484 Now, assuming that you do indeed want to wipe out all the partitions on
12485 your system, repeatedly type <c>p</c> to print out a partition listing
12486 and then type <c>d</c> and the number of the partition to delete it.
12487 Eventually, you'll end up with a partition table with nothing in it:
12488 </p>
12489
12490 <pre caption="An empty partition table">
12491 Disk /dev/sda: 30.7 GB, 30750031872 bytes
12492 141 heads, 63 sectors/track, 6761 cylinders
12493 Units = cylinders of 8883 * 512 = 4548096 bytes
12494
12495 Device Boot Start End Blocks Id System
12496
12497 Command (m for help):
12498 </pre>
12499
12500 <p>
12501 Now that the in-memory partition table is empty, we're ready to create
12502 the partitions. We will use a default partitioning scheme as discussed
12503 previously. Of course, don't follow these instructions to the letter if
12504 you don't want the same partitioning scheme!
12505 </p>
12506
12507 </body>
12508 </subsection>
12509 <subsection>
12510 <title>Creating the PPC PReP boot partition</title>
12511 <body>
12512
12513 <p>
12514 We first create a small PReP boot partition. Type <c>n</c> to create a new
12515 partition, then <c>p</c> to select a primary partition, followed by
12516 <c>1</c> to select the first primary partition. When prompted for the
12517 first cylinder, hit enter. When prompted for the last cylinder, type
12518 <c>+7M</c> to create a partition 7 Mbyte in size. After you've done
12519 this, type <c>t</c> to set the partition type, <c>1</c> to select the
12520 partition you just created and then type in <c>41</c> to set the
12521 partition type to "PPC PReP Boot". Finally, you'll need to mark the PReP
12522 partition as bootable.
12523 </p>
12524
12525 <note>
12526 The PReP partition has to be smaller than 8 MByte!
12527 </note>
12528
12529 <pre caption="Creating the PReP boot partition">
12530 Command (m for help): <i>p</i>
12531
12532 Disk /dev/sda: 30.7 GB, 30750031872 bytes
12533 141 heads, 63 sectors/track, 6761 cylinders
12534 Units = cylinders of 8883 * 512 = 4548096 bytes
12535
12536 Device Boot Start End Blocks Id System
12537
12538 Command (m for help): <i>n</i>
12539 Command action
12540 e extended
12541 p primary partition (1-4)
12542 <i>p</i>
12543 Partition number (1-4): <i>1</i>
12544 First cylinder (1-6761, default 1):
12545 Using default value 1
12546 Last cylinder or +size or +sizeM or +sizeK (1-6761, default
12547 6761): <i>+8M</i>
12548
12549 Command (m for help): <i>t</i>
12550 Selected partition 1
12551 Hex code (type L to list codes): <i>41</i>
12552 Changed system type of partition 1 to 41 (PPC PReP Boot)
12553
12554 Command (m for help): <i>a</i>
12555 Partition number (1-4): <i>1</i>
12556 Command (m for help):
12557 </pre>
12558
12559 <p>
12560 Now, when you type <c>p</c>, you should see the following partition information:
12561 </p>
12562
12563 <pre caption="Created boot partition">
12564 Command (m for help): <i>p</i>
12565
12566 Disk /dev/sda: 30.7 GB, 30750031872 bytes
12567 141 heads, 63 sectors/track, 6761 cylinders
12568 Units = cylinders of 8883 * 512 = 4548096 bytes
12569
12570 Device Boot Start End Blocks Id System
12571 /dev/sda1 * 1 3 13293 41 PPC PReP Boot
12572
12573 Command (m for help):
12574 </pre>
12575 </body>
12576 </subsection>
12577 <subsection>
12578 <title>Creating the Swap Partition</title>
12579 <body>
12580
12581 <p>
12582 Let's now create the swap partition. To do this, type <c>n</c> to create
12583 a new partition, then <c>p</c> to tell fdisk that you want a primary
12584 partition. Then type <c>2</c> to create the second primary partition,
12585 <path>/dev/sda2</path> in our case. When prompted for the first
12586 cylinder, hit enter. When prompted for the last cylinder, type
12587 <c>+512M</c> to create a partition 512MB in size. After you've done
12588 this, type <c>t</c> to set the partition type, <c>2</c> to select the
12589 partition you just created and then type in <c>82</c> to set the
12590 partition type to "Linux Swap". After completing these steps, typing
12591 <c>p</c> should display a partition table that looks similar to this:
12592 </p>
12593
12594 <pre caption="Partition listing after creating a swap partition">
12595 Command (m for help): <i>p</i>
12596
12597 Disk /dev/sda: 30.7 GB, 30750031872 bytes
12598 141 heads, 63 sectors/track, 6761 cylinders
12599 Units = cylinders of 8883 * 512 = 4548096 bytes
12600
12601 Device Boot Start End Blocks Id System
12602 /dev/sda1 1 3 13293 41 PPC PReP Boot
12603 /dev/sda2 4 117 506331 82 Linux swap
12604
12605 Command (m for help):
12606 </pre>
12607
12608 </body>
12609 </subsection>
12610 <subsection>
12611 <title>Creating the Root Partition</title>
12612 <body>
12613
12614 <p>
12615 Finally, let's create the root partition. To do this, type <c>n</c> to
12616 create a new partition, then <c>p</c> to tell fdisk that you want a
12617 primary partition. Then type <c>3</c> to create the third primary
12618 partition, <path>/dev/sda3</path> in our case. When prompted for the
12619 first cylinder, hit enter. When prompted for the last cylinder, hit
12620 enter to create a partition that takes up the rest of the remaining
12621 space on your disk. After completing these steps, typing <c>p</c> should
12622 display a partition table that looks similar to this:
12623 </p>
12624
12625 <pre caption="Partition listing after creating the root partition">
12626 Command (m for help): p
12627
12628 Disk /dev/sda: 30.7 GB, 30750031872 bytes
12629 141 heads, 63 sectors/track, 6761 cylinders
12630 Units = cylinders of 8883 * 512 = 4548096 bytes
12631
12632 Device Boot Start End Blocks Id System
12633 /dev/sda1 1 3 13293 41 PPC PReP Boot
12634 /dev/sda2 4 117 506331 82 Linux swap
12635 /dev/sda3 118 6761 29509326 83 Linux
12636
12637 Command (m for help):
12638 </pre>
12639 </body>
12640 </subsection>
12641 <subsection>
12642 <title>Saving the Partition Layout</title>
12643 <body>
12644
12645 <p>
12646 To save the partition layout and exit <c>fdisk</c>, type <c>w</c>.
12647 </p>
12648
12649 <pre caption="Save and exit fdisk">
12650 Command (m for help): <i>w</i>
12651 </pre>
12652
12653 <p>
12654 Now that your partitions are created, you can now continue with <uri
12655 link="#filesystems">Creating Filesystems</uri>.
12656 </p>
12657
12658 </body>
12659 </subsection>
12660 </section>
12661 <section id="filesystems">
12662 <title>Creating Filesystems</title>
12663 <subsection>
12664 <title>Introduction</title>
12665 <body>
12666
12667 <p>
12668 Now that your partitions are created, it is time to place a filesystem on them.
12669 If you don't care about what filesystem to choose and are happy with what we use
12670 as default in this handbook, continue with <uri
12671 link="#filesystems-apply">Applying a Filesystem to a Partition</uri>.
12672 Otherwise read on to learn about the available filesystems...
12673 </p>
12674
12675 </body>
12676 </subsection>
12677 <subsection>
12678 <title>Filesystems?</title>
12679 <body>
12680
12681 <note>
12682 Several filesystems are available. ext2, ext3 and ReiserFS support is built in
12683 the Installation CD kernels. JFS and XFS support is available through kernel
12684 modules.
12685 </note>
12686
12687 <p>
12688 <b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata
12689 journaling, which means that routine ext2 filesystem checks at startup time can
12690 be quite time-consuming. There is now quite a selection of newer-generation
12691 journaled filesystems that can be checked for consistency very quickly and are
12692 thus generally preferred over their non-journaled counterparts. Journaled
12693 filesystems prevent long delays when you boot your system and your filesystem
12694 happens to be in an inconsistent state.
12695 </p>
12696
12697 <p>
12698 <b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata
12699 journaling for fast recovery in addition to other enhanced journaling modes like
12700 full data and ordered data journaling. ext3 is a very good and reliable
12701 filesystem.
12702 </p>
12703
12704 <p>
12705 <b>ReiserFS</b> is a B*-tree based filesystem that has very good overall
12706 performance and greatly outperforms both ext2 and ext3 when dealing with small
12707 files (files less than 4k), often by a factor of 10x-15x. ReiserFS also scales
12708 extremely well and has metadata journaling. As of kernel 2.4.18+, ReiserFS is
12709 solid and usable as both general-purpose filesystem and for extreme cases such
12710 as the creation of large filesystems, the use of many small files, very large
12711 files and directories containing tens of thousands of files.
12712 </p>
12713
12714 <p>
12715 <b>XFS</b> is a filesystem with metadata journaling that is fully supported
12716 under Gentoo Linux's xfs-sources kernel. It comes with a robust feature-set and
12717 is optimized for scalability. We only recommend using this filesystem on Linux
12718 systems with high-end SCSI and/or fibre channel storage and a uninterruptible
12719 power supply. Because XFS aggressively caches in-transit data in RAM, improperly
12720 designed programs (those that don't take proper precautions when writing files
12721 to disk and there are quite a few of them) can lose a good deal of data if the
12722 system goes down unexpectedly.
12723 </p>
12724
12725 <p>
12726 <b>JFS</b> is IBM's high-performance journaling filesystem. It has recently
12727 become production-ready.
12728 </p>
12729
12730 </body>
12731 </subsection>
12732 <subsection id="filesystems-apply">
12733 <title>Applying a Filesystem to a Partition</title>
12734 <body>
12735
12736 <p>
12737 To create a filesystem on a partition or volume, there are tools available for
12738 each possible filesystem:
12739 </p>
12740
12741 <table>
12742 <tr>
12743 <th>Filesystem</th>
12744 <th>Creation Command</th>
12745 </tr>
12746 <tr>
12747 <ti>ext2</ti>
12748 <ti><c>mke2fs</c></ti>
12749 </tr>
12750 <tr>
12751 <ti>ext3</ti>
12752 <ti><c>mke2fs -j</c></ti>
12753 </tr>
12754 <tr>
12755 <ti>reiserfs</ti>
12756 <ti><c>mkreiserfs</c></ti>
12757 </tr>
12758 <tr>
12759 <ti>xfs</ti>
12760 <ti><c>mkfs.xfs</c></ti>
12761 </tr>
12762 <tr>
12763 <ti>jfs</ti>
12764 <ti><c>mkfs.jfs</c></ti>
12765 </tr>
12766 </table>
12767
12768 <p>
12769 For instance, to have the root partition (<path>/dev/sda4</path> in our example)
12770 in ext3 (as in our example), you would use:
12771 </p>
12772
12773 <pre caption="Applying a filesystem on a partition">
12774 # <i>mke2fs -j /dev/sda4</i>
12775 </pre>
12776
12777 <p>
12778 Now create the filesystems on your newly created partitions (or logical
12779 volumes).
12780 </p>
12781
12782 </body>
12783 </subsection>
12784 <subsection>
12785 <title>Activating the Swap Partition</title>
12786 <body>
12787
12788 <p>
12789 <c>mkswap</c> is the command that is used to initialize swap partitions:
12790 </p>
12791
12792 <pre caption="Creating a Swap signature">
12793 # <i>mkswap /dev/sda3</i>
12794 </pre>
12795
12796 <p>
12797 To activate the swap partition, use <c>swapon</c>:
12798 </p>
12799
12800 <pre caption="Activating the swap partition">
12801 # <i>swapon /dev/sda3</i>
12802 </pre>
12803
12804 <p>
12805 Create and activate the swap with the commands mentioned above.
12806 </p>
12807
12808 </body>
12809 </subsection>
12810 </section>
12811 <section>
12812 <title>Mounting</title>
12813 <body>
12814
12815 <p>
12816 Now that your partitions are initialized and are housing a filesystem, it is
12817 time to mount those partitions. Use the <c>mount</c> command. As an example we
12818 mount the root partition:
12819 </p>
12820
12821 <pre caption="Mounting partitions">
12822 # <i>mount /dev/sda4 /mnt/gentoo</i>
12823 </pre>
12824
12825 <note>
12826 If you want your <path>/tmp</path> to reside on a separate partition, be sure to
12827 change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This
12828 also holds for <path>/var/tmp</path>.
12829 </note>
12830
12831 <p>
12832 Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
12833 Installation Files</uri>.
12834 </p>
12835
12836 </body>
12837 </section>
12838 </sections>
12839
12840
12841
12842 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc64-kernel.xml
12843
12844 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc64-kernel.xml?rev=1.1&view=markup
12845 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc64-kernel.xml?rev=1.1&content-type=text/plain
12846
12847 Index: hb-install-ppc64-kernel.xml
12848 ===================================================================
12849 <?xml version='1.0' encoding='UTF-8'?>
12850 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
12851
12852 <!-- The content of this document is licensed under the CC-BY-SA license -->
12853 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
12854
12855 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc64-kernel.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
12856
12857 <sections>
12858
12859 <version>7.0</version>
12860 <date>2006-08-30</date>
12861
12862 <section>
12863 <title>Timezone</title>
12864 <body>
12865
12866 <p>
12867 You first need to select your timezone so that your system knows where it is
12868 located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy
12869 it to <path>/etc/localtime</path>. Please avoid the
12870 <path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not
12871 indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8.
12872 </p>
12873
12874 <pre caption="Setting the timezone information">
12875 # <i>ls /usr/share/zoneinfo</i>
12876 <comment>(Suppose you want to use GMT)</comment>
12877 # <i>cp /usr/share/zoneinfo/GMT /etc/localtime</i>
12878 </pre>
12879
12880 </body>
12881 </section>
12882 <section>
12883 <title>Installing the Sources</title>
12884 <subsection>
12885 <title>Choosing a Kernel</title>
12886 <body>
12887
12888 <p>
12889 The core around which all distributions are built is the Linux kernel.
12890 It is the layer between the user programs and your system hardware.
12891 Gentoo provides its users several possible kernel sources. A full
12892 listing with description is available at the <uri
12893 link="/doc/en/gentoo-kernel.xml">Gentoo Kernel Guide</uri>.
12894 </p>
12895
12896 <p>
12897 For PPC64 you should use <c>gentoo-sources</c>. So let's continue with
12898 <c>emerge</c>'ing the kernel sources. The <c>USE="-doc"</c> is necessary to
12899 avoid installing xorg-x11 or other dependencies at this point.
12900 <c>USE="symlink"</c> is not necessary for a new install, but ensures proper
12901 creation of the <path>/usr/src/linux</path> symlink.
12902 </p>
12903
12904 <pre caption="Installing a kernel source">
12905 # <i>USE="-doc symlink" emerge gentoo-sources</i>
12906 </pre>
12907
12908 <p>
12909 When you take a look in <path>/usr/src</path> you should see a symlink called
12910 <path>linux</path> pointing to your kernel source. In this case, the installed
12911 kernel source points to <c>gentoo-sources-2.6.17-r5</c>. Your version may be
12912 different, so keep this in mind.
12913 </p>
12914
12915 <pre caption="Viewing the kernel source symlink">
12916 # <i>ls -l /usr/src/linux</i>
12917 lrwxrwxrwx 1 root root 12 Aug 10 11:04 /usr/src/linux -&gt; linux-2.6.17-gentoo-r5
12918 </pre>
12919
12920 <p>
12921 Now it is time to configure and compile your kernel source. There is the
12922 ability to use "genkernel" which would create a generic kernel like the
12923 ones used on the installation CDs, but it is not fully functional for PPC64 at
12924 the moment.
12925 </p>
12926
12927 <p>
12928 Continue now with <uri link="#manual">Manual Configuration</uri>.
12929 </p>
12930
12931 </body>
12932 </subsection>
12933 </section>
12934 <section id="manual">
12935 <title>Manual Configuration</title>
12936 <subsection>
12937 <title>Introduction</title>
12938 <body>
12939
12940 <p>
12941 Manually configuring a kernel is often seen as the most difficult procedure a
12942 Linux user ever has to perform. Nothing is less true -- after configuring a
12943 couple of kernels you don't even remember that it was difficult ;)
12944 </p>
12945
12946 <p>
12947 However, one thing <e>is</e> true: you must know your system when you
12948 configuring a kernel manually. Most information can be gathered by emerging
12949 pciutils (<c>emerge pciutils</c>) which contains <c>lspci</c>. You will now
12950 be able to use <c>lspci</c> within the chrooted environment. You may safely
12951 ignore any <e>pcilib</e> warnings (like pcilib: cannot open
12952 /sys/bus/pci/devices) that <c>lspci</c> throws out. Alternatively, you can run
12953 <c>lspci</c> from a <e>non-chrooted</e> environment. The results are the same.
12954 You can also run <c>lsmod</c> to see what kernel modules the Installation CD
12955 uses (it might provide you with a nice hint on what to enable).
12956 </p>
12957
12958 <pre caption="Invoking menuconfig">
12959 # <i>cd /usr/src/linux</i>
12960 <comment>Important: In case you are in 32-bit userland, you must edit the top
12961 level Makefile in /usr/src/linux and change the CROSS_COMPILE option to
12962 CROSS_COMPILE ?= powerpc64-unknown-linux-gnu-. You must do this before you run
12963 make menuconfig or it may result in kernel compilation problems.</comment>
12964 # <i>make menuconfig</i>
12965 </pre>
12966
12967 <p>
12968 You will be greeted with several configuration sections. We'll first
12969 list some options you must activate (otherwise Gentoo will not function,
12970 or not function properly without additional tweaks).
12971 </p>
12972
12973 </body>
12974 </subsection>
12975 <subsection>
12976 <title>Activating Required Options</title>
12977 <body>
12978
12979 <p>
12980 First of all, activate the use of development and experimental
12981 code/drivers. You need this, otherwise some very important code/drivers
12982 won't show up:
12983 </p>
12984
12985 <pre caption="Selecting experimental code/drivers">
12986 Code maturity level options ---&gt;
12987 [*] Prompt for development and/or incomplete code/drivers
12988 </pre>
12989
12990 <p>
12991 Now go to <c>File Systems</c> and select support for the filesystems you
12992 use. <e>Don't</e> compile them as modules, otherwise your Gentoo system
12993 will not be able to mount your partitions. Also select <c>Virtual
12994 memory</c>, <c>/proc file system</c>, and <c>/dev/pts file system for
12995 Unix98 PTYs</c>:
12996 </p>
12997
12998 <pre caption="Selecting necessary file systems">
12999 File systems ---&gt;
13000 [*] Virtual memory file system support (former shm fs)
13001 [*] /proc file system support
13002 [*] /dev/pts file system for Unix98 PTYs
13003
13004 <comment>(Select one or more of the following options as needed by your system)</comment>
13005 &lt;*&gt; Reiserfs support
13006 &lt;*&gt; Ext3 journalling file system support
13007 &lt;*&gt; JFS filesystem support
13008 &lt;*&gt; Second extended fs support
13009 &lt;*&gt; XFS filesystem support
13010 </pre>
13011
13012 <note>
13013 You will find some of the mentioned options under <c>Pseudo
13014 filesystems</c> which is a subpart of <c>File systems</c>.
13015 </note>
13016
13017 <p>
13018 If you are using PPPoE to connect to the Internet or you are using a
13019 dial-up modem, you will need the following options in the kernel (you
13020 will find the mentioned options under <c>Networking support</c> which is
13021 a subpart of <c>Device Drivers</c>):
13022 </p>
13023
13024 <pre caption="Selecting PPPoE necessary drivers">
13025 Network device support ---&gt;
13026 &lt;*&gt; PPP (point-to-point protocol) support
13027 &lt;*&gt; PPP support for async serial ports
13028 &lt;*&gt; PPP support for sync tty ports
13029 </pre>
13030
13031 <p>
13032 The two compression options won't harm but are not definitely needed, neither
13033 does the <c>PPP over Ethernet</c> option, that might only be used by
13034 <c>rp-pppoe</c> when configured to do kernel mode PPPoE.
13035 </p>
13036
13037 <p>
13038 If you require it, don't forget to include support in the kernel for your
13039 ethernet card.
13040 </p>
13041
13042 <p>
13043 Disable ADB raw keycodes:
13044 </p>
13045
13046 <pre caption="Disabling ADB raw keycodes">
13047 Macintosh Device Drivers ---&gt;
13048 [ ] Support for ADB raw keycodes
13049 </pre>
13050
13051 <p>
13052 When you're done configuring your kernel, continue with <uri
13053 link="#compiling">Compiling and Installing</uri>.
13054 </p>
13055
13056 </body>
13057 </subsection>
13058 <subsection id="compiling">
13059 <title>Compiling and Installing</title>
13060 <body>
13061
13062 <p>
13063 Now that your kernel is configured, it is time to compile and install it. Exit
13064 the configuration and start the compilation process:
13065 </p>
13066
13067 <pre caption="Compiling the kernel">
13068 # <i>make vmlinux &amp;&amp; make modules_install</i>
13069 </pre>
13070
13071 <p>
13072 When the kernel has finished compiling, copy the kernel image to
13073 <path>/boot</path>. Remember to replace <path>&lt;kernel-version&gt;</path>
13074 with your actual kernel version:
13075 </p>
13076
13077 <pre caption="Installing the kernel">
13078 # <i>cp vmlinux /boot/&lt;kernel-version&gt;</i>
13079 </pre>
13080
13081 <p>
13082 Now continue with <uri link="#kernel_modules">Configuring the Modules</uri>.
13083 </p>
13084
13085 </body>
13086 </subsection>
13087 </section>
13088 <section id="kernel_modules">
13089 <title>Configuring the Modules</title>
13090 <body>
13091
13092 <p>
13093 You should list the modules you want automatically loaded in
13094 <path>/etc/modules.autoload.d/kernel-2.6</path>. You can add extra
13095 options to the modules too if you want.
13096 </p>
13097
13098 <p>
13099 To view all available modules, run the following <c>find</c> command. Don't
13100 forget to substitute "&lt;kernel version&gt;" with the version of the kernel you
13101 just compiled:
13102 </p>
13103
13104 <pre caption="Viewing all available modules">
13105 # <i>find /lib/modules/&lt;kernel version&gt;/ -type f -iname '*.o' -or -iname '*.ko'</i>
13106 </pre>
13107
13108 <p>
13109 For instance, to automatically load the <c>3c59x.o</c> module, edit the
13110 <path>kernel-2.6</path> file and enter the module name in it.
13111 </p>
13112
13113 <pre caption="Editing /etc/modules.autoload.d/kernel-2.6">
13114 # <i>nano -w /etc/modules.autoload.d/kernel-2.6</i>
13115 </pre>
13116
13117 <pre caption="/etc/modules.autoload.d/kernel-2.6">
13118 3c59x
13119 </pre>
13120
13121 <p>
13122 Continue the installation with <uri link="?part=1&amp;chap=8">Configuring
13123 your System</uri>.
13124 </p>
13125
13126 </body>
13127 </section>
13128 </sections>
13129
13130
13131
13132 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc64-medium.xml
13133
13134 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc64-medium.xml?rev=1.1&view=markup
13135 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc64-medium.xml?rev=1.1&content-type=text/plain
13136
13137 Index: hb-install-ppc64-medium.xml
13138 ===================================================================
13139 <?xml version='1.0' encoding='UTF-8'?>
13140 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
13141
13142 <!-- The content of this document is licensed under the CC-BY-SA license -->
13143 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
13144
13145 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-ppc64-medium.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
13146
13147 <sections>
13148
13149 <version>7.0</version>
13150 <date>2006-08-30</date>
13151
13152 <section>
13153 <title>Hardware Requirements</title>
13154 <subsection>
13155 <title>Introduction</title>
13156 <body>
13157
13158 <p>
13159 Before we start, we first list what hardware requirements you need to
13160 successfully install Gentoo on your box.
13161 </p>
13162
13163 </body>
13164 </subsection>
13165 <subsection>
13166 <title>Hardware Requirements</title>
13167 <body>
13168
13169 <table>
13170 <tr>
13171 <th>CPU</th>
13172 <ti>Any PowerPC64 CPU</ti>
13173 </tr>
13174 <tr>
13175 <th>Systems</th>
13176 <ti>
13177 IBM RS/6000s, Power Macintosh G5, iMac G5, IBP pSeries and IBM OpenPower
13178 </ti>
13179 </tr>
13180 <tr>
13181 <th>Memory</th>
13182 <ti>64 MB</ti>
13183 </tr>
13184 <tr>
13185 <th>Diskspace</th>
13186 <ti>1.5 GB (excluding swap space)</ti>
13187 </tr>
13188 <tr>
13189 <th>Swap space</th>
13190 <ti>At least 256 MB</ti>
13191 </tr>
13192 </table>
13193
13194 <p>
13195 For a full list of supported systems, please go to
13196 <uri>http://www.linuxppc64.org/hardware.shtml</uri>.
13197 </p>
13198
13199 </body>
13200 </subsection>
13201 </section>
13202 <!-- Copy/paste from hb-install-x86-medium.xml, with s/x86/ppc64/ -->
13203 <!-- START -->
13204 <section>
13205 <title>The Gentoo Universal Installation CD</title>
13206 <subsection>
13207 <title>Introduction</title>
13208 <body>
13209
13210 <p>
13211 Gentoo Linux can be installed using a <e>stage3</e> tarball file.
13212 Such a tarball is an archive that contains a minimal environment from
13213 which you can succesfully install Gentoo Linux onto your system.
13214 </p>
13215
13216 <p>
13217 Installations using a stage1 or stage2 tarball file are not documented in the
13218 Gentoo Handbook - please read the <uri link="/doc/en/faq.xml#stage12">Gentoo
13219 FAQ</uri> on these matters.
13220 </p>
13221
13222 </body>
13223 </subsection>
13224 <subsection>
13225 <title>Gentoo Universal Installation CD</title>
13226 <body>
13227
13228 <p>
13229 An Installation CD is a bootable medium which contains a self-sustained Gentoo
13230 environment. It allows you to boot Linux from the CD. During the boot process
13231 your hardware is detected and the appropriate drivers are loaded. The Gentoo
13232 Installation CDs are maintained by Gentoo developers.
13233 </p>
13234
13235 <p>
13236 There currently are two Installation CDs available:
13237 </p>
13238
13239 <ul>
13240 <li>
13241 The Universal Installation CD contains everything you need to install
13242 Gentoo. It provides stage3 files for common architectures, source code
13243 for the extra applications you need to choose from and, of course, the
13244 installation instructions for your architecture.
13245 </li>
13246 <li>
13247 The Minimal Installation CD contains only a minimal environment that allows
13248 you to boot up and configure your network so you can connect to the
13249 Internet. It does not contain any additional files and cannot be used
13250 during the current installation approach.
13251 </li>
13252 </ul>
13253
13254 <p>
13255 Gentoo also provides a Package CD. This is not an Installation CD but an
13256 additional resource that you can exploit during the installation of your Gentoo
13257 system. It contains prebuilt packages (also known as the GRP set) that allow
13258 you to easily and quickly install additional applications immediately after the
13259 Gentoo installation and right before you update your Portage tree.
13260 </p>
13261
13262 <p>
13263 The use of the Package CD is covered later in this document.
13264 </p>
13265
13266 </body>
13267 </subsection>
13268 </section>
13269 <!-- STOP -->
13270 <section>
13271 <title>Download, Burn and Boot a Gentoo Installation CD</title>
13272 <subsection>
13273 <title>Downloading and Burning the Installation CDs</title>
13274 <body>
13275
13276 <p>
13277 You can download the Universal Installation CD (and, if you want to, the
13278 Packages CD as well) from one of our <uri
13279 link="/main/en/mirrors.xml">mirrors</uri>. The Installation CDs are located
13280 in the <path>releases/ppc/2006.1/ppc64/installcd</path> directory; the Package
13281 CDs are located in the <path>releases/ppc/2006.1/ppc64/packagecd</path>
13282 directory.
13283 </p>
13284
13285 <p>
13286 Inside those directories you'll find ISO-files. Those are full CD images which
13287 you can write on a CD-R.
13288 </p>
13289
13290 <p>
13291 After downloading the file, you can verify its integrity to see if it is
13292 corrupted or not:
13293 </p>
13294
13295 <ul>
13296 <li>
13297 You can check its MD5 checksum and compare it with the MD5 checksum we
13298 provide (for instance with the <c>md5sum</c> tool under Linux/Unix or
13299 <uri link="http://www.etree.org/md5com.html">md5sum</uri> for Windows). How
13300 to verify MD5 checksums with Mac OS X is described in the <uri
13301 link="/doc/en/gentoo-ppc-faq.xml#doc_chap1">Gentoo PPC FAQ</uri>.
13302 </li>
13303 <li>
13304 You can verify the cryptographic signature that we provide. You need to
13305 obtain the public key we use (0x17072058) before you proceed though.
13306 </li>
13307 </ul>
13308
13309 <p>
13310 To fetch our public key using the GnuPG application, run the following command:
13311 </p>
13312
13313 <pre caption="Obtaining the public key">
13314 $ <i>gpg --keyserver subkeys.pgp.net --recv-keys 0x17072058</i>
13315 </pre>
13316
13317 <p>
13318 Now verify the signature:
13319 </p>
13320
13321 <pre caption="Verify the cryptographic signature">
13322 $ <i>gpg --verify &lt;signature file&gt; &lt;downloaded iso&gt;</i>
13323 </pre>
13324
13325 <p>
13326 To burn the downloaded ISO(s), you have to select raw-burning. How you
13327 do this is highly program-dependent. We will discuss <c>cdrecord</c> and
13328 <c>K3B</c> here; more information can be found in our <uri
13329 link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>.
13330 </p>
13331
13332 <ul>
13333 <li>
13334 With cdrecord, you simply type <c>cdrecord dev=/dev/hdc &lt;downloaded iso
13335 file&gt;</c> (replace <path>/dev/hdc</path> with your CD-RW drive's device
13336 path).
13337 </li>
13338 <li>
13339 With K3B, select <c>Tools</c> &gt; <c>CD</c> &gt; <c>Burn Image</c>. Then
13340 you can locate your ISO file within the 'Image to Burn' area. Finally click
13341 <c>Start</c>.
13342 </li>
13343 </ul>
13344
13345 </body>
13346 </subsection>
13347 <subsection>
13348 <title>Booting the Installation CD on an Apple</title>
13349 <body>
13350
13351 <p>
13352 Please check the <path>README.kernel</path> on the Installation CD for the
13353 latest information on how to boot various kernels and getting hardware support.
13354 </p>
13355
13356 <p>
13357 Place the Installation CD in the CD-ROM and reboot the system. Hold down the
13358 'C' key at bootup. You will be greeted by a friendly welcome message and a
13359 <e>boot:</e> prompt at the bottom of the screen.
13360 </p>
13361
13362 <p>
13363 You are also able to tweak some kernel options at this prompt. The following
13364 table lists the available boot options you can add:
13365 </p>
13366
13367 <table>
13368 <tr>
13369 <th>Boot Option</th>
13370 <th>Description</th>
13371 </tr>
13372 <tr>
13373 <ti><c>video</c></ti>
13374 <ti>
13375 This option takes one of the following vendor-specific tags:
13376 <c>radeonfb</c>, <c>rivafb</c>, <c>atyfb</c>, <c>aty128</c>, <c>nvidiafb</c>
13377 or <c>ofonly</c>. You can follow this tag with the resolution and
13378 refreshrate you want to use. For instance <c>video=radeonfb:1280x1024@75</c>
13379 . If you are uncertain what to choose, <c>ofonly</c> will most certainly
13380 work.
13381 </ti>
13382 </tr>
13383 <tr>
13384 <ti><c>nol3</c></ti>
13385 <ti>
13386 Disables level 3 cache on some powerbooks (needed for at least the 17'')
13387 </ti>
13388 </tr>
13389 <tr>
13390 <ti><c>debug</c></ti>
13391 <ti>
13392 Enables verbose booting, spawns an initrd shell that can be used to debug
13393 the Installation CD
13394 </ti>
13395 </tr>
13396 <tr>
13397 <ti><c>sleep=X</c></ti>
13398 <ti>
13399 Wait X seconds before continuing; this can be needed by some very old SCSI
13400 CD-ROMs which don't speed up the CD quick enough
13401 </ti>
13402 </tr>
13403 <tr>
13404 <ti><c>bootfrom=X</c></ti>
13405 <ti>
13406 Boot from a different device
13407 </ti>
13408 </tr>
13409 </table>
13410
13411 <p>
13412 At this prompt, hit enter, and a complete Gentoo Linux environment will be
13413 loaded from the CD. Continue with <uri link="#booted">And When You're
13414 Booted...</uri>.
13415 </p>
13416
13417 </body>
13418 </subsection>
13419 <subsection>
13420 <title>Booting the Installation CD on an IBM pSeries, OpenPower and Power5
13421 iSeries servers</title>
13422 <body>
13423
13424 <p>
13425 Please check the <path>README.kernel</path> on the Installation CD for the
13426 latest information on how to boot various kernels and getting hardware support.
13427 </p>
13428
13429 <p>
13430 Most modern pSeries servers can boot from the CDROM drive through SMS ('1' when
13431 the “IBM IBM IBM” messages flash across the console). On some older pSeries
13432 boxes, sometimes the cds might not autoboot. You might have to set up your
13433 cdrom as a bootable device in the multi-boot menu. (F1 at startup) The other
13434 option is to jump into OF and do it from there:
13435 </p>
13436
13437 <ol>
13438 <li>
13439 Boot into OF (this is 8 from the serial cons or F8 from a graphics
13440 cons, start hitting the key when you see the keyboard mouse etc etc
13441 messages.
13442 </li>
13443 <li>Run the command 0> boot cdrom:1,yaboot</li>
13444 <li>Stand back and enjoy!</li>
13445 </ol>
13446
13447 </body>
13448 </subsection>
13449 <subsection id="booted">
13450 <title>And When You're Booted...</title>
13451 <body>
13452
13453 <p>
13454 You will be greeted by a root ("#") prompt on the current console. You can also
13455 switch to other consoles by pressing Alt-fn-F2, Alt-fn-F3 and Alt-fn-F4. Get
13456 back to the one you started on by pressing Alt-fn-F1.
13457 </p>
13458
13459 <p>
13460 If you are installing Gentoo on a system with a non-US keyboard, use
13461 <c>loadkeys</c> to load the keymap for your keyboard. To list the available
13462 keymaps, execute <c>ls /usr/share/keymaps/i386</c>.
13463 </p>
13464
13465 <pre caption="Listing available keymaps">
13466 <comment>(PPC uses x86 keymaps on most systems. The mac/ppc keymaps provided
13467 on the Installation CD are ADB keymaps and unusable with the
13468 Installation CD kernel)</comment>
13469 # <i>ls /usr/share/keymaps/i386</i>
13470 </pre>
13471
13472 <p>
13473 Now load the keymap of your choice:
13474 </p>
13475
13476 <pre caption="Loading a keymap">
13477 # <i>loadkeys be-latin1</i>
13478 </pre>
13479
13480 <p>
13481 Now continue with <uri link="#hardware">Extra Hardware Configuration</uri>.
13482 </p>
13483
13484 </body>
13485 </subsection>
13486 <subsection id="hardware">
13487 <title>Extra Hardware Configuration</title>
13488 <body>
13489
13490 <p>
13491 When the Installation CD boots, it tries to detect all your hardware devices and
13492 loads the appropriate kernel modules to support your hardware. In the
13493 vast majority of cases, it does a very good job. However, in some cases it may
13494 not auto-load the kernel
13495 modules you need. If the PCI auto-detection missed some of your system's
13496 hardware, you will have to load the appropriate kernel modules manually.
13497 </p>
13498
13499 <p>
13500 In the next example we try to load the <c>8139too</c> module (support for
13501 certain kinds of network interfaces):
13502 </p>
13503
13504 <pre caption="Loading kernel modules">
13505 # <i>modprobe 8139too</i>
13506 </pre>
13507
13508 </body>
13509 </subsection>
13510 <subsection>
13511 <title>Optional: Tweaking Hard Disk Performance</title>
13512 <body>
13513
13514 <p>
13515 If you are an advanced user, you might want to tweak the IDE hard disk
13516 performance using <c>hdparm</c>. With the <c>-tT</c> options you can
13517 test the performance of your disk (execute it several times to get a
13518 more precise impression):
13519 </p>
13520
13521 <pre caption="Testing disk performance">
13522 # <i>hdparm -tT /dev/hda</i>
13523 </pre>
13524
13525 <p>
13526 To tweak, you can use any of the following examples (or experiment
13527 yourself) which use <path>/dev/hda</path> as disk (substitute with your
13528 disk):
13529 </p>
13530
13531 <pre caption="Tweaking hard disk performance">
13532 <comment>Activate DMA:</comment> # <i>hdparm -d 1 /dev/hda</i>
13533 <comment>Activate DMA + Safe Performance-enhancing Options:</comment> # <i>hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda</i>
13534 </pre>
13535
13536 </body>
13537 </subsection>
13538 <subsection id="useraccounts">
13539 <title>Optional: User Accounts</title>
13540 <body>
13541
13542 <p>
13543 If you plan on giving other people access to your installation
13544 environment or you want to chat using <c>irssi</c> without root privileges (for
13545 security reasons), you need to create the necessary user accounts and change
13546 the root password.
13547 </p>
13548
13549 <p>
13550 To change the root password, use the <c>passwd</c> utility:
13551 </p>
13552
13553 <pre caption="Changing the root password">
13554 # <i>passwd</i>
13555 New password: <comment>(Enter your new password)</comment>
13556 Re-enter password: <comment>(Re-enter your password)</comment>
13557 </pre>
13558
13559 <p>
13560 To create a user account, we first enter their credentials, followed by
13561 its password. We use <c>useradd</c> and <c>passwd</c> for these tasks.
13562 In the next example, we create a user called &quot;john&quot;.
13563 </p>
13564
13565 <pre caption="Creating a user account">
13566 # <i>useradd -m -G users john</i>
13567 # <i>passwd john</i>
13568 New password: <comment>(Enter john's password)</comment>
13569 Re-enter password: <comment>(Re-enter john's password)</comment>
13570 </pre>
13571
13572 <p>
13573 You can change your user id from root to the newly created user by using
13574 <c>su</c>:
13575 </p>
13576
13577 <pre caption="Changing user id">
13578 # <i>su - john</i>
13579 </pre>
13580
13581 </body>
13582 </subsection>
13583 <subsection>
13584 <title>Optional: Viewing Documentation while Installing</title>
13585 <body>
13586
13587 <p>
13588 If you want to view the Gentoo Handbook during the installation, make sure you
13589 have created a user account (see <uri link="#useraccounts">Optional: User
13590 Accounts</uri>). Then press <c>Alt-F2</c> to go to a new terminal and log in.
13591 </p>
13592
13593 <p>
13594 If you want to view the documentation on the CD you can immediately run
13595 <c>links</c> to read it:
13596 </p>
13597
13598 <pre caption="Viewing the on-CD documentation">
13599 # <i>links /mnt/cdrom/docs/handbook/html/index.html</i>
13600 </pre>
13601
13602 <p>
13603 However, it is preferred that you use the online Gentoo Handbook as it will be
13604 more recent than the one provided on the CD.
13605 </p>
13606
13607 <pre caption="Viewing the Online Documentation">
13608 # <i>links http://www.gentoo.org/doc/en/handbook/handbook-ppc64.xml</i>
13609 </pre>
13610
13611 <p>
13612 You can go back to your original terminal by pressing <c>Alt-F1</c>.
13613 </p>
13614
13615 </body>
13616 </subsection>
13617 <subsection>
13618 <title>Optional: Starting the SSH Daemon</title>
13619 <body>
13620
13621 <p>
13622 If you want to allow other users to access your computer during the
13623 Gentoo installation (perhaps because those users are going to help you
13624 install Gentoo, or even do it for you), you need to create a user
13625 account for them and perhaps even provide them with your root password
13626 (<e>only</e> do that <e>if</e> you <b>fully trust</b> that user).
13627 </p>
13628
13629 <p>
13630 To fire up the SSH daemon, execute the following command:
13631 </p>
13632
13633 <pre caption="Starting the SSH daemon">
13634 # <i>/etc/init.d/sshd start</i>
13635 </pre>
13636
13637 <p>
13638 To be able to use sshd, you first need to set up your networking. Continue with
13639 the chapter on <uri link="?part=1&amp;chap=3">Configuring your Network</uri>.
13640 </p>
13641
13642 </body>
13643 </subsection>
13644 </section>
13645 </sections>
13646
13647
13648
13649 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-sparc-bootloader.xml
13650
13651 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-sparc-bootloader.xml?rev=1.1&view=markup
13652 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-sparc-bootloader.xml?rev=1.1&content-type=text/plain
13653
13654 Index: hb-install-sparc-bootloader.xml
13655 ===================================================================
13656 <?xml version='1.0' encoding='UTF-8'?>
13657 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
13658
13659 <!-- The content of this document is licensed under the CC-BY-SA license -->
13660 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
13661
13662 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-sparc-bootloader.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
13663
13664 <sections>
13665
13666 <version>7.0</version>
13667 <date>2006-08-30</date>
13668
13669 <section>
13670 <title>Making your Choice</title>
13671 <subsection>
13672 <title>Introduction</title>
13673 <body>
13674
13675 <p>
13676 Now that your kernel is configured and compiled and the necessary system
13677 configuration files are filled in correctly, it is time to install a
13678 program that will fire up your kernel when you start the system. Such a
13679 program is called a <e>bootloader</e>.
13680 </p>
13681
13682 </body>
13683 </subsection>
13684 </section>
13685 <section>
13686 <title>Installing the SPARC Bootloader: SILO</title>
13687 <body>
13688
13689 <p>
13690 It is now time to install and configure <uri
13691 link="http://www.sparc-boot.org">SILO</uri>, the Sparc Improved boot
13692 LOader.
13693 </p>
13694
13695 <pre caption = "Installing SILO">
13696 # <i>emerge silo</i>
13697 </pre>
13698
13699 <p>
13700 Now open up your favorite editor (we use <c>nano</c> as an example) and
13701 create <path>/etc/silo.conf</path>.
13702 </p>
13703
13704 <pre caption = "Creating /etc/silo.conf">
13705 # <i>nano -w /etc/silo.conf</i>
13706 </pre>
13707
13708 <p>
13709 Below you'll find an example <path>silo.conf</path> file. It uses the
13710 partitioning scheme we use throughout this book and
13711 <path>kernel-2.4.31</path> as kernelimage.
13712 </p>
13713
13714 <pre caption = "Example /etc/silo.conf">
13715 partition = 1 <comment># Boot partition (= root partition)</comment>
13716 root = /dev/sda1 <comment># Root partition</comment>
13717 timeout = 150 <comment># Wait 15 seconds before booting the default section</comment>
13718
13719 image = /boot/kernel-2.4.31
13720 label = linux
13721 </pre>
13722
13723 <p>
13724 If you use the example <path>silo.conf</path> delivered by Portage, be
13725 sure to comment out <e>all</e> lines that you do not need.
13726 </p>
13727
13728 <p>
13729 If the physical disk on which you want to install SILO (as bootloader) differs
13730 from the physical disk on which <path>/etc/silo.conf</path> resides, you must
13731 copy over <path>/etc/silo.conf</path> to a partition on that disk. Assuming that
13732 <path>/boot</path> is a separate partition on that disk, copy over the
13733 configuration file to <path>/boot</path> and run <c>/sbin/silo -f</c>:
13734 </p>
13735
13736 <pre caption = "Only if /boot and the SILO destination are not on the same disk">
13737 # <i>cp /etc/silo.conf /boot</i>
13738 # <i>/sbin/silo -f -C /boot/silo.conf</i>
13739 /boot/silo.conf appears to be valid
13740 </pre>
13741
13742 <p>
13743 Otherwise just run <c>/sbin/silo -f</c>:
13744 </p>
13745
13746 <pre caption = "Run silo">
13747 # <i>/sbin/silo -f</i>
13748 /etc/silo.conf appears to be valid
13749 </pre>
13750
13751 <note>
13752 You have to run <c>silo</c> (with parameters) again each time you update or
13753 reinstall the <c>sys-boot/silo</c> package.
13754 </note>
13755
13756 <p>
13757 Now continue with <uri link="#reboot">Rebooting the System</uri>.
13758 </p>
13759
13760 </body>
13761 </section>
13762 <section id="reboot">
13763 <title>Rebooting the System</title>
13764 <subsection>
13765 <body>
13766
13767 <p>
13768 Exit the chrooted environment and unmount all mounted partitions. Then type in
13769 that one magical command you have been waiting for: <c>reboot</c>.
13770 </p>
13771
13772 <pre caption="Exiting the chroot, unmounting all partitions and rebooting">
13773 # <i>exit</i>
13774 cdimage ~# <i>cd</i>
13775 cdimage ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo</i>
13776 cdimage ~# <i>reboot</i>
13777 </pre>
13778
13779 <p>
13780 Of course, don't forget to remove the bootable CD, otherwise the CD will be
13781 booted again instead of your new Gentoo system.
13782 </p>
13783
13784 <p>
13785 Once rebooted in your Gentoo installation, finish up with <uri
13786 link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
13787 </p>
13788
13789 </body>
13790 </subsection>
13791 </section>
13792 </sections>
13793
13794
13795
13796 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-sparc-disk.xml
13797
13798 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-sparc-disk.xml?rev=1.1&view=markup
13799 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-sparc-disk.xml?rev=1.1&content-type=text/plain
13800
13801 Index: hb-install-sparc-disk.xml
13802 ===================================================================
13803 <?xml version='1.0' encoding='UTF-8'?>
13804 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
13805
13806 <!-- The content of this document is licensed under the CC-BY-SA license -->
13807 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
13808
13809 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-sparc-disk.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
13810
13811 <sections>
13812
13813 <version>7.0</version>
13814 <date>2006-08-30</date>
13815
13816 <section>
13817 <title>Introduction to Block Devices</title>
13818 <subsection>
13819 <title>Block Devices</title>
13820 <body>
13821
13822 <p>
13823 We'll take a good look at some of the disk-oriented aspects of Gentoo Linux
13824 and Linux in general, including Linux filesystems, partitions, and block
13825 devices. Then, once you're familiar with the ins and outs of disks and
13826 filesystems, you'll be guided through the process of setting up partitions
13827 and filesystems for your Gentoo Linux installation.
13828 </p>
13829
13830 <p>
13831 To begin, we introduce <e>block devices</e>. The most typical block device is
13832 probably the one that represents the first SCSI hard disk in a Linux system,
13833 namely <path>/dev/sda</path>.
13834 </p>
13835
13836 <p>
13837 Block devices represent an abstract interface to the disk. User programs can
13838 use these block devices to interact with your disk without worrying about
13839 whether your drives are IDE, SCSI, or something else. The program can simply
13840 address the storage on the disk as a bunch of contiguous, randomly-accessible
13841 512-byte blocks.
13842 </p>
13843
13844 <p>
13845 Block devices show up as entries in <path>/dev/</path>. Typically, the first
13846 SCSI drive is named <path>/dev/sda</path>, the second <path>/dev/sdb</path>,
13847 and so on. IDE drives are named similarly, however, they are prefixed by hd-
13848 instead of sd-. If you are using IDE drives, the first one will be named
13849 <path>/dev/hda</path>, the second <path>/dev/hdb</path>, and so on.
13850 </p>
13851
13852 </body>
13853 </subsection>
13854 <subsection>
13855 <title>Partitions</title>
13856 <body>
13857
13858 <p>
13859 Although it is theoretically possible to use the entire disk to house your Linux
13860 system, this is almost never done in practice. Instead, full disk block devices
13861 are split up in smaller, more manageable block devices. These are known as
13862 <e>partitions</e> or <e>slices</e>.
13863 </p>
13864
13865 <p>
13866 The first partition on the first SCSI disk is <path>/dev/sda1</path>, the second
13867 <path>/dev/sda2</path> and so on. Similarly, the first two partitions on the
13868 first IDE disk are <path>/dev/hda1</path> and <path>/dev/hda2</path>.
13869 </p>
13870
13871 <p>
13872 The third partition on Sun systems is set aside as a special "whole disk"
13873 slice. This partition must not contain a file system.
13874 </p>
13875
13876 <p>
13877 Users who are used to the DOS partitioning scheme should note that Sun
13878 disklabels do not have "primary" and "extended" partitions. Instead, up to
13879 eight partitions are available per drive, with the third of these being
13880 reserved.
13881 </p>
13882
13883 </body>
13884 </subsection>
13885 </section>
13886 <section>
13887 <title>Designing a Partitioning Scheme</title>
13888 <subsection>
13889 <title>Default Partitioning Scheme</title>
13890 <body>
13891
13892 <p>
13893 If you are not interested in drawing up a partitioning scheme,
13894 the table below suggests a suitable starting point for most systems. For
13895 IDE-based systems, substitute <c>hda</c> for <c>sda</c> in the following.
13896 </p>
13897
13898 <p>
13899 Note that a separate <path>/boot</path> partition is generally <e>not</e>
13900 recommended on SPARC, as it complicates the bootloader configuration.
13901 </p>
13902
13903 <table>
13904 <tr>
13905 <th>Partition</th>
13906 <th>Filesystem</th>
13907 <th>Size</th>
13908 <th>Mount Point</th>
13909 <th>Description</th>
13910 </tr>
13911 <tr>
13912 <ti>/dev/sda1</ti>
13913 <ti>ext3</ti>
13914 <ti>&lt;2 GByte</ti>
13915 <ti>/</ti>
13916 <ti>
13917 Root partition. For all sparc32 systems, and sparc64 systems with older
13918 OBP versions, this <e>must</e> be less than 2 GBytes in size, and the first
13919 partition on the disk.
13920 </ti>
13921 </tr>
13922 <tr>
13923 <ti>/dev/sda2</ti>
13924 <ti>swap</ti>
13925 <ti>512 MBytes</ti>
13926 <ti>none</ti>
13927 <ti>
13928 Swap partition. For bootstrap and certain larger compiles, at least 512
13929 MBytes of RAM (including swap) is required.
13930 </ti>
13931 </tr>
13932 <tr>
13933 <ti>/dev/sda3</ti>
13934 <ti>none</ti>
13935 <ti>Whole disk</ti>
13936 <ti>none</ti>
13937 <ti>Whole disk partition. This is required on SPARC systems.</ti>
13938 </tr>
13939 <tr>
13940 <ti>/dev/sda4</ti>
13941 <ti>ext3</ti>
13942 <ti>at least 2 GBytes</ti>
13943 <ti>/usr</ti>
13944 <ti>
13945 /usr partition. Applications are installed here. By default this partition
13946 is also used for Portage data (which takes around 500 Mbyte excluding
13947 source code).
13948 </ti>
13949 </tr>
13950 <tr>
13951 <ti>/dev/sda5</ti>
13952 <ti>ext3</ti>
13953 <ti>at least 1GByte</ti>
13954 <ti>/var</ti>
13955 <ti>
13956 /var partition. Used for program-generated data. By default Portage uses
13957 this partition for temporary space whilst compiling. Certain larger
13958 applications such as Mozilla and OpenOffice.org can require over 1 GByte
13959 of temporary space here when building.
13960 </ti>
13961 </tr>
13962 <tr>
13963 <ti>/dev/sda6</ti>
13964 <ti>ext3</ti>
13965 <ti>remaining space</ti>
13966 <ti>/home</ti>
13967 <ti>/home partition. Used for users' home directories.</ti>
13968 </tr>
13969 </table>
13970
13971 </body>
13972 </subsection>
13973 </section>
13974
13975 <section id="fdisk">
13976 <title>Using fdisk to Partition your Disk</title>
13977 <subsection>
13978 <body>
13979
13980 <p>
13981 The following parts explain how to create the example partition layout described
13982 previously, namely:
13983 </p>
13984
13985 <table>
13986 <tr>
13987 <th>Partition</th>
13988 <th>Description</th>
13989 </tr>
13990 <tr>
13991 <ti>/dev/sda1</ti>
13992 <ti>/</ti>
13993 </tr>
13994 <tr>
13995 <ti>/dev/sda2</ti>
13996 <ti>swap</ti>
13997 </tr>
13998 <tr>
13999 <ti>/dev/sda3</ti>
14000 <ti>whole disk slice</ti>
14001 </tr>
14002 <tr>
14003 <ti>/dev/sda4</ti>
14004 <ti>/usr</ti>
14005 </tr>
14006 <tr>
14007 <ti>/dev/sda5</ti>
14008 <ti>/var</ti>
14009 </tr>
14010 <tr>
14011 <ti>/dev/sda6</ti>
14012 <ti>/home</ti>
14013 </tr>
14014 </table>
14015
14016 <p>
14017 Change the partition layout as required. Remember to keep the root partition
14018 entirely within the first 2 GBytes of the disk for older systems. There is also
14019 a 15-partition limit for SCSI and SATA.
14020 </p>
14021
14022 </body>
14023 </subsection>
14024 <subsection>
14025 <title>Firing up fdisk</title>
14026 <body>
14027
14028 <p>
14029 Start <c>fdisk</c> with your disk as argument:
14030 </p>
14031
14032 <pre caption="Starting fdisk">
14033 # <i>fdisk /dev/sda</i>
14034 </pre>
14035
14036 <p>
14037 You should be greeted with the fdisk prompt:
14038 </p>
14039
14040 <pre caption="The fdisk prompt">
14041 Command (m for help):
14042 </pre>
14043
14044 <p>
14045 To view the available partitions, type in <c>p</c>:
14046 </p>
14047
14048 <pre caption="Listing available partitions">
14049 Command (m for help): <i>p</i>
14050
14051 Disk /dev/sda (Sun disk label): 64 heads, 32 sectors, 8635 cylinders
14052 Units = cylinders of 2048 * 512 bytes
14053
14054 Device Flag Start End Blocks Id System
14055 /dev/sda1 0 488 499712 83 Linux native
14056 /dev/sda2 488 976 499712 82 Linux swap
14057 /dev/sda3 0 8635 8842240 5 Whole disk
14058 /dev/sda4 976 1953 1000448 83 Linux native
14059 /dev/sda5 1953 2144 195584 83 Linux native
14060 /dev/sda6 2144 8635 6646784 83 Linux native
14061 </pre>
14062
14063 <p>
14064 Note the <c>Sun disk label</c> in the output. If this is missing, the disk is
14065 using the DOS-partitioning, not the Sun partitioning. In this case, use <c>s</c>
14066 to ensure that the disk has a sun partition table:
14067 </p>
14068
14069 <pre caption="Creating a Sun Disklabel">
14070 Command (m for help): s
14071 Building a new sun disklabel. Changes will remain in memory only,
14072 until you decide to write them. After that, of course, the previous
14073 content won't be recoverable.
14074
14075 Drive type
14076 ? auto configure
14077 0 custom (with hardware detected defaults)
14078 a Quantum ProDrive 80S
14079 b Quantum ProDrive 105S
14080 c CDC Wren IV 94171-344
14081 d IBM DPES-31080
14082 e IBM DORS-32160
14083 f IBM DNES-318350
14084 g SEAGATE ST34371
14085 h SUN0104
14086 i SUN0207
14087 j SUN0327
14088 k SUN0340
14089 l SUN0424
14090 m SUN0535
14091 n SUN0669
14092 o SUN1.0G
14093 p SUN1.05
14094 q SUN1.3G
14095 r SUN2.1G
14096 s IOMEGA Jaz
14097 Select type (? for auto, 0 for custom): <i>0</i>
14098 Heads (1-1024, default 64):
14099 Using default value 64
14100 Sectors/track (1-1024, default 32):
14101 Using default value 32
14102 Cylinders (1-65535, default 8635):
14103 Using default value 8635
14104 Alternate cylinders (0-65535, default 2):
14105 Using default value 2
14106 Physical cylinders (0-65535, default 8637):
14107 Using default value 8637
14108 Rotation speed (rpm) (1-100000, default 5400): <i>10000</i>
14109 Interleave factor (1-32, default 1):
14110 Using default value 1
14111 Extra sectors per cylinder (0-32, default 0):
14112 Using default value 0
14113 </pre>
14114
14115 <p>
14116 You can find the correct values in your disk's documentation. The
14117 'auto configure' option does not usually work.
14118 </p>
14119
14120 </body>
14121 </subsection>
14122 <subsection>
14123 <title>Deleting Existing Partitions</title>
14124 <body>
14125
14126 <p>
14127 It's time to delete any existing partitions. To do this, type <c>d</c> and hit
14128 Enter. You will then be prompted for the partition number you would like to
14129 delete. To delete a pre-existing <path>/dev/sda1</path>, you would type:
14130 </p>
14131
14132 <pre caption="Deleting a partition">
14133 Command (m for help): <i>d</i>
14134 Partition number (1-4): <i>1</i>
14135 </pre>
14136
14137 <p>
14138 <e>You should not delete partition 3 (whole disk).</e> This is required. If
14139 this partition does not exist, follow the "Creating a Sun Disklabel"
14140 instructions above.
14141 </p>
14142
14143 <p>
14144 After deleting all partitions except the Whole disk slice, you should have a
14145 partition layout similar to the following:
14146 </p>
14147
14148 <pre caption="View an empty partition scheme">
14149 Command (m for help): <i>p</i>
14150
14151 Disk /dev/sda (Sun disk label): 64 heads, 32 sectors, 8635 cylinders
14152 Units = cylinders of 2048 * 512 bytes
14153
14154 Device Flag Start End Blocks Id System
14155 /dev/sda3 0 8635 8842240 5 Whole disk
14156 </pre>
14157
14158
14159 </body>
14160 </subsection>
14161
14162 <subsection>
14163 <title>Creating the Root Partition</title>
14164 <body>
14165
14166 <p>
14167 We're ready to create the root partition. To do this, type <c>n</c> to create a
14168 new partition, then type <c>1</c> to create the partition. When prompted for
14169 the first cylinder, hit enter. When prompted for the last cylinder, type
14170 <c>+512M</c> to create a partition <c>512MBytes</c> in size. Make sure that the
14171 entire root partition fits within the first 2GBytes of the disk. You can see
14172 output from these steps below:
14173 </p>
14174
14175 <pre caption="Creating a root partition">
14176 Command (m for help): <i>n</i>
14177 Partition number (1-8): <i>1</i>
14178 First cylinder (0-8635): <i>(press Enter)</i>
14179 Last cylinder or +size or +sizeM or +sizeK (0-8635, default 8635): <i>+512M</i>
14180 </pre>
14181
14182 <p>
14183 Now, when you type <c>p</c>, you should see the following partition printout:
14184 </p>
14185
14186 <pre caption="Listing the partition layout">
14187 Command (m for help): <i>p</i>
14188
14189 Disk /dev/sda (Sun disk label): 64 heads, 32 sectors, 8635 cylinders
14190 Units = cylinders of 2048 * 512 bytes
14191
14192 Device Flag Start End Blocks Id System
14193 /dev/sda1 0 488 499712 83 Linux native
14194 /dev/sda3 0 8635 8842240 5 Whole disk
14195 </pre>
14196
14197 </body>
14198 </subsection>
14199 <subsection>
14200 <title>Creating a swap partition</title>
14201 <body>
14202
14203 <p>
14204 Next, let's create the swap partition. To do this, type <c>n</c> to create a new
14205 partition, then <c>2</c> to create the second partition, <path>/dev/sda2</path>
14206 in our case. When prompted for the first cylinder, hit enter. When prompted for
14207 the last cylinder, type <c>+512M</c> to create a partition 512MB in size. After
14208 you've done this, type <c>t</c> to set the partition type, and then type in
14209 <c>82</c> to set the partition type to "Linux Swap". After completing these
14210 steps, typing <c>p</c> should display a partition table that looks similar to
14211 this:
14212 </p>
14213
14214 <pre caption="Listing of available partitions">
14215 Command (m for help): <i>p</i>
14216
14217 Disk /dev/sda (Sun disk label): 64 heads, 32 sectors, 8635 cylinders
14218 Units = cylinders of 2048 * 512 bytes
14219
14220 Device Flag Start End Blocks Id System
14221 /dev/sda1 0 488 499712 83 Linux native
14222 /dev/sda2 488 976 499712 82 Linux swap
14223 /dev/sda3 0 8635 8842240 5 Whole disk
14224 </pre>
14225
14226 </body>
14227 </subsection>
14228 <subsection>
14229 <title>Creating the /usr, /var and /home partitions</title>
14230 <body>
14231
14232 <p>
14233 Finally, let's create the /usr, /var and /home partitions. As before,
14234 type <c>n</c> to create a new partition, then type <c>4</c> to create the
14235 third partition, <path>/dev/sda4</path> in our case. When prompted for the
14236 first cylinder, hit enter. When prompted for the last cylinder, enter
14237 <c>+2048M</c> to create a partition 2 GBytes in size. Repeat this process
14238 for <path>sda5</path> and <path>sda6</path>, using the desired sizes. Once
14239 you're done, you should see something like this:
14240 </p>
14241
14242 <pre caption="Listing complete partition table">
14243 Command (m for help): <i>p</i>
14244
14245 Disk /dev/sda (Sun disk label): 64 heads, 32 sectors, 8635 cylinders
14246 Units = cylinders of 2048 * 512 bytes
14247
14248 Device Flag Start End Blocks Id System
14249 /dev/sda1 0 488 499712 83 Linux native
14250 /dev/sda2 488 976 499712 82 Linux swap
14251 /dev/sda3 0 8635 8842240 5 Whole disk
14252 /dev/sda4 976 1953 1000448 83 Linux native
14253 /dev/sda5 1953 2144 195584 83 Linux native
14254 /dev/sda6 2144 8635 6646784 83 Linux native
14255 </pre>
14256
14257 </body>
14258 </subsection>
14259 <subsection>
14260 <title>Save and Exit</title>
14261 <body>
14262
14263 <p>
14264 To save your partition layout and exit <c>fdisk</c>, type <c>w</c>:
14265 </p>
14266
14267 <pre caption="Save and exit fdisk">
14268 Command (m for help): <i>w</i>
14269 </pre>
14270
14271 <p>
14272 Now that your partitions are created, you can now continue with <uri
14273 link="#filesystems">Creating Filesystems</uri>.
14274 </p>
14275
14276 </body>
14277 </subsection>
14278 </section>
14279 <section id="filesystems">
14280 <title>Creating Filesystems</title>
14281 <subsection>
14282 <title>Introduction</title>
14283 <body>
14284
14285 <p>
14286 Now that your partitions are created, it is time to place a filesystem on them.
14287 If you don't care about what filesystem to choose and are happy with what is
14288 used as default in this handbook, continue with <uri
14289 link="#filesystems-apply">Applying a Filesystem to a Partition</uri>.
14290 Otherwise, read on to learn about the available filesystems...
14291 </p>
14292
14293 </body>
14294 </subsection>
14295 <subsection>
14296 <title>Filesystems?</title>
14297 <body>
14298
14299 <p>
14300 Several filesystems are available, some are known to be stable on the
14301 SPARC architecture. Ext2 and ext3, for example, are known to work well.
14302 Alternate filesystems may not function correctly.
14303 </p>
14304
14305 <p>
14306 <b>ext2</b> is the tried-and-true Linux filesystem. It does not support
14307 journaling, which means that periodic checks of ext2 filesystems at startup
14308 can be quite time-consuming. There is quite a selection of newer-generation
14309 journaled filesystems that can be checked for consistency very quickly at
14310 startup, and are therefore generally preferred over their non-journaled
14311 counterparts. In general, journaled filesystems prevent long delays when a
14312 system is booted and the filesystem is in an inconsistent state.
14313 </p>
14314
14315 <p>
14316 <b>ext3</b> is the journaled version of the ext2 filesystem. It provides
14317 metadata journaling for fast recovery as well as other enhanced journaling
14318 modes like full-data and ordered-data journaling. Ext3 has an additional hashed
14319 b-tree indexing option that enables high performance in almost all situations.
14320 You can enable this indexing by adding <c>-O dir_index</c> to the <c>mke2fs</c>
14321 command, though this can only be done if you are using a 2.6 kernel. Ext3 makes
14322 an excellent and reliable alternative to ext2.
14323 </p>
14324
14325 </body>
14326 </subsection>
14327 <subsection id="filesystems-apply">
14328 <title>Applying a Filesystem to a Partition</title>
14329 <body>
14330
14331 <p>
14332 To create a filesystem on a partition or volume, tools specific to the chosen
14333 filesystem are available:
14334 </p>
14335
14336 <table>
14337 <tr>
14338 <th>Filesystem</th>
14339 <th>Creation Command</th>
14340 </tr>
14341 <tr>
14342 <ti>ext2</ti>
14343 <ti><c>mke2fs</c></ti>
14344 </tr>
14345 <tr>
14346 <ti>ext3</ti>
14347 <ti><c>mke2fs -j</c></ti>
14348 </tr>
14349 </table>
14350
14351 <p>
14352 For instance, to create the root partition (<path>/dev/sda1</path> in our
14353 example) as ext2, and the <path>/usr</path>, <path>/var</path>, and
14354 <path>/home</path> partitions (<path>/dev/sda4</path>, <path>5</path>
14355 and <path>6</path> in our example, respectively) as ext3, you would use:
14356 </p>
14357
14358 <pre caption="Applying a filesystem on a partition">
14359 # <i>mke2fs /dev/sda1</i>
14360 # <i>mke2fs -j /dev/sda4</i>
14361 # <i>mke2fs -j /dev/sda5</i>
14362 # <i>mke2fs -j /dev/sda6</i>
14363 </pre>
14364
14365 </body>
14366 </subsection>
14367 <subsection>
14368 <title>Activating the Swap Partition</title>
14369 <body>
14370
14371 <p>
14372 <c>mkswap</c> is the command used to initialize swap partitions:
14373 </p>
14374
14375 <pre caption="Creating a Swap signature">
14376 # <i>mkswap /dev/sda2</i>
14377 </pre>
14378
14379 <p>
14380 To activate the swap partition, use <c>swapon</c>:
14381 </p>
14382
14383 <pre caption="Activating the swap partition">
14384 # <i>swapon /dev/sda2</i>
14385 </pre>
14386
14387 <p>
14388 Create and activate the swap now.
14389 </p>
14390
14391 </body>
14392 </subsection>
14393 </section>
14394 <section>
14395 <title>Mounting</title>
14396 <body>
14397
14398 <p>
14399 Now that your partitions are initialized and are housing a filesystem, it is
14400 time to mount them using the <c>mount</c> command. Don't forget to first
14401 create the necessary mount directories for every partition you created. For
14402 example:
14403 </p>
14404
14405 <pre caption="Mounting partitions">
14406 # <i>mount /dev/sda1 /mnt/gentoo</i>
14407 # <i>mkdir /mnt/gentoo/usr</i>
14408 # <i>mount /dev/sda4 /mnt/gentoo/usr</i>
14409 # <i>mkdir /mnt/gentoo/var</i>
14410 # <i>mount /dev/sda5 /mnt/gentoo/var</i>
14411 # <i>mkdir /mnt/gentoo/home</i>
14412 # <i>mount /dev/sda6 /mnt/gentoo/home</i>
14413 </pre>
14414
14415 <note>
14416 If you want your <path>/tmp</path> to reside on a separate partition, be sure
14417 to change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>.
14418 This also holds for <path>/var/tmp</path>.
14419 </note>
14420
14421 <p>
14422 We will also have to mount the proc filesystem (a virtual interface with the
14423 kernel) on <path>/proc</path>. But first we will need to place our files on the partitions.
14424 </p>
14425
14426 <p>
14427 Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
14428 Installation Files</uri>.
14429 </p>
14430
14431 </body>
14432 </section>
14433 </sections>
14434
14435
14436
14437
14438 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-sparc-kernel.xml
14439
14440 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-sparc-kernel.xml?rev=1.1&view=markup
14441 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-sparc-kernel.xml?rev=1.1&content-type=text/plain
14442
14443 Index: hb-install-sparc-kernel.xml
14444 ===================================================================
14445 <?xml version='1.0' encoding='UTF-8'?>
14446 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
14447
14448 <!-- The content of this document is licensed under the CC-BY-SA license -->
14449 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
14450
14451 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-sparc-kernel.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
14452
14453 <sections>
14454
14455 <version>7.0</version>
14456 <date>2006-08-30</date>
14457
14458 <section>
14459 <title>Timezone</title>
14460 <body>
14461
14462 <p>
14463 You first need to select your timezone so that your system knows where it is
14464 located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy
14465 it to <path>/etc/localtime</path>. Please avoid the
14466 <path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not
14467 indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8.
14468 </p>
14469
14470 <pre caption="Setting the timezone information">
14471 # <i>ls /usr/share/zoneinfo</i>
14472 <comment>(Suppose you want to use GMT)</comment>
14473 # <i>cp /usr/share/zoneinfo/GMT /etc/localtime</i>
14474 </pre>
14475
14476 </body>
14477 </section>
14478 <section>
14479 <title>Installing the Sources</title>
14480 <subsection>
14481 <title>Choosing a Kernel</title>
14482 <body>
14483
14484 <p>
14485 The core around which all distributions are built is the Linux kernel. It is the
14486 layer between the user programs and your system hardware. Gentoo provides its
14487 users several possible kernel sources. A full listing with description is
14488 available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel
14489 Guide</uri>.
14490 </p>
14491
14492 <p>
14493 For sparc-based systems we have <c>sparc-sources</c> (2.4 kernel sources
14494 optimized for SPARC users), <c>gentoo-sources</c> (recommended 2.6 kernel
14495 sources) and <c>vanilla-sources</c> (kernel source as developed by the
14496 linux-kernel developers).
14497 </p>
14498
14499 <p>
14500 In the next example we install the <c>gentoo-sources</c>. Of course substitute
14501 with your choice of sources, this is merely an example. The <c>USE="-doc"</c>
14502 is necessary to avoid installing xorg-x11 or other dependencies at this point.
14503 <c>USE="symlink"</c> is not necessary for a new install, but ensures proper
14504 creation of the <path>/usr/src/linux</path> symlink.
14505 </p>
14506
14507 <pre caption="Installing a kernel source">
14508 # <i>USE="-doc symlink" emerge gentoo-sources</i>
14509 </pre>
14510
14511 <p>
14512 When you take a look in <path>/usr/src</path> you should see a symlink called
14513 <path>linux</path> pointing to your kernel source. In this case, the installed
14514 kernel source points to <c>linux-2.6.17-gentoo-r5</c>. Your version may be
14515 different, so keep this in mind.
14516 </p>
14517
14518 <pre caption="Viewing the kernel source symlink">
14519 # <i>ls -l /usr/src/linux</i>
14520 lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-2.6.17-gentoo-r5
14521 </pre>
14522
14523 <p>
14524 Now it is time to configure and compile your kernel source.
14525 </p>
14526
14527 </body>
14528 </subsection>
14529 </section>
14530 <section>
14531 <title>Manual Configuration</title>
14532 <subsection>
14533 <title>Introduction</title>
14534 <body>
14535
14536 <p>
14537 Manually configuring a kernel is often seen as the most difficult procedure a
14538 Linux user ever has to perform. Nothing is less true -- after configuring a
14539 couple of kernels you don't even remember that it was difficult ;)
14540 </p>
14541
14542 <p>
14543 However, one thing <e>is</e> true: you must know your system when you start
14544 configuring a kernel manually. Most information can be gathered by emerging
14545 pciutils (<c>emerge pciutils</c>) which contains <c>lspci</c>. You will now
14546 be able to use <c>lspci</c> within the chrooted environment. You may safely
14547 ignore any <e>pcilib</e> warnings (like pcilib: cannot open
14548 /sys/bus/pci/devices) that <c>lspci</c> throws out. Alternatively, you can run
14549 <c>lspci</c> from a <e>non-chrooted</e> environment. The results are the same.
14550 You can also run <c>lsmod</c> to see what kernel modules the Installation CD
14551 uses (it might provide you with a nice hint on what to enable).
14552 </p>
14553
14554 <p>
14555 Now go to your kernel source directory and execute <c>make menuconfig</c>. This
14556 will fire up an ncurses-based configuration menu.
14557 </p>
14558
14559 <pre caption="Invoking menuconfig">
14560 # <i>cd /usr/src/linux</i>
14561 # <i>make menuconfig</i>
14562 </pre>
14563
14564 <p>
14565 You will be greeted with several configuration sections. We'll first list some
14566 options you must activate (otherwise Gentoo will not function, or not function
14567 properly without additional tweaks).
14568 </p>
14569
14570 </body>
14571 </subsection>
14572 <subsection>
14573 <title>Activating Required Options</title>
14574 <body>
14575
14576 <p>
14577 First of all, activate the use of development and experimental code/drivers.
14578 You need this, otherwise some very important code/drivers won't show up:
14579 </p>
14580
14581 <pre caption="Selecting experimental code/drivers">
14582 Code maturity level options ---&gt;
14583 [*] Prompt for development and/or incomplete code/drivers
14584 </pre>
14585
14586 <p>
14587 Now go to <c>File Systems</c> and select support for the filesystems you use.
14588 <e>Don't</e> compile them as modules, otherwise your Gentoo system will not be
14589 able to mount your partitions. Also select <c>Virtual memory</c> and <c>/proc
14590 file system</c>. If you are running a 2.4 kernel, you should also select
14591 <c>/dev file system</c> + <c>Automatically mount at boot</c>:
14592 </p>
14593
14594 <pre caption="Selecting necessary file systems">
14595 File systems ---&gt;
14596 [*] Virtual memory file system support (former shm fs)
14597 [*] /proc file system support
14598 [ ] /dev/pts file system for Unix98 PTYs
14599
14600 <comment>(Select one or more of the following options as needed by your system)</comment>
14601 &lt;*&gt; Ext3 journalling file system support
14602 &lt;*&gt; Second extended fs support
14603 </pre>
14604
14605 <p>
14606 If you are using PPPoE to connect to the Internet or you are using a dial-up
14607 modem, you will need the following options in the kernel:
14608 </p>
14609
14610 <pre caption="Selecting PPPoE necessary drivers">
14611 Network device support ---&gt;
14612 &lt;*&gt; PPP (point-to-point protocol) support
14613 &lt;*&gt; PPP support for async serial ports
14614 &lt;*&gt; PPP support for sync tty ports
14615 </pre>
14616
14617 <p>
14618 The two compression options won't harm but are not definitely needed, neither
14619 does the <c>PPP over Ethernet</c> option, that might only be used by
14620 <c>rp-pppoe</c> when configured to do kernel mode PPPoE.
14621 </p>
14622
14623 <p>
14624 Now activate the correct bus-support:
14625 </p>
14626
14627 <pre caption="Activating SBUS/UPA">
14628 Console drivers ---&gt;
14629 Frame-buffer support ---&gt;
14630 [*] SBUS and UPA framebuffers
14631 [*] Creator/Creator3D support <comment>(Only for UPA slot adapter used in many Ultras)</comment>
14632 [*] CGsix (GX,TurboGX) support <comment>(Only for SBUS slot adapter used in many SPARCStations)</comment>
14633 </pre>
14634
14635 <p>
14636 Of course you want support for the OBP:
14637 </p>
14638
14639 <pre caption="Activating OBP Support">
14640 Misc Linux/SPARC drivers ---&gt;
14641 [*] /dev/openprom device support
14642 </pre>
14643
14644 <p>
14645 You will also need SCSI-specific support:
14646 </p>
14647
14648 <pre caption="Activating SCSI-specific support">
14649 SCSI support ---&gt;
14650 SCSI low-level drivers ---&gt;
14651 &lt;*&gt; Sparc ESP Scsi Driver <comment>(Only for SPARC ESP on-board SCSI adapter)</comment>
14652 &lt;*&gt; PTI Qlogic, ISP Driver <comment>(Only for SBUS SCSI controllers from PTI or QLogic)</comment>
14653 &lt;*&gt; SYM53C8XX Version 2 SCSI support <comment>(Only for Ultra 60 on-board SCSI adapter)</comment>
14654 </pre>
14655
14656 <p>
14657 To support your network card, select one of the following:
14658 </p>
14659
14660 <pre caption="Activating networking support">
14661 Network device support ---&gt;
14662 Ethernet (10 or 100Mbit) ---&gt;
14663 &lt;*&gt; Sun LANCE support <comment>(Only for SPARCStation, older Ultra systems, and as Sbus option)</comment>
14664 &lt;*&gt; Sun Happy Meal 10/100baseT support <comment>(Only for Ultra; also supports "qfe" quad-ethernet on PCI and Sbus)</comment>
14665 &lt;*&gt; DECchip Tulip (dc21x4x) PCI support <comment>(For some Netras, like N1)</comment>
14666 Ethernet (1000Mbit) ---&gt;
14667 &lt;*&gt; Broadcom Tigon3 support <comment>(Modern Netra, Sun Fire machines)</comment>
14668 </pre>
14669
14670 <p>
14671 When you have a 4-port Ethernet machine (10/100 or 10/100/1000) the port order
14672 is different from the one used by Solaris. You can use <c>sys-apps/ethtool</c>
14673 or <c>mii-tool</c> to check the port link status.
14674 </p>
14675
14676 <p>
14677 When you're done configuring your kernel, continue with <uri
14678 link="#compiling">Compiling and Installing</uri>. However, after having
14679 compiled the kernel, check its size:
14680 </p>
14681
14682 <pre caption="Check kernel size">
14683 # <i>ls -lh vmlinux</i>
14684 -rw-r--r-- 1 root root 2.4M Oct 25 14:38 vmlinux
14685 </pre>
14686
14687 <p>
14688 If the (uncompressed) size is bigger than 2.5 MB (for Sparc32) or 3.5 MB (for
14689 Sparc64), reconfigure your kernel until it doesn't exceed these limits. One way
14690 of accomplishing this is by having most kernel drivers compiled as modules.
14691 Ignoring this can lead to a non-booting kernel.
14692 </p>
14693
14694 <p>
14695 Also, if your kernel is just a tad too big, you can try stripping it using the
14696 <c>strip</c> command:
14697 </p>
14698
14699 <pre caption="Stripping the kernel">
14700 # <i>strip -R .comment -R .note vmlinux</i>
14701 </pre>
14702
14703 </body>
14704 </subsection>
14705 <subsection id="compiling">
14706 <title>Compiling and Installing</title>
14707 <body>
14708
14709 <p>
14710 Now that your kernel is configured, it is time to compile and install it. Exit
14711 the configuration and start the compilation process:
14712 </p>
14713
14714 <pre caption="Compiling the kernel">
14715 <comment>(sparc32)</comment>
14716 # <i>make dep &amp;&amp; make clean vmlinux modules modules_install</i>
14717
14718 <comment>(sparc64)</comment>
14719 # <i>make dep &amp;&amp; make clean vmlinux image modules modules_install</i>
14720 </pre>
14721
14722 <p>
14723 When the kernel has finished compiling, copy the kernel image to
14724 <path>/boot</path>. Remember to replace <path>&lt;kernel-version&gt;</path>
14725 with your actual kernel version.
14726 </p>
14727
14728 <pre caption="Installing the kernel">
14729 <comment>(sparc32)</comment>
14730 # <i>cp vmlinux /boot/&lt;kernel-version&gt;</i>
14731
14732 <comment>(sparc64)</comment>
14733 # <i>cp arch/sparc64/boot/image /boot/&lt;kernel-version&gt;</i>
14734 </pre>
14735
14736 <p>
14737 Now continue with <uri link="#kernel_modules">Installing Separate Kernel
14738 Modules</uri>.
14739 </p>
14740
14741 </body>
14742 </subsection>
14743 </section>
14744 <section id="kernel_modules">
14745 <title>Installing Separate Kernel Modules</title>
14746 <subsection>
14747 <title>Configuring the Modules</title>
14748 <body>
14749
14750 <p>
14751 You should list the modules you want automatically loaded in
14752 <path>/etc/modules.autoload.d/kernel-2.6</path>.
14753 You can add extra options to the modules too if you want.
14754 </p>
14755
14756 <p>
14757 To view all available modules, run the following <c>find</c> command. Don't
14758 forget to substitute "&lt;kernel version&gt;" with the version of the kernel you
14759 just compiled:
14760 </p>
14761
14762 <pre caption="Viewing all available modules">
14763 # <i>find /lib/modules/&lt;kernel version&gt;/ -type f -iname '*.o' -or -iname '*.ko'</i>
14764 </pre>
14765
14766 <p>
14767 For instance, to automatically load the <c>3c59x.o</c> module, edit the
14768 <path>kernel-2.6</path> file and enter the module name in it.
14769 </p>
14770
14771 <pre caption="Editing /etc/modules.autoload.d/kernel-2.6">
14772 # <i>nano -w /etc/modules.autoload.d/kernel-2.6</i>
14773 </pre>
14774
14775 <pre caption="/etc/modules.autoload.d/kernel-2.6">
14776 3c59x
14777 </pre>
14778
14779 <p>
14780 Continue the installation with <uri link="?part=1&amp;chap=8">Configuring
14781 your System</uri>.
14782 </p>
14783
14784 </body>
14785 </subsection>
14786 </section>
14787 </sections>
14788
14789
14790
14791 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-sparc-medium.xml
14792
14793 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-sparc-medium.xml?rev=1.1&view=markup
14794 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-sparc-medium.xml?rev=1.1&content-type=text/plain
14795
14796 Index: hb-install-sparc-medium.xml
14797 ===================================================================
14798 <?xml version='1.0' encoding='UTF-8'?>
14799 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
14800
14801 <!-- The content of this document is licensed under the CC-BY-SA license -->
14802 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
14803
14804 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-sparc-medium.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
14805
14806 <sections>
14807
14808 <version>7.0</version>
14809 <date>2006-08-30</date>
14810
14811 <section>
14812 <title>Hardware Requirements</title>
14813 <subsection>
14814 <title>Introduction</title>
14815 <body>
14816
14817 <p>
14818 Before we start, we first list what hardware requirements you need to
14819 successfully install Gentoo on your box.
14820 </p>
14821
14822 </body>
14823 </subsection>
14824 <subsection>
14825 <title>Hardware Requirements</title>
14826 <body>
14827
14828 <table>
14829 <tr>
14830 <th>Sparc System</th>
14831 <ti>
14832 Please check the <uri link="/proj/en/base/sparc/sunhw.xml">Gentoo
14833 Linux/SPARC64 Compatibility list</uri> or the <uri
14834 link="http://www.ultralinux.org/faq.html#s_2">UltraLinux FAQ</uri>
14835 </ti>
14836 </tr>
14837 <tr>
14838 <th>CPU</th>
14839 <ti>
14840 Although sparc64 is the only officially supported platform, experimental
14841 support for sparc32 is available as well
14842 </ti>
14843 </tr>
14844 <tr>
14845 <th>Memory</th>
14846 <ti>64 MB</ti>
14847 </tr>
14848 <tr>
14849 <th>Diskspace</th>
14850 <ti>1.5 GB (excluding swap space)</ti>
14851 </tr>
14852 <tr>
14853 <th>Swap space</th>
14854 <ti>At least 256 MB</ti>
14855 </tr>
14856 </table>
14857
14858 <p>
14859 We currently only provide Installation CDs for the sparc64 architecture. Users
14860 of sparc32 can use the experimental netboot images to install Gentoo from.
14861 More information about netbooting can be found in our <uri
14862 link="/doc/en/gentoo-sparc-netboot-howto.xml">Gentoo Linux based Netboot
14863 HOWTO</uri>.
14864 </p>
14865
14866 </body>
14867 </subsection>
14868 </section>
14869 <!-- Copy/Paste from hb-install-x86-medium.xml -->
14870 <!-- START -->
14871 <section>
14872 <title>The Gentoo Universal Installation CD</title>
14873 <subsection>
14874 <title>Introduction</title>
14875 <body>
14876
14877 <p>
14878 Gentoo Linux can be installed using a <e>stage3</e> tarball file.
14879 Such a tarball is an archive that contains a minimal environment from
14880 which you can succesfully install Gentoo Linux onto your system.
14881 </p>
14882
14883 <p>
14884 Installations using a stage1 or stage2 tarball file are not documented in the
14885 Gentoo Handbook - please read the <uri link="/doc/en/faq.xml#stage12">Gentoo
14886 FAQ</uri> on these matters.
14887 </p>
14888
14889 </body>
14890 </subsection>
14891 <subsection>
14892 <title>Gentoo Universal Installation CD</title>
14893 <body>
14894
14895 <p>
14896 An Installation CD is a bootable medium which contains a self-sustained Gentoo
14897 environment. It allows you to boot Linux from the CD. During the boot process
14898 your hardware is detected and the appropriate drivers are loaded. The Gentoo
14899 Installation CDs are maintained by Gentoo developers.
14900 </p>
14901
14902 <p>
14903 There currently are two Installation CDs available:
14904 </p>
14905
14906 <ul>
14907 <li>
14908 The Universal Installation CD contains everything you need to install
14909 Gentoo. It provides stage3 files for common architectures, source code
14910 for the extra applications you need to choose from and, of course, the
14911 installation instructions for your architecture.
14912 </li>
14913 <li>
14914 The Minimal Installation CD contains only a minimal environment that allows
14915 you to boot up and configure your network so you can connect to the
14916 Internet. It does not contain any additional files and cannot be used
14917 during the current installation approach.
14918 </li>
14919 </ul>
14920
14921 <p>
14922 Gentoo also provides a Package CD. This is not an Installation CD but an
14923 additional resource that you can exploit during the installation of your Gentoo
14924 system. It contains prebuilt packages (also known as the GRP set) that allow
14925 you to easily and quickly install additional applications (such as
14926 OpenOffice.org, KDE, GNOME, ...) immediately after the Gentoo installation and
14927 right before you update your Portage tree.
14928 </p>
14929
14930 <p>
14931 The use of the Package CD is covered later in this document.
14932 </p>
14933
14934 </body>
14935 </subsection>
14936 </section>
14937 <!-- STOP -->
14938 <section>
14939 <title>Download, Burn and Boot a Gentoo Installation CD</title>
14940 <subsection>
14941 <title>Downloading and Burning the Installation CDs</title>
14942 <body>
14943
14944 <p>
14945 You can download the Universal Installation CD (and, if you want to, the
14946 Packages CD as well) from one of our <uri
14947 link="/main/en/mirrors.xml">mirrors</uri>. The Installation CDs are located in
14948 the <path>releases/sparc/2006.1/sparc64/installcd</path>
14949 directory; the Package CDs are located in the
14950 <path>releases/sparc/2006.1/sparc64/packagecd</path> directory.
14951 </p>
14952
14953 <p>
14954 Inside those directories you'll find ISO-files. Those are full CD images which
14955 you can write on a CD-R.
14956 </p>
14957
14958 <p>
14959 After downloading the file, you can verify its integrity to see if it is
14960 corrupted or not:
14961 </p>
14962
14963 <ul>
14964 <li>
14965 You can check its MD5 checksum and compare it with the MD5 checksum we
14966 provide (for instance with the <c>md5sum</c> tool under Linux/Unix or
14967 <uri link="http://www.etree.org/md5com.html">md5sum</uri> for Windows)
14968 </li>
14969 <li>
14970 You can verify the cryptographic signature that we provide. You need to
14971 obtain the public key we use (17072058) before you proceed though.
14972 </li>
14973 </ul>
14974
14975 <p>
14976 To fetch our public key using the GnuPG application, run the following command:
14977 </p>
14978
14979 <pre caption="Obtaining the public key">
14980 $ <i>gpg --keyserver subkeys.pgp.net --recv-keys 17072058</i>
14981 </pre>
14982
14983 <p>
14984 Now verify the signature:
14985 </p>
14986
14987 <pre caption="Verify the cryptographic signature">
14988 $ <i>gpg --verify &lt;signature file&gt; &lt;downloaded iso&gt;</i>
14989 </pre>
14990
14991 <p>
14992 To burn the downloaded ISO(s), you have to select raw-burning. How you
14993 do this is highly program-dependent. We will discuss <c>cdrecord</c> and
14994 <c>K3B</c> here; more information can be found in our <uri
14995 link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>.
14996 </p>
14997
14998 <ul>
14999 <li>
15000 With cdrecord, you simply type <c>cdrecord dev=/dev/hdc &lt;downloaded
15001 iso&gt;</c> (replace <path>/dev/hdc</path> with your CD-RW drive's device
15002 path).
15003 </li>
15004 <li>
15005 With K3B, select <c>Tools</c> &gt; <c>CD</c> &gt; <c>Burn Image</c>. Then
15006 you can locate your ISO file within the 'Image to Burn' area. Finally click
15007 <c>Start</c>.
15008 </li>
15009 </ul>
15010
15011 </body>
15012 </subsection>
15013 <subsection>
15014 <title>Booting the Universal Installation CD</title>
15015 <body>
15016
15017 <p>
15018 Insert the Gentoo Installation CD in the CD-ROM and boot your system. During
15019 startup, press Stop-A to enter OpenBootPROM (OBP). Once you are in the OBP,
15020 boot from the CD-ROM:
15021 </p>
15022
15023 <pre caption="Booting the Installation CD">
15024 ok <i>boot cdrom</i>
15025 </pre>
15026
15027 <p>
15028 You will be greeted by the SILO boot manager (on the Installation CD). Type in
15029 <c>2616</c> to use 2.6.16 kernel or <c>2617</c> to use 2.6.17 kernel and press
15030 enter to continue booting the system. <c>2616</c> was tested more extensively
15031 so it's the option you should choose if default <c>2617</c> doesn't work for
15032 you. If you want to have support for the newer Sun boxes (Niagara, UltraSPARC,
15033 T1), you should choose default <c>2617</c>.
15034 </p>
15035
15036 <pre caption="Continue booting from the Installation CD">
15037 boot: <i>2617</i>
15038 </pre>
15039
15040 <p>
15041 Once the Installation CD is booted, you will be automatically logged on to the
15042 system.
15043 </p>
15044
15045 <p>
15046 You should have a root ("#") prompt on the current console and can also switch
15047 to other consoles by pressing Alt-F2, Alt-F3 and Alt-F4. Get back to the one you
15048 started on by pressing Alt-F1. You will also find a root prompt on the serial
15049 console (<path>ttyS0</path>).
15050 </p>
15051
15052 <p>
15053 Continue with <uri link="#hardware">Extra Hardware Configuration</uri>.
15054 </p>
15055
15056 </body>
15057 </subsection>
15058 <subsection id="hardware">
15059 <title>Extra Hardware Configuration</title>
15060 <body>
15061
15062 <p>
15063 If not all hardware is supported out-of-the-box, you will need to load the
15064 appropriate kernel modules.
15065 </p>
15066
15067 <p>
15068 In the next example we try to load the <c>8139too</c> module (support for
15069 certain kinds of network interfaces):
15070 </p>
15071
15072 <pre caption="Loading kernel modules">
15073 # <i>modprobe 8139too</i>
15074 </pre>
15075
15076 </body>
15077 </subsection>
15078 <subsection id="useraccounts">
15079 <title>Optional: User Accounts</title>
15080 <body>
15081
15082 <p>
15083 If you plan on giving other people access to your installation
15084 environment or you want to chat using <c>irssi</c> without root privileges (for
15085 security reasons), you need to create the necessary user accounts and change
15086 the root password.
15087 </p>
15088
15089 <p>
15090 To change the root password, use the <c>passwd</c> utility:
15091 </p>
15092
15093 <pre caption="Changing the root password">
15094 # <i>passwd</i>
15095 New password: <comment>(Enter your new password)</comment>
15096 Re-enter password: <comment>(Re-enter your password)</comment>
15097 </pre>
15098
15099 <p>
15100 To create a user account, we first enter their credentials, followed by
15101 its password. We use <c>useradd</c> and <c>passwd</c> for these tasks.
15102 In the next example, we create a user called &quot;john&quot;.
15103 </p>
15104
15105 <pre caption="Creating a user account">
15106 # <i>useradd -m -G users john</i>
15107 # <i>passwd john</i>
15108 New password: <comment>(Enter john's password)</comment>
15109 Re-enter password: <comment>(Re-enter john's password)</comment>
15110 </pre>
15111
15112 <p>
15113 You can change your user id from root to the newly created user by using
15114 <c>su</c>:
15115 </p>
15116
15117 <pre caption="Changing user id">
15118 # <i>su - john</i>
15119 </pre>
15120
15121 </body>
15122 </subsection>
15123 <subsection>
15124 <title>Optional: Viewing Documentation while Installing</title>
15125 <body>
15126
15127 <p>
15128 If you want to view the Gentoo Handbook (either from-CD or online) during the
15129 installation, make sure you have created a user account (see <uri
15130 link="#useraccounts">Optional: User Accounts</uri>). Then press <c>Alt-F2</c> to
15131 go to a new terminal and log in.
15132 </p>
15133
15134 <p>
15135 If you want to view the documentation on the CD you can immediately run
15136 <c>links</c> to read it:
15137 </p>
15138
15139 <pre caption="Viewing the on-CD documentation">
15140 # <i>links /mnt/cdrom/docs/handbook/html/index.html</i>
15141 </pre>
15142
15143 <p>
15144 However, it is preferred that you use the online Gentoo Handbook as it will be
15145 more recent than the one provided on the CD. You can view it using <c>links</c>
15146 as well, but only after having completed the <e>Configuring your Network</e>
15147 chapter (otherwise you won't be able to go on the Internet to view the
15148 document):
15149 </p>
15150
15151 <pre caption="Viewing the Online Documentation">
15152 # <i>links http://www.gentoo.org/doc/en/handbook/handbook-sparc.xml</i>
15153 </pre>
15154
15155 <p>
15156 You can go back to your original terminal by pressing <c>Alt-F1</c>.
15157 </p>
15158
15159 </body>
15160 </subsection>
15161 <subsection>
15162 <title>Optional: Starting the SSH Daemon</title>
15163 <body>
15164
15165 <p>
15166 If you want to allow other users to access your computer during the
15167 Gentoo installation (perhaps because those users are going to help you
15168 install Gentoo, or even do it for you), you need to create a user
15169 account for them and perhaps even provide them with your root password
15170 (<e>only</e> do that <e>if</e> you <b>fully trust</b> that user).
15171 </p>
15172
15173 <p>
15174 To fire up the SSH daemon, execute the following command:
15175 </p>
15176
15177 <pre caption="Starting the SSH daemon">
15178 # <i>/etc/init.d/sshd start</i>
15179 </pre>
15180
15181 <p>
15182 To be able to use sshd, you first need to set up your networking. Continue with
15183 the chapter on <uri link="?part=1&amp;chap=3">Configuring your Network</uri>.
15184 </p>
15185
15186 </body>
15187 </subsection>
15188 </section>
15189 </sections>
15190
15191
15192
15193 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-stage.xml
15194
15195 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-stage.xml?rev=1.1&view=markup
15196 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-stage.xml?rev=1.1&content-type=text/plain
15197
15198 Index: hb-install-stage.xml
15199 ===================================================================
15200 <?xml version='1.0' encoding='UTF-8'?>
15201 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
15202
15203 <!-- The content of this document is licensed under the CC-BY-SA license -->
15204 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
15205
15206 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-stage.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
15207
15208 <sections>
15209
15210 <version>7.0</version>
15211 <date>2006-08-30</date>
15212
15213 <section>
15214 <title>Installing a Stage Tarball</title>
15215 <subsection>
15216 <title>Setting the Date/Time Right</title>
15217 <body>
15218
15219 <p>
15220 Before you continue you need to check your date/time and update it. A
15221 misconfigured clock may lead to strange results in the future!
15222 </p>
15223
15224 <p>
15225 To verify the current date/time, run <c>date</c>:
15226 </p>
15227
15228 <pre caption="Verifying the date/time">
15229 # <i>date</i>
15230 Fri Mar 29 16:21:18 UTC 2005
15231 </pre>
15232
15233 <p>
15234 If the date/time displayed is wrong, update it using the <c>date
15235 MMDDhhmmYYYY</c> syntax (<b>M</b>onth, <b>D</b>ay, <b>h</b>our, <b>m</b>inute
15236 and <b>Y</b>ear). At this stage, you should use UTC time. You will be able to
15237 define your timezone later on. For instance, to set the date to March 29th,
15238 16:21 in the year 2005:
15239 </p>
15240
15241 <pre caption="Setting the UTC date/time">
15242 # <i>date 032916212005</i>
15243 </pre>
15244
15245 </body>
15246 </subsection>
15247 <subsection>
15248 <title>Locating the Stage3 File</title>
15249 <body>
15250
15251 <p>
15252 If you have configured networking because you need to download a stage3 file for
15253 your architecture, continue with <uri link="#download">Alternative: Using a
15254 Stage3 from the Internet</uri>. Otherwise read <uri link="#available">Default:
15255 Using a Stage3 from the Installation CD</uri>.
15256 </p>
15257
15258 </body>
15259 </subsection>
15260 </section>
15261 <section id="available">
15262 <title>Default: Using a Stage from the Installation CD</title>
15263 <subsection>
15264 <title>Extracting the Stage Tarball</title>
15265 <body>
15266
15267 <p>
15268 The stages on the CD reside in the <path>/mnt/cdrom/stages</path> directory. To
15269 see a listing of available stages, use <c>ls</c>:
15270 </p>
15271
15272 <pre caption="List all available stages">
15273 # <i>ls /mnt/cdrom/stages</i>
15274 </pre>
15275
15276 <p>
15277 If the system replies with an error, you may need to mount the CD-ROM first:
15278 </p>
15279
15280 <pre caption="Mounting the CD-ROM">
15281 # <i>ls /mnt/cdrom/stages</i>
15282 ls: /mnt/cdrom/stages: No such file or directory
15283 # <i>mount /dev/cdroms/cdrom0 /mnt/cdrom</i>
15284 # <i>ls /mnt/cdrom/stages</i>
15285 </pre>
15286
15287 <p>
15288 Now go into your Gentoo mountpoint (usually <path>/mnt/gentoo</path>):
15289 </p>
15290
15291 <pre caption="Changing directory to /mnt/gentoo">
15292 # <i>cd /mnt/gentoo</i>
15293 </pre>
15294
15295 <p>
15296 We will now extract the stage tarball of your choice. We will do this with the
15297 <c>tar</c> tool. Make sure you use the same options (<c>xvjpf</c>)! The
15298 <c>x</c> stands for <e>Extract</e>, the <c>v</c> for <e>Verbose</e> to see what
15299 happens during the extraction process (this one is optional), the <c>j</c> for
15300 <e>Decompress with bzip2</e>, the <c>p</c> for <e>Preserve permissions</e> and
15301 the <c>f</c> to denote that we want to extract a file, not standard input. In
15302 the next example, we extract the stage tarball
15303 <path>stage3-&lt;subarch&gt;-2006.1.tar.bz2</path>. Be sure to substitute
15304 the tarball filename with your stage.
15305 </p>
15306
15307 <pre caption="Extracting the stage tarball">
15308 # <i>tar xvjpf /mnt/cdrom/stages/stage3-&lt;subarch&gt;-2006.1.tar.bz2</i>
15309 </pre>
15310
15311 <p>
15312 Now that the stage is installed, continue with <uri
15313 link="#installing_portage">Installing Portage</uri>.
15314 </p>
15315
15316 </body>
15317 </subsection>
15318 </section>
15319 <section id="download">
15320 <title>Alternative: Using a Stage from the Internet</title>
15321 <subsection>
15322 <title>Downloading the Stage Tarball</title>
15323 <body>
15324
15325 <p>
15326 Go to the Gentoo mountpoint at which you mounted your filesystems
15327 (most likely <path>/mnt/gentoo</path>):
15328 </p>
15329
15330 <pre caption="Going to the Gentoo mountpoint">
15331 # <i>cd /mnt/gentoo</i>
15332 </pre>
15333
15334 <p>
15335 Depending on your installation medium, you have a couple of tools available to
15336 download a stage. If you have <c>links</c> available, then you can immediately
15337 surf to <uri link="/main/en/mirrors.xml">the Gentoo mirrorlist</uri> and
15338 choose a mirror close to you.
15339 </p>
15340
15341 <p>
15342 If you don't have <c>links</c> available you should have <c>lynx</c> at your
15343 disposal. If you need to go through a proxy, export the <c>http_proxy</c> and
15344 <c>ftp_proxy</c> variables:
15345 </p>
15346
15347 <pre caption="Setting proxy information for lynx">
15348 # <i>export http_proxy="http://proxy.server.com:port"</i>
15349 # <i>export ftp_proxy="http://proxy.server.com:port"</i>
15350 </pre>
15351
15352 <p>
15353 We will now assume that you have <c>links</c> at your disposal.
15354 </p>
15355
15356 <p>
15357 Pick the <path>releases/</path> directory, followed by your architecture (for
15358 instance <path>x86/</path>) and the Gentoo version (<path>2006.1/</path>) to
15359 finish up with the <path>stages/</path> directory. There you should see all
15360 available stage files for your architecture (they might be stored within
15361 subdirectories named to the individual subarchitectures). Select one and press
15362 <c>D</c> to download. When you're finished, press <c>Q</c> to quit the browser.
15363 </p>
15364
15365 <pre caption="Surfing to the mirror listing with links">
15366 # <i>links http://www.gentoo.org/main/en/mirrors.xml</i>
15367
15368 <comment>(If you need proxy support with links:)</comment>
15369 # <i>links -http-proxy proxy.server.com:8080 http://www.gentoo.org/main/en/mirrors.xml</i>
15370 </pre>
15371
15372 <p>
15373 Make sure you download a stage3 tarball - installations using a stage1 or stage2
15374 tarball are not supported anymore.
15375 </p>
15376
15377 <p>
15378 If you want to check the integrity of the downloaded stage tarball, use
15379 <c>md5sum</c> and compare the output with the MD5 checksum provided on the
15380 mirror. For instance, to check the validity of the x86 stage tarball:
15381 </p>
15382
15383 <pre caption="Example checking integrity of a stage tarball">
15384 # <i>md5sum -c stage3-x86-2006.1.tar.bz2.DIGESTS</i>
15385 stage3-x86-2006.1.tar.bz2: OK
15386 </pre>
15387
15388 </body>
15389 </subsection>
15390 <subsection>
15391 <title>Unpacking the Stage Tarball</title>
15392 <body>
15393
15394 <p>
15395 Now unpack your downloaded stage onto your system. We use <c>tar</c> to proceed
15396 as it is the easiest method:
15397 </p>
15398
15399 <pre caption="Unpacking the stage">
15400 # <i>tar xvjpf stage3-*.tar.bz2</i>
15401 </pre>
15402
15403 <p>
15404 Make sure that you use the same options (<c>xvjpf</c>). The <c>x</c> stands
15405 for <e>Extract</e>, the <c>v</c> for <e>Verbose</e> to see what happens during
15406 the extraction process (this one is optional), the <c>j</c> for <e>Decompress
15407 with bzip2</e>, the <c>p</c> for <e>Preserve permissions</e> and the <c>f</c>
15408 to denote that we want to extract a file, not standard input.
15409 </p>
15410
15411 <p>
15412 Now that the stage is installed, continue with <uri
15413 link="#installing_portage">Installing Portage</uri>.
15414 </p>
15415
15416 </body>
15417 </subsection>
15418 </section>
15419 <section id="installing_portage">
15420 <title>Installing Portage</title>
15421 <subsection>
15422 <title>Unpacking a Portage Snapshot</title>
15423 <body>
15424
15425 <p>
15426 You now have to install a Portage snapshot, a collection of files that inform
15427 Portage what software titles you can install, which profiles are available, etc.
15428 </p>
15429
15430 </body>
15431 </subsection>
15432 <subsection id="installing_from_InstallCD">
15433 <title>Unpack the Snapshot from the Installation CD</title>
15434 <body>
15435
15436 <p>
15437 To install the snapshot, take a look inside <path>/mnt/cdrom/snapshots/</path>
15438 to see what snapshot is available:
15439 </p>
15440
15441 <pre caption="Checking the /mnt/cdrom/snapshots content">
15442 # <i>ls /mnt/cdrom/snapshots</i>
15443 </pre>
15444
15445 <p>
15446 Now extract the snapshot using the following construct. Again, make sure you
15447 use the correct options with <c>tar</c>. Also, the <c>-C</c> is with a capital
15448 <c>C</c>, not <c>c</c>. In the next example we use
15449 <path>portage-&lt;date&gt;.tar.bz2</path> as the snapshot filename. Be sure to
15450 substitute with the name of the snapshot that is on your Installation CD.
15451 </p>
15452
15453 <pre caption="Extracting a Portage snapshot">
15454 # <i>tar xvjf /mnt/cdrom/snapshots/portage-&lt;date&gt;.tar.bz2 -C /mnt/gentoo/usr</i>
15455 </pre>
15456
15457 </body>
15458 </subsection>
15459 <subsection id="copysources">
15460 <title>Copy Source Code Archives</title>
15461 <body>
15462
15463 <p>
15464 You also need to copy over all source code from the Universal Installation CD.
15465 </p>
15466
15467 <pre caption="Copy over source code">
15468 # <i>mkdir /mnt/gentoo/usr/portage/distfiles</i>
15469 # <i>cp /mnt/cdrom/distfiles/* /mnt/gentoo/usr/portage/distfiles/</i>
15470 </pre>
15471
15472 </body>
15473 </subsection>
15474 </section>
15475 <section id="compile_options">
15476 <title>Configuring the Compile Options</title>
15477 <subsection>
15478 <title>Introduction</title>
15479 <body>
15480
15481 <p>
15482 To optimize Gentoo, you can set a couple of variables which impact Portage
15483 behaviour. All those variables can be set as environment variables (using
15484 <c>export</c>) but that isn't permanent. To keep your settings, Portage provides
15485 you with <path>/etc/make.conf</path>, a configuration file for Portage. It is
15486 this file we will edit now.
15487 </p>
15488
15489 <note>
15490 A commented listing of all possible variables can be found in
15491 <path>/mnt/gentoo/etc/make.conf.example</path>. For a successful Gentoo
15492 installation you'll only need to set the variables which are mentioned beneath.
15493 </note>
15494
15495 <p>
15496 Fire up your favorite editor (in this guide we use <c>nano</c>) so we can alter
15497 the optimization variables we will discuss hereafter.
15498 </p>
15499
15500 <pre caption="Opening /etc/make.conf">
15501 # <i>nano -w /mnt/gentoo/etc/make.conf</i>
15502 </pre>
15503
15504 <p>
15505 As you probably noticed, the <path>make.conf.example</path> file is
15506 structured in a generic way: commented lines start with "#", other lines define
15507 variables using the <c>VARIABLE="content"</c> syntax. The <path>make.conf</path>
15508 file uses the same syntax. Several of those variables are discussed next.
15509 </p>
15510
15511 <warn>
15512 Do not make any modifications to the USE variable if you are performing a stage3
15513 with GRP installation. You can alter the USE variable after having installed the
15514 packages you want. Gremlins are known to attack your system if you ignore this
15515 warning!
15516 </warn>
15517
15518 </body>
15519 </subsection>
15520 <subsection>
15521 <title>CHOST</title>
15522 <body>
15523
15524 <p>
15525 The <c>CHOST</c> variable declares the target build host for your system. This
15526 variable should already be set to the correct value. <brite>Do not edit
15527 it</brite> as that might break your system. If the <c>CHOST</c> variable does
15528 not look correct to you, you might be using the wrong stage3 tarball.
15529 </p>
15530
15531 </body>
15532 </subsection>
15533 <subsection>
15534 <title>CFLAGS and CXXFLAGS</title>
15535 <body>
15536
15537 <p>
15538 The <c>CFLAGS</c> and <c>CXXFLAGS</c> variables define the optimization flags
15539 for the <c>gcc</c> C and C++ compiler respectively. Although we define those
15540 generally here, you will only have maximum performance if you optimize these
15541 flags for each program separately. The reason for this is because every program
15542 is different.
15543 </p>
15544
15545 <p>
15546 In <path>make.conf</path> you should define the optimization flags you think
15547 will make your system the most responsive <e>generally</e>. Don't place
15548 experimental settings in this variable; too much optimization can make
15549 programs behave bad (crash, or even worse, malfunction).
15550 </p>
15551
15552 <p>
15553 We cannot explain all possible optimization options here, but if you want to
15554 investigate them all, read the <uri link="http://gcc.gnu.org/onlinedocs/">GNU
15555 Online Manual(s)</uri> or the <c>gcc</c> info page (<c>info gcc</c> -- only
15556 works on a working Linux system). For common optimizations and architecture
15557 specific settings, please read <path>/etc/make.conf.example</path>. This
15558 file also contains lots of examples and information; don't forget to read it
15559 too.
15560 </p>
15561
15562 <p>
15563 As an example, on the x86 architecture, you will want to set the -march= flag
15564 as shown below (for an Athlon XP machine):
15565 </p>
15566
15567 <pre caption="The GCC march setting">
15568 <comment># AMD64 users who want to use a native 64 bit system should use -march=k8</comment>
15569 <comment># EM64T users should use -march=nocona</comment>
15570 -march=athlon-xp
15571 </pre>
15572
15573 <p>
15574 A second one is the <c>-O</c> flag (that is a capital O, not a zero),
15575 which specifies the <c>gcc</c> optimization
15576 class flag. Possible classes are <c>s</c> (for size-optimized),
15577 <c>0</c> (zero - for no optimizations), <c>1</c>, <c>2</c> or <c>3</c> for more
15578 speed-optimization flags (every class has the same flags as the one before, plus
15579 some extras). For instance, for a class-2 optimization:
15580 </p>
15581
15582 <pre caption="The GCC O setting">
15583 -O2
15584 </pre>
15585
15586 <p>
15587 Another popular optimization flag is <c>-pipe</c> (use pipes rather than
15588 temporary files for communication between the various stages of compilation).
15589 </p>
15590
15591 <p>
15592 Mind you that using <c>-fomit-frame-pointer</c> (which doesn't keep the frame
15593 pointer in a register for functions that don't need one) might have serious
15594 repercussions on the debugging of applications!
15595 </p>
15596
15597 <p>
15598 When you define the <c>CFLAGS</c> and <c>CXXFLAGS</c>, you should combine
15599 several optimization flags, like in the following example:
15600 </p>
15601
15602 <pre caption="Defining the CFLAGS and CXXFLAGS variable">
15603 CFLAGS="-march=athlon-xp -pipe -O2" <comment># AMD64 users use march=k8</comment>
15604 <comment># EM64T users use march=nocona</comment>
15605 CXXFLAGS="${CFLAGS}" <comment># Use the same settings for both variables</comment>
15606 </pre>
15607
15608 </body>
15609 </subsection>
15610 <subsection>
15611 <title>MAKEOPTS</title>
15612 <body>
15613
15614 <p>
15615 With <c>MAKEOPTS</c> you define how many parallel compilations should occur when
15616 you install a package. A good choice is the number of CPUs in your system plus
15617 one, but this guideline isn't always perfect.
15618 </p>
15619
15620 <pre caption="MAKEOPTS for a regular, 1-CPU system">
15621 MAKEOPTS="-j2"
15622 </pre>
15623
15624 </body>
15625 </subsection>
15626 <subsection>
15627 <title>Ready, Set, Go!</title>
15628 <body>
15629
15630 <p>
15631 Update your <path>/mnt/gentoo/etc/make.conf</path> to your own preference and
15632 save (<c>nano</c> users would hit <c>Ctrl-X</c>). You are now ready to continue
15633 with <uri link="?part=1&amp;chap=6">Chrooting into the Gentoo Base System</uri>.
15634 </p>
15635
15636 </body>
15637 </subsection>
15638 </section>
15639 </sections>
15640
15641
15642
15643 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-system.xml
15644
15645 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-system.xml?rev=1.1&view=markup
15646 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-system.xml?rev=1.1&content-type=text/plain
15647
15648 Index: hb-install-system.xml
15649 ===================================================================
15650 <?xml version='1.0' encoding='UTF-8'?>
15651 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
15652
15653 <!-- The content of this document is licensed under the CC-BY-SA license -->
15654 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
15655
15656 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-system.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
15657
15658 <sections>
15659
15660 <version>7.0</version>
15661 <date>2006-08-30</date>
15662
15663 <section>
15664 <title>Chrooting</title>
15665 <subsection>
15666 <title>Mounting the /proc and /dev Filesystems</title>
15667 <body>
15668
15669 <p>
15670 Mount the <path>/proc</path> filesystem on <path>/mnt/gentoo/proc</path> to
15671 allow the installation to use the kernel-provided information within the
15672 chrooted environment, and then mount-bind the <path>/dev</path> filesystem.
15673 </p>
15674
15675 <pre caption="Mounting /proc and /dev">
15676 # <i>mount -t proc none /mnt/gentoo/proc</i>
15677 # <i>mount -o bind /dev /mnt/gentoo/dev</i>
15678 </pre>
15679
15680 </body>
15681 </subsection>
15682 <subsection>
15683 <title>Optional: Copy over DNS Information</title>
15684 <body>
15685
15686 <p>
15687 If you configured your network to fetch the appropriate stage file later on from
15688 the Internet, you need to copy over the DNS information stored in
15689 <path>/etc/resolv.conf</path> to <path>/mnt/gentoo/etc/resolv.conf</path>. This
15690 file contains the nameservers your system will use to resolve names to IP
15691 addresses.
15692 </p>
15693
15694 <pre caption="Copy over DNS Information">
15695 # <i>cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf</i>
15696 </pre>
15697
15698 </body>
15699 </subsection>
15700 <subsection>
15701 <title>Entering the new Environment</title>
15702 <body>
15703
15704 <p>
15705 Now that all partitions are initialized and the base environment
15706 installed, it is time to enter our new installation environment by
15707 <e>chrooting</e> into it. This means that we change from the current
15708 installation environment to your installation system (namely the
15709 initialized partitions).
15710 </p>
15711
15712 <p>
15713 This chrooting is done in three steps. First we will change the root
15714 from <path>/</path> (on the installation medium) to <path>/mnt/gentoo</path>
15715 (on your partitions) using <c>chroot</c>. Then we will create a new environment
15716 using <c>env-update</c>, which essentially creates environment variables.
15717 Finally, we load those variables into memory using <c>source</c>.
15718 </p>
15719
15720 <pre caption="Chrooting into the new environment">
15721 # <i>chroot /mnt/gentoo /bin/bash</i>
15722 # <i>env-update</i>
15723 >>> Regenerating /etc/ld.so.cache...
15724 # <i>source /etc/profile</i>
15725 # <i>export PS1="(chroot) $PS1"</i>
15726 </pre>
15727
15728 <p>
15729 Congratulations! You are now inside your own Gentoo Linux environment.
15730 Of course it is far from finished, which is why the installation still
15731 has some sections left :-)
15732 </p>
15733
15734 </body>
15735 </subsection>
15736 <subsection>
15737 <title>Creating the Portage cache</title>
15738 <body>
15739
15740 <p>
15741 You have already installed the Portage tree, but you should now build the
15742 Portage cache to speed up future emerges. <c>emerge --metadata</c> does this
15743 for you.
15744 </p>
15745
15746 <pre caption="Creating the Portage cache">
15747 # <i>emerge --metadata</i>
15748 </pre>
15749
15750 </body>
15751 </subsection>
15752 </section>
15753
15754 <section id="configure_USE">
15755 <title>Configuring the USE Variable</title>
15756 <subsection>
15757 <title>What is the USE Variable?</title>
15758 <body>
15759
15760 <p>
15761 <c>USE</c> is one of the most powerful variables Gentoo provides to its users.
15762 Several programs can be compiled with or without optional support for certain
15763 items. For instance, some programs can be compiled with gtk-support, or with
15764 qt-support. Others can be compiled with or without SSL support. Some programs
15765 can even be compiled with framebuffer support (svgalib) instead of X11 support
15766 (X-server).
15767 </p>
15768
15769 <p>
15770 Most distributions compile their packages with support for as much as possible,
15771 increasing the size of the programs and startup time, not to mention an enormous
15772 amount of dependencies. With Gentoo you can define what options a package
15773 should be compiled with. This is where <c>USE</c> comes into play.
15774 </p>
15775
15776 <p>
15777 In the <c>USE</c> variable you define keywords which are mapped onto
15778 compile-options. For instance, <e>ssl</e> will compile ssl-support in the
15779 programs that support it. <e>-X</e> will remove X-server support (note the minus
15780 sign in front). <e>gnome gtk -kde -qt</e> will compile your programs with gnome
15781 (and gtk) support, and not with kde (and qt) support, making your system fully
15782 tweaked for GNOME.
15783 </p>
15784
15785 </body>
15786 </subsection>
15787 <subsection>
15788 <title>Modifying the USE Variable</title>
15789 <body>
15790
15791 <warn>
15792 Do not make any modifications to the USE variable yet if you plan to use our
15793 prebuilt packages (GRP set). You can alter the USE variable after having
15794 installed the packages you want. Gremlins are known to attack your system
15795 if you ignore this warning!
15796 </warn>
15797
15798 <p>
15799 The default <c>USE</c> settings are placed in
15800 <path>/etc/make.profile/make.defaults</path>. What you place in
15801 <path>/etc/make.conf</path> is calculated against these defaults settings. If
15802 you add something to the <c>USE</c> setting, it is added to the default list. If
15803 you remove something from the <c>USE</c> setting (by placing a minus sign in
15804 front of it) it is removed from the default list (if it was in the default list
15805 at all). <e>Never</e> alter anything inside the <path>/etc/make.profile</path>
15806 directory; it gets overwritten when you update Portage!
15807 </p>
15808
15809 <p>
15810 A full description on <c>USE</c> can be found in the second part of the Gentoo
15811 Handbook, <uri link="?part=2&amp;chap=2">USE flags</uri>. A full description on
15812 the available USE flags can be found on your system in
15813 <path>/usr/portage/profiles/use.desc</path>.
15814 </p>
15815
15816 <pre caption="Viewing available USE flags">
15817 # <i>less /usr/portage/profiles/use.desc</i>
15818 <comment>(You can scroll using your arrow keys, exit by pressing 'q')</comment>
15819 </pre>
15820
15821 <p>
15822 As an example we show a <c>USE</c> setting for a KDE-based system with DVD, ALSA
15823 and CD Recording support:
15824 </p>
15825
15826 <pre caption="Opening /etc/make.conf">
15827 # <i>nano -w /etc/make.conf</i>
15828 </pre>
15829
15830 <pre caption="USE setting">
15831 USE="-gtk -gnome qt kde dvd alsa cdr"
15832 </pre>
15833
15834 </body>
15835 </subsection>
15836 </section>
15837 </sections>
15838
15839
15840
15841 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-install-tools.xml
15842
15843 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-tools.xml?rev=1.1&view=markup
15844 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-tools.xml?rev=1.1&content-type=text/plain
15845
15846 Index: hb-install-tools.xml
15847 ===================================================================
15848 <?xml version='1.0' encoding='UTF-8'?>
15849 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
15850
15851 <!-- The content of this document is licensed under the CC-BY-SA license -->
15852 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
15853
15854 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-install-tools.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
15855
15856 <sections>
15857
15858 <version>7.0</version>
15859 <date>2006-08-30</date>
15860
15861 <section>
15862 <title>System Logger</title>
15863 <body>
15864
15865 <p>
15866 Some tools are missing from the <e>stage3</e> archive because several packages
15867 provide the same functionality. It is now up to you to choose which ones you
15868 want to install.
15869 </p>
15870
15871 <p>
15872 The first tool you need to decide on has to provide logging facilities for your
15873 system. Unix and Linux have an excellent history of logging capabilities -- if
15874 you want you can log everything that happens on your system in logfiles. This
15875 happens through the <e>system logger</e>.
15876 </p>
15877
15878 <p>
15879 Gentoo offers several system loggers to choose from. There are <c>sysklogd</c>,
15880 which is the traditional set of system logging daemons, <c>syslog-ng</c>, an
15881 advanced system logger, and <c>metalog</c> which is a highly-configurable
15882 system logger. Others might be available through Portage as well - our number of
15883 available packages increases on a daily basis.
15884 </p>
15885
15886 <p>
15887 If you plan on using <c>sysklogd</c> or <c>syslog-ng</c> you might want to
15888 install <c>logrotate</c> afterwards as those system loggers don't provide any
15889 rotation mechanism for the log files.
15890 </p>
15891
15892 <!--
15893 Even though syslog-ng does not rotate the logs, it does conform to the syslog
15894 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
15895 above others (metalog for instance doesn't work nicely with sparc all the
15896 time).
15897 -->
15898
15899 <p>
15900 To install the system logger of your choice, <c>emerge</c> it and have it added
15901 to the default runlevel using <c>rc-update</c>. The following example installs
15902 <c>syslog-ng</c>. Of course substitute with your system logger:
15903 </p>
15904
15905 <pre caption="Installing a system logger">
15906 # <i>emerge syslog-ng</i>
15907 # <i>rc-update add syslog-ng default</i>
15908 </pre>
15909
15910 </body>
15911 </section>
15912 <section>
15913 <title>Optional: Cron Daemon</title>
15914 <body>
15915
15916 <p>
15917 Next is the cron daemon. Although it is optional and not required for your
15918 system, it is wise to install one. But what is a cron daemon? A cron daemon
15919 executes scheduled commands. It is very handy if you need to execute some
15920 command regularly (for instance daily, weekly or monthly).
15921 </p>
15922
15923 <p>
15924 We only provide <c>vixie-cron</c> for networkless installations. If you want
15925 another cron daemon you can wait and install it later on.
15926 </p>
15927
15928 <pre caption="Installing a cron daemon">
15929 # <i>emerge vixie-cron</i>
15930 # <i>rc-update add vixie-cron default</i>
15931 </pre>
15932
15933 </body>
15934 </section>
15935 <section>
15936 <title>Optional: File Indexing</title>
15937 <body>
15938
15939 <p>
15940 If you want to index your system's files so you are able to quickly
15941 locate them using the <c>locate</c> tool, you need to install
15942 <c>sys-apps/slocate</c>.
15943 </p>
15944
15945 <pre caption="Installing slocate">
15946 # <i>emerge slocate</i>
15947 </pre>
15948
15949 </body>
15950 </section>
15951 <section>
15952 <title>File System Tools</title>
15953 <body>
15954
15955 <p>
15956 Depending on what file systems you are using, you need to install the necessary
15957 file system utilities (for checking the filesystem integrity, creating
15958 additional file systems etc.).
15959 </p>
15960
15961 <p>
15962 The following table lists the tools you need to install if you use a certain
15963 file system. Not all filesystems are available for each and every architecture
15964 though.
15965 </p>
15966
15967 <table>
15968 <tr>
15969 <th>File System</th>
15970 <th>Tool</th>
15971 <th>Install Command</th>
15972 </tr>
15973 <tr>
15974 <ti>XFS</ti>
15975 <ti>xfsprogs</ti>
15976 <ti><c>emerge xfsprogs</c></ti>
15977 </tr>
15978 <tr>
15979 <ti>ReiserFS</ti>
15980 <ti>reiserfsprogs</ti>
15981 <ti><c>emerge reiserfsprogs</c></ti>
15982 </tr>
15983 <tr>
15984 <ti>JFS</ti>
15985 <ti>jfsutils</ti>
15986 <ti><c>emerge jfsutils</c></ti>
15987 </tr>
15988 </table>
15989
15990 <p>
15991 If you are an EVMS user, you need to install <c>emvs</c>:
15992 </p>
15993
15994 <pre caption="Installing EVMS utilities">
15995 # <i>USE="-gtk" emerge evms</i>
15996 </pre>
15997
15998 <p>
15999 The <c>USE="-gtk"</c> will prevent the installation of dependencies. If you
16000 want to enable the <c>evms</c> graphical tools, you can recompile <c>evms</c>
16001 later on.
16002 </p>
16003
16004 <p>
16005 If you don't require any additional networking-related tools (such as rp-pppoe
16006 or a dhcp client) continue with <uri link="?part=1&amp;chap=10">Configuring the
16007 Bootloader</uri>.
16008 </p>
16009
16010 </body>
16011 </section>
16012 <section>
16013 <title>Networking Tools</title>
16014 <subsection>
16015 <title>Optional: Installing a DHCP Client</title>
16016 <body>
16017
16018 <p>
16019 If you require Gentoo to automatically obtain an IP address for your network
16020 interface(s), you need to install <c>dhcpcd</c> (or any other DHCP Client)
16021 on your system. If you don't do this now, you might not be able to connect
16022 to the internet after the installation!
16023 </p>
16024
16025 <pre caption="Installing dhcpcd">
16026 # <i>emerge dhcpcd</i>
16027 </pre>
16028
16029 </body>
16030 </subsection>
16031 <subsection>
16032 <title>Optional: Installing a PPPoE Client</title>
16033 <body>
16034
16035 <p>
16036 If you need <c>rp-pppoe</c> to connect to the net, you need to install it.
16037 </p>
16038
16039 <pre caption="Installing rp-pppoe">
16040 # <i>USE="-X" emerge rp-pppoe</i>
16041 </pre>
16042
16043 <p>
16044 The <c>USE="-X"</c> will prohibit xorg-x11 to be installed as a dependency
16045 (<c>rp-pppoe</c> has graphical tools; if you want those enabled, you can
16046 recompile <c>rp-pppoe</c> later on or have xorg-x11 installed now -- which takes a
16047 long time to compile).
16048 </p>
16049
16050 </body>
16051 </subsection>
16052 <subsection>
16053 <title>Optional: RAID utilities for IBM hardware</title>
16054 <body>
16055
16056 <p>
16057 If you are using SCSI RAID on a POWER5-based system, you should consider
16058 installing the <c>iprutils</c> which will allow you to work with the RAID disk
16059 array, get status on the disks in the arrays, and update microcode among other
16060 functions.
16061 </p>
16062
16063 <pre caption="Installing iprutils">
16064 # <i>emerge iprutils</i>
16065 </pre>
16066
16067 <p>
16068 Now continue with <uri link="?part=1&amp;chap=10">Configuring the
16069 Bootloader</uri>.
16070 </p>
16071
16072 </body>
16073 </subsection>
16074 </section>
16075 </sections>
16076
16077
16078
16079 1.1 xml/htdocs/doc/en/handbook/2006.1/hb-installer-about.xml
16080
16081 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-installer-about.xml?rev=1.1&view=markup
16082 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-installer-about.xml?rev=1.1&content-type=text/plain
16083
16084 Index: hb-installer-about.xml
16085 ===================================================================
16086 <?xml version='1.0' encoding='UTF-8'?>
16087 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
16088
16089 <!-- The content of this document is licensed under the CC-BY-SA license -->
16090 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
16091
16092 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/hb-installer-about.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
16093
16094 <sections>
16095
16096 <version>2.0</version>
16097 <date>2006-08-30</date>
16098
16099 <section>
16100 <title>Introduction</title>
16101 <subsection>
16102 <title>Welcome!</title>
16103 <body>
16104
16105 <p>
16106 First of all, <e>welcome</e> to Gentoo. You are about to enter the world
16107 of customization and performance. When installing Gentoo, this is made clear to
16108 you several times -- you can choose how much you want to compile yourself, how
16109 to install Gentoo, what system logger you want, etc.
16110 </p>
16111
16112 <p>
16113 Gentoo is a fast, modern meta-distribution with a clean and flexible
16114 design. Gentoo is built around free software and doesn't hide from its
16115 users what is beneath the hood. Portage, the package maintenance system
16116 which Gentoo uses, is written in Python, meaning you can easily view and
16117 modify the source code. Gentoo's packaging system uses source code
16118 (although support for precompiled packages is included too) and
16119 configuring Gentoo happens through regular text files. In other words,
16120 openness everywhere.
16121 </p>
16122
16123 <p>
16124 It is very important that you understand that <e>empowerment</e> is what makes
16125 Gentoo run. We try not to force anything on our users and try our best to
16126 empower you to make the choices you wish. If you feel a change should be made,
16127 please file a <uri link="http://bugs.gentoo.org">bug report</uri> about it.
16128 </p>
16129
16130 </body>
16131 </subsection>
16132 <subsection>
16133 <title>How do I go about Installing Gentoo?</title>
16134 <body>
16135
16136 <p>
16137 Gentoo Linux comes with two versions of an easy to use Installer. A GTK+ based
16138 installer (for use with an X based environment) and a Dialog based installer for
16139 use on the console. Chapter 3 of the handbook deals with the GTK+ based
16140 installer while Chapter 4 is for the Dialog based one.
16141 </p>
16142
16143 <p>
16144 Sometimes, you are given a certain choice in the handbook. We try our best to
16145 explain what the pros and cons are. We will continue then with a default choice,
16146 identified by &quot;Default: &quot; in the title. The other possibilities are
16147 marked by &quot;Alternative: &quot;. Do <e>not</e> think that the default is
16148 what we recommend. It is however what we believe most users will use.
16149 </p>
16150
16151 <p>
16152 Sometimes you can pursue an optional step. Such steps are marked as
16153 &quot;Optional: &quot; and are therefore not needed to install Gentoo.
16154 However, some optional steps are dependant on a previous decision you
16155 made. We will inform you when this happens, both when you make the
16156 decision, and right before the optional step is described.
16157 </p>
16158
16159 </body>
16160 </subsection>
16161 <subsection>
16162 <title>What are my Options?</title>
16163 <body>
16164
16165 <p>
16166 You can install Gentoo in many different ways. You can download and install from
16167 one of our Installation CDs, from an existing distribution, from a bootable CD
16168 (such as Knoppix), from a netbooted environment, from a rescue floppy, etc.
16169 </p>
16170
16171 <p>
16172 This document covers the installation using a Gentoo Linux Installation CD, a
16173 bootable CD that contains everything you need to get Gentoo Linux up and
16174 running. There are two types of Installation CDs, the InstallCD and the
16175 Installer LiveCD. The InstallCD is a minimal environment which contains only
16176 those packages necessary for installing Gentoo Linux. The LiveCD is a complete
16177 Gentoo Linux environment and can be used for multiple tasks, one of which is
16178 installing Gentoo Linux. The LiveCD is not available on all architectures at
16179 this time. If your architecture does not have a LiveCD, then this document will
16180 refer to the Universal InstallCD for you.
16181 </p>
16182
16183 <p>
16184 This installation approach however does not immediately use the latest version
16185 of the available packages; if you want this you should check out the
16186 Installation Instructions inside our <uri
16187 link="/doc/en/handbook/index.xml">Gentoo Linux Handbooks</uri>.
16188 </p>
16189
16190 <p>
16191 For help on the other installation approaches,
16192 please read our <uri link="/doc/en/altinstall.xml">Alternative Installation
16193 Guide</uri>. We also provide a <uri
16194 link="/doc/en/gentoo-x86-tipsntricks.xml">Gentoo Installation Tips &amp;
16195 Tricks</uri> document that might be useful to read as well. If you feel that
16196 the current installation instructions are too elaborate, feel free to use our
16197 Quick Installation Guide available from our <uri
16198 link="/doc/en/index.xml">Documentation Resources</uri> if your architecture
16199 has such a document available.
16200 </p>
16201
16202 </body>
16203 </subsection>
16204 <subsection>
16205 <title>Troubles?</title>
16206 <body>
16207
16208 <p>
16209 If you find a problem in the installation (or in the installation
16210 documentation), please check the errata from our <uri
16211 link="/proj/en/releng/">Gentoo Release Engineering Project</uri>,
16212 visit our <uri link="http://bugs.gentoo.org">bug tracking
16213 system</uri> and check if the bug is known. If not, please create a bug report
16214 for it so we can take care of it. Do not be afraid of the developers who are
16215 assigned to (your) bugs -- they generally don't eat people.
16216 </p>
16217
16218 <p>
16219 Note though that, although the document you are now reading is
16220 architecture-specific, it will contain references to other architectures as
16221 well. This is due to the fact that large parts of the Gentoo Handbook use source
16222 code that is common for all architectures (to avoid duplication of efforts and
16223 starvation of development resources). We will try to keep this to a minimum
16224 to avoid confusion.
16225 </p>
16226
16227 <p>
16228 If you are uncertain if the problem is a user-problem (some error you
16229 made despite having read the documentation carefully) or a
16230 software-problem (some error we made despite having tested the
16231 installation/documentation carefully) you are free to join #gentoo on
16232 irc.freenode.net. Of course, you are welcome otherwise too :)
16233 </p>
16234
16235 <p>
16236 If you have a question regarding Gentoo, check out our <uri
16237 link="/doc/en/faq.xml">Frequently Asked
16238 Questions</uri>, available from the <uri
16239 link="/doc/en/">Gentoo Documentation</uri>. You can
16240 also view the <uri
16241 link="http://forums.gentoo.org/viewforum.php?f=40">FAQs</uri> on our
16242 <uri link="http://forums.gentoo.org">forums</uri>. If you can't find the answer
16243 there ask on #gentoo, our IRC-channel on irc.freenode.net. Yes, several of
16244 us are freaks who sit on IRC :-)
16245 </p>
16246
16247 </body>
16248 </subsection>
16249 </section>
16250 <section>
16251 <title>Fast Installation using the Gentoo Reference Platform</title>
16252 <subsection>
16253 <title>What is the Gentoo Reference Platform?</title>
16254 <body>
16255
16256 <p>
16257 The Gentoo Reference Platform, from now on abbreviated to GRP, is a snapshot of
16258 prebuilt packages users (that means you!) can install during the installation
16259 of Gentoo to speed up the installation process. The GRP consists of all
16260 packages required to have a fully functional Gentoo installation. They are not
16261 just the ones you need to have a base installation up to speed in no time, but
16262 all lengthier builds (such as xorg-x11, GNOME, OpenOffice, Mozilla, ...)
16263 are available as GRP packages too.
16264 </p>
16265
16266 <p>
16267 However, these prebuilt packages aren't maintained during the lifetime of the
16268 Gentoo distribution. They are snapshots released at every Gentoo release and
16269 make it possible to have a functional environment in a short amount of time. You
16270 can then upgrade your system in the background while working in your Gentoo
16271 environment.
16272 </p>
16273
16274 </body>
16275 </subsection>
16276 <subsection>
16277 <title>How Portage Handles GRP Packages</title>
16278 <body>
16279
16280 <p>
16281 Your Portage tree - the collection of <e>ebuilds</e> (files that contain all
16282 information about a package, such as its description, homepage, sourcecode URLs,
16283 compilation instructions, dependencies, etc.) - must be synchronised with the
16284 GRP set: the versions of the available ebuilds and their accompanying GRP
16285 packages must match.
16286 </p>
16287
16288 <p>
16289 For this reason you can only benefit from the GRP packages Gentoo provides while
16290 performing the current installation approach. GRP is not available for those
16291 interested in performing an installation using the latest versions of all
16292 available packages.
16293 </p>
16294
16295 </body>
16296 </subsection>
16297 <subsection>
16298 <title>Is GRP Available?</title>
16299 <body>
16300
16301 <p>
16302 Not all architectures provide GRP packages. That doesn't mean GRP isn't
16303 supported on the other architectures, but it means that we don't have the
16304 resources to build and test the GRP packages.
16305 </p>
16306
16307 <p>
16308 At present we provide GRP packages for the following architectures:
16309 </p>
16310
16311 <ul>
16312 <li>
16313 The <b>amd64</b> architecture (amd64)
16314 </li>
16315 <li>
16316 The <b>ppc</b> architecture (ppc32, ppc64)
16317 </li>
16318 <li>
16319 The <b>sparc</b> architecture (sparc64)
16320 </li>
16321 <li>
16322 The <b>x86</b> architecture (athlon, athlon-xp, athlon-mp, pentium-pro,
16323 pentium2, pentium3, pentium4 and pentium-m) Note: The packages are for i686
16324 and are available on the Installer LiveCD.
16325 </li>
16326 </ul>
16327
16328 <p>
16329 If your architecture (or subarchitecture) isn't on this list, you are not
16330 able to opt for a GRP installation.
16331 </p>
16332
16333 <p>
16334 Now that this introduction is over, let's continue with <uri
16335 link="?part=1&amp;chap=2">Booting the Universal InstallCD/Installer
16336 LiveCD</uri>.
16337 </p>
16338
16339 </body>
16340 </subsection>
16341 </section>
16342 </sections>
16343
16344
16345
16346 1.1 xml/htdocs/doc/en/handbook/2006.1/index.xml
16347
16348 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/index.xml?rev=1.1&view=markup
16349 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2006.1/index.xml?rev=1.1&content-type=text/plain
16350
16351 Index: index.xml
16352 ===================================================================
16353 <?xml version='1.0' encoding="UTF-8"?>
16354 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
16355
16356 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2006.1/index.xml,v 1.1 2006/08/30 20:17:31 nightmorph Exp $ -->
16357
16358 <guide link="/doc/en/handbook/2006.1/index.xml">
16359 <title>Gentoo 2006.1 Handbook</title>
16360
16361 <author title="Author">
16362 <mail link="swift@g.o">Sven Vermeulen</mail>
16363 </author>
16364
16365 <abstract>
16366 The Gentoo 2006.1 Handbook is an effort to centralize documentation into a
16367 coherent handbook. It contains the networkless installation instructions for the
16368 2006.1 release and parts on working with Gentoo and Portage.
16369 </abstract>
16370
16371 <license/>
16372
16373 <version>7.0</version>
16374 <date>2006-08-30</date>
16375
16376 <chapter>
16377 <title>The Gentoo Linux 2006.1 Handbooks</title>
16378 <!-- Uncomment when needed, probably for the 2006.1 versions -->
16379 <!--
16380 <section>
16381 <title>Available languages</title>
16382 <body>
16383
16384 <p>
16385 The Gentoo Linux 2006.1 Handbook is available in the following languages:
16386 </p>
16387
16388 <p>
16389 <uri link="/doc/da/handbook">Danish</uri> |
16390 <uri link="/doc/de/handbook">German</uri> |
16391 <uri link="/doc/en/handbook">English</uri> |
16392 <uri link="/doc/fr/handbook">French</uri> |
16393 <uri link="/doc/id/handbook">Indonesian</uri> |
16394 <uri link="/doc/it/handbook">Italian</uri> |
16395 <uri link="/doc/ja/handbook">Japanese</uri> |
16396 <uri link="/doc/pl/handbook">Polish</uri> |
16397 <uri link="/doc/ro/handbook">Romanian</uri> |
16398 <uri link="/doc/es/handbook">Spanish</uri> |
16399 <uri link="/doc/zh_tw/handbook">Traditional Chinese</uri>
16400 </p>
16401
16402 </body>
16403 </section>
16404 -->
16405 <section>
16406 <title>Introduction</title>
16407 <body>
16408
16409 <p>
16410 Welcome to the Gentoo Linux 2006.1 Handbooks. These handbooks are released
16411 together with the Gentoo Linux releases and contain the necessary installation
16412 instructions to install Gentoo Linux 2006.1 <brite>without an internet
16413 connection.</brite>
16414 </p>
16415
16416 <p>
16417 However, if you want to install Gentoo Linux using the latest versions of all
16418 available packages, please use the Installation Instructions in the <uri
16419 link="/doc/en/handbook/">Gentoo Linux Handbook</uri> for your architecture.
16420 </p>
16421
16422 </body>
16423 </section>
16424 </chapter>
16425 <chapter>
16426 <title>View the Handbook</title>
16427 <section>
16428 <body>
16429
16430 <table>
16431 <tr>
16432 <th>Format</th>
16433 <th>Description</th>
16434 <th>Links</th>
16435 </tr>
16436 <tr>
16437 <ti>HTML</ti>
16438 <ti>One page per chapter, perfect for online viewing</ti>
16439 <ti>
16440 <uri link="handbook-x86.xml">x86</uri>,
16441 <uri link="handbook-sparc.xml">sparc</uri>,
16442 <uri link="handbook-alpha.xml">alpha</uri>,
16443 <uri link="handbook-amd64.xml">amd64</uri>,
16444 <uri link="handbook-ppc.xml">ppc</uri>,
16445 <uri link="handbook-ppc64.xml">ppc64</uri>,
16446 <uri link="handbook-hppa.xml">hppa</uri>
16447 </ti>
16448 </tr>
16449 <tr>
16450 <ti>HTML</ti>
16451 <ti>All in one page</ti>
16452 <ti>
16453 <uri link="handbook-x86.xml?full=1">x86</uri>,
16454 <uri link="handbook-sparc.xml?full=1">sparc</uri>,
16455 <uri link="handbook-alpha.xml?full=1">alpha</uri>,
16456 <uri link="handbook-amd64.xml?full=1">amd64</uri>,
16457 <uri link="handbook-ppc.xml?full=1">ppc</uri>,
16458 <uri link="handbook-ppc64.xml?full=1">ppc64</uri>,
16459 <uri link="handbook-hppa.xml?full=1">hppa</uri>
16460 </ti>
16461 </tr>
16462 <tr>
16463 <ti>HTML</ti>
16464 <ti>All in one page, printable version</ti>
16465 <ti>
16466 <uri link="handbook-x86.xml?style=printable&amp;full=1">x86</uri>,
16467 <uri link="handbook-sparc.xml?style=printable&amp;full=1">sparc</uri>,
16468 <uri link="handbook-alpha.xml?style=printable&amp;full=1">alpha</uri>,
16469 <uri link="handbook-amd64.xml?style=printable&amp;full=1">amd64</uri>,
16470 <uri link="handbook-ppc.xml?style=printable&amp;full=1">ppc</uri>,
16471 <uri link="handbook-ppc64.xml?style=printable&amp;full=1">ppc64</uri>,
16472 <uri link="handbook-hppa.xml?style=printable&amp;full=1">hppa</uri>
16473 </ti>
16474 </tr>
16475 </table>
16476
16477 </body>
16478 </section>
16479 </chapter>
16480 </guide>
16481
16482
16483
16484 --
16485 gentoo-doc-cvs@g.o mailing list