User Tools

Site Tools


projects:gertie:goggledrive

How To …

Additional info for the newcomer: Terminal signs and their meaning:

~ $ = you are logged in as user - at your home directory (!)

# = you are logged in as root - (with the command pwd you can see, where you are)

So here we are using a ppa, which is not an officially recommended way to add software because of possible security leaks.

NOTE: You have to put your real username in the spaces where you see “username”

Open a terminal:

~ $ su
= Password: (enter your [root] password and hit enter - note - there is no visual effect)

# apt-add-repository ppa:alessandro-strada/ppa # apt update # apt install google-drive-ocamlfuse # groupadd fuse # usermod -a -G fuse username # exit

  then close the terminal-window.

Open a NEW terminal (with your username - not as root !)

~ $ exec su -l $USER = Password:  (enter your password and hit enter - note - there is no visual effect)

At this point quit your browser - Firefox by default; shut all windows _NOW_ (important!)

~ $ google-drive-ocamlfuse

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 with name and password. After logging in, Google is requesting for permission. Click on “Accept”.

Next you have to grant access to your Google account. Click on “Allow”. Then you should see a message saying that google-drive-ocamlfuse was successfully granted access.

Important: Close the Firefox tab / window NOW - to finalize the procedure.

After you will see this feedback in your terminal-window: Access token retrieved correctly.

Now a mount point needs to be created so 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

= a lot of feedback; the LAST line should look like this:

  "google-drive-ocamlfuse on /home/username/googledrive type fuse.google-drive-ocamlfuse
  (rw,nosuid,nodev,relatime,user_id=1001,group_id=1002)"

~ $ exit

Open your File Manager, for Cinnamon it is called “Files” News- the internal name is “Nemo”

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 in a terminal:

~ $ fusermount -u ~/googledrive

If you wish to connect your googledrive manually, paste this command in a terminal:

~ $  google-drive-ocamlfuse ~/googledrive

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

projects/gertie/goggledrive.txt · Last modified: 2017/06/27 15:41 by 127.0.0.1