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