redhat:other-redhat:usenet-download-redhat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
redhat:other-redhat:usenet-download-redhat [2019/07/10 10:52] michaelredhat:other-redhat:usenet-download-redhat [2020/06/14 14:58] (current) – [Install Usenet Services] michael
Line 5: Line 5:
  
 <code> <code>
-# yum update && yum install nfs-utils epel-release yum-utils 
-# systemctl start rpcbind nfslock && systemctl enable rpcbind nfslock  
 # curl -sSL https://www.blackgate.org/deployment/base_configuration_blackGATE.sh | bash # curl -sSL https://www.blackgate.org/deployment/base_configuration_blackGATE.sh | bash
-vim /etc/motd +yum update && yum install nfs-utils yum-utils epel-release 
-mkdir /mnt/blackserv+systemctl start rpcbind nfslock && systemctl enable rpcbind nfslock
  
 +# groupadd usenetserver
 +# mkdir /mnt/blackserv
 +# chgrp -R usenetserver /mnt/blackserv/ && chmod -R 775 /mnt/blackserv/
 # vim /etc/fstab # vim /etc/fstab
 </code> </code>
Line 47: Line 48:
  
 # mkdir /var/www/html/muximux # mkdir /var/www/html/muximux
 +# usermod -a -G apache michael
 # git clone https://github.com/mescon/Muximux.git /var/www/html/muximux/ # git clone https://github.com/mescon/Muximux.git /var/www/html/muximux/
 # chown -R apache:apache /var/www/html/muximux/ # chown -R apache:apache /var/www/html/muximux/
Line 136: Line 138:
 # cd /opt/nzbget/ # cd /opt/nzbget/
 # ./nzbget -s # ./nzbget -s
-# useradd -nzbget +# useradd --system --home-dir=/opt/nzbget nzbget 
-# chown -R nzbget:nzbget /opt/nzbget+# usermod -a -G usenetserver nzbget 
 +# chown -R nzbget:usenetserver /opt/nzbget
  
 # vim /etc/systemd/system/nzbget.service # vim /etc/systemd/system/nzbget.service
Line 207: Line 210:
 # git clone https://github.com/theotherp/nzbhydra /opt/nzbhydra # git clone https://github.com/theotherp/nzbhydra /opt/nzbhydra
  
-# useradd -nzbhydra +# useradd --system --home-dir=/opt/nzbhydra nzbhydra 
-# chown -R nzbhydra:nzbhydra /opt/nzbhydra +# usermod -a -G usenetserver nzbhydra 
-# useradd -r nzbhydra+# chown -R nzbhydra:usenetserver /opt/nzbhydra
 # ls -l /opt/nzbhydra/ # ls -l /opt/nzbhydra/
  
Line 256: Line 259:
 ---- ----
  
 +<WRAP center box 100%>
 ==== Setup Sonarr - TV Download Tool ==== ==== Setup Sonarr - TV Download Tool ====
  
Line 261: Line 265:
 # rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" # rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
 # yum-config-manager --add-repo http://download.mono-project.com/repo/centos/ # yum-config-manager --add-repo http://download.mono-project.com/repo/centos/
-# yum install wget mediainfo libzen libmediainfo curl gettext mono-core mono-devel sqlite +# yum install -y mediainfo libzen libmediainfo curl gettext mono-core mono-devel sqlite mono-locale-extras wget git par2cmdline p7zip unrar unzip tar gcc python-feedparser python-configobj python-cheetah python-dbus python-devel libxslt-devel
-# yum -y install wget git par2cmdline p7zip unrar unzip tar gcc python-feedparser python-configobj python-cheetah python-dbus python-devel libxslt-devel+
  
