SABnzbd
SABnzbd is an Open Source Binary Newsreader written in Python. [...] SABnzbd makes Usenet as simple and streamlined as possible by automating everything we can. All you have to do is add an .nzb. SABnzbd takes over from there, where it will be automatically downloaded, verified, repaired, extracted and filed away with zero human interaction. (Source: Official Homepage)
SABnzbd has already been added to the PHP Installer and this guide should only be consulted if you want to learn how to set it up manually.
Many roads lead to Rome. And so there is more than one way to get SABnzbd running on your e-TRAYz to satisfy your Usenet needs. SteeringWheel has created a package which will do the necessary steps automatically for you. With his installer you can get SABnzbd running on the e-TRAYz within a few minutes. Find his guide and installer in the Xtreamer Forum. If you like to install SABnzbd manually, here is step by step guide to see whatI did.
- Install SABNzbd
- Start SABnzbd and see what's happening
- Create custom download folders
- Install additionally required packages
- Edit SABnzbd's configuration file with Midnight Commander
- Let's see if SABnzbd likes us now
- Autostart SABnzbd
- Additional tips (Watch folder, Ionice, SSL, SABnzbd+ 0.5.x Beta)
Login as "root" and type:
/opt/bin/ipkg install sabnzbdplus
Start SABnzbd and see what's happening
From the output you will notice that it created two folders "downloads/incomplete" and "downloads/complete" inside the /home/sysadmin/.sabnzbd folder which I don't like, so...
Create custom download folders
sudo -u sysadmin mkdir /home/sysadmin/SABnzbd/complete
sudo -u sysadmin mkdir /home/sysadmin/SABnzbd/incomplete
Next missing packages are "unrar" and "openssl". No Problem.
Install additionally required packages
/opt/bin/ ipkg install py25-openssl
What you don't see is which optional packages could be useful. Those who know SABnzbd may find the RSS feature useful which can be set to download stuff automatically without your intervention. So if you need it:
I hope you have installed Midnight Commander before as I can't teach you how to use the vi editor =)
Edit SABnzbd's configuration file with Midnight Commander
Note down the "api_key" as you will need it later. The following settings need to be changed:
download_dir = /home/sysadmin/SABnzbd/incomplete
complete_dir = /home/sysadmin/SABnzbd/complete
host = <e-TRAYz IP>
port = <SABnzbd port>
Make sure to adapt <e-TRAYz IP> and <SABnzbd port> to your setup. The default port is 8080 but since this one is already used by the e-TRAYz webinterface I recommend using e.g. 8888. So in my case it is:
host = 192.168.0.4
port = 8888
To save and exit, press F10.
Let's see if SABnzbd likes us now
If you've done exactly as shown above then you will see in the output that your SABnzbd's webinterface is now ready to be accessed via http://<e-TRAYz IP>:8888/sabnzbd ... so in my case: http://192.168.0.4:8888/sabnzbd ... try it!
Now let's add some more convenience for you and let e-TRAYz run SABnzbd in daemon mode on every reboot. Interrupt the running SABnzbd process by pressing CTRL + C
Get the autostart script with these commands:
chmod 755 /etc/init.d/sabnzbd
/opt/bin/mcedit /etc/init.d/sabnzbd
Make sure you edit HOST, PORT and APIKEY. In my case that is:
HOST="192.168.0.4"
PORT="8888"
APIKEY="6b86d767929005e48419b16bb871eb06"
Press F10 to save and exit the file editor and add SABnzbd to the autostart routine with the following command:
Restart your e-TRAYz with the "reboot" command and see if your SABnzbd webinterface is available at http://<your e-TRAYz IP>:8888/sabnzbd after the e-TRAYz finished rebooting (BEEP sound). If it is, go setup your SABnzbd and enjoy. If not... well... read again :)
- You can configure the /home/sysadmin/SABnzbd folder as the so called "Watch Folder" (Config->Folders). This way .nzb files which are placed in there will be picked up automatically. Like Fire-and-forget rockets... can't be easier, can it? And to avoide issues with access rights, add permission level 777 for completed downloads. This option can be found on the same configuration page.
- Par2 and unrar may cause heavy load on your e-TRAYz. Setting parameters in the ionice option box (Config->Switches) can optimize their use. Default parameters are -c2 -n4 which may still let you stream videos while it's doing parity checks or extracting archives parallely. You might have to experiment with the values.
- Interesting find by user yovio: if you get warnings in SABnzbd when trying to connect to an SSL server, use the following command: chmod o=rw /dev/random
- Martino Campodoro has posted a step-by-step guide in his blog describing how to get version 0.5.x Beta running on the e-TRAYz. Check it out!



