打印

Dropbox

[复制链接]
129|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
求关注啊|  楼主 | 2018-9-27 17:46 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
要在ubuntu下使用dropbox,还得花一番功夫。如果你认为安装dropbox就像安装其他软件一样:从软件中心或者dropbox网站上下载 deb包安装好后就可以使用,那就大错特错了。如果一切正常,你会发现,仅仅完成这一项,dropbox是无法启动的。此时,从终端运行dropbox,就可以大概了解原因。

$ dropbox

运行命令后,会出现如下信息:

----------------------------------------------------------------------

Dropbox command-line interface

commands:

Note: use dropbox help <command> to view usage for a specific command.

status       get current status of the dropboxd

help         provide help

puburl       get public url of a file in your dropbox

stop         stop dropboxd

running      return whether dropbox is running

update       download latest version of dropbox

start        start dropboxd

filestatus   get current sync status of one or more files

ls           list directory contents with current sync status

autostart    automatically start dropbox at login

exclude      ignores/excludes a directory from syncing

lansync      enables or disables LAN sync

----------------------------------------------------------------------

按照提示,运行:

$dropbox start

----------------------------------------------------------------------

Starting Dropbox...

The Dropbox daemon is not installed!

Run "dropbox start -i" to install the daemon

----------------------------------------------------------------------

继续:

$dropbox start -i

----------------------------------------------------------------------

Starting Dropbox...

-----------------------------------------------------------------------

与此同时,桌面弹出授权对话框,输入密码,点击Autherticate按钮,奇迹发生了:和直接点击图标是一样的效果,什么也没发生……

接下来返回终端,会看到终端有如下信息呈现:

----------------------------------------------------------------------

Dropbox is the easiest way to share and store your files online. Want to learn more? Head to http://www.dropbox.com/

Error: Trouble connecting to Dropbox servers. Maybe your internet connection is down, or you need to set your http_proxy environment variable.

URL that failed to download: http://www.dropbox.com/download?plat=lnx.x86

Error: [Errno 104] Connection reset by peer

The installation of Dropbox failed.

----------------------------------------------------------------------

此时,问题就清楚了,不管是从软件中心安装,还用deb包安装,只是安装了一个壳而已,启动后,这个壳要下载一些文件,问题就出在这个环节,链接没法打开。网上看了,有人说是被墙了,但是直接把这段网址复制到浏览器里面,确实可以下载……不管了……直接在浏览器里下载这个压缩包,然后解压得到.dropbox-dist文件夹,将次文件夹放置于

~/.dropbox-dist

有人说将文件夹放到此处,也就是主文件夹下面,就可以通过图标启动dropbox了,但是我没有成功……

那就只能另辟蹊径了:修改图标文件中的命令,也就是.desktop文件。

sudo gedit /usr/share/applications/dropbox.desktop

将命令修改为:

/home/$USER/.dropbox-dist/dropbox

(将上面的$USER替换成用户名)

然后保存,就可以通过图标运行dropbox了(实际上就是绕过壳,直接运行.dropbox-dist下的dropbox)。

这样的话,其实.dropbox-dist文件夹被置于何处就无关紧要了,只需要在.desktop文件中指定相应的地址就可以了。

问题解决了,同时也提供了一种思路:以后遇到软件启动时没有反应的情况,就从终端运行试试,终端会把故障信息打印出来,比如安装eagle时缺少libpng14.so*文件,或者运行某些软件时莫名其妙的段错误,等等。

使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

380

主题

380

帖子

0

粉丝