Deluge has finally joined the ranks of the torrent clients able to run in an easy and efficient way on a headless box. They’ve now included the Autoadd plugin so that you can dump .torrent files into the specified directories and have Deluge add them and label them.
In other words Deluge now handles multiple trackers very well and allows you to effectively organize your downloads.
It’s worth mentioning that the client actually allow you to sort on trackers either way. With favicons even.
In my example I will make use of Arch Linux. The method will in principal be the same on any distribution. Keep in mind that the biggest difference will be if your distribution has included scripts to start the daemons. Arch Linux has.
There are primarily 2 methods that you want to make use of to remote control the Deluge daemon. Either the I’ll use the Deluge GUI client in my example. As the autoadd and labels plugins wont be possible to configure using the web client.
- The Deluge GUI client.
- The Deluge Web interface.
From here on I’ll provide step-by-step instructions of how to get Deluge installed, running as a daemon and configured to autoadd torrents.
# pacman -S deluge
This will install the following dependencies on a clean box:
Targets (12): python-2.6.5-3 pyxdg-0.19.-1 setuptools-0.6.c11-2 boost-libs-1.43.0-1 libtorrent-rasterbar-0.15.2-1 pycrypto-2.1.0-1 zope-interface-3.5.3-1 twisted-10.0.0.-1 pyopenssl-0.10-2 xdg-utils-126.96.36.19900618-1 python-chardet-2.0.1-1 deluge-1.3.0-1
Starting the daemon and defining the user which it will run under
# nano /etc/conf.d/deluged
and change it to your own.
Start the daemon.
# /etc/rc.d/deluged start
Enable remote connections so you can administer the installation
$ config -s allow_remote True
We now need to add the user information for authentication
Edit ~/.config/deluge/auth for the user you’re running the Deluge daemon as.
Add the following on a new line after the “localhost…” entry.
# /etc/rc.d/deluged restart
Now lets connect. Start your Deluge client and enter in your server information in the add host dialogue.
NB: You need to enter Preferences -> Interface and disable the “Classic Mode” to be able to access the connection manager
Once done open up “Preferences” and go to the plugins section. And select them as follows.
Now navigate to the Autoadd section and configure it according to your needs.
You repeat the last step for every tracker and/or type of torrents you want. And I must say, this setup is working very well for me.
Further information can be found at http://dev.deluge-torrent.org/wiki/UserGuide/ThinClient