Install Lidarr Ubuntu via the command line

In this Lidarr install Ubuntu tutorial. Are we going to install Lidarr on a Ubuntu Computer. So that your books are automatically downloaded from the newsgroups.

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

Install 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.

Download and install Lidarr Ubuntu

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

Download Lidarr. Beware! Don’t forget, you must change the version number.

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

Now we have to unpack Lidarr.

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

Create a Lidarr user, and group.

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

Now we are going to put the rights correctly on the Lidarr folder.

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

Create a Lidarr service file.

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.

mv lidarr.service /etc/systemd/system/

We are going to add the Lidarr service.

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.

Share This

Leave a Reply