Lidarr: verschil tussen versies
Uit WaaaghPedia
Geen bewerkingssamenvatting |
|||
(5 tussenliggende versies door dezelfde gebruiker niet weergegeven) | |||
Regel 15: | Regel 15: | ||
<pre> | <pre> | ||
useradd -r lidarr # Create usenet service account | useradd -r lidarr # Create usenet service account | ||
</pre> | |||
[[Mono|Mono toevoegen]] | |||
<pre> | |||
mkdir -p /apps/{data/.lidarr,lidarr} && cd /apps # Create data dir for Lidarr | mkdir -p /apps/{data/.lidarr,lidarr} && cd /apps # Create data dir for Lidarr | ||
wget $( curl -s https://api.github.com/repos/lidarr/Lidarr/releases | grep linux.tar.gz | grep browser_download_url | head -1 | cut -d \" -f 4 ) # Download Latest Lidarr files | wget $( curl -s https://api.github.com/repos/lidarr/Lidarr/releases | grep linux.tar.gz | grep browser_download_url | head -1 | cut -d \" -f 4 ) # Download Latest Lidarr files | ||
Regel 45: | Regel 49: | ||
== Updaten == | == Updaten == | ||
[[ | [[CentOS 7/Updaten|Update je systeem]] | ||
<pre> | <pre> | ||
pip install pip --upgrade #Update pip | pip install pip --upgrade #Update pip | ||
Regel 53: | Regel 58: | ||
mv Lidarr Lidarr-bu #verplaats huidige versie naar backup locatie | mv Lidarr Lidarr-bu #verplaats huidige versie naar backup locatie | ||
curl -L -O $( curl -s https://api.github.com/repos/lidarr/Lidarr/releases | grep linux.tar.gz | grep browser_download_url | head -1 | cut -d \" -f 4 ) #Download Lidarr files | curl -L -O $( curl -s https://api.github.com/repos/lidarr/Lidarr/releases | grep linux.tar.gz | grep browser_download_url | head -1 | cut -d \" -f 4 ) #Download Lidarr files | ||
tar -xvzf Lidarr | tar -xvzf Lidarr.*.linux.tar.gz #Extract Lidarr files | ||
rm -rf Lidarr.* #Move to lidarr folder, and cleanup after the download | rm -rf Lidarr.* #Move to lidarr folder, and cleanup after the download | ||
chown -R lidarr:lidarr /apps #Change ownership of Lidarr files | chown -R lidarr:lidarr /apps #Change ownership of Lidarr files | ||
Regel 81: | Regel 84: | ||
[https://deviant.engineer/2015/06/usenet-centos7/ deviant.engineer] | [https://deviant.engineer/2015/06/usenet-centos7/ deviant.engineer] | ||
[[Category: | [[Category:SelfHosted Software]] | ||
[[Categorie:Linux Software]] |
Huidige versie van 28 dec 2019 om 13:14
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 #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 lidarr # Create usenet service account
mkdir -p /apps/{data/.lidarr,lidarr} && cd /apps # Create data dir for Lidarr wget $( curl -s https://api.github.com/repos/lidarr/Lidarr/releases | grep linux.tar.gz | grep browser_download_url | head -1 | cut -d \" -f 4 ) # Download Latest Lidarr files tar -xvf Lidarr.develop.*.linux.tar.gz # Extract Lidarr files rm -rf Lidarr.* #Cleanup after the download chown -R lidarr:lidarr /apps # Change ownership of Lidarr files nano /etc/systemd/system/lidarr.service # Create systemd service script file
[Unit] Description=Lidarr Daemon After=syslog.target network.target
[Service] Type=simple User=lidarr Group=lidarr ExecStart=/usr/bin/mono /apps/Lidarr/Lidarr.exe /data=/apps/data/.lidarr Restart=always RestartSec=15 TimeoutStopSec=20
[Install] WantedBy=multi-user.target
systemctl enable lidarr.service # Set Lidarr to start at system boot systemctl start lidarr.service # Start Lidarr
Lidarr is nu geïnstalleerd en beschikbaar op http://hostname:8686
Updaten
pip install pip --upgrade #Update pip cd /apps systemctl stop lidarr #stop lidarr rm -rf Lidarr-bu #Verwijder backup mv Lidarr Lidarr-bu #verplaats huidige versie naar backup locatie curl -L -O $( curl -s https://api.github.com/repos/lidarr/Lidarr/releases | grep linux.tar.gz | grep browser_download_url | head -1 | cut -d \" -f 4 ) #Download Lidarr files tar -xvzf Lidarr.*.linux.tar.gz #Extract Lidarr files rm -rf Lidarr.* #Move to lidarr folder, and cleanup after the download chown -R lidarr:lidarr /apps #Change ownership of Lidarr files systemctl start lidarr.service
Opt
Firewall
firewall-cmd --zone=public --add-port=8686/tcp --permanent firewall-cmd --reload
Nas Koppeling
MediaInfo
yum -y install libmediainfo
fpcalc
curl -L https://github.com/acoustid/chromaprint/releases/download/v1.4.3/chromaprint-fpcalc-1.4.3-linux-x86_64.tar.gz | sudo tar xvz --strip-components=1 -C /usr/local/bin/