How to Install rTorrent/ruTorrent on Debian/Ubuntu VPS
This tutorial will guide you through the setup of a fully-featured seedbox running on a Debian or Ubuntu system, including:
- libtorrent 0.13.0
- rTorrent 0.9
- ruTorrent Web UI (3.0)
This guide has been tested with Debian 6 (x86_64) and Ubuntu 11.04 (x86_64).
To start, access your VPS via SSH (as the root user) and do the following to update your platform and install some required dependencies:
# 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
Enable scgi for Apache:
# apt-get install libapache2-mod-scgi
# ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load
Install XMLRPC:
Intall libtorrent:
Install rTorrent:
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):
(Edit the settings in .rtorrent.rc, like max upload/download speed, max connected peers, etc, as needed.)
Install rTorrent:
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 when the VPS is booted, add the above command to /etc/rc.local)
You can now 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.
No No No! Don't recompile Apache unnecesarily !!!
Quote:
Originally Posted by
R00T
while my apache points fine to /var/www it cant load any website on the /home directory. after spending a few nights with my friend google i discovered that apache points to /var/www by default not to /home, and you need a custom compiled version in order to run /home virtual servers.
what i need now is a method to solve this issue...
thanks in advance
These instructions were given for Debian. Each distro is different. In debian, you prolly want to use the "Alias" directive, to keep in line with the way it is typically done on that distro.
Code:
Alias /btpiraten/ /home/joe/www/btpiraten/
If your server is http://joe.sld.tld, then the alias above (Placed in the original VirtualHost container), will render the pages you want with:
Code:
http://joe.sld.tld/btpiraten/
Unnecessarily recompiling Apache won't add anything you need, that you don't already have.
If you want a completely different host to answer (requires an entry in /etc/hosts on the client or in DNS or NIS), then, something like the following will work for you:
Code:
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
ServerAdmin joe@joe.sld.tld
DocumentRoot "var/www"
ServerName joe.sld.tld
ServerAlias www.sld.tld
ErrorLog "/var/log/httpd/joe.sld.tld-error_log"
CustomLog "/var/log/httpd/joe.sld.tld-access_log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin joe@sld.tld
DocumentRoot "/home/joe/btpiraten"
ServerName btpiraten.sld.tld
ErrorLog "/var/log/httpd/btpiraten.sld.tld-error_log"
CustomLog "/var/log/httpd/btpiraten.sld.tld-access_log" common
</VirtualHost>
And now you would type:
or
To reach the regular/old/default site you originally had, and:
Code:
http://btpiraten.sld.tld
To reach the new rTorrent site you installed under your home directory (or anywhere else you decide to put it.
I hope that helps :)
Kindest regards,
.