From 4206b30e5fffe6834511cd5616e8bf75638ca7ac Mon Sep 17 00:00:00 2001 From: MikeDawg Date: Mon, 10 Aug 2020 14:14:30 -0600 Subject: [PATCH] Instructions to install Sonarr (v3) on Fedora 31 --- Installation-(v3-beta)-Fedora-31.md | 87 +++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 Installation-(v3-beta)-Fedora-31.md diff --git a/Installation-(v3-beta)-Fedora-31.md b/Installation-(v3-beta)-Fedora-31.md new file mode 100644 index 0000000..c306756 --- /dev/null +++ b/Installation-(v3-beta)-Fedora-31.md @@ -0,0 +1,87 @@ +# 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](https://github.com/Sonarr/Sonarr/wiki/Installation-Fedora-20) + +### Install Sonarr + +All commands run as root sudo -s if necessary. + +### Add a non-root user + +```bash +groupadd sonarr +adduser -g sonarr -m -c "Sonarr User" -s /sbin/nologin sonarr +``` +### Install Mono + +```bash +dnf install mono-core +``` + +### Install Prerequisites + +```bash +dnf install mediainfo libzen libmediainfo curl gettext sqlite +``` + +### Download and extract Sonarr +[Download latest version of Sonarr (v3 beta)](https://services.sonarr.tv/v1/download/phantom-develop/latest?version=3&os=linux) + +```bash +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 + +```bash +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 +```bash +systemctl enable sonarr.service +``` + +### Start Sonarr service + +```bash +systemctl start sonarr.service +systemctl status sonarr.service +``` + +### Add a firewall rule + +```bash +cat > sonarr.xml << EOF + + + sonarr + Sonarr Download Service + + +EOF +mv sonarr.xml /etc/firewalld/services/ +firewall-cmd --permanent --add-service sonarr +firewall-cmd --reload +``` \ No newline at end of file