Page 1 of 1

Sabnzbd+ on a Freenas 0.686 possible?

Posted: March 21st, 2008, 8:25 am
by Belvedere
Image
+
Image
?




Good afternoon all,

I hope i am not asking for a fairly stupid question, but my knowledge of Linux/BSD operating system is extremely limited.

I have a FreeNAS system working perfectly 24/7. It's an old version of the OS (0.686), because i connect the NAS to the Xbox 360 via the built-in uShare plugin. It allows me to stream videos and pictures to the console. The newer versions of FreeNAS unfortunately do not support Xbox 360 anymore.

The FreeNAS system i use is an old Pentium II 512MB RAM Dell Precision machine with a 40 GB bootdisk and a 500GB data disk. It's connected on a 100MBps network (3Com switches) and can have access to the internet via a DSL router (also the DHCP server) if i allow it.

I wonder if it is possible to install and run Sabnzbd+ on the same FreeNAS system so it can automatically download, check and extract files to the approriate shares (perhaps even give uShare a kick to rescan the shared folders?). I'm not sure if FreeNAS 0.686 includes (a correct version) of Python. I would like to access the Sabnzbd+ webserver via my client system on the same network, just like the FreeNAS web server.

If someone could point me in some directions on how to proceed to install ( compile/build? ) and configure Sabnzbd on my FreeNAS i would highly appreciate it.

Re: Sabnzbd+ on a Freenas 0.686 possible?

Posted: March 21st, 2008, 8:40 am
by shypike
It all depends on the availability of Python and some essential Python modules for your platform.
You need to have Python 2.4 as a minimum. Look in INSTALL.txt for info about the modules.

On the Wiki are some guidelines for Linux distributions.
Most of it are apt-get bases installations.

I'm not familiar with FreeNAS myself.
You could have a look at the Synology forum: http://www.synology.com/enu/forum/

Re: Sabnzbd+ on a Freenas 0.686 possible?

Posted: March 21st, 2008, 9:08 am
by Belvedere
Thank you for your quick answer.

It seems if i can get the apt-get command to run in the FreeNAS console, everything should be able to install (Python including the necessary modules) and from that on it should be easy to install Sabnzbd+ as well.

Thank you again.

Re: Sabnzbd+ on a Freenas 0.686 possible?

Posted: March 21st, 2008, 9:48 am
by shypike
You do depend on the availability of Python for freeNAS.
Alternative is to install at least the GNU compiler and libraries.
That way you may be able to compile the standard Python distribution from Python.org.
But, this is all a bit tricky.

I think freeNAS is derived from freeBSD, so you may want to check out what is available for freeBSD.

The yENC-0.3 and Cheetah modules may be tricky too, because the conatin C-code that needs compiling.
Can can leave out yEnc (at the cost of some performance) and Cheetah can work without the compiled namemapper module (light performance penalty).

Installing SABnzbd itself is a non-brainer, you just unzip the source distro.

Good luck!
If you succeed we would appreciate that you post an installation description here  ;D

Re: Sabnzbd+ on a Freenas 0.686 possible?

Posted: March 25th, 2008, 7:51 am
by Belvedere
shypike wrote:
You do depend on the availability of Python for freeNAS.
Indeed. Can't find out if FreeNAS has built-in Python.
I think freeNAS is derived from freeBSD, so you may want to check out what is available for freeBSD.
Correct. It's a stripped version of FreeBSD.
The yENC-0.3 and Cheetah modules may be tricky too, because the conatin C-code that needs compiling.
Can can leave out yEnc (at the cost of some performance) and Cheetah can work without the compiled namemapper module (light performance penalty).
Hmm, i think i need help from the FreeNAS people here, but they are very reluctant to add download modules to their system because they think it's not a useful feature for a NAS
If you succeed we would appreciate that you post an installation description here  ;D
If i ever find the time and the correct installation i will make a FAQ/Manual thingie.

Thanks for all your efforts!

