I’ve started using BitTorrent, or rather a couple of different clients, since I got ADSL, but what I really want is a fire-and-forget client for the NSLU2.
This is what should happen.
- Monitor a certain directory. If a .torrent file is added to this directory, add it to the queue.
- When a torrent is complete, move the file(s) to a completed directory. Send an email, or something. Perhaps add an item to an RSS feed. Remove the .torrent from the download queue, but keep it seeded.
- When neither of the other computers is turned on, download the next .torrent in the queue.
- If the download total of the running torrents is less than 80% of the available, start the next .torrent in the queue.
- If more than one .torrent is running and bandwidth use is greater than 90%, then stop the lowest in the queue that is running.
- Have a nice web interface that allows for changing the queue order.
There is a torrent ipkg for nslu2, which I’ve downloaded, but I may write my own. It’s show day tomorrow, so that might be a good start.
I’ve found a decent enough program that does most of this: enhanced-ctorrent. It has a web interface, and has limits on the bandwidth.
I’ll just have to write the autostart and move-when-finished code.
11 hours, 59 minutes after the fact.
Hmm, not sure if it’s just the startup code, but my music dropped out after starting three torrents at the same time. Time to do a little more research…
22 hours, 35 minutes after the fact.