HOWTO:如何把Gmail邮箱当硬盘

OOo,TeX,KO,ABI,GIMP,Picasa,ProE,QCAD,Inkscape,Kicad,Eagle
回复
头像
jazzi
帖子: 532
注册时间: 2005-10-16 23:26
来自: 泉州
送出感谢: 0
接收感谢: 3 次
联系:

HOWTO:如何把Gmail邮箱当硬盘

#1

帖子 jazzi » 2006-03-05 19:30

翻译自:http://www.ubuntuforums.org/showthread.php?t=139872
General - GmailFS how to for Ubuntu 5.10
利用Gmail邮箱在你的桌面上创建一个2G的虚拟硬盘 :lol: :?: :!:

-I'm not one to cross-post generally, but a good suggestion was made in a different forum to put this here. I didn't think about it, but yes. This is definitely where this 'how to' belongs. I had to poke at it all day to get it right, and I really don't think anyone has gotten it right yet. (I have a feeling some of the alterations here are unnecessary, but just go ahead and follow it step by step. These directions make Gmailfs work very nicely under Breezy 5.10.)


All packages are installed from source except FUSE.

So, if you have gmailfs or libgmailfs installed, remove them now.

(Keep Fuse.)

-Download libgmail from http://libgmail.sourceforge.net/

-Download gmailfs-0.7.2.tar.gz from the author's site

-Unpack those directories and copy everything into /usr/local/bin

-Copy gmailfs.conf to /etc

-Open up gmailfs.py in a text editor:
-Lines 42 and 43
-Replace:
'defaultUser' and 'defaultPassword' to reflect your actual login information.

-Lines 153-160
--Quotation Marks are important!!--
-Replace:
self.username = DefaultUsername
self.username = "YOUR_ACTUAL_USERNAME"

-Replace:
self.username = username
self.username = "YOUR_ACTUAL_USERNAME"

-- Do the same for the password entries! --

Open up:
/usr/lib/python2.5/site-packages/fuse.py in a text editor:
-Line 68
-Replace:
self.mountpoint = None
self.mountpoint = "YOUR_MOUNTPOINT_HERE"

Mount it once with this command

mount.gmailfs "/usr/local/bin/libgmail.py" YOUR/MOUNT/POINT/
-o username=YOUR_ACTUAL_USERNAME, password=YOUR_ACTUAL_PASSWORD,
fsname=zOlRRa

type:

chmod 777 YOUR/MOUNT/POINT
umount YOUR/MOUNT/POINT

Fstab entries won't work so:

Add this line to /etc/init.d/bootmisc.sh at the end:

mount.gmailfs "/usr/local/bin/libgmail.py" YOUR/MOUNT/POINT/ -o username=YOUR_ACTUAL_USERNAME,
password=YOUR_ACTUAL_PASSWORD,
fsname=zOlRRa

(This will mount it at bootup.)


Please leave feedback here to tell me if this worked for you. I just figured all of this out. So, I'm not sure if I missed something.

http://www.webloguniverse.com
-Click on the email link. (I'm the admin)
Thanks,
Pros

__________________________________________________ ______
Problem and Solution:

Problem:
-When I created an icon on the desktop for my nifty new gmail hard drive, gmail promptly froze my account for 15 minutes citing a 'Sector 4 Lockdown.'
It did not like the 'create link to location' choice for creating a new icon.

Solution:
-I created a link to the folder just below the mount point.
My gmail drive is mounted a /mnt/gmail
My icon on the desktop points to /mnt

-I haven't experienced any problems.
Although, I have to delete files using a shell command line.
Deleting from the konquerer window causes 'Lockdown Sector 4'
Good Luck,
Pros

有时间再翻译,哪位有空帮忙翻译一下
You make it fun
It will make you fun
ngafu
帖子: 14
注册时间: 2006-03-02 17:54
送出感谢: 0
接收感谢: 0

#2

帖子 ngafu » 2006-03-05 23:54

还能用吗?好像被G封了。或者这是新的方法?
头像
thankwsx
帖子: 132
注册时间: 2006-02-28 20:26
来自: 江苏淮安周恩来故居
送出感谢: 0
接收感谢: 0
联系:

#3

帖子 thankwsx » 2006-03-07 15:32

唉,我都没有Gmail,你叫我怎么用啊?
头像
glade
帖子: 1383
注册时间: 2005-10-21 16:57
送出感谢: 0
接收感谢: 0

#4

帖子 glade » 2006-03-09 2:00

firefox插件也可以的,但是不支持中文文件名
我正往Gmail塞文件
loocoo
帖子: 55
注册时间: 2005-05-24 16:44
送出感谢: 0
接收感谢: 0

#5

帖子 loocoo » 2006-03-09 8:48

用firefox的插件,虽然不支持中文,但简单多了
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#6

帖子 eexpress » 2006-03-09 18:18

核心是多安装一个gmailfs而已。和系统整合很好。也用mount和fstab。只是python好像版本有点问题。
● 鸣学
头像
fatloach
帖子: 121
注册时间: 2005-10-16 23:21
来自: 北京
送出感谢: 0
接收感谢: 0
联系:

#7

帖子 fatloach » 2006-03-15 0:28

这是不可取的
google 也许会随时del 你的文件
回复

回到 “办公、图像、机械电子设计等”