HOWTO Use dijjer for portage
From Gentoo Linux Wiki
This is a work in progress... Don't expect everything to work. The ebuild isn't even in portage yet...
[edit] Introduction
Dijjer is free P2P software that dramatically reduces the bandwidth needed to host large files.
The purpose of this HOWTO is to explain how to use dijjer to download package file for portage.
[edit] Install and Start Dijjer
- NOTE: the dijjer ebuild is not in portage yet (http://bugs.gentoo.org/show_bug.cgi?id=101245). See http://dijjer.jk3.us/ for instructions to install it with portage until then.
To install dijjer, just merge into your system by running
emerge -a dijjer code>
and then start it:
/etc/init.d/dijjer start code>
It's highly recommended that you start Dijjer at boot to maximize efficiency:
rc-update add dijjer default code>
[edit] Configuring Portage
In /etc/make.conf, add http://127.0.0.1:9115/http://CHANGETHEMIRROR/ as your first mirror. It is recommended that everyone uses the same mirror, as Dijjer will differentiate between files from one mirror and the other while they might be the same. It is therefore recommended to use the default Gentoo distfiles server at http://distfiles.gentoo.org/ by adding the following as your first mirror: http://127.0.0.1:9115/http://distfiles.gentoo.org/. A sample GENTOO_MIRRORS line in /etc/make.conf could be:
| File: /etc/make.conf |
GENTOO_MIRRORS="http://127.0.0.1:9115/http://distfiles.gentoo.org/ \ http://mirror.datapipe.net/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo \ http://gentoo.mirrors.easynews.com/linux/gentoo/ \ http://open-systems.ufl.edu/mirrors/gentoo" |
And that's it... next time you install a package, you'll save the mirror some bandwidth.
