How to mount Google Drive as a file system in Linux

This was surprisingly simple thanks to the excellent google-drive-ocamlfuse project!

For Debian 10 “Buster”, the steps are as follows:

As root:

Then, as unprivileged user, you can install google-drive-ocamlfuse into ~/.opam:

This compiles a native binary  ~/.opam/system/bin/google-drive-ocamlfuse .

The first time, simply run this binary without arguments:

This will start your default browser where you have to authorize gdfuse to access your Google Drive.

Then, mounting your actual Google Drive is as simple as running

Voila! Problem solved in 10 minutes!