[GUIDE] SABnzb 0.7.16

I put together a nice clean and simple guide for anybody looking to install SABnzb 0.7.16 for usenet downloading

SABnzb relies heavily on Python and download speeds take a hit

If you have a 30Mb+ internet connection I would suggest NZBGet as an alternative

Tools needed: PuTTY (Windows) or Terminal (MAC)

SSH enabed

Username: root

Password: welc0me

This type of modification is done at your own risk and will void the warranty of the drive

 

Backup your sources.list file

cp /etc/apt/sources.list /etc/apt/sources.list.bak

Add a source to the sources.list

echo deb http://ftp.us.debian.org/debian/ wheezy non-free >> /etc/apt/sources.list

Update your package lists

apt-get update

 Install the required programs…Type y when asked if you would like to proceed with the installation and hit enter

apt-get install python2.6 python-cheetah python-configobj python-feedparser python-dbus python-openssl python-support python-yenc par2

Enter /usr/share

cd /usr/share

Download the latest SABnzb source

wget sourceforge.net/projects/sabnzbdplus/files/sabnzbdplus/0.7.16/SABnzbd-0.7.16-src.tar.gz

Extract the archive

tar -xzvf SABnzbd-0.7.16-src.tar.gz

Delete the archive

rm -f SABnzbd-0.7.16-src.tar.gz

Move and rename the extracted folder

mv SABnzbd-0.7.16 sabnzbd

Enter the SABnzb folder

cd sabnzbd

Start SABnzb to create the config files (Once some text finishes scrolling Hit control and c to exit)

python SABnzbd.py

Edit the sabnzbd.ini file so we can access the GUI

sed -i 's/host = localhost/host = 0.0.0.0/g' /root/.sabnzbd/sabnzbd.ini

Now create the autostart file for init.d

nano /etc/init.d/sabnzbd

Copy the following text and paste it into the PuTTY window by right clicking

#!/bin/sh

	case "$1" in
	start)
	  # help sabnzbd to find par2, unrar etc.
	  PATH=$PATH:/usr/bin:/usr/sbin
	  echo "Starting SABnzbd."
	  /usr/bin/python2.6 /usr/share/sabnzbd/SABnzbd.py -f /root/.sabnzbd/sabnzbd.ini -d
	;;
	stop)
	  echo "Shutting down SABnzbd."
	  /usr/bin/wget -q --delete-after "http://0.0.0.0:8080/sabnzbd/api?mode=shutdown&apikey=ENTERAPIKEYHERE"
	;;
	*)
	  echo "Usage: $0 {start|stop}"
	  exit 1
	esac

	exit 0

To save the file

Hit control and o

Hit enter

Hit control and x

Change the sabnzbd permissions

chmod 755 /etc/init.d/sabnzbd

Add the script to startup

update-rc.d sabnzbd defaults

Start SABnzb

/etc/init.d/sabnzbd start

Move back your original sources.list

mv -f /etc/apt/sources.list.bak /etc/apt/sources.list

Now let’s get our API Key and fix the sabnzbd script

Login to the SABnzbd dashboard from a browser yourmybookliveip:8080

Click on Config and General and on the right side of the screen look for your API Key

Copy the key to your clipboard

Now let’s edit sabnzbd

nano /etc/init.d/sabnzbd

Look for the text that says ENTERAPIKEYHERE and delete just that text and right click to paste your API key

The line should look similar to this after you paste your API Key

/usr/bin/wget -q --delete-after "http://0.0.0.0:8080/sabnzbd/api?mode=shutdown&apikey=a6ebdd7158c2d5eg9e0ac91ad3ad5114"

Hit control and o
Hit enter
Hit control and x
This will save the new file and close nano

Now we can stop the server from SSH if needed

#Create a share from the MyBookLive dashboard for your SABnzb downloads

#To login to the SABnzbd dashboard from a browser yourmybookliveip:8080
#Setup your usenet server information
#Go to Folders
#Temporary Download Folder - /DataVolume/shares/ share you just created for downloads
#Completed Download Folder - /DataVolume/shares/ share you just created for downloads
#Permissions for completed downloads 775
#Save changes
#Finish setting up SabNZB (RSS Feeds) etc

#Done

6 Likes

Hi,

Thanks for sharing with the community. This will be helpfull for some users.

Great… :frowning:

At first I wanted to install GETnzb since you reccomend it :slight_smile: However I receive an error that i cannot find a config file…

So i wanted to install this SABnzb… but no… i receive the error that The Python module Cheetah is required

Grrr… :frowning:

Can you help me please with one of them??? Would be super!!

Hi there,
Thanks to your guide I was able to install SABnzb however I’m unable to make a SSL connection with the newsserver (the SSL option is greyed out).
When looking at the log files I noticed “…INFO::[SABnzbd:501] pyOpenSSL… NOT found - try
apt-get install python-pyopenssl (SSL is optional)”

*I downloaded pyopenssl through :

WDMyCloud:/usr/share# wget https://github.com/pyca/pyopenssl/archive/master.zip

* unzipped it

WDMyCloud:/usr/share# unzip master.zip
*build it

WDMyCloud:/usr/share/pyopenssl-master# python setup.py build

*tried to install it

WDMyCloud:/usr/share/pyopenssl-master# python setup.py install

*ended with

error: Setup script exited with error: command ‘gcc’ failed with exit status 1

Some digging around in forums indicated “:  'Your install is failing because you don’t have the python develpment headers installed”

*tried to install python-dev

apt-get install python-dev

*ended with me hitting another wall

" E: Unable to correct problems, you have held broken packages."

Any suggestions ? My python version is 2.7.

If I aptitude install python-dev I can opt for other “solutions” but not confident that this will not brick my device.

Maybe you know of another way of having SSL enabled ?

Solved the issue buy using python 2.6

Changed the script /etc/init.d/sabnzbd to use version 2.6 instead of version 2.7 and now the log shows :

2014-03-18 21:04:20,600::INFO::[SABnzbd:499] pyOpenSSL… found (True)