OpenBSD 上的 Dropbox

unc*_*mil 10 openbsd dropbox

有没有人成功安装 dropbox 并在 OpenBSD 上正确运行 dropboxd(FreeBSD 也适用于我..)?我是从源代码构建的,一切都安装得很好,但是当我尝试启动它时:


$ python /usr/bin/dropbox start                                                
Starting Dropbox...
The Dropbox daemon is not installed!
Run "dropbox start -i" to install the daemon

$ ssh root@localhost 
root@localhost's password: 

<snip>

# python /usr/bin/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

Error: Platform not supported
Run Code Online (Sandbox Code Playgroud)

所以我检查了命令行客户端和来自http://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstall 的纯文本内容,但当然这是为 linux 预编译的......没有骰子。

有人尝试解决这个问题并获得 DropBox/BSD 组合的解决方法吗?


我继续努力解决这个问题,最终遇到了一个障碍:在 amd64 上没有用于 openbsd 的 linux 仿真。游戏结束。抱歉耽误了大家的时间。

Vit*_* Py 3

这是 dropbox 脚本上的违规代码:

def plat():
    if sys.platform.lower().startswith('linux'):
        arch = platform.machine()
        if (arch[0] == 'i' and
            arch[1].isdigit() and
            arch[2:4] == '86'):
            plat = "x86"
        elif arch == 'x86_64':
            plat = arch
        else:
            FatalVisibleError("Platform not supported")
        return "lnx.%s" % plat
    else:
        FatalVisibleError("Platform not supported")
Run Code Online (Sandbox Code Playgroud)

您可以尝试将其替换为类似的内容:

def plat():
    arch = platform.machine()
    if (arch[0] == 'i' and
        arch[1].isdigit() and
        arch[2:4] == '86'):
        plat = "x86"
    elif arch == 'x86_64':
        plat = arch
    else:
        FatalVisibleError("Platform not supported")
Run Code Online (Sandbox Code Playgroud)

当然,在此过程中您可能会发现其他问题。祝你好运。