行云无鸣

2011-12-03

在Linux下安装CLI版本的Dropbox

Filed under: 乱语 — 标签:, , — hellyguo @ 14:07

1.下载并解压安装包

wget -O – http://www.dropbox.com/download?plat=lnx.x86 | tar xzf –

2.从解压出的~/.dropbox-dist文件夹执行守护进程

~/.dropbox-dist/dropboxd

3.如果是第一次执行,会提示要求拷贝出现的链接到浏览器去认证
示例如下

root@www:~# ~/.dropbox-dist/dropboxd
This client is not linked to any account…
Please visit https://www.dropbox.com/cli_link?host_id={hex id}&cl=en_US to link this machine.

通过浏览器访问此链接后,会要求你登录或再度输入密码,成功后终端即出现

root@www:~# ~/.dropbox-dist/dropboxd
This client is not linked to any account…
Please visit https://www.dropbox.com/cli_link?host_id={hex id}&cl=en_US to link this machine.
Client successfully linked, Welcome {user}!

这时再去看~,就会发现Dropbox文件夹,同步的文件即在此
4.下载dropbox.py,用以控制守护进程

wget https://www.dropbox.com/download?dl=packages/dropbox.py

罗列常用命令

dropbox.py start #启动
dropbox.py stop #停止
dropbox.py lansync n #停用局域网同步

简单翻译介绍,具体细节参见Dropbox

%d 博主赞过: