Ubuntu安装微软Onedrive教程

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 文件。

  • 6
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 10
    评论
评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值