Mounting Google Documents in GNU/Linux is just not a (real) option

Mounting Google Documents in GNU/Linux is just not a (real) option


If you use Google Documents, you might want to be able to access your files without using a browser. So, I was all set, happy to write a good blog entry about how to mount your Google Documents folder on your Ubuntu. (This is not a very free-software thing to do, granted. But then again, if you are an Ubuntu One user, well, Ubuntu One server isn't free software either. But, it's a service, and interfacing to things is crucial.)

So, is it actually possible?

Well, the short answer, if you want to use Google Documents as a file system, is simple: "forget it". The reality is that Google Document is just not meant to be used in any way other than within your browser; it's not an online storage service: it's a fully lock-in proprietary document management service.

Let's see why.

Installing google-docs-fs

Google-Docs-Fs is written in Python. This seems to be a good start, since Google users Python a lot internally @ Google. It's the best option if you want to access Google Documents straight as a file system.

First of all, in the project's home page you are presented with two files:

  • google-docs-fs-1.0rc1.tar.gz
  • google-docs-fs-1.0rc1_all.deb

Before you jump ahead and install things, you will need to install the underlying needed library: python-gdata. If you click on "All downloads", you will also see a handy link to the libraries needed by this package:

  • python-gdata_2.0.14-1_all.deb

HINT: Install the package "python-gdata" from your own distribution, and not the one provided by the maintainer. There are different versions of Python, and if you are using the latest Ubuntu, for example, the provided package will install for the wrong version of Python, and nothing will work.

At this point, you will need to install google-docs-fs itself. Again, I tried the .deb provided by the author, but in my latest Ubuntu the installation was for Pythin 2.6. So, I had to go the manual way: I downloaded google-docs-fs-1.0rc1.tar.gz, unzipped it, and installed it:

merc@merc-ThinkPad-Edge-13-IAL:~$ wget http://google-docs-fs.googlecode.com/files/google-docs-fs-1.0rc1.tar.gz

[...]

