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

Installation

NZBGet

  1. Connect to your slot via SSH

  2. 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)
    
  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 28584

    Press Ctrl+W, enter SecurePort, press Enter

    Change 6791 to 14292

    Save and exit the file by pressing Ctrl+S then Ctrl+X

  5. Run in background as daemon (service). When starting NZBGet use command -D.

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

     rm nzbget*.run
    
  7. Immediately go to http://server.whatbox.ca:28584 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: 28584

  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.