Installing / Configuration
- Download tar
>wget http://downloads.sourceforge.net/project/sabnzbdplus/sabnzbdplus/sabnzbd-0.5.6/SABnzbd-0.5.6-src.tar.gz?r=http%3A%2F%2Fsabnzbd.org%2Fdownload%2F&ts=1299214117&use_mirror=surfnet
- Untar
>tar xvf SABnzbd-0.5.6-src.tar.gz
- Install python-devel
>sudo zypper in python-devel
- Install Cheetah
> sudo zypper in python-setuptools
> sudo easy_install cheetah
- Install python-openssl (for SSL connections to newhosting server)
> sudo zypper in python-openssl
- Install yenc
> sudo zypper in gcc
> wget http://sabnzbd.sourceforge.net/yenc-0.3.tar.gz
> tar xzvf yenc-0.3.tar.gz
> cd yenc-0.3
> sudo python setup.py build
> sudo python setup.py install
- Install UNRAR
> sudo zypper in unrar
8 ) Install PAR2 (and remove the downloaded RPM)
> wget http://www.openftd.org/releases/openSUSE_11.1/x86_64/par2cmdline-0.4-3.3.x86_64.rpm
> sudo zypper in par2cmdline-0.4-3.3.x86_64.rpm
> rm par2cmdline-0.4-3.3.x86_64.rpm
-
Open up port 8080 in firewall through Yast
a. Security → Firewall → Allowed Service → Click Advanced → Add 8080 to TCP ports -
Check to see if all dependencies are installed and use wizard
> python /<directory>/SABnzbd.py
-I want SABnzbd to be viewable by any pc on my network.
-when stepping through wizard make sure to deselect auto start web browser
-you can setup your server details information later on – just to next
-
CTRL – C and kill SABNZB
-
Run SABNZB once again
-Goto URL http://:8080/sabnzbd
-Continue wizard though web browser setting everything up
Daemonizing
- superuser
> su –
- Create the script
# vi /etc/init.d/sabdaemon
- Insert script below
a. Modify USERNAME to equal your user (DO NOT USE root)
b. Change directory
c. From the SABNZB page create a API key and copy/paste it to the script - CHMOD sabdaemon for execution
# chmod 775 sabdaemon
# exit
#!/bin/sh
#
### BEGIN INIT INFO
# Provides: sabdaemon
# Required-Start: $network
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Starts sabnzbd at system startup
### END INIT INFO
#
case "$1" in
start)
echo "Starting SABnzbd."
/usr/bin/sudo -u USERNAME -H "/<directory>/SABnzbd.py" -d -f /home/USERNAME/.sabnzbd/sabnzbd.ini
;;
stop)
echo "Shutting down SABnzbd."
/usr/bin/wget -q --delete-after "http://localhost:8080/sabnzbd/api?mode=shutdown&apikey=ENTERAPIKEYHERE"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
- Try and start SABNZB through startup script
sudo /etc/init.d/sabdaemon start
No Errors….just shows “Starting SABnzbd.” This is good…
- Try and stop SABNZB through startup script
sudo /etc/init.d/sabdaemon stop
No Errors….just shows “Starting SABnzbd.” This is good…
API KEY MUST BE ENTERED ON SCRIPT IN ORDER TO WORK
Automatically start SABNZBD in different runtimes
- Go to Yast
> su –
# yast2
Go To: System Services (Runlevel)
Check: Expert Mode
Select SABNZBD
Ensure 3 and 5 are checked (if you wish)
Exit Yast
# exit
- When computer is rebooted SABNZBD will automatically start in specified run times.
-any computer on network can access it:
http://<IP>:8080/sabnzbd/