Install Sonarr on Ubuntu 18.04

If you are unfamiliar with Sonarr, it is a beautiful automation tool that will monitor completed and ongoing TV Series and download them as new episodes are released.

The most common use of Sonarr is to run it in tandem with a Usenet account, utilizing SabNZB to download from newsgroups. If you prefer to go the torrent route you can use Sonarr alongside Jackett to scrape your favorite torrent site. We will be putting together a tutorial soon covering both Usenet and Torrent options.

Today however, we will be installing Sonarr and setting it up as a service that loads on boot.

 

Warning! Click here if you have not installed Mono. It is required for Sonarr to work.

 

Install Sonarr:

1. First things first, lets update and upgrade packages. Also install some dependencies needed. Open terminal a with Super key + T.

sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get update && sudo apt-get install libmono-cil-dev curl mediainfo

2. Now we are going to add the Sonarr repo.

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

3. Update sources and install Sonarr (NZBDrone)

Just a note this will install in /opt/NzbDrone/ should you need to access the folder.

sudo apt-get update && sudo apt-get install nzbdrone

4. Set ownership of /opt/NzbDrone/ for both user and group. Replace user:group with your preferred username, if unsure use your username for both user and group.

sudo chown -R user:group /opt/NzbDrone

5. Manually start Sonarr.

mono /opt/NzbDrone/NzbDrone.exe

6. Open your browser and point it to the address below to verify it is installed correctly. After you have verified press ctrl + c in Terminal to stop Sonarr.

http://localhost:8989

 

Setup Autostart on Boot:

1. Lets download the service file from my Git and place it /lib/systemd/system/ .

sudo wget https://github.com/jeyeveey26/sonarr.service/raw/master/Sonarr%20Systemd%20Service%20File -O /lib/systemd/system/sonarr.service

2. Edit the sonarr.service file and replace User=server and Group=server with your username. After you have done so ctrl + x then y and hit enter to save and close.

sudo nano /lib/systemd/system/sonarr.service

3. Enable and start Sonarr.

sudo systemctl enable sonarr && sudo systemctl start sonarr

4. Lastly, verify everything is well! Open your browser and point it to:

http://localhost:8989
(Visited 4 times, 1 visits today)

1 Comment Install Sonarr on Ubuntu 18.04

  1. Sev February 16, 2019 at 8:57 am

    Hey! Whenever I’m doing the echo “deb http://apt.sonarr.tv/ master main” | sudo tee /etc/apt/sources.list.d/sonarr.list command I can’t continue the guide.
    I had to remove the “”s in order to proceed. I checked other guides and none mention this..

    Reply

Leave A Comment

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