
+

?
After much hair pulling and desk thumping I have SABnzbd working on Freenas.
Using the Overbyrns tutorial, I have added my own observations which should help most users. here goes
SABnzbd Usenet Client & Dependencies
Postby th3joker on Wed Oct 22, 2008 7:32 pm
This is the Usenet client SABnzbd and includes all the dependencies required to run it.
More on SABnzbd here: http://www.sabnzbd.org
Overbyrn supplied the SABnzbd, dependencies and a shell script to run it.
SABnzbd: http://www.freenas.co.uk/files/sabnzb0.4.3.tar
Shell Script: http://www.freenas.co.uk/files/sab.sh
Overbyrn's instructions:-
00) Ensure you install the FULL version of Freenas not the embedded version (option 3)
0) Putty (google it) into server as root, make sure you set this in FreeNAS under services, SSH. tick enable, tick permit root login
1) Untar file to a temp folder on freenas. eg. tar zxvf sabnzb0.4.3.tar (Do this from Putty) yuo need to put these files somewhere with plenty of space for unzipping, I created a directory within my main CIFS/SMB share. File manager in Freenas is your friend here. double click the permissions and set them all to ticks, permission for everyone basically.
2) pkg_add -v sabnzbdplus-0.4.3.tbz (Do this from Putty)
2.5) Reboot Server
3) first ran it from command line ... /usr/local/bin/SABnzbd.py (Do this from your server box, I couldn't run it through Putty)
4) cntrl-c to exit.
5) it created a /root/.sabnzbd dir
6) edited /root/.sabnzbd/sabnzbd.ini (I did this by moving the file, to my CIFS share, editing in windows and using FREEnas file manger to put the completed file back in the /root/.sabnzbd dir
7) changed from localhost to 192.168.0.22 (I set this to my Freenas server IP, 192.168.1.40. I had set this to static to stop it moving around after a boot)

9) went to http://192.168.0.22:8080/sabnzbd/ You may have to set the port to something else, I used 8082
10) configured to my liking
not done step 11 yet myself
11) created script as below to stop / start as a daemon process...
#! /bin/sh
case "$1" in
start)
echo "Starting SABnzbd."
/usr/bin/sudo -u sabuser -H /usr/local/src/SABnzbd/SABnzbd.py -d -f /root/.sabnzbd/sabnzbd.ini
;;
stop)
echo "Shutting down SABnzbd."
/usr/bin/fetch "http://192.168.0.22:8080/sabnzbd/api?mode=shutdown" > /dev/null
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
12) noticed in console logging external binary unzip missing...(I had to do this also)
2008-09-23 20:14:32,166::ERROR::unzip binary... NOT found!
13) did pkg_add -rv unzip. this installed unzip into /usr/local/bin
14) restarted sabnzbd using script... /root/sab.sh start
15) checked "connections" tab - no sign of missing unzip.
Used this sabnzbd wiki link for reference ... http://sabnzbd.wikidot.com/start
made and uploaded a newer version of the zip containing v0.4.3 build of sabnzbplus.
Thanks go to Overbyrn & Auskento for their work