顯示頁面舊版反向連結Fold/unfold all回到頁頂 本頁是唯讀的,您可以看到原始碼,但不能更動它。您如果覺得它不應被鎖上,請詢問管理員。 ====== 安裝 GMail Filesystem ====== 因為 Google Mail 提供 5GB 的空間, 就有人想到將這空間拿來當網路磁碟機 <quote> * Windows : [[http://www.viksoe.dk/code/gmail.htm|GMailDrive]] 很簡單安裝就可以馬上用 * Linux : [[http://richard.jones.name/google-hacks/gmail-filesystem/gmail-filesystem.html|GMail Filesystem]] 以下將針對 CentOS 5 64bit 實際安裝說明 FIXME * (出現 import fuse 錯誤問題) --- //[[tryweb@ichiayi.com|蔡宗融]] 2007/11/24 15:14// </quote> ===== - 安裝前檢測 ===== <file> [root@pd920 libgmail-0.1.8]# rpm -q python python-2.4.3-19.el5 </file> <note> **CentOS 5 都有符合以下 gmailfs 要求的條件** * python 必須 2.3 以上版本 * Kernel 必須支援 [[http://fuse.sourceforge.net/|FUSE]] </note> ===== - 下載 fuse/libgmail/fuse-python/gmailfs (python)===== <file> su - root cd /usr/local/ wget http://nchc.dl.sourceforge.net/sourceforge/fuse/fuse-2.7.1.tar.gz tar -zxvf fuse-2.7.1.tar.gz cd fuse-2.7.1 ./configure make make install modprobe fuse cd .. rm fuse-2.7.1.tar.gz wget http://nchc.dl.sourceforge.net/sourceforge/libgmail/libgmail-0.1.8.tar.gz tar -zxvf libgmail-0.1.8.tar.gz mv libgmail-0.1.8 libgmail rm libgmail-0.1.8.tar.gz wget http://nchc.dl.sourceforge.net/sourceforge/fuse/fuse-python-0.2.tar.gz tar -zxvf fuse-python-0.2.tar.gz mv fuse-python-0.2 fuse-python rm fuse-python-0.2.tar.gz wget http://richard.jones.name/google-hacks/gmail-filesystem/gmailfs-0.8.0.tar.gz tar -zxvf gmailfs-0.8.0.tar.gz rm gmailfs-0.8.0.tar.gz mv gmailfs-0.8.0 gmailfs </file> ===== - 使用 gmailfs 的方式 ===== **希望 gmailfs 要掛上 /gmailfs 的路徑上** ++++ 透過 gmailfs.conf 指定 Gmail 帳號密碼| <file> cd /usr/local/gmailfs vi gmailfs.conf </file> <code|h gmailfs.conf> : [account] username = 改成實際 GMail 的帳號 password = 改成實際 GMail 的密碼 : </code> ++++ ==== - 開機自動掛上 gmailfs 網路磁碟 ==== 在 /etc/fstab 增加一行 <code|h /etc/fstab> : /usr/local/gmailfs/gmailfs.py /gmailfs gmailfs noauto,username=gmailuser, password=gmailpass, fsname=zOlRRa </code> ==== - 手動掛上 gmailfs 網路磁碟 ==== <file> </file> {{tag>draft draft_安裝 google storage}} tech/gmailfs.txt 上一次變更: 2008/08/20 23:06由 jonathan