Cameron Dale: Introducing apt-p2p: a new P2P apt downloader
After many long months of planning and work, I have completed
another peer-to-peer downloader for Debian. If you've been keeping
track, that makes 2 now. This one is called apt-p2p, and as of
yesterday it is available in unstable.
The functionality is very similar to the first one I wrote,
DebTorrent, so if you've used that one you should feel very
comfortable. After installation you just add a
localhost:9977 to the
start of your sources.list entries (see the man page). The only difference is the port
number (DebTorrent uses 9988 by default) and that you can use it on all
your sources.list entries, whether they be deb, deb-src, official
Debian archive, or any other archive. Then an apt-get update gets it
started, and you can begin installing packages. Point your web browser
to http://localhost:9977 to see what's going on.
IMPORTANT: as with any P2P program, it works much better if you open
a port through your NAT or firewall. Without this crucial step, you
won't be able to share with any peers, and your lookup of peers to
download from may take longer. Make sure to forward both TCP and UDP
ports 9977, or whichever port you set in the config file. For more
details, see the port forwarding section of the FAQ.
The similarities with DebTorrent are all external, so let's look at how
it differs from DebTorrent internally:
- it's very general, it doesn't matter what you're trying to
download, a source package or a Packages file, from constantly-updated
unstable or a year-old stable, for i386 or hppa architectures
(DebTorrent only works for
.debfiles, is only supported for the official archive, and breaks downloaders into groups by architectures) - it doesn't require anything other than what's available to apt (DebTorrent uses piece hashes of large files, and ordering information, both of which are downloaded separately)
- it can be very fast when downloading from mirrors (mirror downloads with DebTorrent are not so fast)
- the code is simple, and makes use of available code, such as Twisted, Khashmir, and python-apt, which should make future enhancements and maintenance easier (DebTorrent is large and monolithic)
- requires less memory and CPU power (50% to 75% less memory than DebTorrent)
- makes use of hashes to uniquely identify files
- uses a Distributed Hash Table (DHT) to find peers
- also stores piece hashes in the DHT for efficient downloading
- uses HTTP/1.1 requests to download from peers
- no peers available causes it to fallback to a download from the mirror
People rarely ask me about my amazing
I made an emergency release of
So I wrote an entry on my tumblelog about what s going on with my life currently. Since Tumblr s feed doesn t get pushed immediately, I showed the post to my co-worker and friend Chris, before it hit the planets:
- So, yeah I have my blog since it s syndicated on
I've learnt a lot about building MSI files during the last days. In a way, it is very similar to building Debian packages -- you hand some magic tool a directory with files and a directory with meta-information.
The main difference is that MSI files cannot call arbitrary commands in their installation sequence, which serves an useful purpose: as long as they make do with the standard actions provided with the base installer, it is guaranteed that you can undo all changes, and you can get a full overview what the installation will do, without running any untrusted code.
If the standard actions aren't enough (for example, they don't cover driver installation), you can ship a DLL that can be loaded into the installer. You lose a bit of the audit functionality there, but that is not a problem in practice as these plug-ins are signed separately from the package, so for every genuine problem, there is already a plug-in that you can simply "merge" to your package.

After three years, a new version of ocaml-gettext is out. I know that the delay is quite long... Been too busy to do anything regarding this.
This new version is mainly a bug fix release:
In the last week, Nicholas Negroponte gave