Plex_Debrid (Standalone) - slunat/Proxmox-Guides GitHub Wiki
Plex_Debrid can either be installed on its own container or on the Plex container. It doesn't require any direct access to Plex or its files, so can be put on its onw container if preferred. The following guide will walk you through setting it up on its own container.
Installation
You will not require a powerful container for this as its only going to be executing a script. I would recommend setting up a minimum of the following.
Unprivileged Container
Template: Debian 12 (Bookworm)
CPU: 1 CPU
Memory: 512MB
Storage: 2GB
Preperation
- Before powering on the container, go to Options > Features and enable the FUSE option. Then boot up the container.
- Enter the container console.
- Get the container up to date by running
apt-get update && apt-get upgrade -y
- Install Screen by running
apt install screen
- Install git by running
apt install git
- Install Fuse by running
apt-get install fuse
- Check if python3 is present by running
python3 --version
. If it is not present, install it by runningapt install python3
- Check if pip is installed by running
python3 -m pip --version
. If it is not present, install it by runningapt install python3-pip
- If you are running python3.11 or later, you will need to remove the EXTERNALLY-MANAGED file to allow you to run pip commands. To do so, first enter the python directory by running
cd /usr/lib/python3.11
. THen enterrm EXTERNALLY-MANAGED
to remove the file. - Enter
cd
to return back to the root directory.
Setup
- Grab the Plex_Debrid files by running
git clone https://github.com/itsToggle/plex_debrid
- Run
pip install -r ./plex_debrid/requirements.txt
to install the required files - Create a new screen session called "plexdebrid" by entering
screen -S plexdebrid
. This will place you in the virtual terminal, so you can execute the script in a seperate session. - Run
python3 ./plex_debrid/main.py
to start the script. - Proceed with the initial setup by following the setup instructions as required.
- Once you have configured everything, before choosing the "1) Run" option, select option "2:) Settings" and go to "5) UI Settings". Set the value for "1) Show menu on startup" to "false". This will skip the main menu screen and allow the script to just start the run process as soon as it is executed, rather than waiting at the menu.
- Return to the main menu screen and select option "1) Run" to run the script.
- Press ctrl + a and then press d to exit out of the virtual terminal. You can return to the terminal any time by running
screen -r plexdebrid
If you need to manually edit the config file, this is stored in the root directory and can be edited by runningnano settings.json
Setting it to automatically run
- Once you are out of the virtual plexdebrid terminal, enter
mkdir scripts && cd scripts
to create and enter a directory called scripts. - Enter
nano plexdebrid.sh
to create and open the editor for the startup script we will be using. - Enter the below two lines into the file. This will open a screen session called plexdebrid in the background and execute the script inside of it. You can then return to the script at anytime by entering
screen -r plexdebrid
#!/bin/bash
screen -dmS plexdebrid python3 ./plex_debrid/main.py
- press ctrl + x, they y to save the file.
- Enter
chmod +x plexdebrid.sh
to make the script executable. - Enter
crontab -e
to edit the crontab file. Select option1
when prompted for an editor. - A the bottom of the file, add the line
@reboot scripts/plexdebrid.sh
to make the script execute every time the container boots up. - Press ctrl + x, then y to save the changes to your cron file.
Updating Components
Plex_Debrid
- Open the terminal enter
cd plex_debrid
to go to the plex_debrid directory. - Run
git pull
to grab the latest files - Run
pip install -r ./requirements.txt
to make sure all required dependencies are installed. - Restart the container. You can verify you are on the correct version by running
plex_debrid --version