Running SABnzbd on Mac OS X

The official App

If you just want to use SABnzbd, we provide a packaged application (for PPC/x86) available here: sabnzbd.org/download

sabnzbd-dmg.png

Just download it and install like a normal OSX application. The App also includes SABnzbdX, a tray application that shows the status of your queue up near the clock.

How to run from sources on OSX

If for some reason you don't want to use the .app you can install from source.

For OSX 10.4 you needed to install Python first. OSX 10.5 and above already has it installed

Download & Install:
GCC compiler from the XCode installer. This is also on your OS X install DVD.

OSX-picture1.png

Install these packages (clicking wil start download).

Cheetah-2.0.1
yenc-0.3
feedparser-4.1

Extract the above four archives and open terminal.app.
Change directory to the Cheetah-2.0.1 folder that you've extracted.
If the folder is on your desktop then type

cd ~/Desktop/Cheetah-2.0.1/
python setup.py install

Repeat for the other three packages

Grab the unrar & par2 files from SABnzbd.app (right click=>show package contents) then

sudo mv par2 /usr/bin/
sudo mv unrar /usr/bin/

Finally, download SABnzbd-0.4.0.zip, unpack into any folder (e.g. ~/SABnzbd).
Don't compile or anything, just run from source:

cd SABnzbd/
chmod +x SABnzbd.py
./SABnzbd.py

Your default web browser should now start and show the user interface of SABnzbd.
Changes to the active template do not require a SABnzbd restart.

Running from Terminal1

Since the "-d" option of SABnzbd+ is not working under Leopard, we need to create a daemon environment. This can easily be done by running the command in screen. This also adds running at a low priority so that it willl affect system performance less. The final command looks like this (provided that SABnzbd+ is still on your desktop):

cd SABnzbd/
/usr/bin/screen -m -d /usr/bin/nice -n 20 ~/SABnzbd/SABnzbd.py -b 0

Explanation:

  • screen -m -d: starts the command in a detached screen.
  • nice -n 20: starts the command with the lowest processor priority.
  • SABnzbd.py -b 0: starts the SABnzbd+ without autostarting your browser.

Start SABnzbd+ at boottime
Run this script in crontab periodically, so that SABnzb+ is started at boottime and will be kept running.

#!/bin/bash
active=$(/bin/ps aux | grep -v grep | grep SABnzbd.py)
if [ "$active" = "" ]
then
    /usr/bin/screen -m -d /usr/bin/nice -n 20 ~/SABnzbd/SABnzbd.py -b 0
fi
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License