Google-drive-ocamlfuse: installing on ubuntu-server

Created on 18 Nov 2019  路  3Comments  路  Source: astrada/google-drive-ocamlfuse

i try to install it on my ubuntu 18.04 lts server.
Hardware is an Odroid XU4
Is there a way to get the authorization-token without a GUI?

This is what happens:
steffen@odroid:~$ google-drive-ocamlfuse /media/HDD1/directory /bin/sh: 1: xdg-open: not found /bin/sh: 1: firefox: not found /bin/sh: 1: google-chrome: not found /bin/sh: 1: chromium-browser: not found Couldn't get a file descriptor referring to the console Cannot retrieve auth tokens. Failure("Error opening URL:https://accounts.google.com/o/oauth2/

I delete the last part of the Link because of privacy

Most helpful comment

The authorization work, after getting a google developer ;)

All 3 comments

You can actually use -headless argument with -id and -token ones.
Works like a charm :-)

The authorization work, after getting a google developer ;)

I managed to mount 4 google drive accounts on my dedicated server, in a very easy way.

1- Use your personal computer to create the connexion.
I used labels to distinct accounts :
google-drive-ocamlfuse -label account01
google-drive-ocamlfuse -label account02
google-drive-ocamlfuse -label account03
google-drive-ocamlfuse -label account04

Each command open the browser, you just select the corresponding account

All corresponding cache and authent files are stored in the ~/.gdfuse directory

2- Simply copy the .gdfuse directory to the dedicated server, in the homedir of the user that will mount the accounts
I simply run : scp r ~/.gdfuse [email protected]:

You may have to set corrects rights on the directory after the copy.

3- On the server, create subdirectories as mountpoints, for example :
mkdir ~/GGDRIVE/account01
mkdir ~/GGDRIVE/account02
mkdir ~/GGDRIVE/account03
mkdir ~/GGDRIVE/account04

Also, you may have to set the correct rights on directories

4- Almost done, just use the mount command for each account :
google-drive-ocamlfuse -label account01 ~/GGDRIVE/account01
...

5- That's all ! I was really surprised by the simplicity of the process :-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

atleta picture atleta  路  8Comments

maltokyo picture maltokyo  路  3Comments

ilovetosharing picture ilovetosharing  路  4Comments

mouzzampk2014 picture mouzzampk2014  路  4Comments

R-Chandra picture R-Chandra  路  3Comments