| 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/2.5 --> |
| 6 |
|
| 7 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-medium.xml,v 1.21 2011/10/09 09:49:24 swift Exp $ --> |
| 8 |
|
| 9 |
<sections> |
| 10 |
|
| 11 |
<abstract> |
| 12 |
You can install Gentoo in many ways. This chapter explains how to install |
| 13 |
Gentoo using the minimal Installation CD. |
| 14 |
</abstract> |
| 15 |
|
| 16 |
<version>10</version> |
| 17 |
<date>2011-11-27</date> |
| 18 |
|
| 19 |
<section> |
| 20 |
<title>Hardware Requirements</title> |
| 21 |
<subsection> |
| 22 |
<title>Introduction</title> |
| 23 |
<body> |
| 24 |
|
| 25 |
<p> |
| 26 |
Before we start, we first list what hardware requirements you need to |
| 27 |
successfully install Gentoo on your box. |
| 28 |
</p> |
| 29 |
|
| 30 |
</body> |
| 31 |
</subsection> |
| 32 |
<subsection> |
| 33 |
<title>Hardware Requirements</title> |
| 34 |
<body test="func:keyval('arch')='x86'"> |
| 35 |
|
| 36 |
<table> |
| 37 |
<tr> |
| 38 |
<ti/> |
| 39 |
<th>Minimal CD</th> |
| 40 |
<th>LiveCD</th> |
| 41 |
</tr> |
| 42 |
<tr> |
| 43 |
<th>CPU</th> |
| 44 |
<ti>i486 or later</ti> |
| 45 |
<ti><b>i686</b> or later</ti> |
| 46 |
</tr> |
| 47 |
<tr> |
| 48 |
<th>Memory</th> |
| 49 |
<ti>64 MB</ti> |
| 50 |
<ti>256 MB</ti> |
| 51 |
</tr> |
| 52 |
<tr> |
| 53 |
<th>Diskspace</th> |
| 54 |
<ti colspan="2">1.5 GB (excluding swap space)</ti> |
| 55 |
</tr> |
| 56 |
<tr> |
| 57 |
<th>Swap space</th> |
| 58 |
<ti colspan="2">At least 256 MB</ti> |
| 59 |
</tr> |
| 60 |
</table> |
| 61 |
|
| 62 |
</body> |
| 63 |
<body test="func:keyval('arch')='AMD64'"> |
| 64 |
|
| 65 |
<table> |
| 66 |
<tr> |
| 67 |
<ti/> |
| 68 |
<th>Minimal CD</th> |
| 69 |
<th>LiveCD</th> |
| 70 |
</tr> |
| 71 |
<tr> |
| 72 |
<th>CPU</th> |
| 73 |
<ti colspan="2"> |
| 74 |
Any AMD64 CPU or <uri |
| 75 |
link="http://en.wikipedia.org/wiki/EMT64#Intel_64">EM64T CPU</uri> (Core 2 |
| 76 |
Duo & Quad processors are EM64T) |
| 77 |
</ti> |
| 78 |
</tr> |
| 79 |
<tr> |
| 80 |
<th>Memory</th> |
| 81 |
<ti>64 MB</ti> |
| 82 |
<ti>256 MB</ti> |
| 83 |
</tr> |
| 84 |
<tr> |
| 85 |
<th>Diskspace</th> |
| 86 |
<ti colspan="2">1.5 GB (excluding swap space)</ti> |
| 87 |
</tr> |
| 88 |
<tr> |
| 89 |
<th>Swap space</th> |
| 90 |
<ti colspan="2">At least 256 MB</ti> |
| 91 |
</tr> |
| 92 |
</table> |
| 93 |
|
| 94 |
<p> |
| 95 |
You should check the <uri link="/proj/en/base/amd64/">Gentoo |
| 96 |
AMD64 Project Page</uri> before proceeding. |
| 97 |
</p> |
| 98 |
|
| 99 |
</body> |
| 100 |
</subsection> |
| 101 |
</section> |
| 102 |
<!-- This part can be propagated to the other architectures as well. --> |
| 103 |
<!-- START --> |
| 104 |
<section> |
| 105 |
<title>The Gentoo Installation CDs</title> |
| 106 |
<subsection> |
| 107 |
<title>Introduction</title> |
| 108 |
<body> |
| 109 |
|
| 110 |
<p> |
| 111 |
The <e>Gentoo Installation CDs</e> are bootable CDs which contain a |
| 112 |
self-sustained Gentoo environment. They allow you to boot Linux from the CD. |
| 113 |
During the boot process your hardware is detected and the appropriate drivers |
| 114 |
are loaded. They are maintained by Gentoo developers. |
| 115 |
</p> |
| 116 |
|
| 117 |
<p> |
| 118 |
All Installation CDs allow you to boot, set up networking, initialize your |
| 119 |
partitions and start installing Gentoo from the Internet. |
| 120 |
</p> |
| 121 |
|
| 122 |
<!-- |
| 123 |
<impo> |
| 124 |
If you wish to install Gentoo without a working Internet connection, or would |
| 125 |
like to use one of the provided installers, please use the installation |
| 126 |
instructions described in the <uri link="2008.0/">Gentoo 2008.0 |
| 127 |
Handbooks</uri>. |
| 128 |
</impo> |
| 129 |
--> |
| 130 |
<!-- |
| 131 |
<p> |
| 132 |
The Installation CDs that we currently provide are: |
| 133 |
</p> |
| 134 |
|
| 135 |
<ul> |
| 136 |
<li> |
| 137 |
The Gentoo <e>Minimal</e> Installation CD, a small, no-nonsense, bootable |
| 138 |
CD which sole purpose is to boot the system, prepare the networking and |
| 139 |
continue with the Gentoo installation. |
| 140 |
</li> |
| 141 |
<li> |
| 142 |
The Gentoo <e>Installer LiveCD</e> contains everything you need to install |
| 143 |
Gentoo. It provides a graphical environment, a graphical as well as console |
| 144 |
based installer which automatically carries out the installation for you, |
| 145 |
and of course, the installation instructions for your architecture. |
| 146 |
</li> |
| 147 |
</ul> |
| 148 |
|
| 149 |
<p> |
| 150 |
To help you decide which Installation CD you need, we have written down the |
| 151 |
major advantages and disadvantages of each Installation CD. |
| 152 |
</p> |
| 153 |
--> |
| 154 |
</body> |
| 155 |
</subsection> |
| 156 |
<subsection> |
| 157 |
<title>Gentoo Minimal Installation CD</title> |
| 158 |
<body> |
| 159 |
|
| 160 |
<p> |
| 161 |
The Minimal Installation CD is called <c><keyval id="min-cd-name"/></c> and |
| 162 |
takes up only <keyval id="min-cd-size"/> MB of diskspace. You can use this |
| 163 |
Installation CD to install Gentoo, but <e>only</e> with a working Internet |
| 164 |
connection. |
| 165 |
</p> |
| 166 |
<!-- |
| 167 |
<table> |
| 168 |
<tr> |
| 169 |
<th>Minimal Installation CD</th> |
| 170 |
<th>Pros and Cons</th> |
| 171 |
</tr> |
| 172 |
<tr> |
| 173 |
<th>+</th> |
| 174 |
<ti>Smallest download</ti> |
| 175 |
</tr> |
| 176 |
<tr> |
| 177 |
<th>-</th> |
| 178 |
<ti> |
| 179 |
Contains no stage3 tarball, no Portage snapshot, no prebuilt packages and |
| 180 |
is therefore not suitable for networkless installation |
| 181 |
</ti> |
| 182 |
</tr> |
| 183 |
</table> |
| 184 |
--> |
| 185 |
</body> |
| 186 |
</subsection> |
| 187 |
<!-- |
| 188 |
<subsection> |
| 189 |
<title>Gentoo Installer LiveCD</title> |
| 190 |
<body> |
| 191 |
|
| 192 |
<p> |
| 193 |
The Installer LiveCD is called <c><keyval id="live-cd-name"/></c> and takes up |
| 194 |
<keyval id="live-cd-size"/> MB. You can use this Installation CD to install |
| 195 |
Gentoo, and you can even use it to install Gentoo without a working internet |
| 196 |
connection. |
| 197 |
</p> |
| 198 |
|
| 199 |
<table> |
| 200 |
<tr> |
| 201 |
<th>Installer LiveCD</th> |
| 202 |
<th>Pros and Cons</th> |
| 203 |
</tr> |
| 204 |
<tr> |
| 205 |
<th>+</th> |
| 206 |
<ti> |
| 207 |
Contains everything you need. You can even install without a network |
| 208 |
connection. |
| 209 |
</ti> |
| 210 |
</tr> |
| 211 |
<tr> |
| 212 |
<th>-</th> |
| 213 |
<ti>Huge download</ti> |
| 214 |
</tr> |
| 215 |
</table> |
| 216 |
|
| 217 |
</body> |
| 218 |
</subsection> |
| 219 |
--> |
| 220 |
<subsection> |
| 221 |
<title>The Stage3 Tarball</title> |
| 222 |
<body> |
| 223 |
|
| 224 |
<p> |
| 225 |
A stage3 tarball is an archive containing a minimal Gentoo environment, |
| 226 |
suitable to continue the Gentoo installation using the instructions in this |
| 227 |
manual. Previously, the Gentoo Handbook described the installation using one of |
| 228 |
three stage tarballs. While Gentoo still offers stage1 and stage2 tarballs, the |
| 229 |
official installation method uses the stage3 tarball. If you are interested in |
| 230 |
performing a Gentoo installation using a stage1 or stage2 tarball, please read |
| 231 |
the Gentoo FAQ on <uri link="/doc/en/faq.xml#stage12">How do I Install Gentoo |
| 232 |
Using a Stage1 or Stage2 Tarball?</uri> |
| 233 |
</p> |
| 234 |
|
| 235 |
<p> |
| 236 |
Stage3 tarballs can be downloaded from <path><keyval |
| 237 |
id="release-dir"/>current-stage3/</path> on any of the <uri |
| 238 |
link="/main/en/mirrors.xml">Official Gentoo Mirrors</uri> and are not provided |
| 239 |
on the LiveCD. |
| 240 |
</p> |
| 241 |
|
| 242 |
</body> |
| 243 |
</subsection> |
| 244 |
</section> |
| 245 |
<!-- STOP --> |
| 246 |
<section> |
| 247 |
<title>Download, Burn and Boot a Gentoo Installation CD</title> |
| 248 |
<subsection> |
| 249 |
<title>Downloading and Burning the Installation CDs</title> |
| 250 |
<body> |
| 251 |
|
| 252 |
<p> |
| 253 |
You have chosen to use a Gentoo Installation CD. We'll first start by |
| 254 |
downloading and burning the chosen Installation CD. We previously discussed |
| 255 |
the several available Installation CDs, but where can you find them? |
| 256 |
</p> |
| 257 |
|
| 258 |
<p> |
| 259 |
You can download any of the Installation CDs from one of our <uri |
| 260 |
link="/main/en/mirrors.xml">mirrors</uri>. The Installation CDs are located in |
| 261 |
the <path><keyval id="release-dir"/>current-iso/</path> directory. |
| 262 |
</p> |
| 263 |
|
| 264 |
<p> |
| 265 |
Inside that directory you'll find ISO files. Those are full CD images which you |
| 266 |
can write on a CD-R. |
| 267 |
</p> |
| 268 |
|
| 269 |
<p> |
| 270 |
In case you wonder if your downloaded file is corrupted or not, you can check |
| 271 |
its MD5 checksum and compare it with the MD5 checksum we provide (such as |
| 272 |
<path><keyval id="min-cd-name"/>.DIGESTS</path>). You can check the MD5 |
| 273 |
checksum with the <c>md5sum</c> tool under Linux/Unix or <uri |
| 274 |
link="http://www.etree.org/md5com.html">md5sum</uri> for Windows. |
| 275 |
</p> |
| 276 |
|
| 277 |
<p> |
| 278 |
Another way to check the validity of the downloaded file is to use GnuPG to |
| 279 |
verify the cryptographic signature that we provide (the file ending with |
| 280 |
<path>.asc</path>). Download the signature file and obtain the public keys: |
| 281 |
</p> |
| 282 |
|
| 283 |
<pre caption="Obtaining the public key"> |
| 284 |
$ <i>gpg --keyserver subkeys.pgp.net --recv-keys 96D8BF6D 2D182910 17072058</i> |
| 285 |
</pre> |
| 286 |
|
| 287 |
<p> |
| 288 |
Now verify the signature: |
| 289 |
</p> |
| 290 |
|
| 291 |
<pre caption="Verify the files"> |
| 292 |
<comment>(Verify the cryptographic signature)</comment> |
| 293 |
$ <i>gpg --verify <downloaded iso.DIGESTS.asc></i> |
| 294 |
<comment>(Verify the checksum)</comment> |
| 295 |
$ <i>sha1sum -c <downloaded iso.DIGESTS.asc></i> |
| 296 |
</pre> |
| 297 |
|
| 298 |
<p> |
| 299 |
To burn the downloaded ISO(s), you have to select raw-burning. How you |
| 300 |
do this is highly program-dependent. We will discuss <c>cdrecord</c> and |
| 301 |
<c>K3B</c> here; more information can be found in our <uri |
| 302 |
link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>. |
| 303 |
</p> |
| 304 |
|
| 305 |
<ul> |
| 306 |
<li> |
| 307 |
With cdrecord, you simply type <c>cdrecord dev=/dev/hdc <downloaded iso |
| 308 |
file></c> (replace <path>/dev/hdc</path> with your CD-RW drive's |
| 309 |
device path). |
| 310 |
</li> |
| 311 |
<li> |
| 312 |
With K3B, select <c>Tools</c> > <c>Burn CD Image</c>. Then you can locate |
| 313 |
your ISO file within the 'Image to Burn' area. Finally click <c>Start</c>. |
| 314 |
</li> |
| 315 |
</ul> |
| 316 |
|
| 317 |
</body> |
| 318 |
</subsection> |
| 319 |
<subsection> |
| 320 |
<title>Booting the Installation CD</title> |
| 321 |
<body> |
| 322 |
|
| 323 |
<p> |
| 324 |
Once you have burnt your installation CD, it is time to boot it. |
| 325 |
Remove all CDs from your CD drives, reboot your system and enter the BIOS. |
| 326 |
This is usually done by hitting DEL, F1 or ESC, depending on your BIOS. Inside |
| 327 |
the BIOS, change the boot order so that the CD-ROM is tried before the hard |
| 328 |
disk. This is often found under "CMOS Setup". If you don't do this, your system |
| 329 |
will just reboot from the hard disk, ignoring the CD-ROM. |
| 330 |
</p> |
| 331 |
|
| 332 |
<p> |
| 333 |
Now place the installation CD in the CD-ROM drive and reboot. You should see a |
| 334 |
boot prompt. At this screen, you can hit Enter to begin the boot process with |
| 335 |
the default boot options, or boot the Installation CD with custom boot options |
| 336 |
by specifying a kernel followed by boot options and then hitting Enter. |
| 337 |
</p> |
| 338 |
|
| 339 |
<p> |
| 340 |
When the boot prompt is shown, you get the option of displaying the available |
| 341 |
kernels (<c>F1</c>) and boot options (<c>F2</c>). If you make no selection |
| 342 |
within 20 seconds (either displaying information or using a kernel) then the |
| 343 |
LiveCD will fall back to booting from disk. This allows installations to reboot |
| 344 |
and try out their installed environment without the need to remove the CD from |
| 345 |
the tray (something well appreciated for remote installations). |
| 346 |
</p> |
| 347 |
|
| 348 |
<p> |
| 349 |
Now we mentioned specifying a kernel. On our Installation CDs, we provide |
| 350 |
several kernels. The default one is <c>gentoo</c>. Other kernels are for |
| 351 |
specific hardware needs and the <c>-nofb</c> variants which disable |
| 352 |
framebuffer. |
| 353 |
</p> |
| 354 |
|
| 355 |
<p> |
| 356 |
Below you'll find a short overview on the available kernels: |
| 357 |
</p> |
| 358 |
|
| 359 |
<table> |
| 360 |
<tr> |
| 361 |
<th>Kernel</th> |
| 362 |
<th>Description</th> |
| 363 |
</tr> |
| 364 |
<tr test="func:keyval('arch')='x86'"> |
| 365 |
<ti>gentoo</ti> |
| 366 |
<ti>Default 2.6 kernel with support for multiple CPUs</ti> |
| 367 |
</tr> |
| 368 |
<tr test="func:keyval('arch')='AMD64'"> |
| 369 |
<ti>gentoo</ti> |
| 370 |
<ti> |
| 371 |
Default kernel with support for K8 CPUS (including NUMA support) and EM64T |
| 372 |
CPUs |
| 373 |
</ti> |
| 374 |
</tr> |
| 375 |
<tr> |
| 376 |
<ti>gentoo-nofb</ti> |
| 377 |
<ti>Same as <c>gentoo</c> but without framebuffer support</ti> |
| 378 |
</tr> |
| 379 |
<tr> |
| 380 |
<ti>memtest86</ti> |
| 381 |
<ti>Test your local RAM for errors</ti> |
| 382 |
</tr> |
| 383 |
</table> |
| 384 |
|
| 385 |
<p> |
| 386 |
You can also provide kernel options. They represent optional settings you can |
| 387 |
(de)activate at will. |
| 388 |
</p> |
| 389 |
|
| 390 |
</body> |
| 391 |
|
| 392 |
<body> |
| 393 |
<include href="hb-install-kernelparams.xml"/> |
| 394 |
</body> |
| 395 |
|
| 396 |
<body> |
| 397 |
|
| 398 |
<note> |
| 399 |
The CD will check for "no*" options before "do*" options, so that you can |
| 400 |
override any option in the exact order you specify. |
| 401 |
</note> |
| 402 |
|
| 403 |
<p> |
| 404 |
Now boot your CD, select a kernel (if you are not happy with the default |
| 405 |
<c>gentoo</c> kernel) and boot options. As an example, we show you how |
| 406 |
to boot the <c>gentoo</c> kernel, with <c>dopcmcia</c> as kernel |
| 407 |
parameters: |
| 408 |
</p> |
| 409 |
|
| 410 |
<pre caption="Booting an Installation CD"> |
| 411 |
boot: <i>gentoo dopcmcia</i> |
| 412 |
</pre> |
| 413 |
|
| 414 |
<p> |
| 415 |
You will then be greeted with a boot screen and progress bar. If you are |
| 416 |
installing Gentoo on a system with a non-US keyboard, make sure you immediately |
| 417 |
press Alt-F1 to switch to verbose mode and follow the prompt. If no selection |
| 418 |
is made in 10 seconds the default (US keyboard) will be accepted and the boot |
| 419 |
process will continue. Once the boot process completes, you will be |
| 420 |
automatically logged in to the "Live" Gentoo Linux as "root", the super user. |
| 421 |
You should have a root ("#") prompt on the current console and can also switch |
| 422 |
to other consoles by pressing Alt-F2, Alt-F3 and Alt-F4. Get back to the one |
| 423 |
you started on by pressing Alt-F1. |
| 424 |
</p> |
| 425 |
|
| 426 |
<p> |
| 427 |
Now continue with <uri link="#hardware">Extra Hardware Configuration</uri>. |
| 428 |
</p> |
| 429 |
|
| 430 |
</body> |
| 431 |
</subsection> |
| 432 |
|
| 433 |
<subsection> |
| 434 |
<include href="hb-install-bootconfig.xml"/> |
| 435 |
</subsection> |
| 436 |
|
| 437 |
</section> |
| 438 |
</sections> |