Here are some libre and free solutions to use Google Drive on Ubuntu Linux, post Grive/Grive2/Insync.
Ubuntu Gnome
If you are using the official Ubuntu Gnome distro, getting Google Drive is pretty easy. See this tutorial at part No. 13 from It's FOSS: https://itsfoss.com/gnome-tricks-ubuntu/
Other Ubuntu Flavors
If you are using a flavor such as Ubuntu MATE, you'll have to install the two packages Gnome uses as well as a special desktop switch for the menu to display. Install and then run:
sudo apt install gnome-control-center gnome-online-accounts XDG_CURRENT_DESKTOP=GNOME gnome-control-center
Its quite easy from there to enter in your personal Google information.
Google Team Drive
If you are using a subscription-paid (i.e., paid Google account) special team you'll wont see anything beyond personal files. Gnome Online Accounts does not support the teams shares, though doing so has been on the Gnome to-do list for years. Your personal files will sync but nothing else.
Install Ocamlfuse
You'll need to follow the directions here at the main Ocamlfuse wiki: https://github.com/astrada/google-drive-ocamlfuse/wiki/Installation
Be sure to check the link above but run:
sudo add-apt-repository ppa:alessandro-strada/ppa
sudo apt-get update
sudo apt-get install google-drive-ocamlfuse
google-drive-ocamlfuse
This will then run the authorization/permission check your local machine requires using Ocamlfuse to access Google Drive.
Connect the Team Drives/Folders
One area that we found confusing was how to mount the shared team folders properly the first time as Google/Ocamlfuse because of the "label" and "/mountPoint" nomenclature in the Github wiki.
In a sentence, one must label each shared team folder first before running the connection to the folders contents as a mounting point. We choose to label the shared folder and our mountpoing identically to avoid further confusion.
After installing Ocamlfuse enter the directory of your mounted Google Drive location:
cd /home/YOURUSERNAME/GoogleDrive/
Create a new label: google-drive-ocamlfuse -label YOURTEAMFOLDERNAME
Over in Google Drive using a browser, obtain your root shared team folder id from the url, example:
https://drive.google.com/drive/u/1/folders/0XS2-_aJgHL29KfOVHAS22
Open up your ~/.gdfuse/YOURTEAMFOLDERNAME/configfile and search for the team_drive_id line and add your team folder id, example: 0XS2-_aJgHL29KfOVHAS22
Now you are ready to mount the team folder within your Google Drive account:
google-drive-ocamlfuse -label myTeamDrive /mountPoint
This was the unclear section in the Ocamlfuse wiki. For our example, you'd enter this:
google-drive-ocamlfuse -label YOURFOLDERNAME YOURFOLDERNAME
Your team content will then appear in your GoogleDrive folder along with your personal items.
If you would like us to help you, your business and/or staff work more effectively using libre, free and open source software, we are here to help! Just contact us for a free quote or if you need immediate assistance on this specific topic, leave a comment below; we are HAPPY to help!
