Uses Swizzin to setup a media server with Plex and various downloaders
First, install a minimal installation of Debian 10 with the following changes:
Swizzin Media Server
Optiplex-Media-Swizzin
64-bit PC netinst iso
file from debian.orgCreate/Register VM
:Create a new virtual machine
Linux
and Debian GNU/Linux 10 (64-bit)
Target Datastore
CPU
:Expose hardware assisted virtualization to the guest OS
Add other device
> NVMe controller
Hard Disk 1
> Controller location
> NVMe controller 0
SCSI controller 0
Finish
Host
> Manage
> System
> Autostart
:Enable
Start earlier
and Start later
to set the desired orderVirtual Machines
on the sidebar and click on the current VMSSH server
and Standard system utilities
Hardware Configuration
> Network adapter 1
) and desired hostname# Login with root details that were set earlier # Update packages: apt update apt upgrade # Install VMWare tools apt install open-vm-tools # Change the SSH port to 50001: sed -i "s/#Port 22/Port 50001/" /etc/ssh/sshd_config exit
Minimal server installation of Debian 10 Ports: 50001/tcp SSH
Base Install
userdel -r <username>
bash <(wget -qO - git.io/swizzin) && . ~/.bashrc
shutdown 0
Swizzin installed
media.domain.com
to https://Optiplex-Media-Swizzin
deluge
in the root of the Downloads shareMedia
and using a randomly generated passwordDownloads
, Music
, and Video
Media
useroptiples-media-swizzin:50001
using the admin account created with Swizzin and run the following:sudo apt install cifs-utils # Setup mount points mkdir /mnt/Music /mnt/Video chmod 777 /mnt/Music /mnt/Video rm -r /home/derek/torrents/deluge # Check using ls -a for hidden files first # Using this command, add the following lines to fstab: sudo nano /etc/fstab # Lines to add (replace the password): //FileServer/Downloads /home/derek/torrents cifs user=Media,password=<password>,x-systemd.automount,rw,dir_mode=0777,file_mode=0777,uid=1000,gid=1000 0 0 //FileServer/Music /mnt/Music cifs user=Media,password=<password>,x-systemd.automount,rw,dir_mode=0777,file_mode=0777,uid=1000,gid=1000 0 0 //FileServer/Video /mnt/Video cifs user=Media,password=<password>,x-systemd.automount,rw,dir_mode=0777,file_mode=0777,uid=1000,gid=1000 0 0 # Allow CIFS mounts to show in the panel admin page # Using this command, change the ''get_mounts()'' function to match the function below sudo -u swizzin nano /opt/swizzin/core/util.py # Restart sudo shutdown 0
The resulting get_mounts()
function (added the two lines between the octothorpes):
def get_mounts(): mounts = [] with open("/proc/mounts") as mount: for line in mount: fields = line.strip().split() if fields[0].startswith("/dev"): if ("boot" in fields[1]) or ("fuse" in fields) or ("/snap/" in fields[1]) or ("/loop" in fields[0]): continue else: mounts.append(fields[1]) ### elif fields[0].startswith("//"): mounts.append(fields[1]) ### with open("/etc/fstab") as fstab: for line in fstab: fields = line.strip().split() if "bind" in str(fields): try: mounts.remove(fields[1]) except: pass return mounts
Mounts configured, before Plex transfer
https://media.domain.com
Plex
in the sidebar:Downloads
share to transfer the Plex filesDeluge
from the sidebar:Preferences
:Bandwidth
:Maximum Upload Speed
Queue
:Downloading
> 8
Proxy
:Type
> Socks5 Auth
Force Use of Proxy
Hide Client Identity
Plugins
:Label
Jackett
from the sidebar:Sonarr
from the sidebar:Settings
:Show Advanced
Media Management
:Rename Episodes
Season Folder Format
> Season {season:00}
Specials Folder Format
> Season 00
Multi-Episode Style
> Range
Use Hardlinks Instead of Copy
Import Extra Files
, keeping just srt
enabledAdd Root Folder
> /home/derek/torrents/Video/TV Shows
Save Changes
Quality
:Indexers
:http://localhost:9117
Download Clients
:Name
> Deluge
Host
> localhost
Port
> The Deluge Web Port saved from earlierPassword
> Your Swizzin passwordConnect
:UI
:First Day of Week
> Monday
Week Column Header
> Tue 25/03
Short Date Format
> 25/03/2014
Long Date Format
> Tuesday, 25 March, 2014
Time Format
> 17:00/17:30
Save Changes
Radarr
in the sidebar:Settings
:Show Advanced
Media Management
:Rename Movies
Standard Movie Format
Use Hardlinks Instead of Copy
Import Extra Files
, keeping just srt
enabledUnmonitor Deleted Movies
Add Root Folder
> /home/derek/torrents/Video/Movies
Save Changes
Custom Formats
> Add new custom format > Import
> Paste the custom format import string from belowProfiles
:Any
profile:HEVC
custom format score to 50
Quality
:Indexers
:Jackett
preset of Torznab
, changing the name, replacing YOURINDEXER
with the name used in Jackett, the API Key from Jackett, and setting appropriate categoriesAvailability Delay
> 3
DaysRestriction
with a Must Not Contain
of 3d
Download Clients
:Name
> Deluge
Host
> localhost
Port
> The Deluge Web Port saved from earlierPassword
> Your Swizzin passwordConnect
:UI
:First Day of Week
> Monday
Week Column Header
> Tue 25/03
Short Date Format
> 25/03/2014
Long Date Format
> Tuesday, 25 March, 2014
Time Format
> 17:00/17:30
Save Changes
Lidarr
in the sidebar:Settings
:Show Advanced
Media Management
:Rename Tracks
Standard Track Format
> {track:00} {Track Title}
Multi Disc Track Format
> {medium:0}-{track:00} {Track Title}
Album Folder Format
> {Album Title}
Use Hardlinks Instead of Copy
Add Root Folder
> /home/derek/torrents/Music/iTunes/iTunes Media/Music/
Add Root Folder
> /home/derek/torrents/Music/Add to Music/Lidarr/
Save Changes
Quality
:Indexers
:http://localhost:9117
Download Clients
:Name
> Deluge
Host
> localhost
Port
> The Deluge Web Port saved from earlierPassword
> Your Swizzin passwordAdd Paused
Connect
:UI
:First Day of Week
> Monday
Week Column Header
> Tue 25/03
Short Date Format
> 25/03/2014
Long Date Format
> Tuesday, 25 March, 2014
Time Format
> 17:00/17:30
Save Changes
Compliations
folder
: setup any other upgrade things?
# Follow the setup from the following, using defaults except for daily updates selecting no sudo box upgrade plex
Configured
: Figure out Lidarr process
Set up Remote Torrent Adder (Github) for Chrome:
Add Server
:Name
> Deluge
Server type
> Deluge WebUI
Host
> <media.domain.com>
Port
> 443
Enable SSL
Username
> Your Swizzin username
Password
> Your Swizzin password
Relative Path
> /deluge
: Finish writing update process
# Run the following with sudo if not logged in as root apt update apt upgrade reboot # If desired/needed
: Deluge
sudo box upgrade plex
* Sonarr, Radarr, and Lidarr all update from their respective pages
~ torrents (mapped to //fileserver/Downloads) deluge (Deluge target) Music (symlink on smb server) Add to Music Lidarr (Lidarr target) Videos (symlink on smb server) Movies (Radarr target) TV Shows (Sonarr target) /mnt Music (//fileserver/Music) iTunes iTunes Media Music (Plex Library) Video (//fileserver/Video) Movies (Plex Library) TV Shows (Plex Library)