ruTorrent – How to Setup on a VPS with rTorrent and libTorrent

rutorrentThis 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 update

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
cd xmlrpc-c
./configure –disable-cplusplus
make
make install

Step Four : In this step we are finally going to install libtorrent. Use the following commands one by one:

cd /install
wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.9.tar.gz
tar xvf libtorrent-0.12.9.tar.gz
cd libtorrent-0.12.9
./autogen.sh
./configure
make
make install

Step Five : After installing libtorrent , we are going to install rtorrent with the following commands.

cd /install
wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.9.tar.gz
cd rtorrent-0.8.9
./autogen.sh
./configure –with-xmlrpc-c
make
make install
ldconfig

 Step Six : With the next set of commands , we will create the necessary directories for rutorrent.

mkdir /home/seeder1/rtorrent
mkdir /home/seeder1/rtorrent/.session
mkdir /home/seeder1/rtorrent/watch
mkdir /home/seeder1/rtorrent/download

Step Seven : Our next step is to create rtorrent configuration file named .rtorrent.rc .

cd ~/
wget http://libtorrent.rakshasa.no/browser/trunk/rtorrent/doc/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.

cd /install
wget http://code.google.com/p/rutorrent/downloads/detail?name=rutorrent-3.4.tar.gz
tar xvf rutorrent-3.4.tar.gz
mv rutorrent /var/www

wget http://code.google.com/p/rutorrent/downloads/detail?name=plugins-3.4.tar.gz&can=2&q=
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.

a2enmod ssl
a2enmod auth_digest
a2enmod scgi
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.

cd /etc/apache2/sites-available/
rm -rf default
wget http://vps6.net/src/default
a2ensite default-ssl
/etc/init.d/apache2 reload

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.

 

 

 

 

 

 

 

 

Leave a Reply