Re: Sabnzbd+ on a Freenas 0.686 possible?

Posted: July 23rd, 2008, 3:46 pm
by th3joker
Did you get any further with this?

I looked at it myself a while back and got to the point of installing python on my freeNAS and no further.

I think I switched to a DOM and had to use an embedded version, I would switch back to a full version of I could get this to work though.

Re: Sabnzbd+ on a Freenas 0.686 possible?

Posted: September 7th, 2008, 4:20 pm
by tman24
any word

Re: Sabnzbd+ on a Freenas 0.686 possible?

Posted: November 19th, 2008, 4:21 pm
by Belvedere
I am terribly sorry for not answering to your posts earlier.
I have not had any response from the FreeNas people.

I have been toying around with various builds of FreeNas, but no luck. Sorry people.

Re: Sabnzbd+ on a Freenas 0.686 possible?

Posted: November 19th, 2008, 4:57 pm
by switch
Can't you just run the makefile here?
And get the needed dependancies from:
ftp://ftp.freebsd.org/pub/FreeBSD/ports ... le/Latest/

Re: Sabnzbd+ on a Freenas 0.686 possible?

Posted: November 23rd, 2008, 10:43 am
by Merlin69
wel i have Sabnzbd working in Freenas.... 
not that hard..

Re: Sabnzbd+ on a Freenas 0.686 possible?

Posted: November 23rd, 2008, 10:48 am
by switch
Merlin69 wrote: wel i have Sabnzbd working in Freenas.... 
not that hard..
Care to share for the people having difficulties? Did you just install it manually like you would for most linux systems?

Re: Sabnzbd+ on a Freenas 0.686 possible?

Posted: November 24th, 2008, 10:35 am
by Merlin69
ok here is what i did..
folow these steps... and it wil run.
first ofcourse install freenas,  and configure SSH so you can login as root.
log in using putty.    login: root
                            Pasw: freenas

(root password = same as FreeNAS WebGUI password)
-------------------------------------------------------------------------------------------------------------------------------------------------------------
link for downloading sabnzbd  ftp://ftp.freebsd.org /pub/FreeBSD/ports/i386/packages‐6.4‐release/All/
you can browse for other files.

TIP  make sure you read point 12



found this info at.  http://apps.sourceforge.net/phpbb/freen ... 71e650#p24

his 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


Auskento wrote a post processing script which will move downloaded files to folders specified in the postproc.conf file. It also handles VIDEO_TS folders making an .iso image and will join multiple .avi files.
I've modified this very slightly to work on FreeNAS.
Script: http://www.freenas.co.uk/files/sab_postproc.zip
Original Script available here: http://postproc.incinerator.com.au/

Overbyrn's instructions:-

1) Untar file to a temp folder on freenas. eg. tar zxvf sabnzb0.4.3.tar
2) pkg_add -v sabnzbdplus-0.4.3.tbz
3) first ran it from command line ... /usr/local/bin/SABnzbd.py
4) cntrl-c to exit.
5) it created a /root/.sabnzbd dir
6) edited /root/.sabnzbd/sabnzbd.ini
7) changed from localhost to 192.168.0.22
8) re-ran as in step 3)
9) went to http://192.168.0.22:8080/sabnzbd/
10) configured to my liking
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...

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
th3joker
 
Posts: 12
Joined: Mon Oct 20, 2008 8:50 pm
E-mail

Re: Sabnzbd+ on a Freenas 0.686 possible?

Posted: April 14th, 2009, 12:22 pm
by nzbmonkey
a bit off topic but anyone here use FreeNAS to stream media to the Xbox 360?  I have it working but whenever I download something new from sabnzbd+ to FreeNAS, the new items do not show up on the Xbox 360.  I have to manually rebuild the database and virtual container in UPnP service.

Re: Sabnzbd+ on a Freenas 0.686 possible?

Posted: March 10th, 2010, 5:06 pm
by Silver_Rain
Great tutorial !