Install Sick Beard (and SABnzbd) on ReadyNAS Duo

General discussion about Sick Beard or related topics

Install Sick Beard (and SABnzbd) on ReadyNAS Duo

Postby hitman » Mon Mar 21, 2011 4:10 pm

Here is what I went through to install Sick Beard and SABnzbd on my ReadyNAS Duo

The following links were used to get things started:
http://forums.sabnzbd.org/index.php?top ... 8#msg23218
http://www.thibernet.com/442-install-sa ... adynas-duo

Install SSH on ReadyNAS as per:
http://www.readynas.com/download/addons ... Cbr%20/%3E

Toggle SSH on ReadyNAS from:
http://www.readynas.com/download/addons ... SH_1.0.bin

Install apt-get on ReadyNAS from:
http://www.readynas.com/download/addons ... PT_1.0.bin

Install GIT on ReadyNAS as per:
http://www.readynas.com/forum/viewtopic ... 47&t=35533

Now ssh to ReadyNAS as the root user using something like PuTTy and carry out the following:

Code: Select all
apt-get -y update
apt-get -y install libc6-dev
apt-get -y install gcc
apt-get -y install gdb
apt-get -y install libtag1-dev
apt-get -y install uuid-dev
apt-get -y install g++
apt-get -y install curl # for GIT

mkdir /root/src/
cd /root/src/

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

apt-get -y install unrar unzip
apt-get -y install par2 parchive
apt-get -y install gpp
apt-get -y install libssl-dev
apt-get -y install zlibc
apt-get -y install zlib1g-dev
apt-get -y install sqlite
apt-get -y install libsqlite3-dev

LDFLAGS='-L/usr/local/lib'
CPPFLAGS="-I/usr/local/include"

wget http://www.sqlite.org/sqlite-autoconf-3070400.tar.gz
# New version below in case you want to try this. Adjust the commands
# After this line if you do
# wget http://www.sqlite.org/sqlite-autoconf-3070500.tar.gz
gunzip -d -c sqlite-autoconf-3070400.tar.gz | tar xf -
cd sqlite-autoconf-3070400
./configure --build=sparc-linux

# The following takes a long time
make && make install

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

LDFLAGS='-L/usr/local/lib'
CPPFLAGS="-I/usr/local/include"

## pysqlite doesnt't appear to be required but keeping a reference
## just in case
#wget http://pysqlite.googlecode.com/files/pysqlite-2.5.6.tar.gz
#gzip -d pysqlite-2.5.6.tar.gz
#tar xf pysqlite-2.5.6.tar
#cd pysqlite-2.5.6
#mv setup.cfg setup.cfg.orig
#echo "[build_ext]
#define=
#include_dirs=/usr/local/include
#library_dirs=/usr/local/lib
#libraries=sqlite3
#define=SQLITE_OMIT_LOAD_EXTENSION" > setup.cfg
#python setup.py build_static install
###Configure Python to have an alias for sqlite3
##python << EOF
##from pysqlite2 import dbapi2 as sqlite3
##exit()
##EOF

# Install Cheetah
wget http://mesh.dl.sourceforge.net/sourceforge/cheetahtemplate/Cheetah-2.0.1.tar.gz
# wget http://mesh.dl.sourceforge.net/sourceforge/cheetahtemplate/Cheetah-2.2.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 ..

# Install yenc
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 ..

# Install feedparser
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 ..

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

#Install SABnzbd
wget http://downloads.sourceforge.net/project/sabnzbdplus/sabnzbdplus/sabnzbd-0.5.6/SABnzbd-0.5.6-src.tar.gz?r=&ts=1296847932&use_mirror=ignum
gzip –d SABnzbd-0.5.6-src.tar.gz
tar xf SABnzbd-0.5.6-src.tar
cd SABnzbd-0.5.6
python2.5 -OO SABnzbd.py -v

cd ..

git clone http://github.com/midgetspy/Sick-Beard.git Sick-Beard

# Copy out of the root homedir as we don't want to run from here
cp -r /root/src/SABnzbd-0.5.6 /usr/local/bin
cp -r /root/src/Sick-Beard /usr/local/bin

# Change permissions so we can run the programs as nobody
chown -R nobody:nogroup /usr/local/bin/SABnzbd-0.5.6
ln -s /usr/local/bin/SABnzbd-0.5.6 /usr/local/bin/SABnzbd
chown -R nobody:nogroup /usr/local/bin/Sick-Beard/

# Create startup script for SABnzbd so it can run as user nobody
# If you want to nice the process to give it a lower priority add nice -19 to the beginning of the /usr/local... line
echo '#!/bin/sh
/usr/local/bin/python2.5 /usr/local/bin/SABnzbd/SABnzbd.py -d -f /usr/local/bin/SABnzbd/sabnzbd.ini' > /usr/local/bin/sabnzbd-start.sh

# Create startup script for Sick Beard so it can run as user nobody
echo '#!/bin/sh
cd  /usr/local/bin/Sick-Beard/
/usr/local/bin/python /usr/local/bin/Sick-Beard/SickBeard.py --quiet --daemon' > /usr/local/bin/sickbeard-start.sh

# Make the scripts executable
chmod a+x  /usr/local/bin/sabnzbd-start.sh
chmod a+x /usr/local/bin/sickbeard-start.sh

# Create the root startup script in /etc/init.d for SABnzbd
vi /etc/init.d/sabnzbd

# Insert the following into the file (press i to start inserting)
# Start of script
case "$1" in
start)
  echo "Starting SABnzbd."
