You have to install fuse on your system to run plexdrive/rclone. Please check your system on how to install fuse. Normally you can use:
apt-get install fuse
- Then you should download the newest release from the GitHub release page.
- Create your own client id and client secret (see https://rclone.org/drive/#making-your-own-client-id).
- Create a systemd startup script for automatic startup on boot
# /etc/systemd/system/plexdrive.service
[Unit]
Description=Plexdrive
AssertPathIsDirectory=/mnt/plexdrive
After=network-online.target
[Service]
Type=notify
ExecStart=/usr/bin/plexdrive mount -v 2 /mnt/plexdrive
ExecStopPost=-/bin/fusermount -quz /mnt/plexdrive
Restart=on-abort
[Install]
WantedBy=default.target
- Refresh your daemons
sudo systemctl daemon-reload
- Run the application like this
sudo systemctl start plexdrive.service
- Activate the auto startup option
sudo systemctl enable plexdrive.service
- Download and install rclone
- Configure a new rclone remote:
rclone config
- Select "new remote"
- Give the remote a descriptive name. We will be using the name "local-crypt" throughout the rest of this guide.
- Select "5" for "Encrypt/Decrypt a remote"
- Now we need to specify the remote to decrypt. This needs to be the path where plexdrive is mounted:
/mnt/plexdrive/encrypted
- Encryption type: Select the same type of encryption that you initially chose when setting up your rclone encryption.
- Password: Use the same password you used then setting up your rclone encryption.
- Salt: Use the same salt you used when setting up your rclone encryption.
- Review the details and if everything looks good select "y".
- We should now have a working Encrypt/Decrypt remote.
- Create a systemd startup script for automatic startup on boot
# /etc/systemd/system/rclone.service
[Unit]
Description=Google Drive (rclone)
AssertPathIsDirectory=/mnt/media
After=plexdrive.service
[Service]
Type=simple
ExecStart=/usr/bin/rclone mount --allow-other local-crypt: /mnt/media
ExecStop=/bin/fusermount -u /mnt/media
Restart=on-abort
[Install]
WantedBy=default.target
- Refresh your daemons
sudo systemctl daemon-reload
- Run the application like this
sudo systemctl start rclone.service
- Activate the auto startup option
sudo systemctl enable rclone.service