Install: Plexdrive 5
Plexdrive (by Dominik Weidenfeld) is an app that mounts Google Drive on a server. It works better than others mounting solutions because it caches the stream data for smooth playback of media and and prevention Google Drive API bans.
-
Create a Google Drive API Client ID and Client Secret for Plexdrive.
Note 1: this will be different from the Rclone one. You can use the same Google account; but just create a different project for Plexdrive.
Note 2: It is recommended that you create another set of Client ID/Secret separate from the one you used for Rclone.
-
Run the following command:
/opt/plexdrive5/plexdrive mount -v 3 --refresh-interval=1m --chunk-check-threads=8 --chunk-load-threads=8 --chunk-load-ahead=4 --max-chunks=100 --fuse-options=allow_other,read_only --config=/opt/plexdrive5 --cache-file=/opt/plexdrive5/cache.bolt /mnt/remote
-
At
Enter your generated client ID:
, paste in the Google API Client ID from Step #1 and press Enter. -
At
Enter your generated client secret:
, paste in the Google API Client Secret from Step #1 and press Enter. -
Copy the link on the screen and paste it in your host computer's internet browser. Login with your Google account, if asked, and click
Allow
. You will copy theauthorization code
from your browser, paste it at the prompt, and press Enter.Note 1: You must use the same Google account as the one you are planning to use for Google Drive (see Prerequisites).
Note 2: If you keep getting the prompt for the authorization code or any other type of error, you might have used an incorrect Client ID/Secret. Remove the
config.json
andtoken.json
files from/opt/plexdrive5/
and retry Step #2. -
When you see
First cache build process started...
, pressctrl
+c
on your keyboard to exit.Note: Any errors, such as,
WARNING: Could not get object root from API
ormount helper error
, means this failed somewhere and you need to figure out why. -
Enable the Plexdrive service:
sudo systemctl enable plexdrive5
-
Start the Plexdrive service:
sudo systemctl start plexdrive5
-
Verify Plexdrive is running ok:
sudo systemctl status plexdrive5
You should see it as being
Active: active (running)
.plexdrive5.service - Plexdrive 5 Loaded: loaded (/etc/systemd/system/plexdrive5.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2017-10-14 12:41:01 CEST; 8h ago Main PID: 1025 (plexdrive) Tasks: 21 Memory: 2.7G CPU: 23.494s CGroup: /system.slice/plexdrive5.service └─1025 /opt/plexdrive5/plexdrive mount -v 3 --refresh-interval=1m --chunk-check-threads=8 --chunk-load-threads=8 --chunk-
Note: If you see an error here, check the FAQ for possible solutions.
-
Restart Unionfs:
sudo systemctl restart unionfs
-
Restart Docker containers:
docker restart $(docker ps --format '{{ .Names}}' --filter label=com.github.cloudbox.cloudbox_managed=true | xargs echo -n)
-
After the cache is built (see log), all your media files (on the server and on Google Drive - combined) will start showing up under
/mnt/unionfs/Media/
.Note: If your media files are not showing up, then either something went wrong during the setup of Plexdrive (i.e. this page) or your media is not located in the correct folder in Google Drive (see Prerequisites and Paths).
- Overview
- Presumptions
- Server
- Domain Name
- Cloudflare
- Cloud Storage
- Plex / Emby - Account
- Usenet vs. BitTorrent
Cloudbox
- Overview
- Dependencies (Choose only one of these)
- Settings
- Preinstall (Choose only one of these)
- SSH
- Ansible Vault
- Rclone
- Cloudbox (Choose only one of these)
- Application Setup
- Next Steps
Feederbox (do this first)
- Overview
- Dependencies
- Settings
- Preinstall
- SSH
- Ansible Vault
- Rclone
- Feederbox (Choose only one of these)
- Application Setup
- Next Steps
Mediabox
- Overview
- Dependencies
- Settings
- Preinstall
- SSH
- Ansible Vault
- Rclone
- Mediabox (Choose only one of these)
- Application Setup
- Next Steps
- Cloudplow (Media Uploader)
- cb utility script (Develop branch only}
- Updating Cloudbox (Choose only one of these)
- Updating Cloudbox Apps
- Removing Cloudbox Apps
- Resetting Cloudbox Apps
- Migrating Cloudbox
- Settings Updater
- Ansible Vault Primer
- Plex Access Token
- Plex Autoscan Extras
- Pushover
- Google Drive API Client ID and Client Secret
- Useful Docker Commands
- Add Your Own Docker Container into Cloudbox
- Revoking SSL Certificates
- Feeder Mount
- Adding a Subdomain
- HTTP Auth Support
- Emby
- Nextcloud
- Resilio Sync
- Plex DupeFinder
- Heimdall
- NZBHydra v1
- Plex Requests
- Sickbeard MP4 Automator
- SABnzbd
- Traktarr
See Community Wiki.