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 - http://nzbget.net/info/nzbget-version-linux.json | sed -n "s/^.*testing-download.*: \"\(.*\)\".*/\1/p" | wget --no-check-certificate -i - -O nzbget-latest-bin-linux.run
-
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
to26731
Press
Ctrl+W
, enterSecurePort
, pressEnter
Change
6791
to13365
Save and exit the file by pressing
Ctrl+X
, thenY
, thenEnter
-
Fix NZBGet's certificates by running the following command.
sed '/^DST Root CA X3$/,/^-----END CERTIFICATE-----$/d;' -i ~/nzbget/cacert.pem
-
Run in background as daemon (service). When starting NZBGet use command -D.
~/nzbget/nzbget -D
-
(Optional) Clean up the installation archive.
rm nzbget*.run
-
Access http://server.whatbox.ca:26731 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.
Enable autostart on server reboot
-
Connect to your slot via SSH
-
Add Nzbget to your crontab
crontab -e
Add
@reboot ~/nzbget/nzbget -D
to the end of document. -
Save and close Crontab
Press
Ctrl+o
, then PressCtrl+x
-
Verify your changes where made
crontab -l
the output will list all of your cron jobs. You should see the new line you just made.
Enable SSL (optional)
To do this, you will be creating a self-signed certificate, so note that your web browser might say that the connection is untrusted.
- SSH into your slot.
- Create the self-signed certificate.
openssl req -new -x509 -nodes -out ~/nzbget/nzbget.cert -keyout ~/nzbget/nzbget.key -days 365
- Stop all running NZBGet processes.
pkill -f nzbget
- Open NZBGet's configuration file in a text editor.
nano ~/nzbget/nzbget.conf
- Change the following lines:
SecureControl=no
toSecureControl=yes
SecureCert=
toSecureCert=/home/user/nzbget/nzbget.cert
SecureKey=
toSecureKey=/home/user/nzbget/nzbget.key
- Save the configuration file. Ctrl+x if you used the nano text editor like above.
- Start the NZBGet processes again with
~/nzbget/nzbget -D
Access the secured web interface at https://server.whatbox.ca:13365
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.