Skip to content

Sonarr Deployment Guide for CentOS 7

Installation

# Download dependencies
sudo yum install epel-release yum-utils -y
sudo rpm –import “http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF”
sudo yum-config-manager –add-repo http://download.mono-project.com/repo/centos/
sudo yum install wget mediainfo libzen libmediainfo curl gettext mono-core mono-devel sqlite.x86_64 -y
sudo yum -y install wget git par2cmdline p7zip unrar unzip tar gcc python-yenc python-feedparser python-configobj python-cheetah python-dbus python-support python-devel libxslt-devel

# Download application
cd ~
sudo wget http://update.sonarr.tv/v2/master/mono/NzbDrone.master.tar.gz
sudo tar -xvf ~/NzbDrone.master.tar.gz -C /usr/local/
sudo rm -f NzbDrone.master.tar.gz
sudo mv /usr/local/NzbDrone /usr/local/sonarr

# Add user
sudo useradd sonarr -s /sbin/nologin
sudo usermod -a -G plex sonarr # Optionally add user to the plex group, if it exists
sudo chown -R sonarr:sonarr /usr/local/sonarr

Web Interface Access
URL: http://hostname:5050/ (first time takes to /wizard)
Port: 5050

Firewall

sudo vim /etc/firewalld/services/sonarr.xml

<?xml version=”1.0″ encoding=”utf-8″?>
<service>
<short>sonarr</short>
<description>Sonarr Download Service</description>
<port protocol=”tcp” port=”8989″/>
</service>

# Add firewall rules
firewall-cmd –reload
firewall-cmd –permanent –zone=internal –add-service sonarr
firewall-cmd –reload
firewall-cmd –zone=internal –list-all

Service

sudo vim /etc/systemd/system/sonarr.service

[Unit]
Description=Sonarr Daemon
After=syslog.target network.target

[Service]
User=sonarr
Group=sonarr
Type=simple
ExecStart=/usr/bin/mono /usr/local/sonarr/NzbDrone.exe -nobrowser -data /opt/sonarr
TimeoutStopSec=20

[Install]
WantedBy=multi-user.target

sudo systemctl enable sonarr.service
sudo systemctl start sonarr

Published inGuides

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *