Install Lidarr Ubuntu via command line to download music

In this Lidarr install Ubuntu tutorial. We are going to install Lidarr on a Ubuntu Computer. So that your music is automatically downloaded from the newsgroups.

Mono 5.8 or higher is required. Therefore, we are going to install this.

Install Lidarr Mono Ubuntu

We need a newer version of Mono. The standard Mono version that comes with Ubuntu. Is too old for Lidarr.

We need to pick up the right key for Mono.

sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

echo “deb http://download.mono-project.com/repo/ubuntu xenial main” | sudo tee /etc/apt/sources.list.d/mono-official.list

It is needed. That we do an update.

sudo apt-get update

Now we are going to install Mono.

sudo apt-get install mono-devel

Mono is now installed on your Ubuntu.

Install Lidarr Ubuntu

Download the Lidar.tar.gz. Look at this site https://github.com/lidarr/Lidarr/releases for the correct version.

Download Lidarr. Pay close attention! It’s important to change the version number to the correct version you want to install. Make sure you choose the most recent version.

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

Now we need to unpack Lidarr. Dit doen we door het gedownloade Lidarr.tar.gz bestand te extraheren naar de gewenste locatie op je systeem.

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

Now let’s start Lidarr.

sudo mono –debug /opt/Lidarr/Lidarr.exe

Lidarr is now available on port 8686. You can now access Lidarr on http://localhost:8686.

Start Lidarr automatically

To run Lidarr as a service on your system, you need to create a Lidarr service file. This file ensures that Lidarr starts automatically when your system boots and provides a standardized way to manage the application.

Create a Lidarr user, and group.

useradd -s /bin/false -d /var/lib/lidarr/ -r -m -U lidarr

Now we set the correct permissions for the Lidarr folder so that the application can function correctly and access the necessary files.

chown -R lidarr:lidarr /opt/Lidarr
chmod -R a=,a+X,u+rw,g+r /opt/Lidarr

Create a service file for Lidarr.

sudo nano lidarr.service

The following must be in this file.

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

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

Save the file with ctrl + x. And y to confirm.

Now move the service file to the correct location.

mv lidarr.service /etc/systemd/system/

We’ll be adding the Lidarr service to the system so it can be managed and started automatically along with the system. This allows Lidarr to run reliably without manual intervention.

systemctl enable lidarr.service

We start the Lidarr service.

systemctl start lidarr.service

You have now completed the installation of Lidarr on Ubuntu. And Lidarr is now started automatically during the startup of Ubuntu.

Lidarr tutorial Ubuntu

  1. Lidarr tutorial.
  2. Install Lidarr Ubuntu.
  3. Configuring Lidarr Ubuntu.
  4. Ubuntu Lidarr Music Download.

Be the first to comment

Leave a Reply