How to Install Sonarr on Ubuntu 14.04+

sonarr-banner

This guide will show you how to install Sonarr (NZBDrone) on a Ubuntu 14.04+ Box, Be sure to check back from my how to configure guide of Sonarr. This guide asumes you are a SUDO user on the system and not the root user, if root please omit the “sudo” at the start of the command

Add Software to our Source List

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC

echo "deb http://apt.sonarr.tv/ master main" | sudo tee /etc/apt/sources.list.d/sonarr.list

 Now refresh the software source list

sudo apt-get update && sudo apt-get upgrade

 Now lets install Sonarr (NZBDrone)

sudo apt-get install nzbdrone

 You can start Sonarr (NZBDrone) with this command

mono --debug /opt/NzbDrone/NzbDrone.exe

Browsing to this address will allow you to access the application

http://localhost:8989

Autostart Sonarr (NzbDrone)

Manually starting Sonarr (NzbDrone) all the time can be cumbersome. Therefore, after you install Sonarr (NzbDrone) on Ubuntu, I recommend making it autostart at boot as described here. There are multiple ways to autostart Sonarr (NzbDrone) on Ubuntu Linux. One way is using Upstart. First, create the file sonarr.conf inside /etc/init folder:

sudo nano /etc/init/nzbdrone.conf

Then copy and paste the following contents into the file:

author "Reaper - Pure-Media"
description "Upstart Script to run Sonarr as a service on Ubuntu/Debian based systems, as well as others"

#Set username for the process. Should probably be what you use for logging in
setuid yourusername

#This is the install directory. If you installed using a deb package or the Repository you do not need to change this
env DIR=/opt/NzbDrone

setgid nogroup
start on runlevel [2345]
stop on runlevel [016]

respawn

exec mono $DIR/NzbDrone.exe

Replace yourusername with your username that you use to login. Then save (Ctrl X and then Y) and exit the editor. Then give it execute permissions:

sudo chmod +x /etc/init/sonarr.conf

Finally, issue the following command to start, stop and restart Sonarr:

sudo start nzbdrone

sudo stop nzbdrone

sudo restart nzbdrone

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.