Skip to main content

Part 3 - Installing Plex, Rclone and Plexdrive

You have installed all upgrades and made the VPS your own in Part 2 - Updating the VPS.

Now is probably the moment you usually install Plex, Rclone and Plexdrive as covered in part 3 and part 4 of the first tutorial. This too can be automated without any input from you after you have set your Plex preferences.

Creating the script


Open Notepad++ on your local computer and create a new (empty) file. Make sure you change the bottom bar to show "Unix (LF)".

Paste the following into your file:

#!/bin/bash


# Install Plex

cd ~
bash -c "$(wget -qO - https://raw.githubusercontent.com/mrworf/plexupdate/master/extras/installer.sh)"


# Install Rclone

cd /tmp
curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
unzip rclone-current-linux-amd64.zip
cd rclone-*-linux-amd64
sudo cp rclone /usr/sbin/
sudo chown root:root /usr/sbin/rclone
sudo chmod 755 /usr/sbin/rclone
sudo mkdir -p /usr/local/share/man/man1
sudo cp rclone.1 /usr/local/share/man/man1/
sudo mandb
cd ..
sudo rm -f rclone-current-linux-amd64.zip
sudo rm -r rclone-*-linux-amd64
cd ~


# Install Plexdrive

cd /tmp
wget https://github.com/dweidenfeld/plexdrive/releases/download/5.0.0/plexdrive-linux-amd64
sudo mv plexdrive-linux-amd64 plexdrive
sudo mv plexdrive /usr/local/bin/
sudo chown root:root /usr/local/bin/plexdrive
sudo chmod 755 /usr/local/bin/plexdrive
cd ~


# Install PlexPy

cd /opt/
sudo git clone https://github.com/JonnyWong16/plexpy.git


# Cleaning up

sudo rm /tmp/install-plex
cd ~


# End message

echo ""
echo "================================================="
echo " You can now proceed with restoring your scripts "
echo "================================================="
echo ""


# To run this file copy the line below without the # and paste in PuTTY

# sudo wget https://www.dropbox.com/s/yourpersonallink/yourfilename?dl=0 -O /tmp/install-apps && sudo chmod +x /tmp/install-apps && /tmp/install-apps

Save this file with an appropriate name, upload to Dropbox and copy the link as you did with the first script. There will be four scripts in total:



You can pick whatever file names work best for you though!

Running the script


To run this script, select the entire last line without the red part and without the # and copy this to the clipboard.

Then log into PuTTY with your own username and right-click to paste the script.

Here is an explanation of what this script will do:

  • Plex will be installed and configured (this will require your input).
  • Rclone will be installed.
  • Plexdrive will be installed.
  • Tautulli (PlexPy) will be installed as well.

Feel free to add other programs you wish to install with one click - after all, this is your configuration!

Now that Plex, Rclone and Plexdrive are all installed in "vanilla" status, you can now forward to Part 4 - Part 4 - Restoring Rclone and Plexdrive configuration where we'll get really personal.

Comments