Whatbox Logo
Login for certain variables to be updated with your slot's information

Wiki > NZBGet

NZBGet is "a binary downloader, which downloads files from Usenet based on information given in nzb-files."

NZBGet is no longer actively developed. You should consider using different programs like SABnzbd before trying NZBGet.

Installation

NZBGet

  1. Connect to your slot via SSH

  2. 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
    
  3. 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
    
  4. Change the ports NZBGet uses by editing ~/nzbget/nzbget.conf

     nano ~/nzbget/nzbget.conf
    

    Press Ctrl+W, enter ControlPort, press Enter

    Change 6789 to 11638

    Press Ctrl+W, enter SecurePort, press Enter

    Change 6791 to 16319

    Save and exit the file by pressing Ctrl+X, then Y, then Enter

  5. Fix NZBGet's certificates by running the following command.

     sed '/^DST Root CA X3$/,/^-----END CERTIFICATE-----$/d;' -i ~/nzbget/cacert.pem
    
  6. Run in background as daemon (service). When starting NZBGet use command -D.

     ~/nzbget/nzbget -D
    
  7. (Optional) Clean up the installation archive.

     rm nzbget*.run
    
  8. Access http://server.whatbox.ca:11638 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

  1. Connect to your slot via SSH

  2. Make a file to be used for the script. touch ~/nzbget_restart.cron

  3. 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
  1. Save the file with Ctrl+x and "y" and Enter to accept overwriting.

  2. Make the script executable. chmod +x ~/nzbget_restart.cron

  3. Open your crontab. EDITOR=nano crontab -e

  4. 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
  1. Save the crontab with Ctrl+x and "y" and Enter to accept overwriting.

Enable SSL (optional)

  1. Access your NZBGet and make sure that AuthorizedIP under Settings -> Security is completely blank before continuing.

  2. Visit your Managed Links page

  3. Select the Add App button in the upper-right corner.

  4. For the app name, enter nzbget or a name of your choice.

  5. For the app port, enter the following: 11638

  6. 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.