设为首页 加入收藏

TOP

在ubuntu 20.04下安装配置onedrive(一)
2023-07-23 13:28:54 】 浏览:55
Tags:ubuntu 20.04 安装配 onedrive

项目地址:https://github.com/abraunegg/onedrive

笔者系统版本:Ubuntu 20.04

本文将介绍的主要内容:在Ubuntu20.04版本下下载、安装onedrive,并完成对该软件的基本设置,包括:修改保存位置、跳过onedrive下特定文件夹、开启日志、将onedrive设为系统服务

下载与安装

前往页面https://github.com/abraunegg/onedrive/blob/master/docs/ubuntu-package-install.md查看对应指令,系统版本和我一样的同学可以直接复制下列指令完成下载与安装

wget -qO - https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_20.04/Release.key | sudo apt-key add -
echo 'deb https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_20.04/ ./' | sudo tee /etc/apt/sources.list.d/onedrive.list
sudo apt-get update
sudo apt install onedrive

配置

本文主要完成以下配置

  • onedrive授权
  • 下载、修改配置文件
  • 开始同步
  • 将onedrive设置成系统服务

项目给出的配置教程文件地址如下,有需要的同学可以查看其他未提及的用法与配置

https://github.com/abraunegg/onedrive/blob/master/docs/USAGE.md

授权

  1. 推荐连接梯子后操作,但非必须

  2. 打开命令行,输入onedrive

  3. 在命令行中的url按住ctrl后左键单击打开。注意此时不要关闭打开的命令行

  4. 在网页中输入自己的帐号密码,随后会页面跳转至一个空白页。

  5. 复制空白页的地址,回到命令行并粘贴上一部复制的地址

注意:这一步可能会连接失败,各位多尝试几次。

下载、编辑配置文件

下载

  1. 在用户目录下创建文件夹
mkdir -p ~/.config/onedrive
  1. 下载配置文件:
wget https://raw.githubusercontent.com/abraunegg/onedrive/master/config -O ~/.config/onedrive/config

配置文件具体内容如下:

# Configuration for OneDrive Linux Client
# This file contains the list of supported configuration fields
# with their default values.
# All values need to be enclosed in quotes
# When changing a config option below, remove the '#' from the start of the line
# For explanations of all config options below see docs/USAGE.md or the man page.
#
# sync_dir = "~/OneDrive"
# skip_file = "~*|.~*|*.tmp"
# monitor_interval = "300"
# skip_dir = ""
# log_dir = "/var/log/onedrive/"
# drive_id = ""
# upload_only = "false"
# check_nomount = "false"
# check_nosync = "false"
# download_only = "false"
# disable_notifications = "false"
# disable_upload_validation = "false"
# enable_logging = "false"
# force_http_11 = "false"
# local_first = "false"
# no_remote_delete = "false"
# skip_symlinks = "false"
# debug_https = "false"
# skip_dotfiles = "false"
# dry_run = "false"
# min_notify_changes = "5"
# monitor_log_frequency = "5"
# monitor_fullscan_frequency = "12"
# sync_root_files = "false"
# classify_as_big_delete = "1000"
# user_agent = ""
# remove_source_files = "false"
# skip_dir_strict_match = "false"
# application_id = ""
# resync = "false"
# resync_auth = "false"
# bypass_data_preservation = "false"
# azure_ad_endpoint = ""
# azure_tenant_id = "common"
# sync_business_shared_folders = "false"
# sync_dir_permissions = "700"
# sync_file_permissions = "600"
# rate_limit = "131072"
# operation_timeout = "3600"
# webhook_enabled = "false"
# webhook_public_url = ""
# webhook_listening_host = ""
# webhook_listening_port = "8888"
# webhook_expiration_interval = "86400"
# webhook_renewal_interval = "43200"
# space_reservation =
首页 上一页 1 2 3 4 下一页 尾页 1/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇linux-0.11分析:boot文件 head.s.. 下一篇linux如何配置ssh密钥登录

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目