start-stop-daemon --chuid nobody:nogroup --start --umask 0 --pidfile /var/run/sabnzbd.pid --make-pidfile \
            --exec /usr/local/bin/sabnzbd-start.sh
;;
stop)
  echo "Shutting down SABnzbd."
  /usr/bin/wget -q --delete-after "http://localhost:8080/sabnzbd/api?mode=shutdown&apikey=506a5bdbd54529f209553a3f430e7a6a"
  rm /var/run/sabnzbd.pid
;;
*)
  echo "Usage: $0 {start|stop}"
  exit 1
esac
exit 0
# End of script

# Save this file and quit vi (esc :wq)

# Create the root startup script in /etc/init.d for Sick Beard
vi /etc/init.d/sickbeard

# Insert the following into the file
# Insert the following into the file (press i to start inserting)
# Start of script
case "$1" in
start)
  echo "Starting Sick-Beard."
start-stop-daemon --chuid nobody:nogroup --start --umask 0 --pidfile /var/run/sickbeard.pid --make-pidfile \
            --exec /usr/local/bin/sickbeard-start.sh
;;
stop)
  echo "Shutting down Sick-Beard."
  /usr/bin/wget -q --delete-after "http://localhost:8081/home/shutdown"
  rm /var/run/sickbeard.pid
;;
*)
  echo "Usage: $0 {start|stop}"
  exit 1
esac
exit 0
# End of script

# Save this file and quit vi (esc :wq)

# Make the root startup scripts executable
chmod a+x /etc/init.d/sickbeard
chmod a+x /etc/init.d/sabnzbd

# Create symbolic links to enable startup
ln -s /etc/init.d/sickbeard /etc/rc3.d/S99sickbeard
ln -s /etc/init.d/sabnzbd /etc/rc3.d/S99sabnzbd



Hope this helps others trying to do the same.
Last edited by hitman on Fri Jul 13, 2012 2:54 pm, edited 1 time in total.
hitman
 
Posts: 5
Joined: Mon Mar 21, 2011 3:47 pm

Re: Install Sick Beard (and SABnzbd) on ReadyNAS Duo

Postby jillybean » Mon Mar 21, 2011 5:23 pm

Have you had this running on the ReadyNas Duo for long? Does it all run ok - particularly the 3am update? I installed SickBeard on my Duo some time ago, but found that the update & searches maxed out the cpu continually and the nas would be regularly locked up when I checked it in the morning, so I reverted to running it on an old laptop. Am interested to see if you have had more success - if so I may revisit this as an option to keeping the laptop turned on.
jillybean
 
Posts: 123
Joined: Sun Nov 21, 2010 6:14 pm

Re: Install Sick Beard (and SABnzbd) on ReadyNAS Duo

Postby hitman » Tue Mar 22, 2011 7:49 am

I have had it running on a ReadyNAS for a while and haven't noticed any issues. Admittedly, this has been on ReadyNAS' I have configured for others but usually they are with me for a while and I didn't notice any issues during this time.

The only issue to note of was upon installation of some of the packages CPU may have ramped up as the fans on the ReadyNAS started howling. However, after installation it quietened down again.
hitman
 
Posts: 5
Joined: Mon Mar 21, 2011 3:47 pm

Re: Install Sick Beard (and SABnzbd) on ReadyNAS Duo

Postby reinder83 » Wed May 11, 2011 6:56 am

I got problems with the git command:
Code: Select all
NAS:~/src# git clone https://github.com/midgetspy/Sick-Beard.git

GNU Interactive Tools 4.3.20 (sparc-unknown-linux-gnu), 23:30:02 Jan 26 2005
GIT is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation; either version 2, or (at your option) any later version.
Copyright (C) 1993-1999 Free Software Foundation, Inc.
Written by Tudor Hulubei and Andrei Pitis, Bucharest, Romania

git: fatal error: `chdir' failed: permission denied.
NAS:~/src#


Any idea how I solve this or is there another way besides git to get sickbeard on the NAS?
reinder83
 
Posts: 2
Joined: Wed May 11, 2011 6:53 am

Re: Install Sick Beard (and SABnzbd) on ReadyNAS Duo

Postby jillybean » Wed May 11, 2011 5:43 pm

There are now addons for both SABnzbd & Sick Beard available here for a small fee.
jillybean
 
Posts: 123
Joined: Sun Nov 21, 2010 6:14 pm

Re: Install Sick Beard (and SABnzbd) on ReadyNAS Duo

Postby reinder83 » Thu May 12, 2011 3:58 am

Ok, I managed to get it working by downloading the code from this git website, and put this in in /usr/local/bin and follow like the tutorial says here.
reinder83
 
Posts: 2
Joined: Wed May 11, 2011 6:53 am

Re: Install Sick Beard (and SABnzbd) on ReadyNAS Duo

Postby pertoft » Mon Sep 10, 2012 8:12 am

You can download python for Readynas Duo free here[url]: http://minfejl.dk/readynas[/url]

BR,
Per
pertoft
 
Posts: 1
Joined: Mon Sep 10, 2012 8:11 am

Re: Install Sick Beard (and SABnzbd) on ReadyNAS Duo

Postby simonclark12 » Wed Jan 23, 2013 6:57 am

jillybean wrote:There are now addons for both SABnzbd & Sick Beard available here for a small fee.



Thanks for the information but from where i download the link .i am using window 7 as an operating system .
simonclark12
 
Posts: 1
Joined: Wed Jan 23, 2013 6:47 am


Return to General

Who is online

Users browsing this forum: No registered users and 2 guests

cron