Before we start, we first list what hardware requirements you need to successfully install Gentoo on your box. This of course depends on your architecture.
Check the following requirements before you continue with the Gentoo installation:
Still interested in trying out Gentoo? Well, then it is now time to choose the installation medium you want to use. Yes, you have the choice, no, they are not all equal, and yes, the result is always the same: a Gentoo base system.
The installation media we will describe are:
Every single media has its advantages and disadvantages. We will list the pros and cons of every medium so you have all the information to make a justified decision. But before we continue, let's explain our three-stage installation.
Gentoo Linux can be installed using one of three
Now what stage do you have to choose?
Starting from a
A
| Stage1 | Pros and Cons |
|---|---|
| + | |
| + | |
| + | |
| - | |
| - | |
| - |
A
| Stage2 | Pros and Cons |
|---|---|
| + | |
| + | |
| + | |
| - | |
| - | |
| - | |
| - |
Choosing to go with a
| Stage3 | Pros and Cons |
|---|---|
| + | |
| + | |
| - | |
| - |
Write down (or remember) what stage you want to use. You need this later when you decide what LiveCD (or other installation medium) you want to use. You might be interested to know that, if you decide to use different optimization settings after having installed Gentoo, you will be able to recompile your entire system with the new optimization settings.
Now take a look at the available installation media.
The
All LiveCDs allow you to boot, set up networking, initialize your partitions and start installing Gentoo from the Internet. However, some LiveCDs also contain all necessary source code so you are able to install Gentoo without a working network configuration.
Now what do these LiveCDs contain?
This is a small, no-nonsense, bootable CD which sole purpose is to boot the
system, prepare the networking and continue with the Gentoo installation. It
does not contain any stages (or, in some cases, a single stage1 file),
source code or precompiled packages. For example the sparc64 variant of this
LiveCD can be found in the
| Minimal LiveCD | Pros and Cons |
|---|---|
| + | |
| + | |
| + | |
| - |
Gentoo's Universal LiveCD is a bootable CD suitable to install Gentoo without
networking. It contains a stage1 and stage3 tarballs (optimized for the
sparc architecture). For example the sparc64 variant of this CD is called
If you take a closer look into the directories you will see
that we provide a
You only need the Packages CD if you want to perform a stage3 with GRP installation.
| Universal LiveCD with Packages CD | Pros and Cons |
|---|---|
| + | |
| + | |
| + | |
| - |
You have chosen to use a Gentoo LiveCD (if not, then you are reading the wrong section). We'll first start by downloading and burning the chosen LiveCD. We previously discussed the several available LiveCDs, but where can you find them?
Visit one of our
In case you wonder if your downloaded file is corrupted or not, you can
check its MD5 checksum and compare it with the MD5 checksum we provide (such as
Another way to check the validity of the downloaded file is to use GnuPG to
verify the cryptographic signature that we provide (the file ending with
$ gpg --keyserver pgp.mit.edu --recv-keys 17072058
Now verify the signature:
$ gpg --verify <signature file> <downloaded iso>
To burn the downloaded ISO(s), you have to select raw-burning. How you
do this is highly program-dependent. We will discuss
Insert the Gentoo LiveCD in the CD-ROM and boot your system. During startup, press Stop-A to enter OpenBootPROM (OBP). Once you are in the OBP, boot from the CD-ROM:
ok boot cdrom
You will be greeted by the SILO boot manager (on the LiveCD). Type in
boot: gentoo-2.4
Once the LiveCD is booted, you will be greeted by a login prompt. Log on as
login: root password:(Press Enter here)
You should have a root ("#") prompt on the current console and can also switch to other consoles by pressing Alt-F2, Alt-F3 and Alt-F4. Get back to the one you started on by pressing Alt-F1.
Continue with
If not all hardware is supported out-of-the-box, you will need to load the appropriate kernel modules.
In the next example we try to load the
# modprobe 8139too
If you are an advanced user, you might want to tweak the IDE hard disk
performance using
# hdparm -tT /dev/hda
To tweak, you can use any of the following examples (or experiment
yourself) which use
Activate DMA: # hdparm -d 1 /dev/hdaActivate DMA + Safe Performance-enhancing Options: # hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda
If you plan on giving other people access to your installation
environment or you want to chat using
To change the root password, use the
# passwd New password:(Enter your new password) Re-enter password:(Re-enter your password)
To create a user account, we first enter their credentials, followed by
its password. We use
# useradd -m -G users john # passwd john New password:(Enter john's password) Re-enter password:(Re-enter john's password)
You can change your user id from root to the newly created user by using
# su - john
If you want to view the Gentoo Handbook (either from-CD or online) during the
installation, make sure you have created a user account (see
If you want to view the documentation on the CD you can immediately run
# links2 /mnt/cdrom/docs/html/index.html
However, it is preferred that you use the online Gentoo Handbook as it will be
more recent than the one provided on the CD. You can view it using
# links2 http://www.gentoo.org/doc/en/handbook/handbook-sparc.xml
You can go back to your original terminal by pressing
If you want to allow other users to access your computer during the
Gentoo installation (perhaps because those users are going to help you
install Gentoo, or even do it for you), you need to create a user
account for them and perhaps even provide them with your root password
(
To fire up the SSH daemon, execute the following command:
# /etc/init.d/sshd start
To be able to use sshd, you first need to set up your networking. Continue with
the chapter on