SABNZBD Installation / Configuration

Installing / Configuration

  1. 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
  1. Untar
>tar xvf SABnzbd-0.5.6-src.tar.gz
  1. Install python-devel
>sudo zypper in python-devel
  1. Install Cheetah
> sudo zypper in python-setuptools
> sudo easy_install cheetah

  1. Install python-openssl (for SSL connections to newhosting server)
> sudo zypper in python-openssl
  1. 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
  1. 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
  1. Open up port 8080 in firewall through Yast
    a. Security → Firewall → Allowed Service → Click Advanced → Add 8080 to TCP ports

  2. 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

  1. CTRL – C and kill SABNZB

  2. Run SABNZB once again
    -Goto URL http://:8080/sabnzbd
    -Continue wizard though web browser setting everything up

Daemonizing

  1. superuser
> su –
  1. Create the script
# vi /etc/init.d/sabdaemon
  1. 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
  2. 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

  1. Try and start SABNZB through startup script

sudo /etc/init.d/sabdaemon start

No Errors….just shows “Starting SABnzbd.” This is good…

  1. 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

  1. 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
  1. When computer is rebooted SABNZBD will automatically start in specified run times.
    -any computer on network can access it:
    http://<IP>:8080/sabnzbd/

Wow, what a detailed how to on the installation SABnzbd. Thanks for your efforts jyas80. I must tell you I had to look up just what SABnzbd was and perhaps if you don’t know you don’t need it. On the other hand, it looks very interesting, so take a look here for some help on the subject.

SABnzbd - Wikipedia, the free encyclopedia

SABnzbd.org : Home of SABnzbd+, the Full-Auto Newsreader

Thank You,

Thanks. The last couple times I have had to install it I could never find a decent “how to” guide so figured I would post one here.

Like you had mentioned…if you don’t know what it is…you probably don’t need it :slight_smile:

Hopefully this will save someone some grief in the future.