1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-11-21 18:22:42 +01:00
1 Installation (v3 beta) Fedora 31
MikeDawg edited this page 2020-08-10 14:14:30 -06:00

Install Guide for (v3) on Fedora 31 (should also apply to Fedora 32)

A lot of this guide, follows right along with the details for installing the previous release, under Installation Fedora 20

Install Sonarr

All commands run as root sudo -s if necessary.

Add a non-root user

groupadd sonarr
adduser -g sonarr -m -c "Sonarr User" -s /sbin/nologin sonarr

Install Mono

dnf install mono-core

Install Prerequisites

dnf install mediainfo libzen libmediainfo curl gettext sqlite

Download and extract Sonarr

Download latest version of Sonarr (v3 beta)

curl -o /tmp/Sonarr.phantom-develop.tar.gz https://services.sonarr.tv/v1/download/phantom-develop/latest?version=3&os=linux
tar xvfz /tmp/Sonarr.phantom-develop.tar.gz -C /opt/
chown -R sonarr:sonarr /opt/Sonarr

Create Sonarr systemd Service and firewall

Create systemd service file

cat > sonarr.service << EOF
[Unit]
Description=Sonarr Daemon
After=syslog.target network.target

[Service]
User=sonarr
Group=sonarr

Type=simple
ExecStart=/usr/bin/mono /opt/Sonarr/Sonarr.exe 
TimeoutStopSpec=70

[Install]
WantedBy=multi-user.target

EOF
mv sonarr.service /etc/systemd/system/sonarr.service

Add Sonarr to startup

systemctl enable sonarr.service

Start Sonarr service

systemctl start sonarr.service
systemctl status sonarr.service

Add a firewall rule

cat > sonarr.xml << EOF
<?xml version="1.0" encoding="utf-8"?>
<service>
  <short>sonarr</short>
  <description>Sonarr Download Service</description>
  <port protocol="tcp" port="8989"/>
</service>
EOF
mv sonarr.xml /etc/firewalld/services/
firewall-cmd --permanent --add-service sonarr
firewall-cmd --reload