Login for certain variables to be updated with your own slot's information

SABnzbd

What is it?

SABnzbd is an Open Source Binary Newsreader written in Python.

Installation

virtualenv

Follow the instructions in the virtualenv article to install and activate a Python 2.7 virtual environment. If you have previously set up a virtualenv, you may choose to re-use it or create a new one with a different name.

Cheetah

  1. Install cheetah using pip.

     pip install cheetah
    

SABnzbd (Method 1 - without update)

  1. Download SABnzbd.

     wget https://github.com/sabnzbd/sabnzbd/releases/download/2.3.7/SABnzbd-2.3.7-src.tar.gz
    
  2. Extract SABnzbd.

     mkdir -p ~/SABnzbd && tar xvzf SABnzbd*.tar.gz --strip-components=1 -C ~/SABnzbd
    
  3. With your virtualenv activated, run SABnzbd in daemon mode. Port 31915 has been automatically generated for you, but you may use another 5 digit port between 10000 and 65535.

     python ~/SABnzbd/SABnzbd.py -d -b0 -f ~/.sabnzbd/sabnzbd.ini -s :31915
    
  4. (Optional) Clean up the installation archive.

     rm SABnzbd*.tar.gz
    

SABnzbd (Method 2 - with update)

  1. Make the directory folder for SABnzbd:

     mkdir -p ~/SABnzbd
    
  2. Download SABnzbd from github.

     git clone https://github.com/sabnzbd/sabnzbd.git ~/SABnzbd
     cd ~/SABnzbd
     git checkout master
    
  3. Activate virtualenv (if not activated):

     source ~/virtualenv2/bin/activate
    
  4. With your virtualenv activated, run SABnzbd in daemon mode. Port 31915 has been automatically generated for you, but you may use another 5 digit port between 10000 and 65535.

     python ~/SABnzbd/SABnzbd.py -d -b0 -f ~/.sabnzbd/sabnzbd.ini -s :31915
    

    To exit your virtualenv:

     deactivate
    
  5. Update (optional):

     cd ~/SABnzbd
     git pull
    

Usage

  • Open your browser and navigate to http://server.whatbox.ca:31915 to access the SABnzbd WebUI

  • If your SABnzbd stops, execute this command with your virtualenv activated to restart it (replacing 31915 if you chose your own port).

      python ~/SABnzbd/SABnzbd.py -d -b0 -f ~/.sabnzbd/sabnzbd.ini -s :31915
    
  • Should you need to manually edit your config, it will be located in /home/user/.sabnzbd if you used the -f ~/.sabnzbd/sabnzbd.ini CLI option, otherwise it will be in the SABnzbd program directory

  • Automatically restart SABnzbd if the server restarts

      crontab -e
    

    add the following, replacing 31915 if you chose your own port and virtualenv with the name/path of your virtualenv:

      @reboot /home/user/virtualenv/bin/python /home/user/SABnzbd/SABnzbd.py -d -b0 -f /home/user/.sabnzbd/sabnzbd.ini -s :31915
    

Browser Plugins

Google Chrome

Mozilla Firefox

Apple Safari