How to Install rTorrent/ruTorrent Seedbox on Ubuntu VPS

0
1407

This tutorial will guide you through the installation of libtorrent 0.13.0, rTorrent 0.9, and the ruTorrent Web UI (3.0) on a Debian or Ubuntu system.

It has been tested with Debian 6 (x64) and Ubuntu 11.04 (x64).

To begin, access your VPS via SSH and run the following to update your platform and install some needed dependencies:

#

Code:
 apt-get update

#

Code:
sudo apt-get install subversion build-essential automake libtool libcppunit-dev libcurl3-dev libsigc++-2.0-dev unzip unrar-free curl libncurses-dev

#

Code:
apt-get install apache2 php5 php5-cli php5-curl

Enable scgi for Apache:

#

Code:
apt-get install libapache2-mod-scgi

#

Code:
ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load

Install XMLRPC:

#

Code:
 mkdir /install;cd /install

#

Code:
svn checkout http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable xmlrpc-c

#

Code:
cd xmlrpc-c

#

Code:
./configure --disable-cplusplus

#

Code:
make

#

Code:
make install

Intall libtorrent:

#

Code:
cd /install

#

Code:
wget http://vps6.net/src/libtorrent-0.13.0.tar.gz

#

Code:
tar xvf libtorrent-0.13.0.tar.gz

#

Code:
cd libtorrent-0.13.0

#

Code:
./autogen.sh

#

Code:
./configure

#

Code:
 make

#

Code:
make install

Install rTorrent:

#

Code:
cd /install

#

Code:
wget http://vps6.net/src/rtorrent-0.9.0.tar.gz

#

Code:
cd rtorrent-0.9.0

#

Code:
./autogen.sh

#

Code:
./configure --with-xmlrpc-c

#

Code:
make

#

Code:
make install

#

Code:
ldconfig

Create required directories:

#

Code:
mkdir /home/seeder1/rtorrent

#

Code:
mkdir /home/seeder1/rtorrent/.session

#

Code:
 mkdir /home/seeder1/rtorrent/watch

#

Code:
mkdir /home/seeder1/rtorrent/download

Setup .rtorrent.rc file (rTorrent config):

#

Code:
cd ~/

#

Code:
wget http://vps6.net/src/.rtorrent.rc

#

Code:
cp .rtorrent.rc /home/seeder1/

(Edit the settings in .rtorrent.rc, like max upload/download speed, max connected peers, etc, as needed.)

Install rTorrent:

#

Code:
cd /install

#

Code:
wget http://vps6.net/src/rutorrent-3.0.tar.gz

#

Code:
tar xvf rutorrent-3.0.tar.gz

#

Code:
mv rutorrent /var/www

#

Code:
wget http://vps6.net/src/plugins-3.0.tar.gz

#

Code:
 tar xvf plugins-3.0.tar.gz

#

Code:
mv plugins /var/www/rutorrent

#

Code:
 rm -rf /var/www/rutorrent/plugins/darkpal

#

Code:
chown -R www-data:www-data /var/www/rutorrent

Secure /rutorrent:

#

Code:
a2enmod ssl

#

Code:
a2enmod auth_digest

#

Code:
a2enmod scgi

#

Code:
openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem

#

Code:
chmod 600 /etc/apache2/apache.pem

#

Code:
htdigest -c /etc/apache2/passwords seedbox seeder1

(Enter a password of your choice when prompted, you will use this to log in to the ruTorrent web UI.)

#

Code:
cd /etc/apache2/sites-available/

#

Code:
rm -rf default

#

Code:
wget http://vps6.net/src/default

#

Code:
a2ensite default-ssl

#

Code:
 /etc/init.d/apache2 reload

Install screen:

#

Code:
apt-get install screen

Start rTorrent in a detached shell using screen:

#

Code:
screen -fa -d -m rtorrent

(To start rtorrent automatically after reboots, add the above command to /etc/rc.local)

Setup is now complete! Access ruTorrent at http://xx.xx.xx.xx/rutorrent/ (replace xx.xx with your server’s IP address). You should be greeted with a login prompt, where the username is “seeder1” and the password is the one you set above in the “secure /rutorrent” section.

Leave A Reply

Please enter your comment!
Please enter your name here