Zero's Blog

Centos7 命令行安装Dropbox

Dropbox 这货也被Q了,想要使用需要搭梯子,可以参照Shadowsocks安装,搭建一个梯子。

Dropbox 守护程序可在所有 32 位与 64 位 Linux 服务器上正常运行。若要安装,请在 Linux 终端运行下列命令。

下载Dropbox

访问官方下载页面根据不同平台,选择下载不同的安装包

安装Dropbox

我的操作系统是CentOS,选择下载RPM包来安装

1
2
http://linux.dropbox.com/packages/fedora/nautilus-dropbox-2015.02.12-1.fedora.x86_64.rpm
yum localinstall nautilus-dropbox-2015.02.12-1.fedora.x86_64.rpm

启动Dropbox

1
2
3
4
dropbox start
Starting Dropbox...
The Dropbox daemon is not installed!
Run "dropbox start -i" to install the daemon

执行

1
2
3
4
5
6
7
8
dropbox start -i
Starting Dropbox...
Dropbox is the easiest way to share and store your files online. Want to learn more? Head to http://www.dropbox.com/
In order to use Dropbox, you must download the proprietary daemon. [y/n] y
Downloading Dropbox... 100%
Unpacking Dropbox... 100%
Done!

启动Dropbox

1
2
dropbox start
Dropbox is already running!

配置Dropbox

执行命令

1
2
3
4
~/.dropbox-dist/dropboxd
This computer isn't linked to any Dropbox account...
Please visit http://www.dropbox.com/cli_link_nonce?nonce=94f031bb1e619bda13898fd5e9c8a44e to link this device.

用另外一个终端lynx http://www.dropbox.com/cli_link_nonce?nonce=94f031bb1e619bda13898fd5e9c8a44e
这样就完成了

下载官方工具

1
2
3
wget "http://www.dropbox.com/download?dl=packages/dropbox.py"
chmod 755 dropbox.py
./dropbox.py help (或是 start, stop等指令, 预设位置为~/Dropbox)