User Tools

Site Tools


esxi:media_server

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
esxi:media_server [2021/01/03 17:45]
derek
esxi:media_server [2024/09/22 19:51] (current)
Line 34: Line 34:
   * Create a snapshot called ''Swizzin installed''   * Create a snapshot called ''Swizzin installed''
  
 +===Setup Base Things===
   * In Caddy, add a reverse proxy entry from ''media.domain.com'' to ''%%https://Optiplex-Media-Swizzin%%''   * In Caddy, add a reverse proxy entry from ''media.domain.com'' to ''%%https://Optiplex-Media-Swizzin%%''
 +  * In Synology:
 +    * Create a folder called ''deluge'' in the root of the Downloads share
 +    * Create a user called ''Media'' and using a randomly generated password
 +    * For each of the following shares: ''Downloads'', ''Music'', and ''Video''
 +      * Create a snapshot
 +      * Give read/write permission to the ''Media'' user
 +  * Open an SSH session to ''optiples-media-swizzin:50001'' using the admin account created with Swizzin and run the following:
 +<code bash>
 +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
 +</code>
 +
 +The resulting ''get_mounts()'' function (added the two lines between the octothorpes):
 +<code python>
 +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
 +</code>
  
 ===Configure Services=== ===Configure Services===
 +  * Create a snapshot called ''Mounts configured, before Plex transfer''
   * Go to ''%%https://media.domain.com%%''   * Go to ''%%https://media.domain.com%%''
 +  * Go to ''Plex'' in the sidebar:
 +    * Follow the instructions on [[https://support.plex.tv/articles/201370363-move-an-install-to-another-system/]] using the mounted ''Downloads'' share to transfer the Plex files
   * Go to ''Deluge'' from the sidebar:   * Go to ''Deluge'' from the sidebar:
-    * FIXME: Deluge Setup (Proxy?) +    * FIXME: Possibly add [[https://github.com/stefantalpalaru/deluge-default-trackers]] (Requires using local client) and use [[https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt]] 
-    * FIXME: Add [[https://github.com/stefantalpalaru/deluge-default-trackers]] (Requires using local client)+    * ''Preferences'': 
 +      * ''Bandwidth'': 
 +        * Set an appropriate ''Maximum Upload Speed'' 
 +      * ''Queue'': 
 +        * ''Downloading'' > ''8'' 
 +      * ''Proxy'': 
 +        * ''Type'' > ''Socks5 Auth'' 
 +        * Fill in details from [[https://support.celo.net/|Celo.net]] 
 +        * Enable ''Force Use of Proxy'' 
 +        * Enable ''Hide Client Identity'' 
 +      * ''Plugins'': 
 +        * Enable ''Label''
   * Go to ''Jackett'' from the sidebar:   * Go to ''Jackett'' from the sidebar:
     * Sign in with the password used to set up Swizzin     * Sign in with the password used to set up Swizzin
Line 49: Line 120:
       * Enable ''Show Advanced''       * Enable ''Show Advanced''
       * ''Media Management'':       * ''Media Management'':
-        * ''Rename Episodes''+        * Enable ''Rename Episodes''
         * Add brackets around each of the quality tags in the formats         * Add brackets around each of the quality tags in the formats
-        * ''Season Folder Format''''Season {season:00}'' +        * ''Season Folder Format'' ''Season {season:00}'' 
-        * ''Specials Folder Format''''Season 00'' +        * ''Specials Folder Format'' ''Season 00'' 
-        * ''Multi-Episode Style''''Range''+        * ''Multi-Episode Style'' ''Range''
         * Disable ''Use Hardlinks Instead of Copy''         * Disable ''Use Hardlinks Instead of Copy''
         * Enable ''Import Extra Files'', keeping just ''srt'' enabled         * Enable ''Import Extra Files'', keeping just ''srt'' enabled
-        * FIXME: Set Root Folders ----------------------------------------------------------------+        * ''Add Root Folder'' > ''/home/derek/torrents/Video/TV Shows''
         * ''Save Changes''         * ''Save Changes''
-      * FIXME: Profiles and Quality (HEVC/1Mbps and things)+      * FIXME: Profiles 
 +      * ''Quality'': 
 +        * Follow the quality settings in [[#Quality_Settings]]
       * ''Indexers'':       * ''Indexers'':
         * Add the indexers from Jackett using their instructions, except to replace the start of each of the URLs with ''http://localhost:9117''         * Add the indexers from Jackett using their instructions, except to replace the start of each of the URLs with ''http://localhost:9117''
       * ''Download Clients'':       * ''Download Clients'':
         * Add new client:         * Add new client:
-          * ''Name''''Deluge'' +          * ''Name'' ''Deluge'' 
-          * ''Host''''localhost'' +          * ''Host'' ''localhost'' 
-          * ''Port''The Deluge Web Port saved from earlier +          * ''Port'' The Deluge Web Port saved from earlier 
-          * ''Password''Your Swizzin password +          * ''Password'' Your Swizzin password 
-      * ''Connections'':+      * ''Connect'':
         * FIXME: maybe setup notifications?         * FIXME: maybe setup notifications?
       * ''UI'':       * ''UI'':
-        * ''First Day of Week''''Monday'' +        * ''First Day of Week'' ''Monday'' 
-        * ''Week Column Header''''Tue 25/03'' +        * ''Week Column Header'' ''Tue 25/03'' 
-        * ''Short Date Format''''25/03/2014'' +        * ''Short Date Format'' ''25/03/2014'' 
-        * ''Long Date Format''''Tuesday, 25 March, 2014'' +        * ''Long Date Format'' ''Tuesday, 25 March, 2014'' 
-        * ''Time Format''''17:00/17:30''+        * ''Time Format'' ''17:00/17:30''
         * ''Save Changes''         * ''Save Changes''
 +    * Import your current media
   * Go to ''Radarr'' in the sidebar:   * Go to ''Radarr'' in the sidebar:
     * ''Settings'':     * ''Settings'':
       * Enable ''Show Advanced''       * Enable ''Show Advanced''
       * ''Media Management'':       * ''Media Management'':
-        * ''Rename Movies''+        * Enable ''Rename Movies''
         * Add brackets around the quality tag in the ''Standard Movie Format''         * Add brackets around the quality tag in the ''Standard Movie Format''
         * Disable ''Use Hardlinks Instead of Copy''         * Disable ''Use Hardlinks Instead of Copy''
         * Enable ''Import Extra Files'', keeping just ''srt'' enabled         * Enable ''Import Extra Files'', keeping just ''srt'' enabled
         * Enable ''Unmonitor Deleted Movies''         * Enable ''Unmonitor Deleted Movies''
-        * FIXME: Set Root Folders ----------------------------------------------------------------+        * ''Add Root Folder'' > ''/home/derek/torrents/Video/Movies''
         * ''Save Changes''         * ''Save Changes''
-      * FIXME: Profiles and Quality (HEVC/1Mbps and things)+      * ''Custom Formats'' > Add new custom format > ''Import'' > Paste the custom format import string from below 
 +      * ''Profiles'': 
 +        * Edit the ''Any'' profile: 
 +          * Set the ''HEVC'' custom format score to ''50'' 
 +      * FIXME: Profiles 
 +      * ''Quality'': 
 +        * Follow the quality settings in [[#Quality_Settings]]
       * ''Indexers'':       * ''Indexers'':
-        * Add the indexers from Jackett using their instructions, except to replace the start of each of the URLs with ''http://localhost:9117''+        * Add the indexers from Jackett using the ''Jackett'' preset of ''Torznab'', changing the name, replacing ''YOURINDEXER'' with the name used in Jackett, the API Key from Jackett, and setting appropriate categories 
 +        * ''Availability Delay'' > ''3'' Days 
 +        * Add a ''Restriction'' with a ''Must Not Contain'' of ''3d''
       * ''Download Clients'':       * ''Download Clients'':
         * Add new client:         * Add new client:
-          * ''Name''''Deluge'' +          * ''Name'' ''Deluge'' 
-          * ''Host''''localhost'' +          * ''Host'' ''localhost'' 
-          * ''Port''The Deluge Web Port saved from earlier +          * ''Port'' The Deluge Web Port saved from earlier 
-          * ''Password''Your Swizzin password +          * ''Password'' Your Swizzin password 
-      * ''Connections'':+      * ''Connect'':
         * FIXME: maybe setup notifications?         * FIXME: maybe setup notifications?
       * ''UI'':       * ''UI'':
-        * ''First Day of Week''''Monday'' +        * ''First Day of Week'' ''Monday'' 
-        * ''Week Column Header''''Tue 25/03'' +        * ''Week Column Header'' ''Tue 25/03'' 
-        * ''Short Date Format''''25/03/2014'' +        * ''Short Date Format'' ''25/03/2014'' 
-        * ''Long Date Format''''Tuesday, 25 March, 2014'' +        * ''Long Date Format'' ''Tuesday, 25 March, 2014'' 
-        * ''Time Format''''17:00/17:30''+        * ''Time Format'' ''17:00/17:30''
         * ''Save Changes''         * ''Save Changes''
 +    * Import your current media
   * Go to ''Lidarr'' in the sidebar:   * Go to ''Lidarr'' in the sidebar:
-    * +    * ''Settings'': 
 +      * Enable ''Show Advanced'' 
 +      * ''Media Management'': 
 +        * Enable ''Rename Tracks'' 
 +        * Potentially use the following formats that match iTunes: 
 +          * ''Standard Track Format'' > ''{track:00} {Track Title}'' 
 +          * ''Multi Disc Track Format'' > ''{medium:0}-{track:00} {Track Title}'' 
 +          * ''Album Folder Format'' > ''{Album Title}'' 
 +        * Disable ''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'' 
 +      * FIXME: Profiles (Add Metadata Profile to allow greatest hits albums) 
 +      * ''Quality'': 
 +        * Follow the quality settings in [[#Quality_Settings]] 
 +      * ''Indexers'': 
 +        * Add the indexers from Jackett using their instructions, except to replace the start of each of the URLs with ''http://localhost:9117'' 
 +      * ''Download Clients'': 
 +        * Add new client: 
 +          * ''Name'' > ''Deluge'' 
 +          * ''Host'' > ''localhost'' 
 +          * ''Port'' > The Deluge Web Port saved from earlier 
 +          * ''Password'' > Your Swizzin password 
 +          * Enable ''Add Paused'' FIXME 
 +      * ''Connect'': 
 +        * FIXME: maybe setup notifications? 
 +      * ''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'' 
 +    * Import your current media, making sure not to import the ''Compliations'' folder 
 + 
 +FIXME: setup any other upgrade things? 
 +<code bash> 
 +# Follow the setup from the following, using defaults except for daily updates selecting no 
 +sudo box upgrade plex 
 +</code> 
 + 
 +  * Shutdown the VM and create a snapshot called ''Configured''
  
  
-FIXME: Configure services+FIXME: Figure out Lidarr process
  
  
Line 118: Line 242:
   * Open the extension options through Chrome’s wrench menu and set your server’s info:   * Open the extension options through Chrome’s wrench menu and set your server’s info:
     * ''Add Server'':     * ''Add Server'':
-      * ''Name''''Deluge'' +      * ''Name'' ''Deluge'' 
-      * ''Server type''''Deluge WebUI''+      * ''Server type'' ''Deluge WebUI''
     * Fill in details:     * Fill in details:
-      * ''Host''''<media.domain.com>'' +      * ''Host'' ''<media.domain.com>'' 
-      * ''Port''''443''+      * ''Port'' ''443''
       * ''Enable SSL''       * ''Enable SSL''
-      * ''Username''''Your Swizzin username'' +      * ''Username'' ''Your Swizzin username'' 
-      * ''Password''''Your Swizzin password'' +      * ''Password'' ''Your Swizzin password'' 
-      * ''Relative Path''''/deluge''+      * ''Relative Path'' ''/deluge''
  
 ====Update==== ====Update====
-FIXME: Write update process and add to update page using ''%%{{page>esxi:media_server#Update}}%%''+FIXME: Finish writing update process
  
 {{page>esxi:debian_minimal_server#Update&noheader}} {{page>esxi:debian_minimal_server#Update&noheader}}
 +
 +FIXME: Deluge
 +
 +<code bash>
 +sudo box upgrade plex
 +</code>
 +
 +* Sonarr, Radarr, and Lidarr all update from their respective pages
  
 ====Sources==== ====Sources====
Line 137: Line 269:
  
 ====Notes==== ====Notes====
-  * Alternatives: +===Folder format=== 
-    * Pro version of [[https://quickbox.io/|QuickBox]] is a similar solution +<code> 
-    * OpenFLIXR version 3 when it comes out, is a fully configured option+
 +  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) 
 +</code> 
 + 
 +===Quality Settings=== 
 +{{:esxi:sonarr_qualities.png?direct&600|}} 
 + 
 +{{:esxi:radarr_qualities.png?direct&600|}} 
 + 
 +FIXME: Lidarr qualities 
 + 
 +===Alternatives=== 
 +  * Pro version of [[https://quickbox.io/|QuickBox]] is a similar solution 
 +  * OpenFLIXR version 3 when it comes out, is a fully configured option
  
 ====TODO==== ====TODO====
esxi/media_server.1609695950.txt.gz · Last modified: 2024/09/22 19:51 (external edit)