No edit summary
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
This recipe is for a standard Plex Media server with Sonarr, Radarr, and Sabnzbd running on Debian 10
This recipe is for a standard Plex Media server with Sonarr, Radarr, and Sabnzbd running on Debian 10
== Install Non-Free Components ==
<pre>sudo vi /etc/apt/sources.list.d/non-free.list</pre>
Add the following and save
<pre>
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
</pre>
Install Sabnzbd prereqs
<pre>sudo aptitude install unrar par2</pre>


== Install Plex ==
== Install Plex ==
Line 30: Line 51:
<pre>sudo apt update
<pre>sudo apt update
sudo apt upgrade</pre>
sudo apt upgrade</pre>
== Install Samba ==
Samba is a convenient way to access your media directory from windows/Mac PCs
<pre>sudo apt install samba</pre>
Add the samba user
<pre>sudo smbpasswd bpopp</pre>
Add the following to the samba config at '''/etc/samba/smb.conf'''
<pre>
[media]
comment=Plex Movies
path=/home/media
valid users=@media
public=no
writable=yes
</pre>
Restart Samba
<pre>sudo /etc/init.d/smbd restart</pre>
== Install SABNZBD ==
Clone the repo to your home directory:
<pre>
git clone https://github.com/sabnzbd/sabnzbd.git
cd sabnzbd
git checkout master
</pre>
To update in the future, run
<pre>git pull</pre>
Install PIP
<pre>sudo apt install python3-pip </pre>
Install requirements
<pre>pip install -r requirements.txt</pre>
Create Service @ '''/etc/systemd/system/sabnzbd.service'''
<pre> [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</pre>
Install Service
<pre>sudo systemctl enable sabnzbd</pre>
== Install Radarr ==
Create Service @ /etc/systemd/system/radarr.service
<pre>
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
</pre>
Install the Service
<pre>sudo systemctl enable radarr</pre>
== Install Sonarr ==
Create Service @ /etc/systemd/system/sonarr.service
<pre>[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
</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