Wiki > NZBGet
NZBGet is "a binary downloader, which downloads files from Usenet based on information given in nzb-files."
Installation
NZBGet
-
Connect to your slot via SSH
-
Download NZBGet
wget -O nzbget-latest-bin-linux.run $(curl -s https://api.github.com/repos/nzbgetcom/nzbget/releases/latest | grep "browser_download_url" | grep "linux.run" | cut -d '"' -f 4)
-
Install NZBGet
sh nzbget-latest-bin-linux.run
Note: By default NZBGet is installed into directory nzbget/ in the current directory. You can specify another directory using parameter --destdir.
sh nzbget-latest-bin-linux.run --destdir /path/to/install/nzbget
-
Change the ports NZBGet uses by editing
~/nzbget/nzbget.conf
nano ~/nzbget/nzbget.conf
Press
Ctrl+W
, enterControlPort
, pressEnter
Change
6789
to16801
Press
Ctrl+W
, enterSecurePort
, pressEnter
Change
6791
to18400
Save and exit the file by pressing
Ctrl+S
thenCtrl+X
-
Run in background as daemon (service). When starting NZBGet use command -D.
~/nzbget/nzbget -D
-
(Optional) Clean up the installation archive.
rm nzbget*.run
-
Immediately go to http://server.whatbox.ca:16801 and change these settings:
Log in with username: nzbget and password: tegbzn6789
Go to
Settings
->Security
Set a secure username and password. You will need to use this new username and password to log in to NZBGet.
Unset the
AuthorizedIP
setting - it should be blank.
Automatically restart
-
Connect to your slot via SSH
-
Make a file to be used for the script.
touch ~/nzbget_restart.cron
-
Edit the file and enter the text below.
nano -w ~/nzbget_restart.cron
#!/bin/bash
if pgrep -x "nzbget" > /dev/null
then
echo "NZBGet is running."
else
echo "NZBGet is not running, starting NZBGet"
/home/user/nzbget/nzbget -D
fi
exit
-
Save the file with Ctrl+x and "y" and Enter to accept overwriting.
-
Make the script executable.
chmod +x ~/nzbget_restart.cron
-
Open your crontab.
EDITOR=nano crontab -e
-
Append the following text to the bottom of the document
@reboot /home/user/nzbget_restart.cron >/dev/null 2>&1
*/5 * * * * /home/user/nzbget_restart.cron >/dev/null 2>&1
- Save the crontab with Ctrl+x and "y" and Enter to accept overwriting.
Enable SSL (optional)
-
Access your NZBGet and make sure that AuthorizedIP under Settings -> Security is completely blank before continuing.
-
Visit your Managed Links page
-
Select the Add App button in the upper-right corner.
-
For the app name, enter nzbget or a name of your choice.
-
For the app port, enter the following: 16801
-
Select the Save button.
Usage with box.ca
If you are using NZBGet with a custom box.ca subdomain, make sure 'AuthorizedIP' is set to blank on the Security page to make sure authentication is used.