This guide assumes you have already found a VPS provider and chosen and installed CentOS or other RHEL distro.
Deluge BitTorrent Client
Deluge is a popular multi-platform bittorrent client often used to provide torrenting / seedbox functionality on Linux servers. Although it is not as popular as ruTorrent it still has a solid place in the seedbox community and provides some functionality not found (or properly implemented) elsewhere such as SOCKS5 proxy support.
If you are a complete beginner to Linux then Deluge makes a great starting point due to the ease of install compared to rTorrent.
Installing Deluge to CentOS 6.5
For my guide I am using the latest updated CentOS 6.5. I believe other RHEL based distro’s should work as well, but for compatibility with this guide, CentOS 6 is suggested.
Please ensure you are logged in as root before we begin. If your root account is disabled please sudo commands as needed.
Install Deluge from repositories.
Deluge is not part of the standard repositories the same way it is for Ubuntu, but there are third party repositories we can add which will make this installation is extremely simple and pain free and not require the compilation of any source code.
First off we will add the Linux-Tech distro to our system:
And paste the following:
[linuxtech] name=LinuxTECH baseurl=http://pkgrepo.linuxtech.net/el6/release/ enabled=1 gpgcheck=1 gpgkey=http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET
Now we can install deluge and all necessities with Yum:
yum install deluge
Run Deluge via the Deluge-Daemon and start up the Web Interface using –fork argument to start a new background process. We are just testing for now so don’t worry about the fact that we are running as root:
deluged deluge-web --fork
We will additionally want to prep some folders for our downloads. On my box I have a user called “seedbox” which is being shared with an rtorrent process. I will just have the files go into these existing folders. Adjust accordingly for your environment.
cd /home/seedbox mkdir files mkdir .temp mkdir watch chown -R seedbox:seedbox /home/seedbox
Test and Configure Deluge Install
Deluge is now running and ready for us to login for the first time!
The install port will have defaulted to 8112 (ie: http://host.example.com:8112/). The Web UI requires a password to login which will have defaulted to “deluge” and will need to be changed on login.
Additionally when you login for the first time you will need to connect to your daemon process. This will hook the Web UI into the torrent server, and allows you to potentially run multiple copies of Deluge at one time.
There are some settings to setup here such as changing our password and setting up our directories. However, we are currently running as root so let’s wait till after the next step when we get our daemon processes setup correctly and come back to configure this.
If you want to go ahead and run a test file through, you can do so now. Add a torrent via the green “+” and either select the torrent from your computer or enter the url of the torrent off the network. If everything is setup correctly it should download and end up in your set folders afterwards.
Run Deluge and Web UI On Startup
We’ll want Deluge to startup with the server on boot and run as our “seedbox” user.
We can do this through rc.local script.
Add the following (before Exit 0!):
su seedbox -c "deluged" su seedbox -c "deluge-web --fork"
We can now reboot the server, finish setting up our directories in the UI and we are ready to go.