You can find more elaborate information about
Distcc ships with a graphical monitor to monitor tasks that your computer is
sending away for compilation. If you use Gnome then put 'gnome' in your
Installing distcc is, as is with all software available through Gentoo's Portage, extremely easy:
# emerge distcc
Well, if installation is easy, the rest should be easy too :) So let us quickly
activate the Portage support for
First, open
# Suppose you have 2 single-CPU distccd hosts excluding this host: MAKEOPTS="-j4"
Now, still inside
# Don't forget to uncomment the PORTAGE_TMPDIR variable DISTCC_DIR=${PORTAGE_TMPDIR}/portage/.distcc
Now run
# distcc-config --set-hosts "192.168.1.102 192.168.1.103 192.168.1.104"
Of course, don't forget to run the
# /etc/init.d/distccd start
Congratulations, your system will now use distributed compiling! For more
in-depth information about DistCC and Gentoo, please read our
If you are interested in the ins and outs of
Installing
# emerge ccache
First, edit
FEATURES="ccache"
Next, edit (or create) the
CCACHE_SIZE="2G"
As of now, Portage will use
# ccache -s
We have already discussed how to work with prebuild packages, but how do you create your own prebuild packages?
If the package is already installed, you can use the
# quickpkg gnumeric
If the package isn't installed yet, you can install it using
# emerge --buildpkg gnumeric
If you want Portage to do this by default, you should set the
If you don't want to install the software, but only build the package, you can
use the
# emerge --buildpkgonly gnumeric
While building and installing packages, Portage uses a
When the package compilation is finished, Portage will "preinstall" the package in the sandbox, registering what files are placed and where. It will then move those files from the sandbox on your live system.
Portage also supports building packages as non-root user (more precisely, as user "portage", group "portage"). This improves the security during the build process. You can opt to use user privileges with or without sandboxing. Of course, it goes without saying that user privileges and sandboxing is the most preferred method :)
Portage will use
FEATURES="userpriv usersandbox"
Portage can be asked to react strongly to possibly dangerous conditions (such as
missing or incorrect Manifest files). To activate this strict checking, add the
FEATURES="strict"
There are several other keywords you can place in the
# man make.conf