Handelingen

Radarr

Uit WaaaghPedia

Installatie

Voorbereiding

Installeer CentOS en Finetune CentOS

yum -y install epel-release #Install EPEL repo
yum -y install wget git par2cmdline p7zip unzip tar gcc python-feedparser python-configobj python-dbus python-devel python-pip libmediainfo mono-core mono-devel mono-locale-extras curl mediainfo #Install Prereqs
yum -y install https://www.rpmfind.net/linux/rpmfusion/nonfree/el/updates/7/x86_64/u/unrar-5.4.5-1.el7.x86_64.rpm   #Install unrar
yum -y install ftp://rpmfind.net/linux/fedora/linux/releases/22/Everything/x86_64/os/Packages/p/python-yenc-0.4.0-4.fc22.x86_64.rpm #Install python-yenc
pip install pip --upgrade   #Update pip
pip install cheetah cryptography sabyenc --upgrade   #install python modules
yum -y update

Installatie

useradd -r radarr   # Create usenet service account

yum -y install mono-locale-extras   # Necessary for Radarr
mkdir -p /apps/{data/.radarr,radarr} && cd /apps   # Create data dir for Radarr
wget $( curl -s https://api.github.com/repos/Radarr/Radarr/releases | grep linux.tar.gz | grep browser_download_url | head -1 | cut -d \" -f 4 )   # Download Latest Radarr files
tar -xvf Radarr.develop.*.linux.tar.gz   # Extract Radarr files
mv Radarr/* radarr/. && rm -rf Radar*   # Move to radarr folder, and cleanup after the download
chown -R radarr:radarr /apps   # Change ownership of Radarr files
vi /etc/systemd/system/radarr.service   # Create systemd service script file
---
[Unit]
Description=Radarr Daemon
After=syslog.target network.target

[Service]
Type=simple
User=radarr
Group=radarr
ExecStart=/usr/bin/mono /apps/radarr/Radarr.exe /data=/apps/data/.radarr
Restart=always
RestartSec=15
TimeoutStopSec=20

[Install]
WantedBy=multi-user.target
---

systemctl enable radarr.service   # Set Radarr to start at system boot
systemctl start radarr.service   # Start Radarr 

SABnzbd is nu geïnstalleerd en beschikbaar op http://hostname:8080

Updaten

Update je systeem

pip install pip --upgrade   #Update pip
cd /apps
systemctl stop radarr #stop radarr
rm -rf radarr-bu #Verwijder backup
mv radarr radarr-bu #verplaats huidige versie naar backup locatie
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 ) #Download Radarr files
tar -xvzf Radarr.*.linux.tar.gz   #Extract Radarr files
mkdir radarr
mv Radarr/* radarr/. 
rm -rf Radarr*   #Move to Radarr folder, and cleanup after the download
chown -R radarr:radarr /apps   #Change ownership of Radarr files
systemctl start radarr.service

Opt

Firewall

firewall-cmd --zone=public --add-port=7878/tcp --permanent
firewall-cmd --reload

Nas Koppeling

Mount NFS

MediaInfo

yum -y install libmediainfo

Bronnen

Radarr Firewall deviant.engineer