Howto CentOS RuTorrent Seedbox!

Many of you will find detailed tutorials on the internet for setting up a seedbox though many include steps that are unnecessary or resource intensive.

Here is a detailed tutorial on how to setup a very efficient seedbox that is secure and works!

I personally recommend that you host this script on a Dedicated Server, though you could also use a VPS.

An article of mine regarding VPS comparisons can be found at the tab on the top of my site named Dedi or VPS?.

 

The provided links are straight from their sources, if any of them are not working I will provide links for them.

step 1:
To install libTorrent and rTorrent first we install the dependencies for compiling these scripts.

yum install gcc gcc-c++ m4 make automake libtool pkgconfig perl openssl-devel ncurses-devel mod_ssl openssl-devel apache2 php php-cli screen ncurses subversion

step 2:
Download XMLRPC-C, curl, libsigc++, libtorrent and rtorrent

cd /tmp
svn checkout http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable xmlrpc-c
wget http://curl.haxx.se/download/curl-7.19.7.tar.gz
wget http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/libsigc++-2.2.4.tar.gz
wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.6.tar.gz
wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.6.tar.gz

step 3:
Extract curl, libsigc++, libtorrent and rtorrent

tar -xvzf curl-7.19.7.tar.gz
tar -xvzf libsigc++-2.2.4.tar.gz
tar -xvzf libtorrent-0.12.6.tar.gz
tar -xvzf rtorrent-0.8.6.tar.gz

step 4:
Compile curl

cd curl-7.19.7
./configure
make
make install
cd ..

step 5:
Compile libsigc++

cd libsigc++-2.2.4
./configure
make
make install
cd ..

step 6:
Compile libtorrent

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
cd libtorrent-0.12.6
rm -f scripts/{libtool,lt*}.m4
./autogen.sh
./configure
make
make install
cd ..

step 7:
Compile XMLRPC-C

cd xmlrpc-c
./configure
make
make install
cd ..

This installed xmlrpc-c-config to /usr/local/bin/xmlrpc-c-config

You can verify this by typing:

which xmlrpc-c-config

It will return with /usr/local/bin/xmlrpc-c-config

step 8:
Compile rtorrent

cd rtorrent-0.8.6
rm -f scripts/{libtool,lt*}.m4
./autogen.sh
./configure --with-xmlrpc-c=/usr/local/bin/xmlrpc-c-config
make
make install
cd ~

step 9:
Download the rtorrent sample config file and rename it

wget http://libtorrent.rakshasa.no/export/1105/trunk/rtorrent/doc/rtorrent.rc
mv rtorrent.rc .rtorrent.rc

You have to modify the content of .rtorrent.rc file to configure the settings of rTorrent as you needed and place the file into

your user directory. Or if you are feeling lazy, feel free to download the one I use here,

cd ~

wget http://myownseedbox.com/.rtorrent.rc
make sure to add this line if you downloaded the config file straight from the source

scgi_port = 127.0.0.1:5000

step 10:
Download rutorrent

cd /var/www/html
svn co http://rutorrent.googlecode.com/svn/trunk/rutorrent

This plugin is needed for connecting rutorrent to rtorrent

cd /var/www/html/rutorrent/plugins
svn co http://rutorrent.googlecode.com/svn/trunk/plugins/rpc

Please remember to change the file permissions, as this is necessary unless using SELinux or SuPHP.

chmod 777 -R /var/www/html/rutorrent

NOTE: Changing file permissions to 777 imposes a large risk if accessible via the web, creating a .htaccess to protect the directory is the best way to protect this.

step 11 :
Start rtorrent

cd ~
SCREEN -A -m -d -S rtorrent rtorrent

Screen allows for the script to continue running in the background

Now you may view your newly setup seedbox! Just go to http://myserverip/rutorrent