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

Diff of /xml/htdocs/doc/en/handbook/hb-install-ppc-medium.xml

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

Revision 1.60 Revision 1.68
2<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> 2<!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3 3
4<!-- The content of this document is licensed under the CC-BY-SA license --> 4<!-- The content of this document is licensed under the CC-BY-SA license -->
5<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 5<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-medium.xml,v 1.60 2008/04/01 08:53:46 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-medium.xml,v 1.68 2011/11/27 18:17:23 swift Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<abstract>
12You can install Gentoo in many ways. This chapter explains how to install
13Gentoo using the minimal Installation CD.
14</abstract>
15
11<version>9.0</version> 16<version>13</version>
12<date>2008-04-01</date> 17<date>2011-11-27</date>
13 18
14<section> 19<section>
15<title>Hardware Requirements</title> 20<title>Hardware Requirements</title>
16<subsection> 21<subsection>
17<title>Introduction</title> 22<title>Introduction</title>
38</tr> 43</tr>
39<tr> 44<tr>
40 <th>Apple OldWorld machines</th> 45 <th>Apple OldWorld machines</th>
41 <ti> 46 <ti>
42 Apple Machines with an Open Firmware revision less than 3, such as the Beige 47 Apple Machines with an Open Firmware revision less than 3, such as the Beige
43 G3s, PCI PowerMacs and PCI PowerBooks. PCI based Apple Clones should also 48 G3s, PCI PowerMacs and PCI PowerBooks. PCI-based Apple Clones should also
44 be supported. 49 be supported.
45 </ti> 50 </ti>
46</tr> 51</tr>
47<tr> 52<tr>
48 <th>Genesi</th> 53 <th>Genesi</th>
80</subsection> 85</subsection>
81</section> 86</section>
82 87
83<!-- START --> 88<!-- START -->
84<section> 89<section>
85<title>The Gentoo Universal Installation CD</title> 90<title>The Gentoo Installation CDs</title>
86<subsection> 91<subsection>
87<title>Introduction</title> 92<title>Introduction</title>
88<body> 93<body>
89 94
90<p> 95<p>
91Gentoo Linux can be installed using a <e>stage3</e> tarball file. 96The <e>Gentoo Installation CDs</e> are bootable CDs which contain a
92Such a tarball is an archive that contains a minimal environment from 97self-sustained Gentoo environment. They allow you to boot Linux from the CD.
93which you can succesfully install Gentoo Linux onto your system. 98During the boot process your hardware is detected and the appropriate drivers
94</p> 99are loaded. They are maintained by Gentoo developers.
95
96<p> 100</p>
97Installations using a stage1 or stage2 tarball file are not documented in the 101
98Gentoo Handbook - please read the <uri link="/doc/en/faq.xml#stage12">Gentoo
99FAQ</uri> on these matters.
100</p> 102<p>
101 103All Installation CDs allow you to boot, set up networking, initialize your
102</body> 104partitions and start installing Gentoo from the Internet.
103</subsection>
104<subsection>
105<title>Gentoo Universal Installation CD</title>
106<body>
107
108<p> 105</p>
109An Installation CD is a bootable medium which contains a self-sustained Gentoo 106
110environment. It allows you to boot Linux from the CD. During the boot process 107<!--
111your hardware is detected and the appropriate drivers are loaded. The Gentoo 108<impo>
112Installation CDs are maintained by Gentoo developers. 109If you wish to install Gentoo without a working Internet connection, or would
110like to use one of the provided installers, please use the installation
111instructions described in the <uri link="2008.0/">Gentoo 2008.0
112Handbooks</uri>.
113</impo>
114-->
115<!--
113</p> 116<p>
114 117The Installation CDs that we currently provide are:
115<p>
116There currently are two Installation CDs available:
117</p> 118</p>
118 119
119<ul> 120<ul>
121 <li>
122 The Gentoo <e>Minimal</e> Installation CD, a small, no-nonsense, bootable
123 CD which sole purpose is to boot the system, prepare the networking and
124 continue with the Gentoo installation.
125 </li>
120 <li> 126 <li>
121 The Universal Installation CD contains everything you need to install 127 The Universal Installation CD contains everything you need to install
122 Gentoo. It provides stage3 files for common architectures, source code 128 Gentoo. It provides stage3 files for common architectures, source code
123 for the extra applications you need to choose from and, of course, the 129 for the extra applications you need to choose from and, of course, the
124 installation instructions for your architecture. 130 installation instructions for your architecture.
125 </li> 131 </li>
126 <li>
127 The Minimal Installation CD contains only a minimal environment that allows
128 you to boot up and configure your network so you can connect to the
129 Internet. It does not contain any additional files and cannot be used
130 during the current installation approach.
131 </li>
132</ul> 132</ul>
133 133
134<p> 134<p>
135Gentoo also provides a Package CD. This is not an Installation CD but an 135Gentoo also provides a Package CD. This is not an Installation CD but an
136additional resource that you can exploit during the installation of your Gentoo 136additional resource that you can exploit during the installation of your Gentoo
141</p> 141</p>
142 142
143<p> 143<p>
144The use of the Package CD is covered later in this document. 144The use of the Package CD is covered later in this document.
145</p> 145</p>
146-->
147</body>
148</subsection>
149<subsection>
150<title>Gentoo Minimal Installation CD</title>
151<body>
152
153<p>
154The Minimal Installation CD is called <c><keyval id="min-cd-name"/></c> and
155takes up only <keyval id="min-cd-size"/> MB of diskspace. You can use this
156Installation CD to install Gentoo, but <e>only</e> with a working Internet
157connection.
158</p>
159<!--
160<table>
161<tr>
162 <th>Minimal Installation CD</th>
163 <th>Pros and Cons</th>
164</tr>
165<tr>
166 <th>+</th>
167 <ti>Smallest download</ti>
168</tr>
169<tr>
170 <th>-</th>
171 <ti>
172 Contains no stage3 tarball, no Portage snapshot, no prebuilt packages and
173 is therefore not suitable for networkless installation
174 </ti>
175</tr>
176</table>
177-->
178</body>
179</subsection>
180<subsection>
181<title>The Stage3 Tarball</title>
182<body>
183
184<p>
185A stage3 tarball is an archive containing a minimal Gentoo environment,
186suitable to continue the Gentoo installation using the instructions in this
187manual. Previously, the Gentoo Handbook described the installation using one of
188three stage tarballs. While Gentoo still offers stage1 and stage2 tarballs, the
189official installation method uses the stage3 tarball. If you are interested in
190performing a Gentoo installation using a stage1 or stage2 tarball, please read
191the Gentoo FAQ on <uri link="/doc/en/faq.xml#stage12">How do I Install Gentoo
192Using a Stage1 or Stage2 Tarball?</uri>
193</p>
194
195<p>
196Stage3 tarballs can be downloaded from <path><keyval
197id="release-dir"/>current-stage3/</path> on any of the <uri
198link="/main/en/mirrors.xml">Official Gentoo Mirrors</uri> and are not provided
199on the LiveCD.
200</p>
146 201
147</body> 202</body>
148</subsection> 203</subsection>
149</section> 204</section>
205
206
150<!-- STOP --> 207<!-- STOP -->
151<section> 208<section>
152<title>Download, Burn and Boot the Gentoo Universal Installation CD</title> 209<title>Download, Burn and Boot a Gentoo Installation CD</title>
153<subsection> 210<subsection>
154<title>Downloading and Burning the Installation CD</title> 211<title>Downloading and Burning the Installation CDs</title>
155<body> 212<body>
156 213
214<p>
215You have chosen to use a Gentoo Installation CD. We'll first start by
216downloading and burning the chosen Installation CD. We previously discussed
217the several available Installation CDs, but where can you find them?
157<p> 218</p>
158You can download the Universal Installation CD (and, if you want to, the 219
159Packages CD as well) from one of our <uri 220<p>
221You can download any of the Installation CDs from one of our <uri
160link="/main/en/mirrors.xml">mirrors</uri>. The Installation CDs are located in 222link="/main/en/mirrors.xml">mirrors</uri>. The Installation CDs are located in
161the <path><keyval id="release-dir"/>installcd</path> directory; the Package CDs
162are located in the <path><keyval id="release-dir"/>packagecd</path> directory. 223the <path><keyval id="release-dir"/>current-iso/</path> directory.
163</p>
164
165<p> 224</p>
225
226<p>
166Inside those directories you'll find ISO files. Those are full CD images which 227Inside that directory you'll find ISO files. Those are full CD images which you
167you can write on a CD-R. 228can write on a CD-R.
168</p>
169
170<p> 229</p>
171After downloading the file, you can verify its integrity to see if it is 230
172corrupted or not:
173</p> 231<p>
174 232In case you wonder if your downloaded file is corrupted or not, you can check
175<ul>
176 <li>
177 You can check its MD5 checksum and compare it with the MD5 checksum we 233its MD5 checksum and compare it with the MD5 checksum we provide (such as
234<path><keyval id="min-cd-name"/>.DIGESTS</path>). You can check the MD5
178 provide (for instance with the <c>md5sum</c> tool under Linux/Unix or 235checksum with the <c>md5sum</c> tool under Linux/Unix or <uri
179 <uri link="http://www.etree.org/md5com.html">md5sum</uri> for Windows). 236link="http://www.etree.org/md5com.html">md5sum</uri> for Windows.
180 Verifying MD5 checksums with Mac OS X is described in the <uri
181 link="/doc/en/gentoo-ppc-faq.xml#doc_chap1">Gentoo PPC FAQ</uri>.
182 </li>
183 <li>
184 You can verify the cryptographic signature that we provide. You need to
185 obtain the public key we use (0x17072058) before you proceed though.
186 </li>
187</ul>
188
189<p> 237</p>
190To fetch our public key using the GnuPG application, run the following command: 238
239<p>
240Another way to check the validity of the downloaded file is to use GnuPG to
241verify the cryptographic signature that we provide (the file ending with
242<path>.asc</path>). Download the signature file and obtain the public keys:
191</p> 243</p>
192 244
193<pre caption="Obtaining the public key"> 245<pre caption="Obtaining the public key">
194$ <i>gpg --keyserver subkeys.pgp.net --recv-keys 0x17072058</i> 246$ <i>gpg --keyserver subkeys.pgp.net --recv-keys 96D8BF6D 2D182910 17072058</i>
195</pre> 247</pre>
196 248
197<p> 249<p>
198Now verify the signature: 250Now verify the signature:
199</p> 251</p>
200 252
201<pre caption="Verify the cryptographic signature"> 253<pre caption="Verify the files">
202$ <i>gpg --verify &lt;signature file&gt; &lt;downloaded iso&gt;</i> 254<comment>(Verify the cryptographic signature)</comment>
255$ <i>gpg --verify &lt;downloaded iso.DIGESTS.asc&gt;</i>
256<comment>(Verify the checksum)</comment>
257$ <i>sha1sum -c &lt;downloaded iso.DIGESTS.asc&gt;</i>
203</pre> 258</pre>
204 259
205<p> 260<p>
206To burn the downloaded ISO(s), you have to select raw-burning. How you 261To burn the downloaded ISO(s), you have to select raw-burning. How you
207do this is highly program-dependent. We will discuss <c>cdrecord</c> and 262do this is highly program-dependent. We will discuss <c>cdrecord</c> and
237After the Installation CD loaded, you will be greeted by a friendly welcome 292After the Installation CD loaded, you will be greeted by a friendly welcome
238message and a <e>boot:</e> prompt at the bottom of the screen. 293message and a <e>boot:</e> prompt at the bottom of the screen.
239</p> 294</p>
240 295
241<p> 296<p>
242We provide one generic kernel, <e>apple</e>. This kernel is built with support 297We provide one generic kernel, <e>ppc32</e>. This kernel is built with support
243for multiple CPUs, but it will boot on single processor machines as well. 298for multiple CPUs, but it will boot on single processor machines as well.
244</p> 299</p>
245 300
246<p> 301<p>
247You can tweak some kernel options at this prompt. The following table lists 302You can tweak some kernel options at this prompt. The following table lists
297 </ti> 352 </ti>
298</tr> 353</tr>
299</table> 354</table>
300 355
301<p> 356<p>
302To use the above options, at the <e>boot:</e> prompt, type <e>apple</e> followed 357To use the above options, at the <e>boot:</e> prompt, type <e>ppc32</e> followed
303by the desired option. In the example below, we'll force the kernel to use the 358by the desired option. In the example below, we'll force the kernel to use the
304Open Firmware framebuffer instead of the device specific driver. 359Open Firmware framebuffer instead of the device specific driver.
305</p> 360</p>
306 361
307<pre caption="Force the use of the Open Firmware framebuffer"> 362<pre caption="Force the use of the Open Firmware framebuffer">
308boot: <i>apple video=ofonly</i> 363boot: <i>ppc32 video=ofonly</i>
309</pre> 364</pre>
310 365
311<p> 366<p>
312If you don't need to add any options, just hit enter at this prompt, and a 367If you don't need to add any options, just type ppc32 at this prompt, and a
313complete Gentoo Linux environment will be loaded from the CD. Continue with 368complete Gentoo Linux environment will be loaded from the CD. Continue with
314<uri link="#booted">And When You're Booted...</uri>. 369<uri link="#booted">And When You're Booted...</uri>.
315</p> 370</p>
316 371
317</body> 372</body>
348First, download <uri link="http://penguinppc.org/bootloaders/bootx/">BootX</uri> 403First, download <uri link="http://penguinppc.org/bootloaders/bootx/">BootX</uri>
349and unpack the archive. Copy the the <c>BootX Extension</c> from the unpacked 404and unpack the archive. Copy the the <c>BootX Extension</c> from the unpacked
350archive into <c>Extensions Folder</c> and the BootX App Control Panel into 405archive into <c>Extensions Folder</c> and the BootX App Control Panel into
351<c>Control Panels</c>, both of which are located in your MacOS System Folder. 406<c>Control Panels</c>, both of which are located in your MacOS System Folder.
352Next, create a folder called "Linux Kernels" in your System folder and copy the 407Next, create a folder called "Linux Kernels" in your System folder and copy the
353<c>apple</c> kernel from the CD to this folder. Finally, copy <c>apple.igz</c> 408<c>ppc32</c> kernel from the CD to this folder. Finally, copy <c>ppc32.igz</c>
354from the Installation CD <path>boot</path> folder into the MacOS 409from the Installation CD <path>boot</path> folder into the MacOS
355<c>System Folder</c>. 410<c>System Folder</c>.
356</p> 411</p>
357 412
358<p> 413<p>
359To prepare BootX, start the BootX App Control Panel. First select the Options 414To prepare BootX, start the BootX App Control Panel. First select the Options
360dialog and check <c>Use Specified RAM Disk</c> and select <c>apple.igz</c> from 415dialog and check <c>Use Specified RAM Disk</c> and select <c>ppc32.igz</c> from
361your System Folder. Continue back to the initial screen and ensure that the 416your System Folder. Continue back to the initial screen and ensure that the
362ramdisk size is at least <c>32000</c>. Finally, set the kernel arguments as 417ramdisk size is at least <c>32000</c>. Finally, set the kernel arguments as
363shown below: 418shown below:
364</p> 419</p>
365 420
395</p> 450</p>
396 451
397<p> 452<p>
398If you are installing Gentoo on a system with a non-US keyboard, use 453If you are installing Gentoo on a system with a non-US keyboard, use
399<c>loadkeys</c> to load the keymap for your keyboard. To list the available 454<c>loadkeys</c> to load the keymap for your keyboard. To list the available
400keymaps, execute <c>ls /usr/share/keymaps/i386</c>. On NewWorld machines or the 455keymaps, execute <c>ls /usr/share/keymaps/i386</c>.
401Pegasos do not use the keymaps in <path>ppc</path> or <path>mac</path> as they
402are for ADB-based OldWorld machines.
403</p> 456</p>
404 457
405<pre caption="Listing available keymaps"> 458<pre caption="Listing available keymaps">
406<comment>(PPC uses x86 keymaps on most systems. The mac/ppc keymaps provided 459<comment>(PPC uses x86 keymaps on most systems.)</comment>
407 on the Installation CD are ADB keymaps and unusable with the Installation CD
408 kernel)</comment>
409# <i>ls /usr/share/keymaps/i386</i> 460# <i>ls /usr/share/keymaps/i386</i>
410</pre> 461</pre>
411 462
412<p> 463<p>
413Now load the keymap of your choice: 464Now load the keymap of your choice:
421Now continue with <uri link="#hardware">Extra Hardware Configuration</uri>. 472Now continue with <uri link="#hardware">Extra Hardware Configuration</uri>.
422</p> 473</p>
423 474
424</body> 475</body>
425</subsection> 476</subsection>
426<subsection id="hardware">
427<title>Extra Hardware Configuration</title>
428<body>
429 477
430<p>
431When the Installation CD boots, it tries to detect all your hardware devices and
432loads the appropriate kernel modules to support your hardware. In the
433vast majority of cases, it does a very good job. However, in some cases, it may
434not auto-load the kernel modules you need. If the PCI auto-detection missed some
435of your system's hardware, you will have to load the appropriate kernel modules
436manually.
437</p>
438
439<p>
440In the next example we try to load the <c>airport</c> module. This module
441supports only the old Airport cards (802.11b). Airport Extreme (802.11g) is not
442supported on the InstallCD due to restrictions on firmware distribution.
443</p>
444
445<pre caption="Loading the airport module">
446# <i>modprobe airport</i>
447</pre>
448
449<p>
450On older iMacs, sometimes the network card is not detected properly. These use
451the BMAC driver:
452</p>
453
454<pre caption="Loading the bmac module">
455# <i>modprobe bmac</i>
456</pre>
457
458</body>
459</subsection> 478<subsection>
479<include href="hb-install-bootconfig.xml"/>
460<subsection> 480</subsection>
461<title>Optional: Tweaking Hard Disk Performance</title>
462<body>
463 481
464<p>
465If you are an advanced user, you might want to tweak the IDE hard disk
466performance using <c>hdparm</c>. With the <c>-tT</c> options you can
467test the performance of your disk (execute it several times to get a
468more precise impression):
469</p>
470
471<pre caption="Testing disk performance">
472# <i>hdparm -tT /dev/hda</i>
473</pre>
474
475<p>
476To tweak, you can use any of the following examples (or experiment
477yourself) which use <path>/dev/hda</path> as disk (substitute with your
478disk):
479</p>
480
481<pre caption="Tweaking hard disk performance">
482<comment>Activate DMA:</comment>
483# <i>hdparm -d 1 /dev/hda</i>
484<comment>Activate DMA + Safe Performance-enhancing Options:</comment>
485# <i>hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda</i>
486</pre>
487
488</body>
489</subsection>
490<subsection id="useraccounts">
491<title>Optional: User Accounts</title>
492<body>
493
494<p>
495If you plan on giving other people access to your installation
496environment or you want to chat using <c>irssi</c> without root privileges (for
497security reasons), you need to create the necessary user accounts and change
498the root password.
499</p>
500
501<p>
502To change the root password, use the <c>passwd</c> utility:
503</p>
504
505<pre caption="Changing the root password">
506# <i>passwd</i>
507New password: <comment>(Enter your new password)</comment>
508Re-enter password: <comment>(Re-enter your password)</comment>
509</pre>
510
511<p>
512To create a user account, we first enter their credentials, followed by
513its password. We use <c>useradd</c> and <c>passwd</c> for these tasks.
514In the next example, we create a user called &quot;john&quot;.
515</p>
516
517<pre caption="Creating a user account">
518# <i>useradd -m -G users john</i>
519# <i>passwd john</i>
520New password: <comment>(Enter john's password)</comment>
521Re-enter password: <comment>(Re-enter john's password)</comment>
522</pre>
523
524<p>
525You can change your user id from root to the newly created user by using
526<c>su</c>:
527</p>
528
529<pre caption="Changing user id">
530# <i>su - john</i>
531</pre>
532
533</body>
534</subsection>
535<subsection>
536<title>Optional: Viewing Documentation while Installing</title>
537<body>
538
539<p>
540If you want to view the Gentoo Handbook (either from-CD or online) during the
541installation, make sure you have created a user account (see <uri
542link="#useraccounts">Optional: User Accounts</uri>). Then press <c>Alt-F2</c> to
543go to a new terminal and log in.
544</p>
545
546<p>
547If you want to view the documentation on the CD you can immediately run
548<c>links</c> or even <c>links -g</c> for a graphical framebuffer browser to
549read it:
550</p>
551
552<pre caption="Viewing the on-CD documentation">
553# <i>links /mnt/cdrom/docs/html/index.html</i>
554</pre>
555
556<p>
557However, it is preferred that you use the online Gentoo Handbook as it will be
558more recent than the one provided on the CD. You can view it using <c>links</c>
559as well, but only after having completed the <e>Configuring your Network</e>
560chapter (otherwise you won't be able to go on the Internet to view the
561document):
562</p>
563
564<pre caption="Viewing the Online Documentation">
565# <i>links http://www.gentoo.org/doc/en/handbook/<keyval id="online-book"/></i>
566</pre>
567
568<p>
569You can go back to your original terminal by pressing <c>Alt-F1</c>.
570</p>
571
572</body>
573</subsection>
574<subsection>
575<title>Optional: Starting the SSH Daemon</title>
576<body>
577
578<p>
579If you want to allow other users to access your computer during the
580Gentoo installation (perhaps because those users are going to help you
581install Gentoo, or even do it for you), you need to create a user
582account for them and perhaps even provide them with your root password
583(<e>only</e> do that <e>if</e> you <b>fully trust</b> that user).
584</p>
585
586<p>
587To fire up the SSH daemon, execute the following command:
588</p>
589
590<pre caption="Starting the SSH daemon">
591# <i>/etc/init.d/sshd start</i>
592</pre>
593
594<p>
595To be able to use sshd, you first need to set up your networking. Continue with
596the chapter on <uri link="?part=1&amp;chap=3">Configuring your Network</uri>.
597</p>
598
599</body>
600</subsection>
601</section> 482</section>
602</sections> 483</sections>

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.68

  ViewVC Help
Powered by ViewVC 1.1.20