Skip to main content

Part 4 - Setting up Rclone and/or Plexdrive

Now that you finished Part 3 - Install and configure Plex, we're halfway there... keep with it!

This part will discuss both Rclone and Plexdrive. I highly recommend installing both, as both have their strengths and weaknesses!

Installing Rclone

You can skip this part if you only wish to use Plexdrive, but I strongly recommend you follow these steps anyway. Rclone is more versatile than Plexdrive and it is still needed to perform certain tasks, such as the backup script covered in part 6 of this tutorial.

Installing Rclone itself is the easiest part. You don't even need to understand what is happening. After you have followed these steps to the letter, Rclone will be installed.

Start a new session in PuTTY (select your saved session and click "Open", then log in with your username). This is important - do not continue your previous session which was using the "root" user. You will need to be logged in as your regular user.

Copy and paste all these commands one by one. Go ahead, I'll wait.

cd /tmp
curl -O
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 ..
rm -f
rm -r rclone-*-linux-amd64
cd ~ 

That's all, Rclone is installed and ready to run!

Configuring Rclone with Google

You didn't think everything would be this easy, right? No, the hard part is still to come. Now we need to configure Rclone, which is a bit of a task because on our PuTTY terminal, we have no browser available. Not to worry, with a bit of work, your own local computer will come to the rescue.

In the PuTTY terminal, type

sudo rclone config

You will be presented with a choice, type the letter n for "New remote" and hit the Enter key.

This tutorial will cover Google Drive, which is by far the most popular service. If you have signed up for another cloud service, check the Rclone website how to set that up.

You are asked to give a name. For this tutorial to work properly, please make sure you type:


Notice the capital G in Gdrive - Linux is picky about these things. Again, to avoid problems, you should not deviate from this (unless you exactly know what you're doing, but then you probably wouldn't be following this guide).

Check which option mentions Google Drive "drive" in the list (in the latest version this is #10), so type 10 and Enter.

Leave client_id> blank, just Enter.
Leave client_secret> blank as well, just Enter.
Service account credentials> again leave blank, just Enter.

Type the letter n for No, you don't want to use auto config and Enter.

You'll get a message that if your browser doesn't open, you will need to copy and paste the following link. You will need to place the entire link in a block by dragging your mouse (see screenshot below). Do not hit Ctrl-C - remember, this is PuTTY - dragging the mouse and placing the link in a block means it's copied.

Go to your local browser and paste the link. You will be asked to log into Google and accept authorization. You will then be given a code to paste in PuTTY.

Paste the code (right click), hit Enter.

Next you will be asked if you want to configure it as a team drive. Unless you know exactly what this means, type n - you don't want it.

Finally type y that all is okay.

Rclone Cache

Rclone has an exciting new feature to cache your data, so let's install that as well.
Type n to add a New remote.

You are asked to give a name. For this tutorial to work properly, please make sure you type:


Now pick option 5 - Cache a remote "cache" (make sure you check if it is still option 5, because Rclone does shift around numbers with each new version).

When asked for remote to cache, type


Leave URL to Plex server empty, just Enter.

In the next field, type your Plex username or email address.

Type y that you want to store your Plex password (if you wish). Then enter your password for Plex twice.

You can enter through the following options (that will pick the default values):

Chunk size: Enter to select the default 5MB.
Cache time: Enter to select the default 6 hours.
Maximum chunk size: Enter to select the default 10GB.

Type y that Yes, all is okay and then q to Quit config.

You should see both drives in your list of current remotes:

You can skip the next part if you only wish to use Rclone and head straight over to Part 5 - Mounting the drive(s).

Plexdrive API

Installing Plexdrive is slightly more complicated than Rclone, but you will be rewarded with much better speed and performance overall. Once I installed Plexdrive, I wouldn't go back to using Rclone! So without further ado, here is how I successfully installed Plexdrive.

It is noteworthy that Plexdrive only works with Google. First, you need your own API credentials. Open your browser and visit

Select Dashboard and click "Enable API"

Under G Suite APIs select "Drive API".

Click "Enable".

Then click "Credentials".

Before you can proceed with creating the API, you are nagged to "Configure consent screen", so click that.

Type a description ("Plex" would do) and hit "Save".

Click "Create credentials" and select "OAuth client ID".

Select "Other" under Application type and give your API an appropriate name, such as Plex. Then click "Create".

You will be given your own client ID and client secret.

Please leave the browser open (you will need these credentials soon) and open a new browser tab.

Getting Plexdrive ready

To install the latest (as of this writing) version of Plexdrive, in your PuTTY window type:

cd /tmp && wget

You can check the GitHub page to see if there is a newer version, or use the update script in part 6.

Type the following commands one by one to move the file to a convenient location and give it the proper permissions.

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 ~ 

Well done! You have successfully installed Rclone and/or Plexdrive, which means you are ready for Part 5 - Mounting the drive(s).