作者wyvernlee (廢死不可!)
看板Linux
標題[心得] 如何輕鬆使用 box 網路硬碟服務
時間Mon Apr 16 13:15:52 2012
box 網路硬碟
https://www.box.com
是個相當大方的網路硬碟,個人使用者有 50 GB 的容量,比 dropbox 2 GB 大方多了。
但是在 Linux 底下如何使用似乎比較少人提到,以下筆者將根據
http://www.linuxforum.com/content/
157-Mount-your-box-net-%28box-com%29-account-in-linux
內容及個人經驗撰寫如何使用此網路硬碟,我所使用的 Linux 為 Debian Linux。
各位鄉民若不是使用 Debian Linux 的請自行依據自己環境修改:
0. 安裝必備軟體:
apt-get install davfs2
1. 在 /etc/fstab 底下加上下面這行:
https://www.box.com/dav /box davfs rw,user,noauto 0 0
2. 在 /etc/davfs2/secrets 檔案中增加以下這行:
https://www.box.com/dav [email protected] password
其中的
[email protected] 為各位的 box 帳號
passwd 則為登入密碼
3. 在 /etc/davfs2/davfs2.conf 將
# use_locks 1
改成
use_locks 0
4. 在 / 建 box 目錄
mkdir /box
根據我所找到網頁的作法,這樣就可以使用 root 權限來掛載 /box 了,指令如下:
# mount /box
不過這種作法有個問題,第一個是 /box 目錄之 owner 為 root,一般使用者無法存
資料,第二個是要掛載目錄得要 root 權限才行。因此筆者加了以下流程讓各位可以
使用一般使用者來掛載、存取 /box 目錄
5. 請將 /usr/sbin/mount.davfs 檔案加上 uid 權限:
# chmod u+s /usr/sbin/mount.davfs
6. 假設你平常使用的帳號為 john,請將 john 加入 /etc/group 中 davfs2 群組,
加入後 /etc/group 中 davfs2 之狀態如下所示:
davfs2:x:130:john
加上 5、6 步驟後即可使用 john 來掛載 /box 目錄,並使用 john 權限存取資料了。
恭喜,現在你有 50 GB 的免費網路硬碟可以使用,而且是在 linux 環境下操作。
--
#1FVFsJFI (Gossiping) □ [問卦] 有木有南交大的八卦?
→ Kim0716:木木木木木木木木木木木木木木木木木木木木木木木 很潮嗎 04/05 10:05
推 XESET: ||||||||||||||||||||||| 04/05 10:06
推 misstoomuch:||||||||||||||||||||| 04/05 10:08
噓 a78914124:我也是懶覺大 04/05 10:08
→ hsiawenc: 發黴 04/05 10:10
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 120.117.73.193
推 rehon:推教學 04/16 13:55
推 obarisk:可惜只能放小檔 04/16 15:17
→ diabloevagto:dropbox比較好用 04/16 16:13
青菜蘿蔔各有所好,我是覺得 50 GB 還不錯用說,而且說小檔其實也不小了,
每個檔案上限都有 100 MB 也夠用了。
用 rsync 可以把整個目錄 sync 過去其實也很方便。
推 chang0206:何不試試 tonido ? 04/16 17:07
→ diabloevagto:ubuntu one有人用過嗎? 04/16 17:57
推 carlcarl:ubuntu one有在用 用來同步個人資料夾底下的東西 04/16 18:14
→ carlcarl:像是.theme .icon之類的~~ 04/16 18:14
→ wyvernlee:糟了,被版主 M 文了,幸好不是在數字版~~ 04/16 19:41
※ 編輯: wyvernlee 來自: 118.171.152.246 (04/16 19:44)
推 WolfLord: 好分享,不M嗎? 04/16 19:45
推 in3:推一個 04/17 19:30
推 zenixls2:推 04/18 09:56
→ zenixls2:可惜沒有他說可以upgrade的兩個device QQ 04/18 10:17
推 SunMoonLake:看起來不錯用幫推 04/18 13:20