Ubuntu安装Onedrive教程
系统信息:
操作系统:
Ubuntu 16.04
本教程通过安装开源社区的
onedrive-d
,实现在linux操作系统中将本地文件同步到微软OneDrive
云存储。
onedrive-d
不仅支持Ubuntu/ Debian
,同时也支持CentOS/ Fedora/ RHEL
。
第1步:废话不多说,直接从github
下载安装
1.$ git clone https://github.com/xybu92/onedrive-d.git
2.$ cd onedrive-d
3.$ ./install.sh
安装过程中,会自动安装必要的软件,例如pip3
等但是安装需要python-3
,不过ubuntu
都会自带的,所以无须担心。
第2步:安装后,你会看到这样的消息:
onedrive-d installed successfully.
Please run command `onedrive-pref` to set up the program.
根据提示,在终端输入onedrive-pref
进行初始化配置 ,如图
在浏览器中打开终端中的链接,登录你的微软账号
然后会看到:
点击 是
。然后将跳转到的网址复制到终端。
onedrive-d has been successfully authorized.
接着配置:
至此,onedrive-d
配置完成。
第3步:帮助
$ onedrive-d --help
Commands:
start Start the daemon.
stop Stop the daemon.
restart Stop then start the daemon.
status Get the status of the daemon.
终端输入
$ onedrive-d start
至此,你会在home
文件夹下找到onedrive
文件夹,里面已经同步了你的onedrive
文件。