September 9, 2015 - rob

How To mount Google drive and use in Linux Mint17.2

First of all,

you have to install google-drive-ocamlfuse by adding the official PPA: 
 
$ sudo add-apt-repository ppa:alessandro-strada/ppa
$ sudo apt-get update
$ sudo apt-get install google-drive-ocamlfuse 
_
 
Now you you have to add your username to the (executing)- fuse group: NOTE: 
you have to replace  ?your-username?  with your real username that you use at login! : 
 
$ sudo usermod -a -G fuse ?your-username?
$ exec su -l $USER  $ google-drive-ocamlfuse (<-copy&paste all after1st“$ “)
_
 
Now Firefox (by system default) will open up a window, 
asking you to log in to your Google account. 
Log in with your Google account name and password.
After logging in, Google is requesting for permission. 
Click on “Accept”. 
 
Next you have to grant “gdfuse OAuth2 Endpoint” access to your Google account.
Click on “Allow”. 
Then you should see a message saying that google-drive-ocamlfuse was successfully granted access. 
Close the Firefox tab / window to finalize.  
_
 
Now a mount point need to be created, 
for that you can access to your Googledrive as a mounted volume, 
it will appear in the window of your “Files” manager (in Cinnamon = Nemo, by default): 
 
$ mkdir ~/googledrive $ google-drive-ocamlfuse ~/googledrive
$ mount 
 
Now you should see your “googledrive” – additional attached as a volume in your filemanger,
you can use it like an usual attached device, like an USB stick, f.e. 
_
 
It will be available until you shutdown/restart your system.
If you wish to disconnect your googledrive manually, paste this command:
$ fusermount -u ~/googledrive
 __
Once installed as above, 
you can mount your googledrive always with the following terminal command:
 
$ google-drive-ocamlfuse ~/googledrive 
 
The “googledrive” will appear again as described above. 
__
That’s it.

A little comfort: Just double-click a file for mount / unmount :
Optional you can go ahead and create a simple mount
and a simple un-mount script on an easy way:
For mounting googledrive by your request:
  1. Create a new document with gedit.
2. Paste in: google-drive-ocamlfuse ~/googledrive
3. Safe as f.e: Mount Googledrive  on a certain destination, f.e. desktop
4. Close gedit.
5. Locate the file and right-click on it,
choose properties;
6. click on access-rights
7. Mark the field “allow executing as application”
8. Close the properties window
9. Double-click your file
10. Choose  execute  on upcoming window =
googledrive becomes available / getting mounted
 
For UN-mounting googledrive by your request:

  1. Create a new document with gedit.
2. Paste in: fusermount -u ~/googledrive
3. Safe as f.e: Unmount Googledrive  on a certain destination, f.e. desktop
4. Close gedit.
5. Locate the file and right-click on it,
choose properties;
6. click on access-rights
7. Mark the field “allow executing as application”
8. Close the properties window
9. Double-click your file
10. Choose  execute  on upcoming window =

googledrive gets disconnected / unmounted

Note: You can safe/move these both files to any destination

      inside your home directory you like

 

Original post can be found here:

Mount google drive in Linux Mint

Linux