Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to install and run rTorrent/ruTorrent on a seedbox
- Notes
- This guide is going to make a new user named seeder1 and will install everything as if this is going to be your seed account. Feel free to change this name but do make sure you change it EVERYWHERE.
- You can probably do more parts of this guide from the root user saving you the trouble of having to always type "sudo" infront of the commands however this does allow for the problem that the user running the rtorrent program can't access all other files thus causing trouble with plugins of even the entire program not running. I find it safest to just do it like this.
- The guide
- 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), Ubuntu 11.04 (x86_64) and Ubuntu 12.04 (x64).
- To start, access your VPS or dedicated server 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
- Next step is to add a user under whose name the entire system is going to run.
- adduser seeder1
- Answer the questions asked and make sure you remember the password.
- Add the user to the list of sudoers (for some basic help with the editor VI look here :http://www.unix-manuals.com/tutorials/vi/vi-in-10-1.html
- vi /etc/sudoers
- Find the part where it says "root ALL=(ALL:ALL) ALL" and add a new line (go to correct line, press the [ i ] key and enter what it says below. Once done press the [ esc ] key
- Seeder1 ALL=(ALL:ALL) ALL
- Save the file and exit (in vi you do this by pressing :wq[ enter ])
- Close the ssh connection and restart it with the new user you just created. Then continue
- Enable scgi for Apache:
- sudo apt-get install libapache2-mod-scgi
- sudo ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load
- Install XMLRPC:
- sudo mkdir /install;cd /install
- sudo svn checkout http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable xmlrpc-c
- sudo cd xmlrpc-c
- sudo ./configure --disable-cplusplus
- sudo make
- sudo make install
- Intall libtorrent:
- cd /install
- sudo wget http://vps6.net/src/libtorrent-0.13.0.tar.gz
- sudo tar xvf libtorrent-0.13.0.tar.gz
- sudo cd libtorrent-0.13.0
- sudo ./autogen.sh
- sudo ./configure
- sudo make
- sudo make install
- Install rTorrent:
- cd /install
- sudo wget http://vps6.net/src/rtorrent-0.9.0.tar.gz
- sudo cd rtorrent-0.9.0
- sudo ./autogen.sh
- sudo ./configure --with-xmlrpc-c
- sudo make
- sudo make install
- sudo 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
- (Edit the settings in .rtorrent.rc, like max upload/download speed, max connected peers, etc, as needed.)
- vi .rtorrent.rc
- Install rTorrent:
- cd /install
- sudo wget http://vps6.net/src/rutorrent-3.0.tar.gz
- sudo tar xvf rutorrent-3.0.tar.gz
- sudo mv rutorrent /var/www
- sudo wget http://vps6.net/src/plugins-3.0.tar.gz
- sudo tar xvf plugins-3.0.tar.gz
- sudo mv plugins /var/www/rutorrent
- sudo rm -rf /var/www/rutorrent/plugins/darkpal
- sudo chown -R www-data:www-data /var/www/rutorrent
- Secure /rutorrent:
- sudo a2enmod ssl
- sudo a2enmod auth_digest
- sudo a2enmod scgi
- sudo openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem
- sudo chmod 600 /etc/apache2/apache.pem
- sudo 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/
- sudo rm -rf default
- sudo wget http://vps6.net/src/default
- sudo a2ensite default-ssl
- sudo /etc/init.d/apache2 reload
- Install screen:
- sudo 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.
- Thanks to DrkNess who originally posted this in the Tutorials Forum
- If all that code scares you try the Remote Deluge setup section of the Kimsufi 2G Guide
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement