Select Page

Raspberry Pi – Install Sonarr


  • Install Sonarr.
  • Automatically manage your media.
  • Find missing episodes.

Sonarr automates the finding, downloading, naming and organisation of TV shows. It is designed to work in conjunction with a torrent client and media server. E.g. qBittorrent to download files and Plex Media Server to distribute them to clients.

If you haven’t already, check out the guide to setup a secure torrent client before continuing with the install of Sonarr.

I do not in any way, shape or form condone or support the downloading of illegal or copyrighted material.

Technical Jargon


SSH stands for secure shell. SSH is an encrypted connection established between two computer programs. On the server side (the computer being connected to) a service is running that listens for another computer trying to contact it via SSH.

Click here for a full detailed description of SSH.


This guide assumes you have a fresh install of Raspbian on a headless server.

This guide assumes you either have a folder on the Raspberry Pi for your TV shows, or have setup a connection to your network share that contains your TV media.

If it is legal to download TV box sets where you are and you wish to use Sonarr’s ability to tap into torrent RSS feeds, it’s assumed you have setup a secure torrent client.

Install Sonarr

Before we start we’re going to ensure the Raspberry Pi is up to date. Run the following commands to grab and install the latest packages:

sudo apt-get update
sudo apt-get upgrade -y

As Sonarr isn’t in the default Raspbian repository we’ll want to add Sonarr’s. To do this let’s install the directory manager to allow us to modify our repositories:

sudo apt-get install dirmngr

Now we can add new repositories let’s make sure we can use secure connections:

sudo apt-get install apt-transport-https -y --force-yes

With all that sorted we can add Sonarr’s repository:

sudo apt-key adv --keyserver --recv-keys 0xA236C58F409091A18ACA53CBEBFF6B99D9B78493
echo "deb master main" | sudo tee /etc/apt/sources.list.d/sonarr.list

With the repository available we’ll now be able to install Sonarr, but before we do we need to update our sources so the Pi knows where to look:

sudo apt update
sudo apt install nzbdrone -y

Create a Service

It is recommended to run Sonarr as its own user for security purposes. We’re going to use qbtuser to own the Sonarr install and run the service. This is to tie in with the user setup in the secure torrent client guide. Feel free to use any user you like. E.g. pi:

sudo chown -R qbtuser:qbtuser /opt/NzbDrone

We’re going to create a file under /etc/systemd/system that will tell the Raspberry Pi how to handle Sonarr and ensure it runs as a service:

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

Now that we’ve created the file, paste the following into it:

Description=Sonarr Daemon


ExecStart=/usr/bin/mono --debug /opt/NzbDrone/NzbDrone.exe -nobrowser


Press Ctrl+x to exit and you’ll be prompted to Save modified. Type Y and then return to save the file.

Start the Sonarr Service

If everything has gone to plan we can start the service.

Start the service for the first time with:

sudo systemctl start sonarr

Check it all Works

Now we’ve finished installing Sonarr and the service is running, lets check it all works by going to http:/ var DIVI = {"item_count":"%d Item","items_count":"%d Items"}; var et_builder_utils_params = {"condition":{"diviTheme":true,"extraTheme":false},"scrollLocations":["app","top"],"builderScrollLocations":{"desktop":"app","tablet":"app","phone":"app"},"onloadScrollLocation":"app","builderType":"fe"}; var et_frontend_scripts = {"builderCssContainerPrefix":"#et-boc","builderCssLayoutPrefix":"#et-boc .et-l"}; var et_pb_custom = {"ajaxurl":"https:\/\/\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/\/wp-content\/themes\/Divi\/images","builder_images_uri":"https:\/\/\/wp-content\/themes\/Divi\/includes\/builder\/images","et_frontend_nonce":"442d85ec30","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","et_ab_log_nonce":"8d2618ba21","fill_message":"Please, fill in the following fields:","contact_error_message":"Please, fix the following errors:","invalid":"Invalid email","captcha":"Captcha","prev":"Prev","previous":"Previous","next":"Next","wrong_captcha":"You entered the wrong number in captcha.","wrong_checkbox":"Checkbox","ignore_waypoints":"no","is_divi_theme_used":"1","widget_search_selector":".widget_search","ab_tests":[],"is_ab_testing_active":"","page_id":"521","unique_test_id":"","ab_bounce_rate":"5","is_cache_plugin_active":"yes","is_shortcode_tracking":"","tinymce_uri":"https:\/\/\/wp-content\/themes\/Divi\/includes\/builder\/frontend-builder\/assets\/vendors","waypoints_options":[]}; var et_pb_box_shadow_elements = [];