Installation

Plex Media Server is a software application that allows you to organize and stream your collection of movies, TV shows... In short you can have your own "Netflix" but better.

Requirements

  • A server running linux (e.g Debian) w/ Ethernet (min 1Gbits/s recommended)

  • 2.99€/month to spend for https://alldebrid.fr/?uid=3dpui&lang=fr (this allows you to have unlimited storage so you can have a poor 120GB SSD on for your server + eliminate need of VPN + Instant availability thanks to caching)

Automatic Installation

bash <(curl -fsSL https://raw.githubusercontent.com/Crackvignoule/Wiki/main/.gitbook/assets/plex.sh)

Manual Installation

Mount your debrid services

We need to setup rclone w/ alldebrid so we can have our files on the server without actually storing them on it. See https://github.com/itsToggle/plex_debrid?tab=readme-ov-file#1-open_file_folder-mount-your-debrid-services

If you're having issues, here is my personnal rclone mouting command:

rclone mount my-remote:links /home/rdpclient/plexmediaserver/data/rclone --dir-cache-time 10s --allow-other

Setup Plex Media Server

You need to install docker on your server: https://docs.docker.com/engine/install/ You also need to install docker compose if you don't have it, see Docker

Download this file and edit the path to what you want, if you leave it unchanged, it will create a folder /home/plex and will put everything in it. Note that , and are optional and can be removed from the compose.

Compose this stack by running this command:

docker compose up -d

You should see something like this:

Open Plex Web UI to start configuration by opening http://ipaddress:32400/web or localhost:32400/web

Setup

If you want to access your micro-services (overseerr, riven, prowlarr...) with your domain name, read this: Reverse Proxy

Depreciated plex_debrid setup

See https://github.com/itsToggle/plex_debrid?tab=readme-ov-file#3-page_facing_up-setup-plex_debrid

docker attach plex_debrid  # Then follow instructions

For reference, here are the filters I'm using with plex_debrid:

"Versions": [
    [
        "1080p SDR",
        [
            [
                "retries",
                "<=",
                "10"
            ],
            [
                "media type",
                "all",
                ""
            ]
        ],
        "en",
        [
            [
                "cache status",
                "preference",
                "cached",
                ""
            ],
            [
                "resolution",
                "requirement",
                "<=",
                "1080"
            ],
            [
                "title",
                "requirement",
                "exclude",
                "(\\.DV\\.|\\.3D\\.|\\.H?D?.?CAM\\.|\\.HDTS\\.|\\.CAMRip\\.)"
            ],
            [
                "title",
                "requirement",
                "exclude",
                "(\\.HDR\\.)"
            ],
            [
                "seeders",
                "preference",
                "highest",
                ""
            ],
            [
                "size",
                "requirement",
                ">=",
                "0.1"
            ],
            [
                "title",
                "requirement",
                "include",
                "(\\.MULTI\\.|\\.VFF\\.|\\.VF\\.|\\.TRUEFRENCH\\.|\\.FRENCH\\.|MULTI|MULTi)"
            ],
            [
                "title",
                "preference",
                "include",
                "(FRENCH|TRUEFRENCH|VF|VFF)"
            ]
        ]
    ],
    [
        "4KLight",
        [
            [
                "media type",
                "all",
                ""
            ],
            [
                "retries",
                "<=",
                "1"
            ]
        ],
        "en",
        [
            [
                "cache status",
                "preference",
                "cached",
                ""
            ],
            [
                "resolution",
                "preference",
                "highest",
                ""
            ],
            [
                "title",
                "preference",
                "include",
                "(\\.HDR\\.)"
            ],
            [
                "title",
                "preference",
                "include",
                "(EXTENDED|IMAX|REMASTERED)"
            ],
            [
                "size",
                "preference",
                "highest",
                ""
            ],
            [
                "seeders",
                "preference",
                "highest",
                ""
            ],
            [
                "size",
                "requirement",
                ">=",
                "0.1"
            ],
            [
                "title",
                "requirement",
                "include",
                "(\\.MULTI\\.|\\.VFF\\.|\\.VF\\.|\\.TRUEFRENCH\\.|\\.FRENCH\\.)"
            ],
            [
                "title",
                "requirement",
                "include",
                "4KLight"
            ],
            [
                "title",
                "requirement",
                "exclude",
                "(\\.3D\\.|\\.H?D?.?CAM\\.|\\.HDTC\\.|\\.HDTS\\.|\\.CAMRip\\.)"
            ],
            [
                "title",
                "preference",
                "include",
                "(FRENCH|TRUEFRENCH|VF|VFF)"
            ]
        ]
    ],
    [
        "4K",
        [
            [
                "retries",
                "<=",
                "1"
            ],
            [
                "media type",
                "all",
                ""
            ]
        ],
        "en",
        [
            [
                "cache status",
                "preference",
                "cached",
                ""
            ],
            [
                "resolution",
                "preference",
                "highest",
                ""
            ],
            [
                "title",
                "requirement",
                "exclude",
                "(\\.DV\\.|\\.3D\\.|\\.H?D?.?CAM\\.|\\.HDTC\\.|\\.HDTS\\.|\\.CAMRip\\.)"
            ],
            [
                "title",
                "preference",
                "include",
                "(EXTENDED|IMAX|REMASTERED)"
            ],
            [
                "size",
                "preference",
                "highest",
                ""
            ],
            [
                "seeders",
                "preference",
                "highest",
                ""
            ],
            [
                "size",
                "requirement",
                ">=",
                "0.1"
            ],
            [
                "title",
                "requirement",
                "include",
                "(\\.MULTI\\.|\\.VFF\\.|\\.VF\\.|\\.TRUEFRENCH\\.|\\.FRENCH\\.|MULTI|MULTi|VFI)"
            ],
            [
                "title",
                "requirement",
                "include",
                "(Remux|REMUX|Bluray|BLURAY|4K|TrueHD|HEVC|BluRay|2160p|UHD)"
            ],
            [
                "title",
                "preference",
                "include",
                "(FRENCH|TRUEFRENCH|VF|VFF)"
            ]
        ]
    ],
    [
        "Others",
        [
            [
                "retries",
                "<=",
                "10"
            ],
            [
                "media type",
                "all",
                ""
            ]
        ],
        "en",
        [
            [
                "cache status",
                "preference",
                "cached",
                ""
            ],
            [
                "title",
                "requirement",
                "exclude",
                "(\\.3D\\.|\\.H?D?.?CAM\\.|\\.HDTS\\.|\\.CAMRip\\.)"
            ],
            [
                "seeders",
                "preference",
                "highest",
                ""
            ],
            [
                "size",
                "requirement",
                ">=",
                "0.1"
            ],
            [
                "title",
                "preference",
                "include",
                "(MULTI|FRENCH|TRUEFRENCH|VF|VFF)"
            ]
        ]
    ]
]

Troobleshooting

If you're having issues with rclone container, you can try the following command and restart container:

fusermount -u /mnt/mountpoint

Last updated