广告

本站里的文章大部分经过自行整理与测试

2019年2月17日星期日

dbxfs: Linux 挂载 Dropbox

https://github.com/rianhunter/dbxfs

1) 安装依赖软件包

Ubuntu
$ sudo apt install libfuse2

Fedora
$ sudo dnf install fuse

2) 安装 dbxfs

$ pip3 install dbxfs

3) 准备挂载点

$ mkdir ~/my_DropBox

4) 让 dbxfs 从 Dropbox 得到处理文件的权限

$ dbxfs ~/my_DropBox

用浏览器进入以下网址, 会得到一个 code,
将它 copy & paste 回 Terminal.

We need an access token. Perform the following steps:
1. Go to https://www.dropbox.com/oauth2/authorize?response_type=code&client_id=abc
2. Click "Allow" (you may have to log in first)
3. Copy the authorization code.
Enter authorization code (Ctrl-C to quit): ABCDEFGHIJKLMNOPQRSTUVWXYZ
We're all connected. Do you want to save your credentials for future runs? [Y/n] y
Would you like to help us improve dbxfs by providing anonymous error reports? [Y/n] y
Do you want "/home/yomun/DropBox" to be the default mount point? [Y/n] y

5) 在 Startup Applications 加入

Name: Dropbox (dbxfs)
Command: dbxfs /home/username/
my_DropBox
Comment: 进入 GNOME, 自动启动

没有评论:

发表评论