Advertisement
Marchall

How to Install rTorrent/ruTorrent Seedbox on Ubuntu VPS

Sep 22nd, 2012
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.31 KB | None | 0 0
  1. How to Install rTorrent/ruTorrent Seedbox on Ubuntu VPS
  2.  
  3. 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).
  4.  
  5. To begin, access your VPS via SSH and run the following to update your platform and install some needed dependencies:
  6.  
  7.     # apt-get update
  8.     # sudo apt-get install subversion build-essential automake libtool libcppunit-dev libcurl3-dev libsigc++-2.0-dev unzip unrar-free curl libncurses-dev
  9.     # apt-get install apache2 php5 php5-cli php5-curl
  10.  
  11. Enable scgi for Apache:
  12.  
  13.     # apt-get install libapache2-mod-scgi
  14.     # ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load
  15.  
  16. Install XMLRPC:
  17.  
  18.     # mkdir /install;cd /install
  19.     # svn checkout http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable xmlrpc-c
  20.     # cd xmlrpc-c
  21.     # ./configure --disable-cplusplus
  22.     # make
  23.     # make install
  24.  
  25. Intall libtorrent:
  26.  
  27.     # cd /install
  28.     # wget http://vps6.net/src/libtorrent-0.13.0.tar.gz
  29.     # tar xvf libtorrent-0.13.0.tar.gz
  30.     # cd libtorrent-0.13.0
  31.     # ./autogen.sh
  32.     # ./configure
  33.     # make
  34.     # make install
  35.  
  36. Install rTorrent:
  37.  
  38.     # cd /install
  39.     # wget http://vps6.net/src/rtorrent-0.9.0.tar.gz
  40.     # cd rtorrent-0.9.0
  41.     # ./autogen.sh
  42.     # ./configure --with-xmlrpc-c
  43.     # make
  44.     # make install
  45.     # ldconfig
  46.  
  47. Create required directories:
  48.  
  49.     # mkdir /home/seeder1/rtorrent
  50.     # mkdir /home/seeder1/rtorrent/.session
  51.     # mkdir /home/seeder1/rtorrent/watch
  52.     # mkdir /home/seeder1/rtorrent/download
  53.  
  54. Setup .rtorrent.rc file (rTorrent config):
  55.  
  56.     # cd ~/
  57.     # wget http://vps6.net/src/.rtorrent.rc
  58.     # cp .rtorrent.rc /home/seeder1/
  59. (Edit the settings in .rtorrent.rc, like max upload/download speed, max connected peers, etc, as needed.)
  60.  
  61. Install rTorrent:
  62.  
  63.     # cd /install
  64.     # wget http://vps6.net/src/rutorrent-3.0.tar.gz
  65.     # tar xvf rutorrent-3.0.tar.gz
  66.     # mv rutorrent /var/www
  67.     # wget http://vps6.net/src/plugins-3.0.tar.gz
  68.     # tar xvf plugins-3.0.tar.gz
  69.     # mv plugins /var/www/rutorrent
  70.     # rm -rf /var/www/rutorrent/plugins/darkpal
  71.     # chown -R www-data:www-data /var/www/rutorrent
  72.  
  73. Secure /rutorrent:
  74.  
  75.     # a2enmod ssl
  76.     # a2enmod auth_digest
  77.     # a2enmod scgi
  78.     # openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem
  79.     # chmod 600 /etc/apache2/apache.pem
  80.     # htdigest -c /etc/apache2/passwords seedbox seeder1
  81. (Enter a password of your choice when prompted, you will use this to log in to the ruTorrent web UI.)
  82.     # cd /etc/apache2/sites-available/
  83.     # rm -rf default
  84.     # wget http://vps6.net/src/default
  85.     # a2ensite default-ssl
  86.     # /etc/init.d/apache2 reload
  87.  
  88. Install screen:
  89.  
  90.     # apt-get install screen
  91. Start rTorrent in a detached shell using screen:
  92.     # screen -fa -d -m rtorrent
  93. (To start rtorrent automatically after reboots, add the above command to /etc/rc.local)
  94.  
  95. 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.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement