In order to download source code quickly it is recommended to select a fast
mirror. Portage will look in your
# mirrorselect -i -o >> /mnt/gentoo/etc/make.conf
A second important setting is the SYNC setting in
# mirrorselect -i -r -o >> /mnt/gentoo/etc/make.conf
After running
One thing still remains to be done before we enter the new environment and that
is copying over the DNS information in
(The "-L" option is needed to make sure we don't copy a symbolic link) # cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
Mount the
# mount -t proc none /mnt/gentoo/proc # mount -o bind /dev /mnt/gentoo/dev
Now that all partitions are initialized and the base environment
installed, it is time to enter our new installation environment by
This chrooting is done in three steps. First we will change the root
from
# chroot /mnt/gentoo /bin/bash # env-update >> Regenerating /etc/ld.so.cache... # source /etc/profile # export PS1="(chroot) $PS1"
Congratulations! You are now inside your own Gentoo Linux environment. Of course it is far from finished, which is why the installation still has some sections left :-)
You should now update your Portage tree to the latest version.
# emerge --sync(If you're using a slow terminal like some framebuffers or a serial console, you can add the --quiet option to speed up this process:) # emerge --sync --quiet
If you are behind a firewall that blocks rsync traffic, you can use
If you are warned that a new Portage version is available and that you should
update Portage, you should do it now using
First, a small definition is in place.
A profile is a building block for any Gentoo system. Not only does it specify default values for CHOST, CFLAGS and other important variables, it also locks the system to a certain range of package versions. This is all maintained by the Gentoo developers.
Previously, such a profile was barely touched by the user. However,
Previously, such a profile was untouched by the users. However, there may be certain situations in which you may decide a profile change is necessary.
You can see what profile you are currently using with the following command:
# ls -FGg /etc/make.profile lrwxrwxrwx 1 48 Apr 8 18:51 /etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2006.1/
The default profile will provide you with a Linux 2.6-based system. This is the recommended default, but you have the option of choosing another profile too.
There are also
Some users may wish to install a system based on the older Linux 2.4 profile. If you have good reason to do this, then you should first check that an additional profile exists. On x86, we can do this with the following command:
# ls -d /usr/portage/profiles/default-linux/x86/no-nptl/2.4 /usr/portage/profiles/default-linux/x86/no-nptl/2.4
The above example shows that the additional 2.4 profile exists (i.e. it didn't complain about missing file or directory). It is recommended that you stay with the default, but if you wish to switch, you can do so as follows:
(Make sure you use the right architecture, the example below is for x86) # ln -snf /usr/portage/profiles/default-linux/x86/no-nptl/2.4 /etc/make.profile(List the files in the 2.4 profile) # ls -FGg /etc/make.profile/ total 12 -rw-r--r-- 1 939 Dec 10 14:06 packages -rw-r--r-- 1 347 Dec 3 2004 parent -rw-r--r-- 1 573 Dec 3 2004 virtuals
For ppc, there are a number of new profiles provided with 2006.1:
(Generic PPC profile, for all PPC machines, minimal) # ln -snf /usr/portage/profiles/default-linux/ppc/ppc32/2006.1 /etc/make.profile(G3 profile) # ln -snf /usr/portage/profiles/default-linux/ppc/ppc32/2006.1/G3 /etc/make.profile(G3 Pegasos profile) # ln -snf /usr/portage/profiles/default-linux/ppc/ppc32/2006.1/G3/Pegasos/ /etc/make.profile(G4 (Altivec) profile) # ln -snf /usr/portage/profiles/default-linux/ppc/ppc32/2006.1/G4 /etc/make.profile(G4 (Altivec) Pegasos profile) # ln -snf /usr/portage/profiles/default-linux/ppc/ppc32/2006.1/G4/Pegasos/ /etc/make.profile
For ppc64, there are a number of new profiles provided with 2006.1:
(Generic 64bit userland PPC64 profile, for all PPC64 machines) # ln -snf /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/64bit-userland /etc/make.profile(Generic 32bit userland PPC64 profile, for all PPC64 machines) # ln -snf /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/32bit-userland /etc/make.profile(Each type of userland has sub profiles as follows, with (userland) replaced with the chosen userland from above) (970 profile for JS20) # ln -snf /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/(userland)/970 /etc/make.profile(G5 profile) # ln -snf /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/(userland)/970/pmac /etc/make.profile(POWER3 profile) # ln -snf /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/(userland)/power3 /etc/make.profile(POWER4 profile) # ln -snf /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/(userland)/power4 /etc/make.profile(POWER5 profile) # ln -snf /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/(userland)/power5 /etc/make.profile(The multilib profile is not stable as of this release.)
Most distributions compile their packages with support for as much as possible,
increasing the size of the programs and startup time, not to mention an enormous
amount of dependencies. With Gentoo you can define what options a package
should be compiled with. This is where
In the
The default
A full description on
# less /usr/portage/profiles/use.desc(You can scroll using your arrow keys, exit by pressing 'q')
As an example we show a
# nano -w /etc/make.conf
USE="-gtk -gnome qt3 qt4 kde dvd alsa cdr"
You will probably only use one or maybe two locales on your system. You can
specify locales you will need in
# nano -w /etc/locale.gen
The following locales are an example to get both English (United States) and German (Germany) with the accompanying character formats (like UTF-8).
en_US ISO-8859-1 en_US.UTF-8 UTF-8 de_DE ISO-8859-1 de_DE@euro ISO-8859-15
The next step is to run
Now continue with