1) 需要3个软件
Ubuntu
$ sudo apt install libcurl4-openssl-dev
$ sudo apt install libsqlite3-dev
https://dlang.org/download.html#dmd
$ wget http://downloads.dlang.org/releases/2.x/2.084.1/dmd_2.084.1-0_amd64.deb
$ sudo dpkg -i dmd_2.084.1-0_amd64.deb
Fedora
sudo dnf install libcurl-devel
sudo dnf install sqlite-devel
curl -fsS https://dlang.org/install.sh | bash -s dmd
Arch Linux
sudo pacman -S curl sqlite dlang
2) 编译与安装
$ git clone https://github.com/skilion/onedrive.git
$ cd onedrive
$ make
$ sudo make install
3) 登入
$ onedrive
Authorize this app visiting: 这里会有个权限请求登入网址
打开浏览器, 进入以上网址之后,
在浏览器 copy & paste 以下网址去 Terminal
Enter the response uri: https://login.microsoftonline.com/common/oauth2/nativeclient?code=???
之后, 会开始下载与同步文件到 ~/OneDrive
4) 自启配置
$ systemctl --user enable onedrive
$ systemctl --user start onedrive
没有评论:
发表评论