Skip to content

Instantly share code, notes, and snippets.

@cjLGH
Last active July 29, 2018 23:43
Show Gist options
  • Save cjLGH/b73e97be74e4368204b475af7ad0d590 to your computer and use it in GitHub Desktop.
Save cjLGH/b73e97be74e4368204b475af7ad0d590 to your computer and use it in GitHub Desktop.
Radarr Manual Install
# Add Ubuntu 16.04 Mono repository to your system
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo apt install apt-transport-https
echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
# Install dependencies
sudo apt-get install -y libmono-cil-dev curl mediainfo
# Download and extract latest Radarr release from github
curl -L -O $( curl -s https://api.github.com/repos/Radarr/Radarr/releases | grep linux.tar.gz | grep browser_download_url | head -1 | cut -d \" -f 4 )
sudo tar -xvzf Radarr.develop.*.linux.tar.gz -C /opt/
# Cleanup download
sudo rm -r Radarr.develop.*.linux.tar.gz
# Change ownership
sudo chown -R user:user /opt/Radarr
# Create systemd autostart
sudo cat >/etc/systemd/system/radarr.service <<EOL
[Unit]
Description=Radarr Daemon
After=syslog.target network.target
[Service]
User=USER # Change user.
Group=USER # Change user.
Type=simple
ExecStart=/usr/bin/mono --debug /opt/Radarr/Radarr.exe --nobrowser
TimeoutStopSec=20
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOL
sudo systemctl enable radarr
sudo service radarr start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment