Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.

Setup Guides

itsToggle edited this page Dec 6, 2022 · 15 revisions

Linux ARM64 Server Setup

This setup guide will follow the readme closely, but will go into more detail in some areas. This setup will utilize "screens", which are virtual Linux terminals.

Preperation:

  1. open a linux terminal
  2. run apt install screen
  3. run apt install git
  4. install python 3.XX if not present
  5. install pip if not present

Mounting realdebrid:

Please keep in mind that most debrid services dont allow you to access their service from multiple IP addresses in parallel. This is not an issue if you have a Plex server running, since everything you stream through plex (from any location, no matter how many in parallel) is routed through your servers IP address. While you have your plex server running though, you should not download from your debrid service in any other way than through plex.

  1. open a linux terminal
  2. run wget https://github.com/itsToggle/rclone_RD/releases/download/v1.58.1-rd.2.0/rclone-linux-arm64
  3. run chmod u+x ./rclone-linux-arm64
  4. run ./rclone-linux-arm64 config
  5. type n to create a new rclone remote
  6. type realdebrid to name your new remote "realdebrid"
  7. type 47 to choose the remote type "47) realdebrid"
  8. enter your realdebrid API key (https://real-debrid.com/apitoken)
  9. choose "no" when asked for advanced settings
  10. continue through the rest of the prompted instructions.
  11. type q to quit the rclone config menu.
  12. run mkdir torrents to create a directory named "torrents"
  13. run screen -S rclone to create a new virtual terminal named "rclone"
  14. press enter. You are now in the virtual terminal.
  15. run ./rclone-linux-arm64 mount realdebrid: torrents --dir-cache-time 10s --allow-other
  16. you should see the message "The service rclone has been started"
  17. press ctrl + a and then press d to exit out of the virtual terminal.
  18. run ls torrents to confirm that you can now see the 3 folders "default", "movies" and "shows". If you don't see anything or you get errors, run screen -r rclone to return to your virtual rclone terminal and investigate any errors.
  19. you have successfully mounted realdebrid. You can return to your virtual rclone terminal any time by running screen -r rclone.

Setup Plex:

follow any number of online guides on how to install and start your Plex server. Once the server is running and you have claimed it with your Plex account, follow these steps:

  1. open a linux terminal
  2. run chown -R plex:plex torrents
  3. open the Plex webUI
  4. create a new Plex library for movies, add the folders "/torrents/default" and "/torrents/movies"
  5. create a new Plex library for shows, add the folders "/torrents/default" and "/torrents/shows"
  6. Recommendation: disable 'video preview thumbnails', disable the scheduled task 'perfom extensive media analysis' to reduce the download traffic
  7. Disable the libary setting "Empty trash after every scan", to make sure that no content is removed accidentaly

Setup plex_debrid:

  1. open a linux terminal
  2. run git clone https://github.com/itsToggle/plex_debrid
  3. run pip install -r ./plex_debrid/requirements.txt
  4. run screen -S plex_debrid to create a new virtual terminal named "plex_debrid"
  5. press enter. You are now in the virtual terminal.
  6. run python ./plex_debrid/main.py
  7. follow the setup instructions
  8. choose option "1) Run" to run the download automation
  9. 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 plex_debrid

Linux Server Setup

This setup guide will follow the readme closely, but will go into more detail in some areas. This setup will utilize "screens", which are virtual Linux terminals.

Preperation:

  1. open a linux terminal
  2. run apt install screen
  3. run apt install git
  4. install python 3.XX if not present
  5. install pip if not present

Mounting realdebrid:

Please keep in mind that most debrid services dont allow you to access their service from multiple IP addresses in parallel. This is not an issue if you have a Plex server running, since everything you stream through plex (from any location, no matter how many in parallel) is routed through your servers IP address. While you have your plex server running though, you should not download from your debrid service in any other way than through plex.

  1. open a linux terminal
  2. run wget https://github.com/itsToggle/rclone_RD/releases/download/v1.58.1-rd.2.0/rclone-linux
  3. run chmod u+x ./rclone-linux
  4. run ./rclone-linux config
  5. type n to create a new rclone remote
  6. type realdebrid to name your new remote "realdebrid"
  7. type 47 to choose the remote type "47) realdebrid"
  8. enter your realdebrid API key (https://real-debrid.com/apitoken)
  9. choose "no" when asked for advanced settings
  10. continue through the rest of the prompted instructions.
  11. type q to quit the rclone config menu.
  12. run mkdir torrents to create a directory named "torrents"
  13. run screen -S rclone to create a new virtual terminal named "rclone"
  14. press enter. You are now in the virtual terminal.
  15. run ./rclone-linux mount realdebrid: torrents --dir-cache-time 10s --allow-other
  16. you should see the message "The service rclone has been started"
  17. press ctrl + a and then press d to exit out of the virtual terminal.
  18. run ls torrents to confirm that you can now see the 3 folders "default", "movies" and "shows". If you don't see anything or you get errors, run screen -r rclone to return to your virtual rclone terminal and investigate any errors.
  19. you have successfully mounted realdebrid. You can return to your virtual rclone terminal any time by running screen -r rclone.

Setup Plex:

follow any number of online guides on how to install and start your Plex server. Once the server is running and you have claimed it with your Plex account, follow these steps:

  1. open a linux terminal
  2. run chown -R plex:plex torrents
  3. open the Plex webUI
  4. create a new Plex library for movies, add the folders "/torrents/default" and "/torrents/movies"
  5. create a new Plex library for shows, add the folders "/torrents/default" and "/torrents/shows"
  6. Recommendation: disable 'video preview thumbnails', disable the scheduled task 'perfom extensive media analysis' to reduce the download traffic
  7. Disable the libary setting "Empty trash after every scan", to make sure that no content is removed accidentaly

Setup plex_debrid:

  1. open a linux terminal
  2. run git clone https://github.com/itsToggle/plex_debrid
  3. run pip install -r ./plex_debrid/requirements.txt
  4. run screen -S plex_debrid to create a new virtual terminal named "plex_debrid"
  5. press enter. You are now in the virtual terminal.
  6. run python ./plex_debrid/main.py
  7. follow the setup instructions
  8. choose option "1) Run" to run the download automation
  9. 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 plex_debrid

Windows Setup

This setup guide will follow the readme closely, but will go into more detail in some areas.

Preperation:

  1. install python 3.XX
  2. install pip (https://pypi.org/project/pip/)
  3. install winfsp (https://winfsp.dev/)

Mounting realdebrid:

Please keep in mind that most debrid services dont allow you to access their service from multiple IP addresses in parallel. This is not an issue if you have a Plex server running, since everything you stream through plex (from any location, no matter how many in parallel) is routed through your servers IP address. While you have your plex server running though, you should not download from your debrid service in any other way than through plex.

  1. download the latest 'rclone.exe' file from here: https://github.com/itsToggle/rclone_RD/releases
  2. create a folder on your desktop named "rclone" and open it
  3. copy the downloaded "rclone.exe" file to that folder.
  4. windows 10: in the opened windows explorer, click on the "file" ribbon and then click on "open PowerShell here" to open a terminal windows 11: right-click on the "rclone" folder on your desktop. Press and hold the shift key on your keyboard and click on "show more options". Select "Open PowerShell here". A terminal opens.
  5. inside the terminal, write the command ./rclone.exe config and press enter
  6. type n to create a new rclone remote
  7. enter realdebrid as the name of the remote
  8. enter 47 to choose the "realdebrid" remote type
  9. enter your realdebrid API key (https://real-debrid.com/apitoken)
  10. choose no when asked to edit the advanced configuration
  11. follow the rest of the prompted instructions
  12. enter q to quit out of the rclone config menu
  13. enter ./rclone.exe cmount realdebrid: X: --dir-cache-time 10s to mount realdebrid. A new virtual computer drive with the letter X named realdebrid should show up on your computer. You should find 3 folders inside it, "movies", "shows" and "default".
  14. keep the terminal opened in order to keep rclone running. If everything works and you want to run rclone in the background, you can close the terminal and open it again like described in step 4. Now run the command ./rclone.exe cmount realdebrid: X: --dir-cache-time 10s --no-console. The console should close and rclone should run in the background. For an autostart routine for both rclone and plex_debrid check out: https://discord.com/channels/1021692389368283158/1021692389812871170/1034011741979414538

Setup Plex:

  1. follow any number of online guides on how to install and start your Plex server. Once the server is running and you have claimed it with your Plex account, follow these steps:

  2. open the Plex webUI

  3. create a new Plex library for movies, add the folders "X:/default" and "X:/movies"

  4. create a new Plex library for shows, add the folders "X:/default" and "X:/shows"

  5. Recommendation: disable 'video preview thumbnails', disable the scheduled task 'perfom extensive media analysis' to reduce the download traffic

  6. Disable the libary setting "Empty trash after every scan", to make sure that no content is removed accidentaly

Setup plex_debrid:

  1. open https://GitHub.com/itsToggle/plex_debrid click on "code" (top right) and then "download zip". Extract the downloaded zip to your desktop, which should create a "plex_debrid" folder.
  2. windows 10: open the "plex_debrid" folder. in the opened windows explorer, click on the "file" ribbon and then click on "open PowerShell here" to open a terminal windows 11: right-click on the "plex_debrid" folder on your desktop. Press and hold the shift key on your keyboard and click on "show more options". Select "Open PowerShell here". A terminal opens.
  3. inside the terminal, run pip install -r requirements.txt
  4. start the script by running python ./main.py
  5. follow the prompted instructions and the main readme from here.
  6. For an autostart routine for both rclone and plex_debrid check out: https://discord.com/channels/1021692389368283158/1021692389812871170/1034011741979414538

Clone this wiki locally