Monday, April 1, 2013

Installing ruTorrent on CentOS and Debian


ruTorrent Logo

What is a Seedbox?

Simply, a seedbox is a server used for downloading and uploading files. A seedbox is usually used to run and download torrents which can later be downloaded through FTP.
Seedboxes have a very fast internet connection (100 mbps, 1gbps...)

I'm going to use a script to auto install everything to avoid some hardcore configurations. This is the quickest method of turning a server into a seedbox. It was tested on a fresh CentOS6 64 bit installation and a fresh Debian6 64 bit installation. The server has 256 MB RAM and 512 MB Burst RAM, although 256MB should be fine.


Installing ruTorrent on CentOS 6


First let's update all our current packages:
yum update
Make sure wget is installed to download the installer:
yum install wget
Then we download the installer:
wget --no-check-certificate https://raw.github.com/etiennerached/rutorrent-auto-installer-centos/master/rutorrent-installer.sh
And run it:
sh rutorrent-installer.sh

The installer will start, you can keep the default settings by pressing enter, or just choose the ones you want.
I'm going to use Apache as the web server and install ruTorrent to manage the torrents from a web interface.
 
Seedbox Installation

Next, we create a torrent user, I will call mine "tor" for this tutorial. And we install the FTP server with a secure encrypted connection (FTPES), I will choose port number 666.

If you would like to manage your server from a web-interface, you can install webmin, which by default will run on port 10000.
Seedbox Installation

After choosing all the settings, we press Enter to install and configure. This might take around 5 minutes, depending on the server speed. If Webmin is to be installed, more configuration has to be done after few minutes, pressing enter and leaving the default value is OK.

To access the webinterface, go to your-domain-name/rutorrent, or Server-IP-Address/rutorrent, enter the username you chose (tor in my case) and the password.

ruTorrent Interface

To access the FTP, make sure you choose the port number that was selected during the installation (666 in this tutorial), and select FTP over explicit TLS or SSL. Make sure you accept the certificate. The downloaded files will be located in the downloads directory.
Ftp



Happy Torrenting!



Installing ruTorrent on Debian 6

First let's update all our current packages:
apt-get update
Then we download the installer:
wget --no-check-certificate https://raw.github.com/etiennerached/rutorrent-auto-installer-centos/master/rutorrent-installer.sh
And run it:
sh rutorrent-installer.sh
or
sudo rutorrent-installer.sh

The installer will start, you can keep the default settings by pressing enter, or just choose the ones you want.
I'm going to use Apache as the web server and install ruTorrent to manage the torrents from a web interface.
 
Seedbox Installation

Next, we create a torrent user, I will call mine "tor" for this tutorial. And we install the FTP server with a secure encrypted connection (FTPES), I will choose port number 666.

If you would like to manage your server from a web-interface, you can install webmin, which by default will run on port 10000.
Seedbox Installation

After choosing all the settings, we press Enter to install and configure. This might take around 5 minutes, depending on the server speed. If Webmin is to be installed, more configuration has to be done after few minutes, pressing enter and leaving the default value is OK.

To access the webinterface, go to your-domain-name/rutorrent, or Server-IP-Address/rutorrent, enter the username you chose (tor in my case) and the password.

ruTorrent Interface

If the webinterface is not loaded correctly, try to re-install irssi.

sudo apt-get install irssi

To access the FTP, make sure you choose the port number that was selected during the installation (666 in this tutorial), and select FTP over explicit TLS or SSL. Make sure you accept the certificate. The downloaded files will be located in the downloads directory.
FTP Login


Note:

If you get the below error when you access rutorrent:
AutodlIrssiTab._getNewLines: Exception info: name = TypeError; message = $.browser is undefined; fileName = https://xxx.xxx.xxx.xxx/rutorrent/plugins/autodl-irssi/AutodlFilesDownloader.js; lineNumber = 28;
or
Error downloading files. Make sure autodl-irssi is started and configured properly (eg. password, port number): AutodlFilesDownloader.downloadAllFiles: Exception info: name = TypeError; message = $.browser is undefined; fileName = https://xxx.xxx.xxx.xxx/rutorrent/plugins/autodl-irssi/AutodlFilesDownloader.js; lineNumber = 28;

Go back to SSH and type the following command:
vi /var/rutorrent/rutorrent/plugins/autodl-irssi/AutodlFilesDownloader.js
Press "i" to go into editing mode, and replace:
if ($.browser.msie)
with
if ($.browser={ msie: ( navigator.appName == 'Microsoft Internet Explorer') ? true : false })
Press ESC to exit editing mode. Press :w to save. Press :q to quit.



If you are on CentOS 7:
Apache and mod_scgi does not work well on CentOS 7 yet. If you are on CentOS 7 You should choose nginx for now while installing.

And make sure to allow the http/https ports in the firewall:
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --reload


Happy Torrenting!



Have some questions? Leave us a comment below!