<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://blog.macos.fr/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>MacOS.fr</title>
  <link>http://blog.macos.fr/</link>
  <atom:link href="http://blog.macos.fr/feed/rss2" rel="self" type="application/rss+xml"/>
  <description>sup ?</description>
  <language>en</language>
  <pubDate>Sun, 24 Jan 2010 18:06:18 +0800</pubDate>
  <copyright></copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>GmailFS for Mac OS X</title>
    <link>http://blog.macos.fr/post/2007/01/18/GMailFS-for-Mac-OS-X</link>
    <guid isPermaLink="false">urn:md5:e9fcfce3080f67906e179318fd8116c0</guid>
    <pubDate>Thu, 18 Jan 2007 11:26:00 +0800</pubDate>
    <dc:creator>Jean-Matthieu</dc:creator>
        <category>Software</category>
            
    <description>&lt;p&gt;A couple of days ago, Amit Singh announced that he has &lt;a href=&quot;http://googlemac.blogspot.com/2007/01/taming-mac-os-x-file-systems.html&quot;&gt;ported
Linux's FUSE module to OS X&lt;/a&gt;. It only took me a couple of hours to be able
to use GmailFS, a filesystem which uses your Gmail account as its storage
medium by &lt;a hreflang=&quot;en&quot; href=&quot;http://richard.jones.name/google-hacks/gmail-filesystem/gmail-filesystem.html&quot;&gt;
Richard Jones&lt;/a&gt;.&lt;/p&gt;    &lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-decoration: underline;&quot;&gt;Phase 1: Get the stuff&lt;/h2&gt;
There are a couple of stuff that you need to download first. Open the Terminal
application and create a new folder somewhere on your disk like ~/Desktop/fuse/
and then 'cd' to it.&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a hreflang=&quot;en&quot; href=&quot;http://code.google.com/p/macfuse/&quot;&gt;MacFuse&lt;/a&gt;
(http://code.google.com/p/macfuse)&lt;/li&gt;
&lt;li&gt;Download the Python FUSE bindings from &lt;a href=&quot;http://sourceforge.net/cvs/?group_id=121684&quot;&gt;FUSE's CVS repository&lt;/a&gt;.
Checkout the python module using:&lt;br /&gt;
cvs -d:pserver:anonymous@fuse.cvs.sourceforge.net:/cvsroot/fuse co -P
python&lt;/li&gt;
&lt;li&gt;Download a copy of &lt;a href=&quot;http://libgmail.sourceforge.net/&quot;&gt;libgmail&lt;/a&gt;.
Recent releases currently work however if you experience problems you may wish
to grab the CVS version of libgmail by following the instructions &lt;a href=&quot;http://sourceforge.net/cvs/?group_id=113492&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Download &lt;a href=&quot;http://richard.jones.name/google-hacks/gmail-filesystem/gmailfs-0.7.2.tar.gz&quot;&gt;gmailfs-0.7.2.tar.gz&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 style=&quot;text-decoration: underline;&quot;&gt;Phase 2: Install&lt;/h2&gt;
Start by installing MacFuse. Mount the disk image, open the installation
package and simply walk through the assistant. Restart when you're done.&lt;br /&gt;
&lt;br /&gt;
Then, open the Terminal and do the following&lt;br /&gt;
$ cd ~/Desktop/fuse&lt;br /&gt;
&lt;br /&gt;
Let's start with libgmail&lt;br /&gt;
$ tar -zxvf libgmail-0.1.5.1.tar.gz&lt;br /&gt;
$ cd libgmail-0.1.5.1&lt;br /&gt;
$ python setup.py build&lt;br /&gt;
$ sudo python setup.py install&lt;br /&gt;
Password : &amp;lt;&amp;lt;enter your password here &amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let's move on to FUSE python bindings. This is the complex part. Before you
can compile the bindings, you  need to create a file to inform pkg-config
where is your fuse installation.&lt;br /&gt;
Copy/Paste what's below and save it to ~/Desktop/fuse/fuse.pc&lt;br /&gt;
&lt;pre&gt;
prefix=/usr/local&lt;br /&gt;
exec_prefix=${prefix}&lt;br /&gt;
libdir=${exec_prefix}/lib&lt;br /&gt;
includedir=${prefix}/include
&lt;/pre&gt;
&lt;pre&gt;
Name: fuse&lt;br /&gt;
Description: Filesystem in Userspace&lt;br /&gt;
Version: 2.6.1&lt;br /&gt;
Libs: -L${libdir} -lfuse -pthread&lt;br /&gt;
Cflags: -I${includedir}/fuse -D__FreeBSD__=10 -D_FILE_OFFSET_BITS=64
&lt;/pre&gt;
&lt;br /&gt;
Now, copy the file somewhere inside your PKG_CONFIG_PATH&lt;br /&gt;
$ sudo cp ~/Desktop/fuse/fuse.pc /usr/local/lib/pkg-config/&lt;br /&gt;
&lt;br /&gt;
Of course if pkg-config is not installed on your system, you need it too
:&lt;br /&gt;
Get it there : &lt;a href=&quot;http://pkgconfig.freedesktop.org/wiki/&quot; rel=&quot;nofollow&quot;&gt;http://pkgconfig.freedesktop.org/wiki/&lt;/a&gt;.&lt;br /&gt;
&lt;p&gt;To compile and install pkg-config as a set of Universal binaries, do the
following:&lt;/p&gt;
$ tar -xzvf pkg-config-&amp;lt;version&amp;gt;.gz&lt;br /&gt;
$ cd pkg-config-&amp;lt;version&amp;gt;/&lt;br /&gt;
$ CFLAGS=&amp;quot;-O -g -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk&amp;quot;
\&lt;br /&gt;
LDFLAGS=&amp;quot;-arch i386 -arch ppc&amp;quot; \&lt;br /&gt;
./configure --prefix=/usr/local --disable-dependency-tracking&lt;br /&gt;
$ make&lt;br /&gt;
$ sudo make install
&lt;p&gt;This installs pkg-config under the /usr/local/ hierarchy.&lt;/p&gt;
&lt;br /&gt;
You are  now ready to build the python bindings, so go there&lt;br /&gt;
$ cd ~/Desktop/fuse/python&lt;br /&gt;
$ python setup.py build&lt;br /&gt;
&lt;br /&gt;
Should this fail or complain about something called osreldate.h, just go to the
header that includes osreldate.h&lt;br /&gt;
and comment out the inclusion for now.&lt;br /&gt;
&lt;br /&gt;
$ sudo python setup.py install&lt;br /&gt;
Password : &amp;lt;&amp;lt;enter your password here &amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The last thing you install is gmailfs itself. Go to your download directory
again and prepare the stuff&lt;br /&gt;
$ cd ~/Desktop/fuse&lt;br /&gt;
$ tar -zxvf gmailfs-0.7.2.tar.gz&lt;br /&gt;
$ cd gmailfs-0.7.2&lt;br /&gt;
&lt;br /&gt;
$ sudo cp mount.gmailfs /sbin/mount_gmailfs&lt;br /&gt;
$ sudo cp gmailfs.py /usr/local/bin/&lt;br /&gt;
&lt;br /&gt;
Now gmailfs is installed on your system. We're almost there.&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-decoration: underline;&quot;&gt;Phase 3: Configuration&lt;/h2&gt;
In ~/Desktop/fuse/gmailfs-0.7.2 there is a file called gmailfs.conf. Open it
and insert your personal info (like your username and password to Google Gmail
service). Then copy this file to your /private/etc folder&lt;br /&gt;
$ sudo cp gmailfs.conf /private/etc&lt;br /&gt;
&lt;br /&gt;
Create a test folder that will become your mountpoint&lt;br /&gt;
$ mkdir ~/gmailfs&lt;br /&gt;
&lt;br /&gt;
Inform FUSE_PYTHON_COMPAT&lt;br /&gt;
$ export FUSE_PYTHON_COMPAT=ALL&lt;br /&gt;
Alternatively, you can set  FUSE_PYTHON_COMPAT=0.1 is the mount command
fails&lt;br /&gt;
&lt;br /&gt;
Try to mount your GMail Disk :&lt;br /&gt;
$ mount -ovolname=bla -t gmailfs /usr/local/bin/gmailfs.py ~/gmailfs&lt;br /&gt;
Looks like -ovolname is ignore ...&lt;br /&gt;
&lt;br /&gt;
$ df -h&lt;br /&gt;
Filesystem                               
Size   Used Available Capacity  Mounted on&lt;br /&gt;
/dev/disk0s5                            
90Gi  32Gi  58Gi    36%    /&lt;br /&gt;
devfs                                  
114Ki 114Ki     0B   100%   
/dev&lt;br /&gt;
fdesc                                  
1.0Ki 1.0Ki     0B   100%   
/dev&lt;br /&gt;
/dev/disk0s3                            
59Gi  51Gi 8.5Gi    86%    /Volumes/HD
150Go&lt;br /&gt;
automount -fstab
[110]                     
0B     0B     0B  
100%    /automount/Servers&lt;br /&gt;
automount -static
[110]                    
0B     0B     0B  
100%    /automount/static&lt;br /&gt;
python@0                               
2.7Gi     0B 2.7Gi    
0%    /Users/jms/gmailfs&lt;br /&gt;
&lt;br /&gt;
When this is done, you can copy stuff there and it will be saved on gmail space
automatically&lt;br /&gt;
$ cp intro.mov ~/gmailfs&lt;br /&gt;
&lt;br /&gt;
Well that about it. I hope you have something new to play with too.&lt;br /&gt;
&lt;br /&gt;
I could not get it to work properly with the Finder (Drag and drop doesn't work
all the time, got some .DS_Store annoyance too) but I probably just did not
look hard enough. Anyway, if you have a solution, feel free to post it below,
for now, &amp;lt;ad&amp;gt;i'll stick to &lt;a hreflang=&quot;en&quot; href=&quot;http://gdisk.sourceforge.net&quot;&gt;gDisk&lt;/a&gt;&amp;lt;/ad&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
    
    
    
          <comments>http://blog.macos.fr/post/2007/01/18/GMailFS-for-Mac-OS-X#comment-form</comments>
      <wfw:comment>http://blog.macos.fr/post/2007/01/18/GMailFS-for-Mac-OS-X#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.macos.fr/feed/atom/comments/71686</wfw:commentRss>
      </item>
    
</channel>
</rss>