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
For the past couple of days, one of my e-mail addresses has been some
spammer's choice for forged From: lines in their spew. So, as
invalid addresses aren't high on a spammer's list of priorities, I get all
the bounces. The fact that MTAs, in this day and age, don't have SMTP session
recipient validation is unpleasant. However, with ISPs requiring all
outgoing e-mail to go through their own servers, I can kinda see where that
can break down. I still don't like it, but I'll live with it.
In amongst all the bounces, though, there's a lot of other, really
obnoxious, crap. So far, I've had five "please click this link / reply to
this e-mail so it'll go through" (AKA "please filter my spam for me")[

After months battling with the reverse cross build of gcc-4.3 to provide
People rarely ask me about my amazing
I made an emergency release of
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.
Here is a story people are bugging me to tell here: Since 2003, every year in fisl s last day we,
Jon is quite a character. In fisl, every time he wanders around his picture is taken over one hundred times (I actually saw some father taking pictures of him holding his child like he were running for Senate or something, one time). So he left with some people around him and I think he d not seen what happened next. I turn towards Debian s booth, to resume the cake delivery when some guy in the crowd asked me to take a picture with him. And then another one and another. I believe my picture was taken another two or three times before I got to the booth. I can t believe! I was about to tell people Hey! I am nobody! Stop taking pictures with me What were they thinking? I imagine something like I don t know who this guy is, but if Maddog took a picture with him, he must be some one! was crossing their minds.
When the party was over I went back to the Organization Committee room and told this story
I'm pleased to announce Lennart Sorensen has joined the Debian NVIDIA Maintainers packaging team.
May 1st is a holiday in many countries around the world - It is, at least, here in Mexico. So, what's a man to do when faced with really-crappy network connectivity at home?

