mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-11-22 02:32:51 +01:00
Instructions to install Sonarr (v3) on Fedora 31
parent
05059dec61
commit
4206b30e5f
87
Installation-(v3-beta)-Fedora-31.md
Normal file
87
Installation-(v3-beta)-Fedora-31.md
Normal file
@ -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
|
||||
<?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
|
||||
```
|
Loading…
Reference in New Issue
Block a user