-useradd -r sonarr +cd /tmp/ 
-cd /tmp/ +# useradd --system --home-dir=/opt/sonarr sonarr 
-wget http://update.sonarr.tv/v2/master/mono/NzbDrone.master.tar.gz +# usermod -a -G usenetserver sonarr 
-tar -xvf NzbDrone.master.tar.gz +wget http://update.sonarr.tv/v2/master/mono/NzbDrone.master.tar.gz 
-mkdir -p /opt/sonarr/bin +tar -xvf NzbDrone.master.tar.gz 
- +mkdir -p /opt/sonarr/bin
-cp -a /tmp/NzbDrone/* /opt/sonarr/bin +
-chown -R sonarr:sonarr /opt/sonarr +
- +
-vim /opt/sonarr/bin/NzbDrone.exe.config +
-/usr/bin/mono /opt/sonarr/bin/NzbDrone.exe -nobrowser -data /opt/sonarr +
- +
-vim /etc/systemd/system/sonarr.service+
  
-systemctl daemon-reload +# cp -a /tmp/NzbDrone/* /opt/sonarr/bin 
-systemctl start sonarr && systemctl status sonarr+# chown -R sonarr:usenetserver /opt/sonarr
  
-curl -v http://127.0.0.1:8989/sonarr/+# vim /opt/sonarr/.config/NzbDrone/config.xml
 </code> </code>
  
----- +<sxh bash; highlight: [4];> 
- +<Config> 
-==== Setup Radarr- Movie Download Tool ====+  <LogLevel>Info</LogLevel> 
 +  <Port>8989</Port> 
 +  <UrlBase>/usenetdl/sonarr</UrlBase> 
 +  <BindAddress>*</BindAddress> 
 +  <SslPort>9898</SslPort> 
 +  <EnableSsl>False</EnableSsl> 
 +  <ApiKey>********************************</ApiKey> 
 +  <AuthenticationMethod>None</AuthenticationMethod> 
 +  <Branch>master</Branch> 
 +  <LaunchBrowser>True</LaunchBrowser> 
 +  <SslCertHash></SslCertHash> 
 +  <UpdateMechanism>BuiltIn</UpdateMechanism> 
 +</sxh>
  
 <code> <code>
-cd /tmp +/usr/bin/mono /opt/sonarr/bin/NzbDrone.exe -nobrowser -data /opt/sonarr 
-wget https://github.com/Radarr/Radarr/releases/download/v0.2.0.980/Radarr.develop.0.2.0.980.linux.tar.gz +# vim /etc/systemd/system/sonarr.service 
-tar -xvf Radarr.develop.0.2.0.980.linux.tar.gz+</code>
  
-mkdir /opt/radarr +<sxh bash> 
-mkdir /opt/radarr/bin+[Unit] 
 +Description=Sonarr Daemon 
 +After=syslog.target network.target
  
-cp -R Radarr//opt/radarr/bin/ +[Service] 
-ls -/opt/radarr/bin/+User=sonarr 
 +Group=usenetserver 
 +Type=simple 
 +ExecStart=/usr/bin/mono /opt/sonarr/bin/NzbDrone.exe -nobrowser -data /opt/sonarr/ 
 +TimeoutStopSec=20
  
-chown -R radarr:radarr /opt/radarr/+[Install] 
 +WantedBy=multi-user.target 
 +</sxh>
  
-vim /etc/systemd/system/radarr.service +<code> 
-systemctl start radarr && systemctl status radarr +# systemctl daemon-reload 
-systemctl enable radarr+systemctl start sonarr && systemctl status sonarr 
 +systemctl enable sonarr 
 +</code> 
 +</WRAP>
  
-vim /opt/radarr/.config/Radarr/config.xml +----
-systemctl restart radarr +
-vim /etc/httpd/conf/httpd.conf+
  
-vim /opt/radarr/.config/Radarr/config.xml+<WRAP center box 100%> 
 +==== Setup Radarr- Movie Download Tool ====
  
-vim /opt/sonarr/.config/NzbDrone/config.xml+<code> 
 +# cd /tmp/ 
 +# wget https://github.com/Radarr/Radarr/releases/download/v0.2.0.1480/Radarr.develop.0.2.0.1480.linux.tar.gz 
 +# tar -xvf Radarr.develop*
  
 +# mkdir -p /opt/radarr/bin
 +# useradd --system --home-dir=/opt/radarr radarr
 +# usermod -a -G usenetserver radarr
 +# cp -R Radarr/* /opt/radarr/bin/
 +# ls -l /opt/radarr/bin/
 +# chown -R radarr:usenetserver /opt/radarr/
  
-cd /tmp +# vim /opt/radarr/.config/Radarr/config.xml 
-wget https://github.com/Radarr/Radarr/releases/download/v0.2.0.995/Radarr.develop.0.2.0.995.linux.tar.gz +</code>
-tar -xvf Radarr.develop.0.2.0.995.linux.tar.gz +
-mkdir /opt/radarr +
-mkdir /opt/radarr/bin +
-cp -R Radarr/* /opt/radarr/bin/+
  
-ls -l /opt/radarr/bin+<sxh bash; highlight: [4];> 
-cat /opt/radarr/.mono+<Config> 
-cat /opt/radarr/.config/+  <LogLevel>Info</LogLevel> 
 +  <Port>7878</Port> 
 +  <UrlBase>/usenetdl/radarr</UrlBase> 
 +  <BindAddress>*</BindAddress> 
 +  <SslPort>9898</SslPort> 
 +  <EnableSsl>False</EnableSsl> 
 +  <ApiKey>********************************</ApiKey> 
 +  <AuthenticationMethod>None</AuthenticationMethod> 
 +  <Branch>develop</Branch> 
 +  <LaunchBrowser>True</LaunchBrowser> 
 +  <SslCertHash></SslCertHash> 
 +  <UpdateMechanism>BuiltIn</UpdateMechanism> 
 +  <AnalyticsEnabled>False</AnalyticsEnabled> 
 +</sxh>
  
-chown -R radarr:radarr /opt/radarr/ +<code> 
-vim /opt/radarr/.config/Radarr/config.xml+# vim /etc/systemd/system/radarr.service 
 +</code>
  
 +<sxh bash>
 +[Unit]
 +Description=Radarr Daemon
 +After=syslog.target network.target
  
-vim /etc/systemd/system/nzbget.service +[Service] 
-vim /etc/systemd/system/radarr.service +User=radarr 
-systemctl status radarr.service +Group=usenetserver 
-systemctl status radarr.service -l +Type=simple 
-vim /etc/systemd/system/nzbget.service +ExecStart=/usr/bin/mono /opt/radarr/bin/Radarr.exe -nobrowser -data /opt/radarr 
-netstat -tulpen +TimeoutStopSec=20 
-vim /etc/httpd/conf/httpd.conf +KillMode=process 
-firewall-cmd --list-services +Restart=on-failure
-firewall-cmd --list-ports +
-firewall-cmd --zone=public --add-port=8989/tcp --permanent +
-firewall-cmd --reload +
-firewall-cmd --zone=public --add-port=7878/tcp --permanent +
-firewall-cmd --reload+
  
-yum search mono-locale-extras +[Install] 
-yum install mono-locale-extras +WantedBy=multi-user.target 
-yum update +</sxh>
-reboot +
-yum update +
- +
-restorecon -Rv /var/www/html/ +
-cd /var/www/html/ +
-ls -la +
-setenforce 0 +
-cat README.md +
-cd .. +
-ls -la +
-chmod apache:apache html/ +
- +
- +
-vim /etc/systemd/system/radarr.service +
-vim /opt/sonarr/.config/NzbDrone/config.xml +
-vim /opt/radarr/.config/NzbDrone/config.xml +
-vim /opt/radarr/.config/Radarr/config.xml +
-systemctl restart radarr +
-systemctl reload httpd +
-vim /etc/httpd/conf/httpd.conf +
-systemctl reload httpd +
-ls -la /var/www/html/ +
-mkdir /var/www/html/_staticPage +
- +
-vim server_backup_script.sh +
-systemctl status httpd.service +
-ls -la /opt/ +
-chmod +x server_backup_script.sh +
-ifconfig +
-./server_backup_script.sh +
-vim /etc/crontab+
  
 +<code>
 +# systemctl daemon-reload
 +# systemctl start radarr && systemctl status radarr
 +# systemctl enable radarr
 </code> </code>
 +</WRAP>
  
 ---- ----
  
 +<WRAP center box 100%>
 ==== Setup Lidarr - Music Download Tool ==== ==== Setup Lidarr - Music Download Tool ====
  
Line 406: Line 417:
  
 # ls -la /opt/lidarr/bin/ # ls -la /opt/lidarr/bin/
-# useradd -lidarr+# useradd --system --home-dir=/opt/lidarr lidarr
 # usermod -a -G usenetserver lidarr # usermod -a -G usenetserver lidarr
-# chown -R lidarr:lidarr /opt/lidarr/+# chown -R lidarr:usenetserver /opt/lidarr/
  
 # vim /opt/lidarr/.config/Lidarr/config.xml # vim /opt/lidarr/.config/Lidarr/config.xml
 </code> </code>
 +
 +<sxh bash; highlight: [4];>
 +<Config>
 +  <LogLevel>Info</LogLevel>
 +  <Port>8686</Port>
 +  <UrlBase>/usenetdl/lidarr</UrlBase>
 +  <BindAddress>*</BindAddress>
 +  <SslPort>6868</SslPort>
 +  <EnableSsl>False</EnableSsl>
 +  <ApiKey>********************************</ApiKey>
 +  <AuthenticationMethod>None</AuthenticationMethod>
 +  <Branch>develop</Branch>
 +  <LaunchBrowser>True</LaunchBrowser>
 +  <SslCertHash></SslCertHash>
 +  <UpdateMechanism>BuiltIn</UpdateMechanism>
 +  <AnalyticsEnabled>False</AnalyticsEnabled>
 +</sxh>
  
 <code> <code>
Line 422: Line 450:
 </code> </code>
  
-<code+<sxh bash
-ls -la /root/.config/Lidarr/ +[Unit] 
-ls -la /home/ +Description=Lidarr Daemon 
-ls -la /root/.config/ +After=syslog.target network.target
-rm -Rf /root/.config/ +
-vim /etc/group +
-vim /etc/passwd+
  
 +[Service]
 +User=lidarr
 +Group=usenetserver
 +Type=simple
 +ExecStart=/usr/bin/mono /opt/lidarr/bin/Lidarr.exe -nobrowser -data /opt/lidarr
 +TimeoutStopSec=20
 +KillMode=process
 +Restart=on-failure
 +
 +[Install]
 +WantedBy=multi-user.target
 +</sxh>
 +
 +<code>
 # systemctl daemon-reload # systemctl daemon-reload
 # systemctl start lidarr.service && systemctl status lidarr.service # systemctl start lidarr.service && systemctl status lidarr.service
 # systemctl enable lidarr.service # systemctl enable lidarr.service
 +</code>
 +</WRAP>
  
-firewall-cmd --zone=public --add-port=8686/tcp --permanent +---
-firewall-cmd --reload+ 
 +<WRAP center box 100%> 
 +===Setup bazarr Subtitles Download Tool ==== 
 +''Bazarr is a companion application to Sonarr and Radarr. It manages and downloads subtitles based on your requirements.'' 
 + 
 +<code> 
 +# yum install https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm 
 +# yum install unrar.x86_64 python3-pip python36-distutils-extra.noarch 
 +# cd /opt/ 
 +# git clone https://github.com/morpheus65535/bazarr.git 
 + 
 +# useradd --system --home-dir=/opt/bazarr bazarr 
 +# usermod --G usenetserver bazarr 
 +# chown -R bazarr: /opt/bazarr 
 + 
 +# ls -la /opt/bazarr/ 
 +# pip install -r /opt/bazarr/requirements.txt 
 + 
 +# vim /opt/bazarr/data/config/config.ini
 </code> </code>
 +
 +<sxh bash; highlight: [11];>
 +...
 +[general]
 +update_restart = True
 +movie_default_hi = False
 +movie_default_language = []
 +serie_default_forced = False
 +chmod = 0640
 +use_scenename = True
 +use_postprocessing = False
 +use_radarr = False
 +base_url = /usenetdl/bazarr
 +page_size = 25
 +...
 +</sxh>
 +
 +<code>
 +# /usr/bin/python /opt/bazarr/bazarr.py
 +</code>
 +
 +''CTRL + C''
 +
 +<code>
 +# vim /etc/systemd/system/bazarr.service
 +</code>
 +
 +<sxh bash>
 +[Unit]
 +Description=Bazarr Daemon
 +After=syslog.target network.target
 +
 +[Service]
 +WorkingDirectory=/opt/bazarr/
 +User=bazarr
 +Group=usenetserver
 +UMask=0002
 +Type=simple
 +ExecStart=/usr/bin/python /opt/bazarr/bazarr.py
 +TimeoutStopSec=20
 +KillSignal=SIGINT
 +RestartSec=5
 +Restart=on-failure
 +SyslogIdentifier=bazarr
 +
 +[Install]
 +WantedBy=multi-user.target
 +</sxh>
 +
 +<code>
 +# chown -R bazarr:usenetserver /opt/bazarr/
 +# systemctl daemon-reload
 +
 +# systemctl start bazarr && systemctl status bazarr
 +# systemctl enable bazarr
 +</code>
 +</WRAP>
 +
 +===== Finishing Server Setup =====
 +
 +==== Configure Muximux Landingpage ====
 +<code>
 +# vim /var/www/html/muximux/settings.ini.php
 +</code>
 +
 +<sxh bash; highlight: [30-36,38-45,47-53,55-61,63-69];>
 +<?php die('Access denied'); ?>
 +[general]
 +title = "Usenet Download-Server v3"
 +branch = "master"
 +theme = "modern"
 +color = "#31ac63"
 +tabcolor = "true"
 +rssUrl = ""
 +userNameInput = "admin"
 +password = "muximux"
 +
 +[settings]
 +branch_changed = ""
 +sha = ""
 +enabled = "true"
 +default = "false"
 +name = "Settings"
 +url = "muximux.php"
 +landingpage = "false"
 +icon = "fa-cog"
 +dd = "true"
 +branches[develop] = "RANDOM_NUMBER"
 +branches[experimental] = "RANDOM_NUMBER"
 +branches[master] = "RANDOM_NUMBER"
 +branches[parseError] = "RANDOM_NUMBER"
 +branches[saveProblem] = "RANDOM_NUMBER"
 +last_check = RANDOM_NUMBER
 +branch = ""
 +
 +[nzbhydra]
 +name = "NZB Hydra"
 +url = "/usenetdl/nzbhydra/"
 +scale = 1
 +icon = "muximux-nzbhydra"
 +color = "#108f34"
 +enabled = "true"
 +
 +[Sonarr]
 +name = "Sonarr"
 +url = "/usenetdl/sonarr/"
 +scale = 1
 +icon = "muximux-sonarr"
 +color = "#35c5f4"
 +enabled = "true"
 +default = "true"
 +
 +[423418newApplication]
 +name = "Radarr"
 +url = "/usenetdl/radarr/"
 +scale = 1
 +icon = "muximux-sonarr"
 +color = ""
 +enabled = "true"
 +
 +[726600newApplication]
 +name = "Lidarr"
 +url = "/usenetdl/lidarr/"
 +scale = 1
 +icon = "muximux-sonarr"
 +color = ""
 +enabled = "true"
 +
 +[NZBGet]
 +name = "NZBGet"
 +url = "/usenetdl/nzbget/"
 +scale = 1
 +icon = "muximux-download"
 +color = "#3f8927"
 +enabled = "true"
 +
 +</sxh>
 +----
 +
 +<WRAP center box 100%>
 +==== Checking Server Setup ====
 +
 +''Checking if all services are in the usenetserver group:''<sxh bash; gutter: false; highlight: [1];>
 +[root@rhdl03 ~]# cat /etc/group | grep usenetserver
 +usenetserver:x:1001:nzbget,nzbhydra,radarr,sonarr,lidarr
 +</sxh>
 +
 +----
 +
 +''Checking if Userhome is set to /opt:''<sxh bash; gutter: false; highlight: [1];>
 +[root@rhdl03 ~]# cat /etc/passwd | grep -e 'sonarr' -e 'radarr' -e 'lidarr' -e 'nzbget' -e 'nzbhydra'
 +nzbget:x:996:993::/opt/nzbget:/bin/bash
 +nzbhydra:x:995:992::/opt/nzbhydra:/bin/bash
 +sonarr:x:994:991::/opt/sonarr:/bin/bash
 +radarr:x:993:990::/opt/radarr:/bin/bash
 +lidarr:x:992:989::/opt/lidarr:/bin/bash
 +</sxh>
 +
 +----
 +
 +''Checking if all services are up and running:''<sxh bash; gutter: false; highlight: [1];>
 +[root@rhdl03 ~]# netstat -tulpn | grep -e 'nzbget' -e 'mono' -e 'httpd' -e 'python2.7'
 +tcp        0      0 0.0.0.0:6789            0.0.0.0:              LISTEN      3177/nzbget
 +tcp        0      0 0.0.0.0:7878            0.0.0.0:              LISTEN      3105/mono
 +tcp        0      0 0.0.0.0:8686            0.0.0.0:              LISTEN      3113/mono
 +tcp        0      0 0.0.0.0:5075            0.0.0.0:              LISTEN      3106/python2.7
 +tcp        0      0 0.0.0.0:8989            0.0.0.0:              LISTEN      3109/mono
 +tcp6            0 :::80                   :::                   LISTEN      3196/httpd
 +</sxh>
 +</WRAP>
 +
 +
  • redhat/other-redhat/usenet-download-redhat.1562748768.txt.gz
  • Last modified: 2019/07/10 10:52
  • by michael