Skip to content

Instantly share code, notes, and snippets.

@OneCDOnly
Last active September 15, 2020 04:48
Show Gist options
  • Save OneCDOnly/972755c5c5825ddd819cb2729a52b646 to your computer and use it in GitHub Desktop.
Save OneCDOnly/972755c5c5825ddd819cb2729a52b646 to your computer and use it in GitHub Desktop.
Install 'google-drive-ocamlfuse' on Debian Stretch
sudo apt install software-properties-common dirmngr gnupg-agent
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AD5F235DF639B041
echo 'deb http://ppa.launchpad.net/alessandro-strada/ppa/ubuntu xenial main' | sudo tee /etc/apt/sources.list.d/alessandro-strada-ubuntu-ppa.list >/dev/null
sudo apt update
sudo apt install google-drive-ocamlfuse
@OneCDOnly
Copy link
Author

To automount, create /usr/bin/gdfuse:

#!/bin/bash
su <insert my username> -c "google-drive-ocamlfuse -label $1 $*"
exit 0

... and add this to /etc/fstab:

# cloud shares
gdfuse#me /media/external/cloud/google-drive fuse uid=1000,gid=1000,user 0 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment