rTorrent, ruTorrent, RSS, ReadyNAS 102

Basically, I followed this link…
But had some minor issues. Writing this to jog my memory if I ever have to do it again.

Netgear ReadyNAS 102 firmware: 6.2.5
Used PuTTY on windows

Step one… configure apt, open /etc/apt/sources.list and amend
deb http://mirrors.kernel.org/debian wheezy main contrib non-free
# apt-get update

Step two… install packages
# apt-get install libapache2-mod-php5 libapache2-mod-scgi rtorrent dtach

Step three… create user and group
# adduser --group --system --shell /bin/false rtorrent

Step four… create session dir
# mkdir /var/rtorrent

Step five… create config file. I don’t think this matters in the end, because I have made config changes through ruTorrent, then checked every .rtorrent.rc file and the change is not reflected in any. But, I could not get rtorrent to run correctly through terminal unless I created the file in /root. So, create /root/.rtorrent.rc
directory = /path/to/my/downloads
session = /var/rtorrent
scgi_port = localhost:5000
use_udp_trackers = yes
dht = auto
dht_port = 41000
port_range = 41001-41011

Step six… set permissions
# chown -R rtorrent:rtorrent /var/rtorrent /home/rtorrent

Step seven… test rTorrent. This where I had another trip, some errors, can’t remember exactly what they were, but I just ignored them. If I just ran rTorrent by typing # rtorrent, it loaded fine. It did throw an ‘epoll’ thing x3, but I did not now what that meant either… test if you want, otherwise run # rtorrent (CTRL-q to quit)…
# su - rtorrent -s /bin/sh /usr/bin/rtorrent
# rtorrent -s /bin/sh /usr/bin/rtorrent

Step eight… create init script /etc/init.d/rtorrent. I have the file saved elsewhere, if you’re reading this and cant access rebootr’s blog above, message me and I can supply it 🙂

Step nine… install init script
# chmod +x /etc/init.d/rtorrent
# update-rc.d rtorrent defaults

Step ten… test init script
# service rtorrent start
Double check if it works, don’t remember this much, threw some results, I think it was fine
# ps -ef | grep rtorrent

Step eleven… get ruTorrent. I looked at 3.7, but could not work out how to d/l the tar.gz, so went with rebootr’s step… I actually still have the 3.6.tar.gz for future aswell
# wget http://dl.bintray.com/novik65/generic/rutorrent-3.6.tar.gz
# tar xzf rutorrent-3.6.tar.gz -C /var/www

Step twelve… config Apache, open /etc/apache2/mods-available/scgi.load and amend
LoadModule scgi_module /usr/lib/apache2/modules/mod_scgi.so

# Perform SCGIMount for rtorrent / rutorrent

open/create /etc/apache2/sites-available/rutorrent

<Virtual Host *:80>
ServerName rutorrent.nas
DocumentRoot /var/www/rutorrent
ErrorLog /var/log/apache2/rutorrent.error.log
CustomLog /var/log/apache2/rutorrent.access.log combined
</Virtual Host>

enable configs…
# cd /etc/apache2/mods-enabled && ln -s ../mods-available/scgi.load
# cd /etc/apache2/sites-enabled && ln -s ../sites-available/rutorrent 010-rutorrent

test apache, check below first though…
# apache2ctl configtest
this is another trip up I had. there were a couple of files that would throw LSB issues. one was leafp2p, and another that I don’t remember. I had to amend these files to include…
# Provides: leafp2p
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: P2P functionality for addons and applications

clearly not exactly the same for the file I can’t remember, hopefully if I ever have to do this again, it will all come back to me 🙂 Anyway, once test goes fine, move on…
# service apache2 reload

Step thirteen… configure desktop
On Windows: open c:\windows\system32\drivers\etc\hosts
On UNIX-like OSes: open /etc/hosts
and add… rutorrent.nas
where is your NAS ip

Step fourteen… get rss plugin… maybe long winded, but this is how I did it…
download rutorrent-master.zip here (I also have this saved)
extract, open to plugin folder and copy rss folder and files to /var/www/rutorrent/plugins

Step fifteen… add rutorrent.nas to browser favorites 🙂
Should be it, open rutorrent, check rss, etc etc etc…



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s