我已经在ubuntu20PPA (https://launchpad.net/~yann1ck/+archive/ubuntu/onedrive)的Bubuntu20LTS上安装了linux客户端。
sudo add-apt-repository ppa:yann1ck/onedrive
sudo apt update
sudo apt install onedrive
在重新启动一次之后,我注意到onedrive在启动时同步了我的所有文件夹。更改Onedrive文件夹中的内容时,除非执行同步,否则不会执行同步操作
onedrive --synchronize
当我对它的工作有足够的信心时,我试着用
onedrive --monitor
这是成功的,直到我用ctr + C杀死了这个过程。
下一次启动时,我注意到,不仅在启动时进行同步,而且在启动时也会执行更新监视。How我要解释这一点吗?进程是可见的(请参阅下面的更多细节)
$ pidof onedrive
1602
并直接向其发送信号/启用文件同步。
kill -STOP 1602
kill -CONT 1602
但是,没有显式启动任何服务。根据https://github.com/abraunegg/onedrive/blob/master/docs/USAGE.md的说法,我应该
systemctl --user enable onedrive
systemctl --user start onedrive
但我没有(在指挥历史上得到证实)。
Is已正确配置的onedrive客户端?或者我是否应该尝试停止/终止当前正在运行的进程并执行前面的两个命令?当我想编辑一个需要的配置时
onedrive --synchronize --resync
那么我该怎么做呢?
有关当前正在运行的进程的更多详细信息:
josja@sputter:~$ ps -Flww -p 1602
F S UID PID PPID C PRI NI ADDR SZ WCHAN RSS PSR STIME TTY TIME CMD
0 S josja 1602 1590 0 80 0 - 246222 hrtime 26012 5 20:32 ? 00:00:02 /usr/bin/onedrive --monitor
josja@sputter:~$ systemctl status onedrive@josja.service
● onedrive@josja.service - OneDrive Free Client for josja
Loaded: loaded (/lib/systemd/system/onedrive@.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: https://github.com/abraunegg/onedrive
josja@sputter:~$ systemctl status --user onedrive
● onedrive.service - OneDrive Free Client
Loaded: loaded (/usr/lib/systemd/user/onedrive.service; enabled; vendor pr>
Active: active (running) since Mon 2021-01-04 20:32:49 CET; 2h 31min ago
Docs: https://github.com/abraunegg/onedrive
Main PID: 1602 (onedrive)
CGroup: /user.slice/user-1000.slice/user@1000.service/onedrive.service
└─1602 /usr/bin/onedrive --monitor
jan 04 21:43:21 sputter onedrive[1602]: Sync with OneDrive is complete
jan 04 22:08:28 sputter onedrive[1602]: Starting a sync with OneDrive
jan 04 22:08:28 sputter onedrive[1602]: Syncing changes from OneDrive ...
jan 04 22:08:29 sputter onedrive[1602]: Sync with OneDrive is complete
jan 04 22:33:35 sputter onedrive[1602]: Starting a sync with OneDrive
jan 04 22:33:35 sputter onedrive[1602]: Syncing changes from OneDrive ...
jan 04 22:33:37 sputter onedrive[1602]: Sync with OneDrive is complete
jan 04 22:58:42 sputter onedrive[1602]: Starting a sync with OneDrive
jan 04 22:58:42 sputter onedrive[1602]: Syncing changes from OneDrive ...
jan 04 22:58:43 sputter onedrive[1602]: Sync with OneDrive is complete
systemctl list-unit-files
<...>
onedrive@.service disabled enabled
<...>
更新:
从答案和我的经验来看,客户端似乎是由ppa自动启动的,这样就可以阻止它并重新配置它。
systemctl --user stop onedrive
onedrive --synchronize --resync
systemctl --user start onedrive
发布于 2021-01-05 19:51:40
公开声明:我是Linux - https://github.com/abraunegg/onedrive的OneDrive客户端的开发人员。
@Josja
这是Ubuntu包的一个bug。
要正确安装客户端,您需要遵循以下说明:https://github.com/abraunegg/onedrive/blob/master/docs/ubuntu-package-install.md
还请注意在按照https://github.com/abraunegg/onedrive/blob/master/docs/ubuntu-package-install.md#known-issues-with-installing-from-the-above-packages使用Ubuntu包时存在的已知问题
https://askubuntu.com/questions/1305087
复制相似问题