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
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 :-)
Most helpful comment
The authorization work, after getting a google developer ;)