GmailFS

| | Comments (0)

http://richard.jones.name/google-hacks/gmail-filesystem/gmail-filesystem.html

準備下列檔案
http://umn.dl.sourceforge.net/sourceforge/avf/fuse-1.3.tar.gz
http://richard.jones.name/google-hacks/gmail-filesystem/fuse-python.tar.gz
http://umn.dl.sourceforge.net/sourceforge/libgmail/libgmail-0.0.8.tgz
http://richard.jones.name/google-hacks/gmail-filesystem/gmailfs.tar.gz

安裝 fuse, 開機 kernel 所用的 gcc 需和 compile fuse 所用的版本一致
(參考README-2.4, 我的環境使用 Mandrake 10, kernel 2.4.26)
# tar zxf fuse-1.3.tar.gz
# cd fuse-1.3
# ./configure --with-kernel=/usr/src/linux
# make install

載入 module, 若無法載入, 重編 kernel, 再用那個 kernel 開機試試
# insmod fuse

安裝 python FUSE module, 需先安裝 libpython2.3-devel rpm
# tar zxf fuse-python.tar.gz
# cd fuse-python
# python setup.py build
# python setup.py install

安裝 libgmail
# tar zxf libgmail-0.0.8.tgz
# cd libgmail-0.0.8
# cp libgmail.py constants.py /usr/lib/python2.3/site-packages

安裝 gmailfs
# tar zxf gmailfs.tar.gz
# cd gmailfs
# cp gmailfs.py /usr/local/bin
# cp mount.gmailfs /sbin
# ln -s /sbin/mount.gmailfs /sbin/mount.fuse

修改 /usr/local/bin/gmailfs.py 中的 DefaultUsername, DefaultPassword

mount GmailFS!
# mount -t fuse /usr/local/bin/gmailfs.py /mnt
# df
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/hda6 3938 3462 276 93% /
gmailfs 1000 56 944 6% /mnt

完成, 在 /mnt 會看到一個空的目錄, 可以作檔案存取動作, 由於網路速度上的限制,
我覺得實用性不大

Leave a comment

March 2009

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Entry

This page contains a single entry by Pank published on September 9, 2004 10:27 AM.

Google Taiwan news was the previous entry in this blog.

Change IE scroll bar color is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.