Plex

De WikiMar
Dreceres ràpides: navegació, cerca

Plex Installation on Ubuntu

https://support.plex.tv/articles/235974187-enable-repository-updating-for-supported-linux-server-distributions/

echo deb https://downloads.plex.tv/repo/deb ./public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -

Maybe also:

sudo systemctl enable plexmediaserver.service
sudo systemctl start plexmediaserver.service


By default the Library (index) is stored at

/var/lib/plexmediaserver/Library/Application\ Support/ Plex/config/Library/

to move it to another location:

sudo service plexmediaserver stop
mv /var/lib/plexmediaserver/Library /media/K4000_64k/_NoRsynced/Plex/config/
sudo ln -s /media/K4000_64k/_NoRsynced/Plex/config/Library /var/lib/plexmediaserver/Library
sudo service plexmediaserver start


Media files on a mounted NTFS drive

https://github.com/linuxserver/docker-plex/issues/95

The Transcoder to work (change resolution, or add subtitles) it needs exec permission also where the movies are stored.

Otherwise you get errors in the player like "Conversion failed. The transcoder crashed or failed to start up."

To solve this you can change the /etc/fstab and replace "noexec" with "exec"

UUID=C8C23A75C23A67B8	/media/klang/Foto	ntfs-3g	user,fmask=0111,dmask=0000,permissions,exec	0	0

restart after remount:

sudo service plexmediaserver stop
sudo umount /media/K4000_64k
sudo mount /media/K4000_64k
sudo service plexmediaserver start

Installation inside a container

First install Portainer

docker run -d -p 8000:8000 -p 9000:9000 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer

Then use the following Stack (also known as Docker Compose)

version: '4.0'
#version: '3.7'
services:

  plex:
    image: plexinc/pms-docker
    restart: unless-stopped
    container_name: plex
    ports:
      - "32400:32400/tcp"
      - "3005:3005/tcp"
      - "8324:8324/tcp"
      - "32469:32469/tcp"
      - "1900:1900/udp"
      - "32410:32410/udp"
      - "32412:32412/udp"
      - "32413:32413/udp"
      - "32414:32414/udp"

    environment:
      - PUID=1011
      - PGID=1014
      - PLEX_UID=1011
      - PLEX_GID=1014
      - TZ=Europe/Berlin
      - PLEX_CLAIM=claim-MIRARBITWARDEN
      - HOSTNAME="Ocell2Plex"

    volumes:
      - /tmp/plex/transcode:/transcode
      - /home/plex/docker/config:/config
      - /home/plex/docker/media:/media
      - /media/W12000LUKSA_zfs_ENC/w1/PELIS:/media/PELIS
      - /media/W12000LUKSA_zfs_ENC/w1/SERIES:/media/SERIES
      - /media/W12000LUKSA_zfs_ENC/w1/DOCUMENTALS:/media/DOCUMENTALS
      - /media/W12000LUKSA_zfs_ENC/w1/MUSIC:/media/MUSIC
      - /media/W12000LUKSA_zfs_ENC/w1/_NoRsynced/Plex-Fotos:/media/Plex-Fotos

    #devices:
    #  - /dev/dri:/dev/dri



Automatic subtitles download

https://github.com/pannal/Sub-Zero.bundle/wiki/Sub%E2%80%90Zero-Configuration#subtitles-storage-configuration

But important to disable the option "Automatically delete leftover/unused (externally saved) subtitles"

otherwise it deletes the .srt files already manually downloaded.


Optional you can enable: "Provider: Enable aRGENTeaM (Spanish)"