Open mouzzampk2014-zz opened 5 years ago
pi3: yes,working. Raspbian 10. I've done it yesterday. Try something like this:
$ sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh) $ opam init # ok $ opam update # ok $ opam install depext # ok $ opam depext google-drive-ocamlfuse # ok $ opam install google-drive-ocamlfuse # takes 20+ minutes
And just now I installed it to my new Pi4, Raspbian GNU/Linux 10 (buster)
I accepted all defaults (hit enter) during install
this will install /usr/local/bin/opam $ sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)
opam init needs bubblewrap (and m4 recommended) $ sudo apt-get install bubblewrap m4
$ opam init # (accept all defaults). Takes 14 min on my pi4
$ opam update # ok
$ opam install depext # OK
$ opam depext google-drive-ocamlfuse # Ok
$ opam install google-drive-ocamlfuse # 9 min
I found out that you have to install fuse as well: $ sudo apt-get update fuse
Now you need to get your security token from google Drive. My pi4 is a headless server so this:
google-drive-ocamlfuse -label YOURNAME
will give you an error (he needs a browser to go to Drive to get the token)
Solution that worked for me: I installed google-drive-ocamlfuse on my desktop Ubuntu 18 and got my token from Drive. Worked. I copied (scp) my state file to the headless server: scp $HOME/.gdfuse/YOURNAME/state headless_server_ip:$HOME/.gdfuse/YOURNAME/state
and on your headless server: google-drive-ocamlfuse -label YOURNAME /mnt/dirXYZ
Bingo.
There is also an option for headless devices.
I did check out the headless option. But how do I get my Client ID and secret from google without a browser?
Hi, Is it possible to use this on raspberry pi 3b+? Thank you