fruitoftheloom
Posts: 24555
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Mount Your Google Drive on Linux

Thu Apr 20, 2017 9:49 am

Google Drive Ocamlfuse

This method is not an alternative to a native Google Drive sync client like InSync or OverGrive, which creates and local copies of your files for offline access.

With thus FUSE method all your Google Drive files remain remote. If your internet connection dips out, so does access to files you haven’t made local copies of.

But what it does allow you to open most files in local apps and write changes to the file direct to Google Drive. Think of it this as a remote USB thumb drive: you can copy, edit, write and open files while it’s attached.




http://www.omgubuntu.co.uk/2017/04/moun ... fuse-linux

https://github.com/astrada/google-drive-ocamlfuse/wiki
Thinking outside the box is better than burying your head in the sand...

Malman35
Posts: 425
Joined: Sun Nov 30, 2014 4:51 am

Re: Mount Your Google Drive on Linux

Mon May 01, 2017 8:47 am

Code: Select all

pi@malman:~ $ sudo add-apt-repository ppa:alessandro-strada/ppa
You are about to add the following PPA to your system:
 Mount Google Drive on Ubuntu (via FUSE)
 More info: https://launchpad.net/~alessandro-strada/+archive/ubuntu/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 167, in <module>
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 105, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 595, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)    
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/jessie
pi@malman:~ $
Not cool. :(
I was hoping this would work.

fruitoftheloom
Posts: 24555
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Mount Your Google Drive on Linux

Mon May 01, 2017 9:01 am

Malman35 wrote:

Code: Select all

pi@malman:~ $ sudo add-apt-repository ppa:alessandro-strada/ppa
You are about to add the following PPA to your system:
 Mount Google Drive on Ubuntu (via FUSE)
 More info: https://launchpad.net/~alessandro-strada/+archive/ubuntu/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 167, in <module>
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 105, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 595, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)    
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/jessie
pi@malman:~ $
Not cool. :(
I was hoping this would work.
Error: could not find a distribution template for Raspbian/jessie

Google Drive Ocamlfuse is available to install on Ubuntu 16.04 LTS and 16.10 using the following dedicated PPA:

RTI - that is why it is in OFF-TOPIC :roll:
Thinking outside the box is better than burying your head in the sand...

ktb
Posts: 1447
Joined: Fri Dec 26, 2014 7:53 pm

Re: Mount Your Google Drive on Linux

Mon May 01, 2017 9:05 am

PPAs are usually meant to be used with Ubuntu, they usually will not work with Debian/Raspbian.

You can try these instructions for installing from source:
https://github.com/astrada/google-drive ... ian-Jessie

Malman35
Posts: 425
Joined: Sun Nov 30, 2014 4:51 am

Re: Mount Your Google Drive on Linux

Tue May 02, 2017 6:57 am

fruitoftheloom wrote: Google Drive Ocamlfuse is available to install on Ubuntu 16.04 LTS and 16.10 using the following dedicated PPA:

RTI - that is why it is in OFF-TOPIC :roll:
Sorry man. Wasn't paying attention. :roll:
ktb wrote:PPAs are usually meant to be used with Ubuntu, they usually will not work with Debian/Raspbian.

You can try these instructions for installing from source:
https://github.com/astrada/google-drive ... ian-Jessie
Nice! I got it work. :) Great way to access my files between devices.

MasterCATZ
Posts: 3
Joined: Tue Jun 20, 2017 6:43 am

Re: Mount Your Google Drive on Linux

Sat Jul 22, 2017 10:19 pm

export OPAMDIR=~/opam
export DRIVEDIR=/mnt/googledrive
export DRIVECFG=~/.gdfuse/default/config
sudo apt-get -y --force-yes install ocaml ocaml-findlib sqlite3 camlidl m4 libcurl4-gnutls-dev libfuse-dev libsqlite3-dev camlp4-extra fuse build-essential ssh make git
cd $HOME
git clone https://github.com/OCaml/opam
cd opam
./configure
make lib-ext
./configure && make && sudo make install
opam init
opam install extlib re cmdliner ocamlgraph cudf dose jsonm
sudo apt-get install aspcud
sudo apt-get install etckeeper
echo "eval \`opam config env\`" >> ~/.bashrc
opam install google-drive-ocamlfuse --yes
sudo shutdown --reboot
sudo chmod a+rw /dev/fuse
sudo mkdir -p /mnt/googledrive
sudo chown $USER /mnt/googledrive
sudo sed -i 's/\#user_allow/user_allow/g' /etc/fuse.conf
google-drive-ocamlfuse -headless -label me -id ##yourClientID##.apps.googleusercontent.com -secret ###yoursecret#####

https://github.com/astrada/google-drive ... horization


then I use SnapRAID and MergerFS to have offline/online syncing

Return to “Off topic discussion”