Google Drive read and write

Add the necessary PPA with the command

sudo add-apt-repository ppa:alessandro-strada/ppa

When prompted, type your sudo password and hit Enter.

Update app with the command

sudo apt update

Install the software by issuing the command

sudo apt install google-drive-ocamlfuse

Authorization

The next step is to authorize google-drive-ocamlfuse so it will have access to your Google account. To do this, go back to the terminal window and issue the command google-drive-ocamlfuse. This command will open a browser window that will either prompt you to log into your Google account or, if you're already logged in, ask you to allow google-drive-ocamlfuse access to your Google account. If you've not logged in, do so and then click Allow. The next window (which appeared on a Ubuntu 16.04 desktop, but not an Elementary OS Freya desktop) will ask you to grant permission for both gdfuse and OAuth2 Endpoint to access your Google account. Click Allow again. The next browser screen will inform you to wait until the authorization tokens have downloaded; you can minimize the browser at this point. When your terminal prompt returns, you know the tokens have been downloaded, and you're ready to mount.

Now to be able to mount the Google drive, you must create a folder to serve as the mount point. From the terminal, issue the command

mkdir ~/google-drive

to create a new folder in your home directory. Finally, issue the command

google-drive-ocamlfuse ~/google-drive

to mount your Google Drive to the google-drive folder. Look in Nautilus to see thet the folder is loaded from your Google Drive. You canb use it as if it is a local folder.

When you want to unmount the google-drive folder, issue the command

fusermount -u ~/google-drive

Now you need te auto start this mounting. To do this you need te make a bash file. Start Gedit and create a new file. Enter these text in this file:

#!/bin/bash

# autostart Google drive

google-drive-ocamlfuse ~/Google-drive

echo Google Drive is mounted.

sleep 2

save the file with a name like: mount-google-drive.sh and make it executable (In Nautilus, right click, properties, rights.

Now enter in the dash "start-up" ("Opstarttoepassingen") and add a new one. Browse to the file you just created and that's it.

The message that the Google Drive is mounted isn't visible when the script is called at startup. It is though when started afterwards.