fuse_gdrive
A Fuse filesystem using the Google Drive API v2 in Go.
For the impatient
- install the fuse library for your operating system:
* debian/ubuntu: apt-get install fuse
* osxfuse: download and install
* freebsd: cd /usr/ports/sysutils/fusefs-libs/ && make install
* from src: http://fuse.sourceforge.net/
- install go, at least version 1.3, for your OS
- Ensure you set
$GOPATH
(~/go
will work fine), then add $GOPATH/bin
to your traditional $PATH
environment variable. - use go to fetch and install this code and its dependencies:
`$ go install github.com/asjoyner/fuse_gdrive`
- make a mount point on your system
`$ mkdir /mnt/gdrive`
- request to mount the filesystem
`$ fuse_gdrive /mnt/gdrive`
- A browser window will open for you to grant permission to your files in
Drive.
- Once you accept, the client will sync locally the metadata about your
files in drive, and make those files accessible at the mount point you
specified.
But that didn't work?
The steps above assume that you're running the fuse client on the same computer
the web browser is running on. If you get an error about failing to launch a
web browser, and have to copy/paste the URL by hand, then you'll also have
to ensure when your web browser attempts to HTTP POST to http://localhost:12345 that
it gets connected to the fuse_gdrive client. Typically, you want a command like
this:
$ ssh -L12345:localhost:12345 <remote_host>