2012-01-02 11:48:32 (36.5 KB/s) - `google-docs-fs-1.0rc1.tar.gz' saved [13880/13880]

merc@merc-ThinkPad-Edge-13-IAL:~$ tar xvzf google-docs-fs-1.0rc1.tar.gz 
google-docs-fs/
[...]
google-docs-fs/googledocsfs/__init__.py
google-docs-fs/googledocsfs/gFile.py

merc@merc-ThinkPad-Edge-13-IAL:~$ cd google-docs-fs/
merc@merc-ThinkPad-Edge-13-IAL:~/google-docs-fs$ sudo ./setup.py install[sudo] password for merc: 
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
changing mode of /usr/local/bin/gumount to 775
changing mode of /usr/local/bin/gmount.py to 755
changing mode of /usr/local/bin/gmount to 775
running install_egg_info
Writing /usr/local/lib/python2.7/dist-packages/google_docs_fs-1.0rc1.egg-info
merc@merc-ThinkPad-Edge-13-IAL:~/google-docs-fs$ 

At this point, you are ready to use it.

Using google-docs-fs

First of all, create a directory called "google" in your home directory running the command mkdir ~/google. At this point, run the command gmount google YOUREMAIL@gmail.com (obviously, YOUREMAIL is your email address). You should be prompted with a password request: type it in, and you should be good to go.

Notice the "should".

The response time is quite slow: browsing between directory can be really quite painful even with a pretty fast connection. If you used Google Docs, you know that it has different types of files: "uploaded" ones (which are not changed), and the "managed" ones (which can be edited by multiple people at the same time: for example Documents, Spreadsheets, Presentations, etc.). This is all great while using the web interface, but definitely gets in the way when you are trying to use it as a file system.

For example, create a file called "file.txt". Write something on it. Then save it, and quit. Relax: It will take you a little while to make this happen. The result of this operation is not what you would expect: when you see the directory listing again, you will see "file.txt.doc" in the folder. Google Documents actually converted the file into a DOC file! (Why the silent conversion? And why not ODF?)

Browsing the file system, I also noticed that files that I had created as .txt are actually .txt.doc (although Google's interface hides this from me when I am browsing the files using its browser).

Final thoughts

Only one thought: don't. I am writing these finishing lines as the module hanged on me and I had to reboot my computer to get rid of the share. It's very slow to use, and the "background work" done by Google just gets in the way too much.

Google Documents is a proprietary service for advanced document management. Using it as storage is like trying to fit a circle into a box. It might fit eventually, bit it just won't work right.

The failed paths

While writing this article, I stumbled upon a few dead ends. Here they are.

(No) Way #1: gdocsfs

GDocsFS is written in Java. Before you get too excited about it, have a look at this post -- in the 1st of December 2011, the author writes:

Comment 9 by project member jonhnnyw...@gmail.com, Dec 1, 2011 Hi guys,

Excuse me for not responding this issues, now I'm using github for a while and forgetting to take a look here. Since this project is being used I will reactive it, maybe I will rewrite it from the scratch and implement some requested features like write support. but the source code will be hosted on github. Besides write support what other features could be added? I have created an issue to collect suggestions here http://code.google.com/p/gdocsfs/issues/detail?id=12 . possibly we have a beta version still in this year.

It's read-only, and the developer "might" rewrite it in the future.

(No) Way #2: Google Doc Mount (GTK)

Google Doc Mount is meant to be a GTK application that allows you to easily mount your Google Docs file system, using just the GUI.

Before you get too excited: the package doesn't seem to be available once you have added the PPA using the command line.

Reading the project page, you read:

Now be warned, if you try this, remember that it’s not a supported piece of software, bugs aren’t likely to be fixed (unless you fix them of course) the code is available and it should work on Lucid. It won’t be ported to any other versions (at least by me) but it should be easy to recompile everything for other versions anyway.

The latest comment by the author is even clearer:

doctormo says: 2011-06-11 at 15:55 Aproposnix: It was never maintained to begin with, it was and still is a proof of concept which may or may not still work. Some people have reported success simply installing the deb file for the first release. It was never a project, just an experiment to prove it could be done.

Category: 

Comments

arseshan's picture
Submitted by arseshan on

One can upload and download files from Google Docs by the click of a button. Moreover you can download them files in any format you want. With the way humans are connected these days, I doubt if there is any requirement for such "OFFLINE" use at all. The only kind of people who might require such "OFFLINE" content must be those like budget independent researchers who work in remote areas!!! They can use software like Libre office and upload them later when they reach places with connectivity. SO WHAT'S THE BIG FUSS ABOUT???? GOOGLE DOCS IS GREAT.

Tony Mobily's picture

Hi,

This article was about "mounting" a Google Docs account so that it looked like it was part of your computer's file system.
I never spoke of "offline" mode...

So I am not sure I am following you!

Merc.

jrr's picture
Submitted by jrr on

This article is about mounting a remote file system (Google Doc's file system). If you go offline, any remote file systems you have mounted become unavailable. Google Docs has had an offline feature for a long time, but that is separate from this.

Author information

Tony Mobily's picture

Biography

Tony is the founder and the Editor In Chief of Free Software Magazine

Most forwarded

Interview with Dave Mohyla, of DTIDATA

Dave Mohyla is the president and founder of dtidata.com, a hard drive recovery facility based in Tampa, Florida.

TM: Where are you based? What does your company do?
DTI Data recovery is based in South Pasadena, Florida which is a suburb of Tampa. We have been here for over 10 years. We operate a bio-metrically secured class 100 clean room where we perform hard drive recovery on all types of hard disks, from laptop hard drives to multi drive RAID systems.

Anybody up to writing good directory software?

Since the very beginning, directories (of any kind) have had a very central role in the internet. (I have recently grown fond of Free Web Directory. Even Slashdot can be considered a directory: a collection of great news and invaluable user-generated comments. As far as software is concerned, doing a quick search on Google about software directories will return the free (as in freedom) software directories like Savannah, SourceForge, Freshmeat and so on, followed by shareware and freeware sites such as FileBuzz, PCWin Download Center and All Freeware (great if you're looking for shareware and freeware, but definitely less comprehensive than their free-as-in-freedom counterparts).

Interview with Mark Shuttleworth

Mark Shuttleworth is the founder of Thawte, the first Certification Authority to sell public SSL certificates. After selling Thawte to Verisign, Mark moved on to training as an astronaut in Russia and visiting space. Once he got back he founded Ubuntu, the leading GNU/Linux distribution. He agreed on releasing a quick interview to Free Software Magazine.

Is better education the key to finding better software?

I read David Jonathon's article Anybody Up To Writing Good Directory Software? the other day, which got me thinking about software directories in general. As David mentioned, many of the software directories one finds when doing a quick google search are free as in beer, not as in freedom. But what interests me is the software directories that already exist, providing a combination of both free as in beer software, and open source software. Sites such as Freeware Downloads and Shareware Download don't advertise themselves as providing free as in liberty software, but each of them have a good selection of open source software available... if you know where to look.

Most emailed

Free Open Document label templates

If you’ve ever spent hours at work doing mailings, cursed your printer for printing outside the lines on your labels, or moaned “There has got to be a better way to do this,” here’s the solution you’ve been looking for. Working smarter, not harder! Worldlabel.com, a manufacture of labels offers Open Office / Libre Office labels templates for downloading in ODF format which will save you time, effort, and (if you want) make really cool-looking labels

Creating a user-centric site in Drupal

A little while ago, while talking in the #drupal mailing list, I showed my latest creation to one of the core developers there. His reaction was "Wow, I am always surprised what people use Drupal for". His surprise is somehow justified: I did create a site for a bunch of entertainers in Perth, a company set to use Drupal to take over the world with Entertainers.Biz.

Update: since writing this article, I have updated the system so that the whole booking process happens online. I will update the article accordingly!

So, why, why do people and companies develop free software?

More and more people are discovering free software. Many people only do so after weeks, or even months, of using it. I wonder, for example, how many Firefox users actually know how free Firefox really is—many of them realise that you can get it for free, but find it hard to believe that anybody can modify it and even redistribute it legally.

When the discovery is made, the first instinct is to ask: why do they do it? Programming is hard work. Even though most (if not all) programmers are driven by their higher-than-normal IQs and their amazing passion for solving problems, it’s still hard to understand why so many of them would donate so much of their time to creating something that they can’t really show off to anybody but their colleagues or geek friends.

Sure, anybody can buy laptops, and just program. No need to get a full-on lab or spend thousands of dollars in equipment. But... is that the full story?

Fun articles

Santa Claus - the most successful open source project

It dawned on me the other day, as I was shopping for the dozens of gifts it seems I have to buy every December, that Santa Claus is the most successful open source project in history. (Bridget @ Illiterarty would agree with that). Santa Claus is essentially a marketing development that is embodied by everyone who stuffs a sock, gives a gift, hosts a dinner or wishes Merry Christmas over the holiday season.

Most emailed

Editorial

When I first started thinking about Free Software Magazine, I was feeling enthusiastic about the dream. I had Dave, Gianluca, and Alan willing to help me, I had established members of the free software community willing to help me out, I had writers volunteering their time and energy for free, and I had a generous offer from OpenHosting for servers, all before I'd proved myself. There was a sense of excitement in the air, and I thought maybe, just maybe, I could make this work.

Free Software Magazine uses Apollo project management software and CRM for its everyday activities!