[note]debian平台使用onedrive

debian平台使用onedrive

ondrive官方并没有提供linux平台的支持。故采用github开源项目ondrive

1. 安装

apt install onedrive

2. 登录

onedrive

根据提示进行操作

3. 配置onedrive

根据文档进一步的配置

文档中的部分内容
获取配置文件

wget https://raw.githubusercontent.com/abraunegg/onedrive/master/config -O ~/.config/onedrive/config

非文档内容
systemd

[Unit]
Description=OneDrive Client for Linux
After=network.target NetworkManager.service systemd-networkd.service iwd.service
[Service]
Type=simple
LimitNPROC=500
LimitNOFILE=1000000
Restart=always
ExecStartPre=/usr/bin/sleep 1s
ExecStart=/usr/local/bin/onedrive --sync
[Install]
WantedBy=multi-user.target

需要代理可以增加以下内容

Environment="HTTP_PROXY=http://your.proxy.server:port"
Environment="HTTPS_PROXY=http://your.proxy.server:port"
posted @   绪理  阅读(3)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示