Skip to content
WJunction - Webmaster Forum

How to Install rTorrent/ruTorrent Seedbox on Ubuntu VPS

Status
Not open for further replies.
How to Install rTorrent/ruTorrent Seedbox on Ubuntu VPS

# apt-get update
# sudo 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

----

Enable scgi for Apache:
# apt-get install libapache2-mod-scgi
# ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load

----

# mkdir /install;cd /install
# svn checkout http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable xmlrpc-c
# cd xmlrpc-c
# ./configure --disable-cplusplus
# make
# make install

----

Intall libtorrent:
# cd /install
# wget http://vps6.net/src/libtorrent-0.13.0.tar.gz
# tar xvf libtorrent-0.13.0.tar.gz
# cd libtorrent-0.13.0
# ./autogen.sh
# ./configure
# make
# make install

----

Install rTorrent:
# cd /install
# wget http://vps6.net/src/rtorrent-0.9.0.tar.gz
# tar xvf rtorrent-0.9.0.tar.gz
# cd rtorrent-0.9.0
# ./autogen.sh
# ./configure --with-xmlrpc-c
# make
# make install
# ldconfig

----

Create required directories:
# mkdir /home/seeder1/rtorrent
# mkdir /home/seeder1/rtorrent/.session
# mkdir /home/seeder1/rtorrent/watch
# mkdir /home/seeder1/rtorrent/download

----

Setup .rtorrent.rc file (rTorrent config):
# cd ~/
# wget http://vps6.net/src/.rtorrent.rc
# cp .rtorrent.rc /home/seeder1/

----

(Edit the settings in .rtorrent.rc, like max upload/download speed, max connected peers, etc, as needed.)
Install rTorrent:
# cd /install
# wget http://vps6.net/src/rutorrent-3.0.tar.gz
# tar xvf rutorrent-3.0.tar.gz
# mv rutorrent /var/www
# wget http://vps6.net/src/plugins-3.0.tar.gz
# tar xvf plugins-3.0.tar.gz
# mv plugins /var/www/rutorrent
# rm -rf /var/www/rutorrent/plugins/darkpal
# chown -R www-data:www-data /var/www/rutorrent

----

Secure /rutorrent:
# 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

----

(Enter a password of your choice when prompted, you will use this to log in to the ruTorrent web UI.)
# cd /etc/apache2/sites-available/
# rm -rf default
# wget http://vps6.net/src/default
# a2ensite default-ssl
# /etc/init.d/apache2 reload

----

Install screen:
# apt-get install screen

----

Start rTorrent in a detached shell using screen:
# 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.



How to solve: This does not look like a tar archive

Problem:
Sometimes compressed files are not what they look from the extension. Recently I downloaded a .tar.gz file (say, we call it as filename.tar.gz) but when I tried to extract it, it gave error. It went something like this:
command: tar xvzf filename.tar.gz
output: tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors

Solution:
So here we go. a gzip compressed data. The best way to deal with it to use “unzip” command line tool. You can install it using this command:
sudo apt-get install gunzip
Now loaded with gunzip we are ready to tackle this file. First gunzip the file to a .tar file and then untar it using tar command somewhat in following manner:
gunzip filename.tar.gz
tar xvzf filename.tar
 
Last edited by a moderator:

4 comments

You should always try installing yourself, you'll only learn from your mistakes.

If not then, You can check with your VPS provider, most of them have pre-built and configured VPS templates.
or you can pay someone to do it, if you those instructions are difficult.
 
Really nice guide with lots of detail. However what would be the cherry on the cake is pictures :).

It's what most people want as its quick and easy.
 
Status
Not open for further replies.

About the author

J
Active Member · Joined
Forums, Internet, Upload, Download, Riping
537
Messages
55
Reactions
28
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom