Skip to content

Instantly share code, notes, and snippets.

@fyse-nassar
Last active August 5, 2020 02:58
Show Gist options
  • Save fyse-nassar/9ab598c470078eb3000c8a64e0feab7f to your computer and use it in GitHub Desktop.
Save fyse-nassar/9ab598c470078eb3000c8a64e0feab7f to your computer and use it in GitHub Desktop.
Attaching Google Drive to Headless Server

Install the Google Drive Ocamlfuse

sudo add-apt-repository ppa:alessandro-strada/ppa -y
sudo apt-get update
sudo apt-get install google-drive-ocamlfuse

Get the Google Drive API credentials

google-drive-ocamlfuse -headless -label me -id ##yourClientID##.apps.googleusercontent.com -secret ###yoursecret##### 

Mount the drive

mkdir /my_mnt_dir
google-drive-ocamlfuse -label me /my_mnt_dir

For unmounting

umount mountpoint

References

Google Drive Ocamlfuse

Headless Usage

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