Install SABnzbd
From OpenFSG
Contents |
About SABnzbd
SABnzbd is a group of python scripts that will allow you to connect to usenet servers and will parse file links from NZB files (primariliy found on the Usenet search website NewzBin). It also impressively offers you access through a Web-interface. Though still in beta, it's shaping up to be a top notch program.
Intro
Hi guys, here is a guide for installing SABnzdb on your FSG and allowing it to load up on boot. I have only tried the following on the 3.3.9 firmware.
Installation Guide
Installing Prerequisites
Make sure you are logged into your FSG as 'root' and have 'ipkg' installed then enter the commands below:
1) Python -
ipkg install python
2) Cherry Python -
ipkg install py-cherrypy
3) Cheetah Python-
ipkg install py-cheetah
4) Python Element Tree -
ipkg install py-elementtree
The prerequisites below are optional, however will increase the automated functionality of SABnzbd:
5) UnRAR -
ipkg install unrar
6) UnZIP -
ipkg install unzip
7) Par2cmdline
ipkg install par2cmdline
Downloading and installing SABnzbd
1) Firstly, download SABnzbd to your computer. I will assume you've downloaded the platform independent 'SABnzbd-0.2.5.tar.gz' file.
2) Using a program such as WinRAR extract 'SABnzbd-0.2.5.tar.gz' to any location on your hard drive, I will assume 'C:\sabnzbd'
3) Create the following folders:
'C:\sabnzbd\part-download' 'C:\sabnzbd\cookies' 'C:\sabnzbd\logs'
4) Open and edit the file 'C:\sabnzbd\SABnzbd.ini.sample', change the following items:
port = 82 (or whatever port you wish to be able to access the web-interface on) username = "AUsernameOfYourChoise" password = "APasswordOfYourChoise" web_dir = "/home/sabnzbd/templates" download_dir = "/home/sabnzbd/part-download" complete-dir = "/home/AFileOfYourChoise" (Make sure the file exists - can be created in FSG web-interface) cache_dir = "/home/sabnzbd/cookies" log_dir = "/home/sabnzbd/logs"
5) Rename 'C:\sabnzbd\SABnzbd.ini.sample' to 'C:\sabnzbd\SABnzbd.ini'
6) Login to your FSG with FTP as 'admin' with a client such as SmartFTP and copy and paste 'C:\sabnzbd' into the '/home' directory.
Initialising SABnzbd
1) Connect to your FSG using SSH
2) Enter the following command to initialise SABnzbd and allow it to run as a daemon (in the background)
python /home/sabnzbd/SABnzbd.py -d -f /home/sabnzbd/SABnzbd.ini
3) If you wish to have SABnzbd automatically run on reboot, follow the instructions HERE using the above line as your custom script
P.S.) If your script doesn't start SABnzbd automatically, try typing the path also (f.e. "/home/.optware/bin/python" or "/opt/bin/python")
Congrats!!! You now have SABnzbd running.
Accessing SABnzbd through the Web-Interface
Using the port you chose in the installation steps above, goto the following address in your web browser:
http://MyFSGIpAddress:PORT/sabnzbd/
