Install dependencies
apt install curl mediainfo sqlite3 libchromaprint-tools
Create a new lidarr POSIX user and ensure they're part of the media group.
(I won't go over creating the media group. This is the same group that is utilized throughout my entire media stack (Radarr, Sonarr, etc) as well as the storage and media servers that store and serve the content)
useradd -Ms /bin/bash lidarr && \
usermod -aG media lidarr
Create the /var directory required by Lidarr
mkdir /var/lib/lidarr && \
chown lidarr /var/lib/lidarr && \
chmod 766 /var/lib/lidarr
Download Lidarr, uncompress the files, and change the app's ownership
wget --content-disposition 'http://lidarr.servarr.com/v1/update/master/updatefile?os=linux&runtime=netcore&arch=x64' && \
tar -xvzf Lidarr*.linux*.tar.gz -C /opt && \
chown -R lidarr:media /opt/Lidarr
Create a systemd service to run Lidarr
cat << EOF | tee /etc/systemd/system/lidarr.service > /dev/null
[Unit]
Description=Lidarr Daemon
After=syslog.target network.target
[Service]
User=lidarr
Group=media
Type=simple
ExecStart=/opt/Lidarr/Lidarr -nobrowser -data=/var/lib/lidarr/
TimeoutStopSec=20
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
Reload systemd and enable the new Lidarr service
systemctl daemon-reload && \
systemctl enable --now lidarr.service && \
systemctl status lidarr.service
Lidarr should now be listening on 8686/tcp. Navigate to the web app to setup your user account