Difference between revisions of "Sabnzbdplus"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(Configuration)
Line 9: Line 9:
 
* [[Open_Stock_Firmware]]/jtymod + [http://forum.nas-central.org/viewtopic.php?f=19&t=4075&p=39162#p39162 bootstrapping to the optware feed]
 
* [[Open_Stock_Firmware]]/jtymod + [http://forum.nas-central.org/viewtopic.php?f=19&t=4075&p=39162#p39162 bootstrapping to the optware feed]
 
* [[:Category:FreeLink]]
 
* [[:Category:FreeLink]]
 
 
 
  
 
=Stock firmware/jtymod=
 
=Stock firmware/jtymod=
 
==Installation==
 
==Installation==
 
ipkg update
 
ipkg install py-hellanzb
 
  
 
ipkg update
 
ipkg update
 
ipkg upgrade
 
ipkg upgrade
ipkg install python py-cheetah py-cherrypy py-elementtree py-celementtree py-yenc par2cmdline unrar unzip
+
ipkg install python py24-cheetah py24-cherrypy py24-elementtree py24-celementtree py24-yenc par2cmdline unrar unzip
  
 
This installs Python and all the dependencies needed including UnRar, PAR checking and YEnc decoder.
 
This installs Python and all the dependencies needed including UnRar, PAR checking and YEnc decoder.
  
Download SABnzbd from http://www.sabnzbd.org/download/
+
Download SABnzbd from http://www.sabnzbd.org/download/ but make sure you download the "sources" version as that includes the actual python scrips we need for NAS box. Unarchive wherever you want (but I will continue with an example). This can be done within Windows or Linux and I unarchived to
 +
 
 +
/mnt/disk1/shared/sabnzbd
 +
 
 +
 
 +
 
 +
 
 +
 
  
 
== Configuration ==  
 
== Configuration ==  
Line 36: Line 37:
 
   
 
   
 
Remember, the Linkstation is a NAS box not a high spec PC so don't be too greedy on the number of connections as it might actually make it go slower. For example, I can happily max out a 4Mbit line with 4 connections. Try different numbers and see how you get on.
 
Remember, the Linkstation is a NAS box not a high spec PC so don't be too greedy on the number of connections as it might actually make it go slower. For example, I can happily max out a 4Mbit line with 4 connections. Try different numbers and see how you get on.
 
==Adding a webfrontend==
 
Realistically you will probably want a web based frontend. Hellahella doesn't seem to want to run, Zussaweb looks pretty for monitoring downloads but the upload NZB and Newzbin ID imports don't work for me. I used Lighttpd but you could use a 2nd instance of Apache or maybe piggyback on the Apache that runs the LS's web interface but it didn't work for me. I chose HellaPHP as it worked 100%, required minimal configuration and the author was prepared to amend it to work 100% on my Linkstation setup. He's also adding some more functionality in future like password protection etc and a new look.
 
 
ipkg update
 
ipkg install lighttpd fcgi-php
 
 
You'll need to configure (of course)
 
 
vi /opt/etc/lighttpd/lighttpd.conf
 
 
change
 
<pre> #                              "mod_fastcgi", </pre>
 
into
 
<pre>                                "mod_fastcgi",</pre>
 
change
 
<pre>url.access-deny            = ( "~", ".inc" )</pre>
 
into
 
<pre>url.access-deny            = ( "~", ".inc", ".sqlite" )</pre>
 
 
change
 
<pre>
 
#fastcgi.server            = ( ".php" =>
 
#                              ( "localhost" =>
 
#                                (
 
#                                  "socket" => "/tmp/php-fastcgi.socket",
 
#                                  "bin-path" => "/usr/local/bin/php"
 
#                                )
 
#                              )
 
#                            )
 
</pre>
 
into
 
<pre>
 
fastcgi.server            = ( ".php" =>
 
                              ( "localhost" =>
 
                                (
 
                                  "socket" => "/tmp/php-fastcgi.socket",
 
                                  "bin-path" => "/opt/bin/php-fcgi"
 
                                )
 
                              )
 
                            )
 
</pre>
 
 
Give some thought as to where you want to have your webpages. I like mine accessible to my Windows PCs so that I can edit directly in Frontpage or whatever but in this case I won't change the defaults.. Also you may need to open a port to the webserver if you want to have your HellaPHP available remotely over the internet.
 
 
Now you are ready to start lighttpd by /opt/etc/init.d/S80lighttpd
 
 
Download and unpack HellaPHP. Change the values of $disk and $download_nzb_path in config.php to match your download and NZB directories
 
 
Now you can use the interface at http://linkstation:8081/hella/ (or wherever you've popped the HellaPHP index.php and other files)
 
  
  

Revision as of 14:28, 7 March 2008

[Sources/Credits Methanoid & Fantasymick on NAS-central.org, Caveman on OpenFSG.com and DrChair at wl500g.info]

This has been tested and works well on a ARM9 Linkstation Live. Should work on others. We are using HellaNZB which is a NZB-based usenet "leech" client which also PAR checks and un-archives the files you have downloaded.

Contents

Prerequisites

There are 2 options:

Stock firmware/jtymod

Installation

ipkg update ipkg upgrade ipkg install python py24-cheetah py24-cherrypy py24-elementtree py24-celementtree py24-yenc par2cmdline unrar unzip

This installs Python and all the dependencies needed including UnRar, PAR checking and YEnc decoder.

Download SABnzbd from http://www.sabnzbd.org/download/ but make sure you download the "sources" version as that includes the actual python scrips we need for NAS box. Unarchive wherever you want (but I will continue with an example). This can be done within Windows or Linux and I unarchived to

/mnt/disk1/shared/sabnzbd




Configuration

You'll need to configure SABnzbd which is easiest done using the web interface which you can access via

http://localhost:8080/sabnzbd/

Edit the config to include your Usenet providers server and your own choices as to whether to enable PAR or RAR checking.

Remember, the Linkstation is a NAS box not a high spec PC so don't be too greedy on the number of connections as it might actually make it go slower. For example, I can happily max out a 4Mbit line with 4 connections. Try different numbers and see how you get on.


Freelink

Installation

Configuration

Adding a webfrontend