Media Server Setup: Difference between revisions
(4 intermediate revisions by the same user not shown) | |||
Line 117: | Line 117: | ||
Create Service @ /etc/systemd/system/radarr.service | Create Service @ /etc/systemd/system/radarr.service | ||
<pre> | <pre> | ||
Description=Radarr Daemon | Description=Radarr Daemon | ||
Line 124: | Line 124: | ||
User=bpopp | User=bpopp | ||
Group=bpopp | Group=bpopp | ||
ExecStart=/usr/bin/mono | ExecStart=/usr/bin/mono /usr/share/radarr/Radarr.exe -nobrowser & | ||
GuessMainPID=no | |||
KillMode=process | KillMode=process | ||
Restart=on-failure | |||
[Install] | [Install] | ||
Line 134: | Line 135: | ||
Install the Service | Install the Service | ||
<pre></pre> | <pre>sudo systemctl enable radarr</pre> | ||
== Install Sonarr == | == Install Sonarr == | ||
Line 141: | Line 142: | ||
<pre>[Unit] | <pre>[Unit] | ||
Description= | Description=Sonarr Daemon | ||
[Service] | [Service] | ||
Type= | Type=simple | ||
User=bpopp | User=bpopp | ||
Group=bpopp | Group=bpopp | ||
ExecStart=/usr/bin/mono | ExecStart=/usr/bin/mono /usr/share/sonarr/Sonarr.exe -nobrowser & | ||
GuessMainPID=no | GuessMainPID=no | ||
KillMode=process | |||
Restart=on-failure | |||
[Install] | [Install] | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
</pre> | </pre> | ||
Install the Service | |||
<pre>sudo systemctl enable sonarr</pre> |
Latest revision as of 04:00, 3 December 2020
This recipe is for a standard Plex Media server with Sonarr, Radarr, and Sabnzbd running on Debian 10
Install Non-Free Components
sudo vi /etc/apt/sources.list.d/non-free.list
Add the following and save
deb http://deb.debian.org/debian buster main contrib non-free deb-src http://deb.debian.org/debian buster main contrib non-free deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free deb http://deb.debian.org/debian buster-updates main contrib non-free deb-src http://deb.debian.org/debian buster-updates main contrib non-free
Install Sabnzbd prereqs
sudo aptitude install unrar par2
Install Plex
Download Plex media server from the Plex download page
https://www.plex.tv/media-server-downloads/#plex-media-server
Once you've copied the URL for the linux/arm64 version, download it using:
wget https://downloads.plex.tv/plex-media-server-new/1.16.5.1488-deeb86e7f/debian/plexmediaserver_1.16.5.1488-deeb86e7f_amd64.deb
Install using
sudo dpkg -i plexmediaserver_1.16.5.1488-deeb86e7f_amd64.deb
Once it's installed, add it to the aptitude package manager by uncommenting the last line in /etc/apt/sources.list.d/plexmediaserver.list:
sudo vi /etc/apt/sources.list.d/plexmediaserver.list
# When enabling this repo please remember to add the PlexPublic.Key into the apt setup. # wget -q https://downloads.plex.tv/plex-keys/PlexSign.key -O - | sudo apt-key add - deb https://downloads.plex.tv/repo/deb/ public main
Add the key for the repo to apt
wget -q https://downloads.plex.tv/plex-keys/PlexSign.key -O - | sudo apt-key add -
Update
sudo apt update sudo apt upgrade
Install Samba
Samba is a convenient way to access your media directory from windows/Mac PCs
sudo apt install samba
Add the samba user
sudo smbpasswd bpopp
Add the following to the samba config at /etc/samba/smb.conf
[media] comment=Plex Movies path=/home/media valid users=@media public=no writable=yes
Restart Samba
sudo /etc/init.d/smbd restart
Install SABNZBD
Clone the repo to your home directory:
git clone https://github.com/sabnzbd/sabnzbd.git cd sabnzbd git checkout master
To update in the future, run
git pull
Install PIP
sudo apt install python3-pip
Install requirements
pip install -r requirements.txt
Create Service @ /etc/systemd/system/sabnzbd.service
[Unit] Description=SABnzbd Daemon [Service] Type=forking User=bpopp Group=bpopp ExecStart=/usr/share/sabnzbd/SABnzbd.py --daemon --config-file=/home/bpopp/.sabnzbd/sabnzbd.ini -s 0.0.0.0:8080 GuessMainPID=no [Install] WantedBy=multi-user.target
Install Service
sudo systemctl enable sabnzbd
Install Radarr
Create Service @ /etc/systemd/system/radarr.service
Description=Radarr Daemon [Service] Type=simple User=bpopp Group=bpopp ExecStart=/usr/bin/mono /usr/share/radarr/Radarr.exe -nobrowser & GuessMainPID=no KillMode=process Restart=on-failure [Install] WantedBy=multi-user.target
Install the Service
sudo systemctl enable radarr
Install Sonarr
Create Service @ /etc/systemd/system/sonarr.service
[Unit] Description=Sonarr Daemon [Service] Type=simple User=bpopp Group=bpopp ExecStart=/usr/bin/mono /usr/share/sonarr/Sonarr.exe -nobrowser & GuessMainPID=no KillMode=process Restart=on-failure [Install] WantedBy=multi-user.target
Install the Service
sudo systemctl enable sonarr