Google drive mount
There are a number of ways to get your data to/from google drive, the first one below is the latest I tried, with success. Regard the later chapters as older.
link_1 is the one I followed, link_2 is the actual source also with comments.
| get and install |
|---|
| wget https://docs.google.com/uc?id=0B3X9GlR6EmbnWksyTEtCM0VfaFE&export=download
mv uc?id=0B3X9GlR6EmbnWksyTEtCM0VfaFE gdrive
chmod +x gdrive
sudo install gdrive /usr/local/bin/gdrive
gdrive list
gdrive upload backups.tar.gz
|
Halfway you get an url to paste into your browser to login to google-drive, the code returned will enable the access.
Very terse, but that worked for me.
older solutions
The debian section, with some exceptions, the installation of google-drive-ocamlfuse was run as kees, not root. So :
| older |
|---|
| $ sudo apt-get install ocaml camlp4-extra
$ git clone https://github.com/OCamlPro/opam.git
$ cd opam
$ ./configure
$ make
$ sudo make install
$ sudo apt-get install m4 libcurl4-gnutls-dev libfuse-dev libsqlite3-dev
$ opam init
$ opam update
$ opam install google-drive-ocamlfuse
|
Also i have my own shell settings file ~/bin/kees.sh so :
| older |
|---|
| export OPAM=/home/kees/.opam/system/bin
export PATH=$JAVA_HOME/bin:$PATH:~/bin:~/flex/bin:~/jswat/bin:$ORACLE_HOME/bin:$GRADLE_HOME/bin:$GITCORE:$ANDROIDSDK/tools:$ANDROIDSDK/platform-tools:$OPAM
|
Then run the command that let's you login to google and except access :
| manual startup |
|---|
| google-drive-ocamlfuse
mkdir /media/kees/googledrive
su
google-drive-ocamlfuse /media/kees/googledrive/
cd /media/kees/googledrive/
|
Done !!