Select Page
Raspberry Pi Install Lidarr

Raspberry Pi Install Lidarr

Raspberry Pi – Install Lidarr

Overview

  • Install Lidarr.
  • Automatically manage your music.
  • Find new and missing albums.

Lidarr automates the finding, downloading, naming and organisation of Music libraries. It is designed to work in conjunction with a torrent client and media server. E.g. qBittorrent to download files and your choice of distribution software e.g. Plex Media Server to distribute the music to clients.

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

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

I use Lidarr to organise all of my legally purchased music, its tags, names etc and track which albums I’m missing. The Calendar view is great for seeing release dates of new albums from my favourite artists.

Technical Jargon

SSH

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.

Assumptions

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 Music, or have setup a connection to your network share that contains all of your current Music.

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

Install Lidarr

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

We want Lidarr to sit in the /opt directory so let’s cd into it:

cd: /opt

Now let’s grab the latest Lidar.tar.gz file. For me that is version 0.6.0.815, check https://github.com/lidarr/Lidarr/releases to find out which is the latest for you:

sudo wget https://github.com/lidarr/Lidarr/releases/download/v0.6.0.815/Lidarr.develop.0.6.0.815.linux.tar.gz

Once it’s downloaded extract the package:

sudo tar -xzvf Lidarr.develop.0.6.0.815.linux.tar.gz

Create a Service

It is recommended to run Lidarr as its own user for security purposes. We’re going to use qbtuser to own the Lidarr 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/Lidarr

sudo chmod -R a=,a+X,u+rw,g+r /opt/Lidarr

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

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

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

[Unit]
Description=Lidarr Daemon
After=syslog.target network.target

[Service]
User=qbtuser
Group=media
Type=simple
ExecStart=/usr/bin/mono /opt/Lidarr/Lidarr.exe -nobrowser
TimeoutStopSec=20
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target

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 lidarr

Check it all Works

Now we’ve finished installing Lidarr 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_shortcodes_strings = {"previous":"Previous","next":"Next"}; var et_pb_custom = {"ajaxurl":"https:\/\/philldavis.co.uk\/wp-admin\/admin-ajax.php","images_uri":"https:\/\/philldavis.co.uk\/wp-content\/themes\/Divi\/images","builder_images_uri":"https:\/\/philldavis.co.uk\/wp-content\/themes\/Divi\/includes\/builder\/images","et_frontend_nonce":"ca1ea6d3ee","subscription_failed":"Please, check the fields below to make sure you entered the correct information.","et_ab_log_nonce":"b6fbf4cd22","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":"544","unique_test_id":"","ab_bounce_rate":"5","is_cache_plugin_active":"yes","is_shortcode_tracking":"","tinymce_uri":""}; 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_box_shadow_elements = []; var et_pb_motion_elements = {"desktop":[],"tablet":[],"phone":[]}; var et_pb_sticky_elements = [];