How to // Comment
Install PlexMediaServer // Installer PlexMediaServer

Ubuntu

[Ubuntu] Install PlexMediaServer



0. Ensure your system is up to date
  • apt-get update && apt-get upgrade -y
1. Installation
Go to Plex site and download the lastest
2. Enable and start it
  • sudo systemctl enable plexmediaserver.service
  • sudo systemctl start plexmediaserver.service
3. Open a Tunnel to set it (Putty for windows)
  • Go on SSH -> Tunnels
  • source port : 8888
  • destination: __HOST_IP__:32400
  • Click on "Add"
  • Go on Session
  • host: __HOST_IP__
  • port: 4747
  • Click on "Open"
  • user: root
  • password: __YOUR_PASSWORD__
Open in browser : http://localhost:8888/web
4. Connect to your Plex Account
5. Setup Plex
Define the server name (when asked)
Create needed directories, like :
  • mkdir -p "/home/Applications"
  • mkdir -p "/home/Books"
  • mkdir -p "/home/Movies"
  • mkdir -p "/home/Music"
  • mkdir -p "/home/Other"
  • mkdir -p "/home/Other Videos"
  • mkdir -p "/home/Photos
  • mkdir -p "/home/TVShows"
Click on "Add Library" and fill all fields (name, path, etc.)
6. Settings
  • General -> Uncheck "Send crash reports to Plex"
  • Agents -> __YOUR_CHOICE__
  • Library -> Check "Scan my library automatically"
  • Library -> Check "Run a partial scan when changes are detected"
  • Library -> Check "Scan my library periodically"
  • Library -> Check "Empty trash automatically after every scan"
  • Library -> Uncheck "Allow media deletion"
  • Library -> "Library scan interval" -> "daily"
  • Library -> Check "Include season premieres in On Deck"
  • Library -> Check "Run scanner tasks at a lower priority"
  • Library -> "Generate video preview thumbnails" -> "as a scheduled task when media is added"
  • Library -> "Generate chapter thumbnails" -> "as a scheduled task when media is added"
  • Library -> "Analyze audio tracks for loudness" -> "as a scheduled task when media is added"
  • Network -> "Secure connections" -> "Preferred"
  • Network -> Uncheck "Enable local network discovery (GDM)"
  • Transcoder -> "Transcoder quality" -> "Automatic"
  • Transcoder -> "Maximum simultaneous video transcode" -> "unlimited"
  • Languages -> __YOUR_CHOICE__
  • DLNA -> Uncheck "Enable the DLNA server"
  • Scheduled Tasks -> "Time at which tasks start to run" -> "2 am"
  • Scheduled Tasks -> "Time at which tasks stop running" -> "5 am"
  • Scheduled Tasks -> Check all
  • Extras -> "Choose Cinema Trailers from" -> "Only unwatched movies"
  • Extras -> Check "Include Cinema Trailers from movies in my library"
7. Upgrade Plex

-> Simply redo the "1."

Or upload "update_plexmediaserver.sh" (in /home/Files/) and do "chmod +x update_plexmediaserver.sh" to give it execution right to be able to use it, then "bash update_plexmediaserver.sh"
8. Backup (and Restore)
Copy (Replace) all following directories and files:
  • /lib/systemd/system/plexmediaserver.service
  • /var/lib/plexmediaserver/Library/Application Support/Plex Media Server
9. Problems (on readers)
If your player (Windows, Android, etc.) can no longer play videos, make sure you have disabled the new video player which is not supported everywhere
  • Settings -> Advanced -> Activate new video player :Off


How to

[How to] Installer PlexMediaServer



0. Assurez-vous que votre système est à jour
  • apt-get update && apt-get upgrade -y
1. Installation
Aller sur le site de Plex et télécharger la dernière version
2. Activer et démarrer
  • sudo systemctl enable plexmediaserver.service
  • sudo systemctl start plexmediaserver.service
3. Ouvrir un Tunnel pour le définir (Putty pour windows)
  • Go on SSH -> Tunnels
  • source port : 8888
  • destination: __HOST_IP__:32400
  • Click on "Add"
  • Go on Session
  • host: __HOST_IP__
  • port: 4747
  • Click on "Open"
  • user: root
  • password: __YOUR_PASSWORD__
Ouvrir dans le navigateur : http://localhost:8888/web
4. Connectez-vous à votre compte Plex
5. Configurer Plex
Définissez le nom du serveur (lorsque demandé)
Créez les répertoires nécessaires, comme :
  • mkdir -p "/home/Applications"
  • mkdir -p "/home/Books"
  • mkdir -p "/home/Movies"
  • mkdir -p "/home/Music"
  • mkdir -p "/home/Other"
  • mkdir -p "/home/Other Videos"
  • mkdir -p "/home/Photos
  • mkdir -p "/home/TVShows"
Cliquez sur "Ajouter une bibliothèque" et remplissez tous les champs (nom, chemin, etc.)
6. Paramètres
  • General -> Décocher "Send crash reports to Plex"
  • Agents -> __VOTRE_CHOIX__
  • Library -> Cocher "Scan my library automatically"
  • Library -> Cocher "Run a partial scan when changes are detected"
  • Library -> Cocher "Scan my library periodically"
  • Library -> Cocher "Empty trash automatically after every scan"
  • Library -> Décocher "Allow media deletion"
  • Library -> "Library scan interval" -> "daily"
  • Library -> Cocher "Include season premieres in On Deck"
  • Library -> Cocher "Run scanner tasks at a lower priority"
  • Library -> "Generate video preview thumbnails" -> "as a scheduled task when media is added"
  • Library -> "Generate chapter thumbnails" -> "as a scheduled task when media is added"
  • Library -> "Analyze audio tracks for loudness" -> "as a scheduled task when media is added"
  • Network -> "Secure connections" -> "Preferred"
  • Network -> Décocher "Enable local network discovery (GDM)"
  • Transcoder -> "Transcoder quality" -> "Automatic"
  • Transcoder -> "Maximum simultaneous video transcode" -> "unlimited"
  • Languages -> __VOTRE_CHOIX__
  • DLNA -> Décocher "Enable the DLNA server"
  • Scheduled Tasks -> "Time at which tasks start to run" -> "2 am"
  • Scheduled Tasks -> "Time at which tasks stop running" -> "5 am"
  • Scheduled Tasks -> Tout cocher
  • Extras -> "Choose Cinema Trailers from" -> "Only unwatched movies"
  • Extras -> Cocher "Include Cinema Trailers from movies in my library"
7. Mise à niveau Plex

-> Il suffit de refaire le "1."

Ou uploadé "update_plexmediaserver.sh" (dans /home/Files/) et effectué "chmod +x update_plexmediaserver.sh" pour lui donner le droit d'exécution pour pouvoir l'utiliser, puis "bash update_plexmediaserver.sh"
8. Sauvegarde (et Restauration)
Copiez (remplacez) tous les répertoires et fichiers suivants :
  • /lib/systemd/system/plexmediaserver.service
  • /var/lib/plexmediaserver/Library/Application Support/Plex Media Server
9. Problèmes (sur les lecteurs)
Si votre lecteur (Windows, Android, etc.) ne peut plus lire les vidéos, assurez vous d'avoir désactiver le nouveau lecteur vidéo qui n'est pas supporté partout
  • Paramètres -> Advanced -> Activer le nouveau lecteur vidéo : Off