This is a tutorial on how to setup ruTorrent with web user interface on a linux vps. At the end of the tutorial , you will have a perfect libtorrent/rtorrent seedbox. The tutorial is targeted towards Debian or Ubuntu based Linux VPS. We will install the following :
- libTorrent 0.12.9
- rTorrent 0.8.9
- ruTorrent 3.4
Here is how to proceed :
Step One: Connect to your VPS via Putty with Root privileges and then issue the following commands one by one for updating the server and installing the required dependencies for the above software packages.
apt-get install subversion build-essential automake libtool libcppunit-dev libcurl3-dev libsigc++-2.0-dev unzip unrar-free curl libncurses-dev
# apt-get install apache2 php5 php5-cli php5-curl
Step Two: Next we need to ensure that scgi for Apache has been enabled:
apt-get install libapache2-mod-scgi
ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load
Step Three : Now we are going to install xmlrpc by using the following commands
mkdir /install;cd /install
svn checkout http://xmlrpc-c.svn.sourceforge.net/…mlrpc-c/stable xmlrpc-c
Step Four : In this step we are finally going to install libtorrent. Use the following commands one by one:
tar xvf libtorrent-0.12.9.tar.gz
Step Five : After installing libtorrent , we are going to install rtorrent with the following commands.
Step Six : With the next set of commands , we will create the necessary directories for rutorrent.
Step Seven : Our next step is to create rtorrent configuration file named .rtorrent.rc .
cp .rtorrent.rc /home/seeder1/
Once the file has been created we need to edit the file and uncomment all the configurations we need by removing # sign from those lines in the file. We can do this editing with any linux editor like Nano.
Step Eight: In this step we are going to install ruTorrent , which will be the web user interface for the libtorrent and rtorrent.
tar xvf rutorrent-3.4.tar.gz
mv rutorrent /var/www
tar xvf plugins-3.4.tar.gz
mv plugins /var/www/rutorrent
rm -rf /var/www/rutorrent/plugins/darkpal
chown -R www-data:www-data /var/www/rutorrent
Step Nine: The commands that we are going to enter in this step are meant to secure the ruTorrent that we just installed.
openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem
chmod 600 /etc/apache2/apache.pem
htdigest -c /etc/apache2/passwords seedbox seeder1
In this step you will be asked for setting up the password for the web interface.
rm -rf default
Step Ten : In this step we are going to install screen and start rtorrent. Screen is being installed so that rtorrent keeps running even after closing the command window.
apt-get install screen
screen -fa -d -m rtorrent
If you want that the rtorrent should start even after server boot or reboot, you should add the above two lines to your server’s /etc/rc.local file.
Step Eleven: Now is the time to enjoy your seedox. You can now enter http://SERVERIP/rutorrent in the browser window where SERVERIP is the IP address of your server. You will be prompted for username which is seeder1 and the password that you gave in the Step Nine.