NZBGet

NZBGet is a command-line based binary newsgrabber for nzb files. NZBGetWeb adds a userfriendly GUI to NZBGet.

Note
NZBGet & NZBGetWeb have already been added to the PHP Installer and this guide should only be consulted if you want to learn how to set them up manually.

NZBGet or SABnzbd+ ... that's not easy to answer as it is a matter of taste and speed. The web interface looks better in SABnzbd+ but NZBGet seems to be faster. I'll let you decide... if you fell for NZBGet, continue to read this guide.


Install NZBGet

Login as "root" and type:

/opt/bin/ipkg update
/opt/bin/ipkg install nzbget

Optional: if you have used SABnzbd+ before you will probably encounter some trouble with connecting to servers. This is due to some old libs which were installed along with SABnzbd+ ... so if you have this issue, install the newer libs again (thanks to rklomp for reporting the fix).

/opt/bin/ipkg install libstdc++

Create folders

We want to run NZBGet as user "sysadmin", so we will use him to create the download folders:

sudo -u sysadmin mkdir /home/sysadmin/NZBGet
sudo -u sysadmin mkdir /home/sysadmin/NZBGet/dst
sudo -u sysadmin mkdir /home/sysadmin/NZBGet/nzb
sudo -u sysadmin mkdir /home/sysadmin/NZBGet/queue
sudo -u sysadmin mkdir /home/sysadmin/NZBGet/tmp
chmod 777 /home/sysadmin/NZBGet/*

Copy & edit NZBGet's configuration file

We need a default config file. So do the following:

cp /opt/share/doc/nzbget/nzbget.conf.example /opt/etc/nzbget.conf
chmod 777 /opt/etc/nzbget.conf
/opt/bin/mcedit /opt/etc/nzbget.conf

At least the following settings need to be changed:

$MAINDIR=/home/sysadmin/NZBGet
Server1.Host=<newsserver host>
Server1.Port=<newsserver port>
Server1.Username=<your username>
Server1.Password=<your password>

DaemonUserName=sysadmin

ServerIp=<your e-TRAYz IP>
ServerPassword=<choose a password>

PostProcess=/opt/sbin/postprocess.sh

Every additional setting in the file is described. It may be wise to check the complete configuration to meet your requirements to NZBGet. To save and exit, press F10.

Extract .rar files automatically

Prepare the postprocess script:

cp /opt/share/doc/nzbget/postprocess-example.sh /opt/sbin/postprocess.sh
chmod 755 /opt/sbin/postprocess.sh

Autostart NZBGet

Get the autostart script with these commands:

wget -P /etc/init.d http://files.mavvy.net/xtreamer/nzbget
chmod 755 /etc/init.d/nzbget

Press F10 to save and exit the file editor and add NZBGet to the autostart routine with the following command:

chkconfig --add nzbget

Install NZBGetWeb

As NZBGetWeb is not in our ipkg list we need to get it manually:

wget -P /opt/tmp http://files.mavvy.net/xtreamer/nzbgetweb-1.3.zip
sudo -u sysadmin unzip /opt/tmp/nzbgetweb-1.3.zip -d /home/sysadmin/WWW
cd /home/sysadmin/WWW/nzbgetweb/
sudo -u sysadmin cp settings-template.php settings.php
chmod 777 settings.php

Restart your e-TRAYz with the "reboot" command. After the e-TRAYz finished rebooting (BEEP sound) your NZBGet webinterface should be available at http://<your e-TRAYz IP>:8000/nzbgetweb ... and from there you should directly go to the "config" link to change the following settings in the "COMMUNICATION WITH NZBGET-SERVER" section:

ServerIp=<your e-TRAYz IP>
ServerPassword=<password you chose before>
ServerConfigFile=/opt/etc/nzbget.conf
ServerConfigTemplate=/opt/share/doc/nzbget/nzbget.conf.example
ServerStartCommand=sudo /etc/init.d/nzbget start
NzbDir=/home/sysadmin/NZBGet/nzb

Save and go to the "DISPLAY" section to change the following:

CheckSpaceDir=/home/sysadmin/NZBGet/dst

Save! In the "PAR CHECK/REPAIR" section, enable this:

ParCheck=Yes

Save! Now you can click on "back to main page" and enjoy NZBGet from your browser.