Install SABnzbd+ on a ReadyNas Duo

 

There is my short contribution : How to setup SABnzbd+ manually woohoo!

Install ToggleSSH:
Toggles access via SSH, useful for NETGEAR support to remotely access your box to look at or fix problems that requires deeper understanding. SSH access is disabled by default.
http://www.readynas.com/download/addons/4.00/ToggleSSH_1.0.bin

Install EnableRootSSH:
With the EnableRootSSH add-on, you can now remote login to the ReadyNAS RAIDiator shell as a root user. Initial password for root will be the same as the current FrontView admin password. Please keep in mind that NETGEAR may deny support if you.ve enabled root access.
http://www.readynas.com/download/addons/4.00/EnableRootSSH_1.0.bin

Install APT:
Debian package management utility. You will be able to run the standard Debian command ?apt-get? to download and install packages for everything you need for development, including the headers for the non-standard packages used for the ReadyNAS. See the Developer?s Corner for more information.
http://www.readynas.com/download/addons/4.00/APT_1.0.bin

Connect to the NAS via SSH (use your admin password):
ssh This email address is being protected from spambots. You need JavaScript enabled to view it.

Install dev environment:
apt-get update
apt-get install libc6-dev
apt-get install gcc
apt-get install gdb
apt-get install libtag1-dev
apt-get install uuid-dev

Prepare a place to compile sources:
mkdir /root/src/
cd /root/src/

Patch for uniq:
wget ftp://ftp.gnome.org/cdimage/snapshot/Debian/pool/main/c/coreutils/coreutils_5.2.1-2_sparc.deb
dpkg-deb -x coreutils_5.2.1-2_sparc.deb .
./usr/bin/uniq --version # should work

Install dependencies:
apt-get install unrar unzip
apt-get install par2 parchive
apt-get install gpp
apt-get install libssl-dev
apt-get install zlibc
apt-get install zlib1g-dev

Install everything:
wget http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tgz
gzip -d Python-2.5.2.tgz
tar xf Python-2.5.2.tar
cd Python-2.5.2
./configure --build=sparc-linux
make
make install
cd ..

wget http://mesh.dl.sourceforge.net/sourceforge/cheetahtemplate/Cheetah-2.0.1.tar.gz
gzip -d Cheetah-2.0.1.tar.gz
tar xf Cheetah-2.0.1.tar
cd Cheetah-2.0.1
python2.5 setup.py install
cd ..

wget http://sabnzbd.sourceforge.net/yenc-0.3.tar.gz
gzip -d yenc-0.3.tar.gz
tar xf yenc-0.3.tar
cd yenc-0.3
python2.5 setup.py install
cd ..

wget http://feedparser.googlecode.com/files/feedparser-4.1.zip
mkdir feedparser-4.1
cd feedparser-4.1
unzip ../feedparser-4.1.zip
python2.5 setup.py install
cd ..

wget http://garr.dl.sourceforge.net/sourceforge/pyopenssl/pyOpenSSL-0.8.tar.gz
tar xvzf pyOpenSSL-0.8.tar.gz
cd pyOpenSSL-0.8
python2.5 setup.py install
cd ..

wget http://heanet.dl.sourceforge.net/sourceforge/sabnzbdplus/SABnzbd-0.4.6-src.tar.gz
gzip -d SABnzbd-0.4.6-src.tar.gz
tar xf SABnzbd-0.4.6-src.tar
cd SABnzbd-0.4.6
python2.5 -OO SABnzbd.py -v

cp all files to /usr/local/src/SABnzbd/:
mkdir /usr/local/src/SABnzbd/
cp * -R /usr/local/src/SABnzbd/

Create a file /etc/init.d/sabnzbd :
#!/bin/sh
case "$1" in
start)
echo "Starting SABnzbd."
/usr/local/bin/python2.5 /usr/local/src/SABnzbd/SABnzbd.py -d -f /etc/SABnzbd/sabnzbd.ini
;;
stop)
echo "Shutting down SABnzbd."
/usr/bin/wget -q --delete-after "http://IP_ADDRESS_NAS:7777/sabnzbd/api?mode=shutdown"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0

Add it on startup:
cd /etc/rc3.d/
ln -s /etc/init.d/sabnzbd S05sabnbzd

Change file:
chmod 755 /etc/init.d

And now you’re done :-)
start the service:

/etc/init.d/sabnzbd start

edit the /etc/SABnzdb/sabnzbd.ini file to match the IP_ADDRESS_NAS and port number:

host = IP_ADDRESS_NAS
port = 7777

 

And check : http://IP_ADDRESS_NAS:7777/sabnzbd/

From the website change the settings to address your personal settings.
Advise is to change the download and cache folders because the main 'drive' where SABnzb is installed is not that big

(Based on http://www.readynas.com/forum/viewtopic.php?f=46&t=20279)