/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-ppc64-medium.xml
Gentoo

Contents of /xml/htdocs/doc/en/handbook/hb-install-ppc64-medium.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.21 - (show annotations) (download) (as text)
Tue Aug 9 09:43:58 2005 UTC (9 years ago) by swift
Branch: MAIN
Changes since 1.20: +8 -8 lines
File MIME type: application/xml
Migrating to 2005.1

1 <?xml version='1.0' encoding='UTF-8'?>
2 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3
4 <!-- The content of this document is licensed under the CC-BY-SA license -->
5 <!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
6
7 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc64-medium.xml,v 1.20 2005/05/25 09:47:58 neysx Exp $ -->
8
9 <sections>
10
11 <version>2.4</version>
12 <date>2005-08-09</date>
13
14 <section>
15 <title>Hardware Requirements</title>
16 <subsection>
17 <title>Introduction</title>
18 <body>
19
20 <p>
21 Before we start, we first list what hardware requirements you need to
22 successfully install Gentoo on your box.
23 </p>
24
25 </body>
26 </subsection>
27 <subsection>
28 <title>Hardware Requirements</title>
29 <body>
30
31 <table>
32 <tr>
33 <th>CPU</th>
34 <ti>Any PowerPC64 CPU</ti>
35 </tr>
36 <tr>
37 <th>Systems</th>
38 <ti>
39 IBM RS/6000s, Power Macintosh G5, IBP pSeries and IBM iSeries
40 </ti>
41 </tr>
42 <tr>
43 <th>Memory</th>
44 <ti>64 MB</ti>
45 </tr>
46 <tr>
47 <th>Diskspace</th>
48 <ti>1.5 GB (excluding swap space)</ti>
49 </tr>
50 <tr>
51 <th>Swap space</th>
52 <ti>At least 256 MB</ti>
53 </tr>
54 </table>
55
56 <p>
57 For a full list of supported systems, please go to
58 <uri>http://www.linuxppc64.org/hardware.shtml</uri>.
59 </p>
60
61 </body>
62 </subsection>
63 </section>
64 <!-- Copy/paste from hb-install-x86-medium.xml, with s/x86/ppc64/ -->
65 <!-- START -->
66 <section>
67 <title>The Gentoo Installation Approaches</title>
68 <subsection>
69 <title>Introduction</title>
70 <body>
71
72 <p>
73 Gentoo Linux can be installed using one of three <e>stage</e> tarball files.
74 A stage file is a tarball (compressed archive) that contains a minimal
75 environment.
76 </p>
77
78 <ul>
79 <li>
80 A stage1 file contains nothing more than a compiler, Portage (Gentoo's
81 software management system) and a couple of packages on which the compiler
82 or Portage depends.
83 </li>
84 <li>
85 A stage2 file contains a so-called bootstrapped system, a minimal
86 environment from which one can start building all other necessary
87 applications that make a Gentoo environment complete.
88 </li>
89 <li>
90 A stage3 file contains a prebuilt minimal system which is almost fully
91 deployable. It only lacks a few applications where you, the Gentoo user,
92 needs to choose which one you want to install.
93 </li>
94 </ul>
95
96 <p>
97 To help you decide what stage file you want to use, we have written down the
98 major advantages and disadvantages of each stage file.
99 </p>
100
101 </body>
102 </subsection>
103 <subsection>
104 <title>A Stage1 Approach</title>
105 <body>
106
107 <p>
108 A <e>stage1</e> is used when you want to bootstrap and build the entire system
109 from scratch.
110 </p>
111
112 <p>
113 Starting from a stage1 allows you to have total control over the
114 optimization settings and optional build-time functionality that is
115 initially enabled on your system. This makes <e>stage1</e> installs good for
116 power users who know what they are doing. It is also a great
117 installation method for those who would like to know more about the
118 inner workings of Gentoo Linux.
119 </p>
120
121 <table>
122 <tr>
123 <th>Stage1</th>
124 <th>Pros and Cons</th>
125 </tr>
126 <tr>
127 <th>+</th>
128 <ti>
129 Allows you to have total control over the optimization settings and optional
130 build-time functionality that is initially enabled on your system
131 </ti>
132 </tr>
133 <tr>
134 <th>+</th>
135 <ti>Suitable for powerusers that know what they are doing</ti>
136 </tr>
137 <tr>
138 <th>+</th>
139 <ti>Allows you to learn more about the inner workings of Gentoo</ti>
140 </tr>
141 <tr>
142 <th>-</th>
143 <ti>Takes a long time to finish the installation</ti>
144 </tr>
145 <tr>
146 <th>-</th>
147 <ti>
148 If you don't intend to tweak the settings, it is a waste of time
149 </ti>
150 </tr>
151 <tr>
152 <th>-</th>
153 <ti>
154 Requires a working Internet connection during the installation
155 </ti>
156 </tr>
157 </table>
158
159 </body>
160 </subsection>
161 <subsection>
162 <title>A Stage2 Approach</title>
163 <body>
164
165 <p>
166 A <e>stage2</e> is used for building the entire system from a bootstrapped
167 "semi-compiled" state.
168 </p>
169
170 <p>
171 Stage2 installs allow you to skip the bootstrap process; doing this
172 is fine if you are happy with the optimization settings that we chose
173 for your particular stage2 tarball.
174 </p>
175
176 <table>
177 <tr>
178 <th>Stage2</th>
179 <th>Pros and Cons</th>
180 </tr>
181 <tr>
182 <th>+</th>
183 <ti>You don't need to bootstrap</ti>
184 </tr>
185 <tr>
186 <th>+</th>
187 <ti>Faster than starting with stage1</ti>
188 </tr>
189 <tr>
190 <th>+</th>
191 <ti>You can still tweak your settings</ti>
192 </tr>
193 <tr>
194 <th>-</th>
195 <ti>You cannot tweak as much as with a stage1</ti>
196 </tr>
197 <tr>
198 <th>-</th>
199 <ti>It's still not the fastest way to install Gentoo</ti>
200 </tr>
201 <tr>
202 <th>-</th>
203 <ti>You have to accept the optimizations we chose for the bootstrap</ti>
204 </tr>
205 <tr>
206 <th>-</th>
207 <ti>
208 Requires a working Internet connection during the installation
209 </ti>
210 </tr>
211 </table>
212
213 </body>
214 </subsection>
215 <subsection>
216 <title>A Stage3 Approach</title>
217 <body>
218
219 <p>
220 A <e>stage3</e> installation contains a basic Gentoo Linux system that has been
221 built for you. You will only need to build a few packages of which we can't
222 decide for you which one to choose.
223 </p>
224
225 <p>
226 Choosing to go with a stage3 allows for the fastest install of Gentoo
227 Linux, but also means that your base system will have the optimization
228 settings that we chose for you (which to be honest, are good settings
229 and were carefully chosen to enhance performance while maintaining
230 stability). Stage3 is also required if you want to install Gentoo using
231 prebuilt packages or without a network connection.
232 </p>
233
234 <table>
235 <tr>
236 <th>Stage3</th>
237 <th>Pros and Cons</th>
238 </tr>
239 <tr>
240 <th>+</th>
241 <ti>Fastest way to get a Gentoo base system</ti>
242 </tr>
243 <tr>
244 <th>-</th>
245 <ti>You cannot tweak the base system - it's built already</ti>
246 </tr>
247 </table>
248
249 <p>
250 You might be interested to know that, if you decide to use different
251 optimization settings after having installed Gentoo, you will be able to
252 recompile your entire system with the new optimization settings.
253 </p>
254
255 </body>
256 </subsection>
257 </section>
258 <section>
259 <title>The Gentoo Installation CDs</title>
260 <subsection>
261 <title>Introduction</title>
262 <body>
263
264 <p>
265 The <e>Gentoo Installation CDs</e> are bootable CDs which contain a
266 self-sustained Gentoo environment. They allow you to boot Linux from the CD.
267 During the boot process your hardware is detected and the appropriate drivers
268 are loaded. They are maintained by Gentoo developers.
269 </p>
270
271 <p>
272 All Installation CDs allow you to boot, set up networking, initialize your
273 partitions and start installing Gentoo from the Internet. We currently provide
274 two Installation CDs which are equaly suitable to install Gentoo from, as long
275 as you're planning on performing an Internet-based installation using the
276 latest version of the available packages.
277 </p>
278
279 <p>
280 If you wish to install Gentoo without a working Internet connection, please use
281 the installation instructions described in the <uri
282 link="2005.1/index.xml">Gentoo 2005.1 Handbooks</uri>. This is currently not
283 supported for the PPC64 architecture though.
284 </p>
285
286 <p>
287 For the PowerPC64 architecture, we only supply a <e>Minimal</e> Installation CD,
288 a small, no-nonsense, bootable CD which sole purpose is to boot the system,
289 prepare the networking and continue with the Gentoo installation.
290 </p>
291
292 </body>
293 </subsection>
294 <subsection>
295 <title>Gentoo's Minimal Installation CD</title>
296 <body>
297
298 <p>
299 The Minimal Installation CD is called
300 <c>install-ppc64-g5-minimal-2005.1.iso</c> or
301 <c>install-ppc64-ibm-minimal-2005.1.iso</c> and takes up only 350 MB of
302 diskspace. You can use this Installation CD to install Gentoo, but always with a
303 working Internet connection only.
304 </p>
305
306 <table>
307 <tr>
308 <th>Minimal Installation CD</th>
309 <th>Pros and Cons</th>
310 </tr>
311 <tr>
312 <th>+</th>
313 <ti>Smallest download</ti>
314 </tr>
315 <tr>
316 <th>+</th>
317 <ti>
318 You can do a stage1, stage2 or stage3 by getting the stage tarball off the
319 net
320 </ti>
321 </tr>
322 <tr>
323 <th>-</th>
324 <ti>
325 Contains no stages, no Portage snapshot, no prebuilt packages and is
326 therefore not suitable for networkless installation
327 </ti>
328 </tr>
329 </table>
330
331 </body>
332 </subsection>
333 </section>
334 <!-- STOP -->
335 <section>
336 <title>Download, Burn and Boot a Gentoo Installation CD</title>
337 <subsection>
338 <title>Downloading and Burning the Installation CDs</title>
339 <body>
340
341 <p>
342 You have chosen to use a Gentoo Installation CD. We'll first start by
343 downloading and burning the chosen Installation CD. We previously discussed the
344 several available Installation CDs, but where can you find them?
345 </p>
346
347 <p>
348 You can download any of the Installation CDs (and, if you want to, a Packages
349 CD as well) from one of our <uri link="/main/en/mirrors.xml">mirrors</uri>. The
350 Installation CDs are located in the <path>releases/ppc64/2005.1/installcd</path>
351 directory.
352 </p>
353
354 <p>
355 Inside that directory you'll find so-called ISO-files. Those are full CD images
356 which you can write on a CD-R.
357 </p>
358
359 <p>
360 In case you wonder if your downloaded file is corrupted or not, you can
361 check its MD5 checksum and compare it with the MD5 checksum we provide (such as
362 <path>install-ppc64-g5-minimal-2005.1.iso.md5</path>). You can check the MD5
363 checksum with the <c>md5sum</c> tool under Linux/Unix or <uri
364 link="http://www.etree.org/md5com.html">md5sum</uri> for Windows.
365 </p>
366
367 <p>
368 Another way to check the validity of the downloaded file is to use GnuPG to
369 verify the cryptographic signature that we provide (the file ending with
370 <path>.asc</path>). Download the signature file and obtain the public key:
371 </p>
372
373 <pre caption="Obtaining the public key">
374 $ <i>gpg --keyserver pgp.mit.edu --recv-keys 17072058</i>
375 </pre>
376
377 <p>
378 Now verify the signature:
379 </p>
380
381 <pre caption="Verify the cryptographic signature">
382 $ <i>gpg --verify &lt;signature file&gt; &lt;downloaded iso&gt;</i>
383 </pre>
384
385 <p>
386 To burn the downloaded ISO(s), you have to select raw-burning. How you
387 do this is highly program-dependent. We will discuss <c>cdrecord</c> and
388 <c>K3B</c> here; more information can be found in our <uri
389 link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>.
390 </p>
391
392 <ul>
393 <li>
394 With cdrecord, you simply type <c>cdrecord dev=/dev/hdc &lt;downloaded iso
395 file&gt;</c> (replace <path>/dev/hdc</path> with your CD-RW drive's
396 device path).
397 </li>
398 <li>
399 With K3B, select <c>Tools</c> &gt; <c>CD</c> &gt; <c>Burn Image</c>. Then
400 you can locate your ISO file within the 'Image to Burn' area. Finally click
401 <c>Start</c>.
402 </li>
403 <li>
404 With Mac OS X Panther, launch <c>Disk Utility</c> from
405 <path>Applications/Utilities</path>, select <c>Open</c> from the
406 <c>Images</c> menu, select the mounted disk image in the main window and
407 select <c>Burn</c> in the <c>Images</c> menu.
408 </li>
409 <li>
410 With Mac OS X Jaguar, launch <c>Disk Copy</c> from
411 <path>Applications/Utilities</path>, select <c>Burn Image</c> from the
412 <c>File</c> menu, select the ISO and click the <c>Burn</c> button.
413 </li>
414 </ul>
415
416 </body>
417 </subsection>
418 <subsection>
419 <title>Default: Booting the Installation CD on an Apple/IBM</title>
420 <body>
421
422 <p>
423 Place the Installation CD in the CD-ROM and reboot the system. Hold down the
424 'C' key at bootup. You will be greeted by a friendly welcome message and a
425 <e>boot:</e> prompt at the bottom of the screen.
426 </p>
427
428 <p>
429 You are also able to tweak some kernel options at this prompt. The following
430 table lists the available boot options you can add:
431 </p>
432
433 <table>
434 <tr>
435 <th>Boot Option</th>
436 <th>Description</th>
437 </tr>
438 <tr>
439 <ti><c>video</c></ti>
440 <ti>
441 This option takes one of the following vendor-specific tags:
442 <c>radeonfb</c>, <c>rivafb</c>, <c>atyfb</c>, <c>aty128</c> or
443 <c>ofonly</c>. You can follow this tag with the resolution and refreshrate
444 you want to use. For instance <c>video=radeonfb:1280x1024@75</c>. If you are
445 uncertain what to choose, <c>ofonly</c> will most certainly work.
446 </ti>
447 </tr>
448 <tr>
449 <ti><c>nol3</c></ti>
450 <ti>
451 Disables level 3 cache on some powerbooks (needed for at least the 17'')
452 </ti>
453 </tr>
454 <tr>
455 <ti><c>debug</c></ti>
456 <ti>
457 Enables verbose booting, spawns an initrd shell that can be used to debug
458 the Installation CD
459 </ti>
460 </tr>
461 <tr>
462 <ti><c>sleep=X</c></ti>
463 <ti>
464 Wait X seconds before continuing; this can be needed by some very old SCSI
465 CD-ROMs which don't speed up the CD quick enough
466 </ti>
467 </tr>
468 <tr>
469 <ti><c>bootfrom=X</c></ti>
470 <ti>
471 Boot from a different device
472 </ti>
473 </tr>
474 </table>
475
476 <p>
477 At this prompt, hit enter, and a complete Gentoo Linux environment will be
478 loaded from the CD. Continue with <uri link="#booted">And When You're
479 Booted...</uri>.
480 </p>
481
482 </body>
483 </subsection>
484 <subsection>
485 <title>IBM pSeries</title>
486 <body>
487
488 <p>
489 For pSeries boxes, sometimes the cds might not autoboot. You might have
490 to set up your cdrom as a bootable device in the multi-boot menu. (F1 at
491 startup) The other option is to jump into OF and do it from there:
492 </p>
493
494 <p>
495 1) Boot into OF (this is 8 from the serial cons or F8 from a graphics
496 cons, start hitting the key when you see the keyboard mouse etc etc
497 messages
498 </p>
499 <p>
500 2) run the command 0> boot cdrom:1,yaboot
501 </p>
502 <p>
503 3) stand back and enjoy!
504 </p>
505
506 </body>
507 </subsection>
508 <subsection id="booted">
509 <title>And When You're Booted...</title>
510 <body>
511
512 <p>
513 You will be greeted by a root ("#") prompt on the current console. You can also
514 switch to other consoles by pressing Alt-fn-F2, Alt-fn-F3 and Alt-fn-F4. Get
515 back to the one you started on by pressing Alt-fn-F1.
516 </p>
517
518 <p>
519 If you are installing Gentoo on a system with a non-US keyboard, use
520 <c>loadkeys</c> to load the keymap for your keyboard. To list the available
521 keymaps, execute <c>ls /usr/share/keymaps/i386</c>.
522 </p>
523
524 <pre caption="Listing available keymaps">
525 <comment>(PPC uses x86 keymaps on most systems. The mac/ppc keymaps provided
526 on the Installation CD are ADB keymaps and unusable with the
527 Installation CD kernel)</comment>
528 # <i>ls /usr/share/keymaps/i386</i>
529 </pre>
530
531 <p>
532 Now load the keymap of your choice:
533 </p>
534
535 <pre caption="Loading a keymap">
536 # <i>loadkeys be-latin1</i>
537 </pre>
538
539 <p>
540 Now continue with <uri link="#hardware">Extra Hardware Configuration</uri>.
541 </p>
542
543 </body>
544 </subsection>
545 <subsection id="hardware">
546 <title>Extra Hardware Configuration</title>
547 <body>
548
549 <p>
550 When the Installation CD boots, it tries to detect all your hardware devices and
551 loads the appropriate kernel modules to support your hardware. In the
552 vast majority of cases, it does a very good job. However, in some cases it may
553 not auto-load the kernel
554 modules you need. If the PCI auto-detection missed some of your system's
555 hardware, you will have to load the appropriate kernel modules manually.
556 </p>
557
558 <p>
559 In the next example we try to load the <c>8139too</c> module (support for
560 certain kinds of network interfaces):
561 </p>
562
563 <pre caption="Loading kernel modules">
564 # <i>modprobe 8139too</i>
565 </pre>
566
567 </body>
568 </subsection>
569 <subsection>
570 <title>Optional: Tweaking Hard Disk Performance</title>
571 <body>
572
573 <p>
574 If you are an advanced user, you might want to tweak the IDE hard disk
575 performance using <c>hdparm</c>. With the <c>-tT</c> options you can
576 test the performance of your disk (execute it several times to get a
577 more precise impression):
578 </p>
579
580 <pre caption="Testing disk performance">
581 # <i>hdparm -tT /dev/hda</i>
582 </pre>
583
584 <p>
585 To tweak, you can use any of the following examples (or experiment
586 yourself) which use <path>/dev/hda</path> as disk (substitute with your
587 disk):
588 </p>
589
590 <pre caption="Tweaking hard disk performance">
591 <comment>Activate DMA:</comment> # <i>hdparm -d 1 /dev/hda</i>
592 <comment>Activate DMA + Safe Performance-enhancing Options:</comment> # <i>hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda</i>
593 </pre>
594
595 </body>
596 </subsection>
597 <subsection id="useraccounts">
598 <title>Optional: User Accounts</title>
599 <body>
600
601 <p>
602 If you plan on giving other people access to your installation
603 environment or you want to chat using <c>irssi</c> without root privileges (for
604 security reasons), you need to create the necessary user accounts and change
605 the root password.
606 </p>
607
608 <p>
609 To change the root password, use the <c>passwd</c> utility:
610 </p>
611
612 <pre caption="Changing the root password">
613 # <i>passwd</i>
614 New password: <comment>(Enter your new password)</comment>
615 Re-enter password: <comment>(Re-enter your password)</comment>
616 </pre>
617
618 <p>
619 To create a user account, we first enter their credentials, followed by
620 its password. We use <c>useradd</c> and <c>passwd</c> for these tasks.
621 In the next example, we create a user called &quot;john&quot;.
622 </p>
623
624 <pre caption="Creating a user account">
625 # <i>useradd -m -G users john</i>
626 # <i>passwd john</i>
627 New password: <comment>(Enter john's password)</comment>
628 Re-enter password: <comment>(Re-enter john's password)</comment>
629 </pre>
630
631 <p>
632 You can change your user id from root to the newly created user by using
633 <c>su</c>:
634 </p>
635
636 <pre caption="Changing user id">
637 # <i>su - john</i>
638 </pre>
639
640 </body>
641 </subsection>
642 <subsection>
643 <title>Optional: Viewing Documentation while Installing</title>
644 <body>
645
646 <!-- Docs not available on Install CD -->
647
648 <p>
649 If you want to view the Gentoo Handbook during the installation, make sure you
650 have created a user account (see <uri link="#useraccounts">Optional: User
651 Accounts</uri>). Then press <c>Alt-F2</c> to go to a new terminal and log in.
652 </p>
653
654 <!--
655 <p>
656 If you want to view the documentation on the CD you can immediately run
657 <c>links2</c> to read it:
658 </p>
659
660 <pre caption="Viewing the on-CD documentation">
661 # <i>links2 /mnt/cdrom/docs/handbook/html/index.html</i>
662 </pre>
663 -->
664
665 <p>
666 <!--
667 However, it is preferred that you use the online Gentoo Handbook as it will be
668 more recent than the one provided on the CD.
669 -->
670 You can view the handbook using <c>links2</c>, but only after having completed
671 the <e>Configuring your Network</e> chapter (otherwise you won't be able to go
672 on the Internet to view the document):
673 </p>
674
675 <pre caption="Viewing the Online Documentation">
676 # <i>links2 http://www.gentoo.org/doc/en/handbook/handbook-ppc64.xml</i>
677 </pre>
678
679 <p>
680 You can go back to your original terminal by pressing <c>Alt-F1</c>.
681 </p>
682
683 </body>
684 </subsection>
685 <subsection>
686 <title>Optional: Starting the SSH Daemon</title>
687 <body>
688
689 <p>
690 If you want to allow other users to access your computer during the
691 Gentoo installation (perhaps because those users are going to help you
692 install Gentoo, or even do it for you), you need to create a user
693 account for them and perhaps even provide them with your root password
694 (<e>only</e> do that <e>if</e> you <b>fully trust</b> that user).
695 </p>
696
697 <p>
698 To fire up the SSH daemon, execute the following command:
699 </p>
700
701 <pre caption="Starting the SSH daemon">
702 # <i>/etc/init.d/sshd start</i>
703 </pre>
704
705 <p>
706 To be able to use sshd, you first need to set up your networking. Continue with
707 the chapter on <uri link="?part=1&amp;chap=3">Configuring your Network</uri>.
708 </p>
709
710 </body>
711 </subsection>
712 </section>
713 </sections>

  ViewVC Help
Powered by ViewVC 1.1.20