这里有一篇有趣的文章(Ayman Bagabas 于 2018 年 4 月 8 日发表)建议使用实用程序Vdirsyncer来执行同步。vdirsyncer 是一个命令行工具,可以在服务器和本地文件系统之间双向同步日历和通讯录。cron通常,它通过服务定期运行systemd。
设置并不是很简单,需要一些技术经验。文章中概述了详细信息。
\n\nvdirsyncer需要被授予访问Google帐户的权限。cron或systemd,vdirsyncer定期运行。如果将来这篇文章不可用,这里会复制一些信息。感谢本文作者 Ayman Bagabas:
\n\n先决条件
\n\n安装了 vdirsyncer 和 orage:
\n\nsudo apt install vdirsyncer orage\nRun Code Online (Sandbox Code Playgroud)\n\n1.配置文件
\n\n配置文件的示例~/.vdirsyncer/status如下vdirsyncer:
[general]\nstatus_path = "~/.vdirsyncer/status/"\n\n[pair calendar]\na = "google_calendar"\nb = "local_calendar"\ncollections = ["from a", "from b"]\nmetadata = ["color"]\n\n[storage local_calendar]\ntype = "singlefile"\npath = "~/.calendars/%s.ics"\n\n[storage google_calendar]\ntype = "google_calendar"\ntoken_file = "~/.vdirsyncer/google_token"\nclient_id = "CLIENT_ID"\nclient_secret = "CLIENT_SECRET"\nRun Code Online (Sandbox Code Playgroud)\n\n2.为您的Google帐户启用CALDAV API
\n\n3. 授予vdirsyncer对您的 Google 帐户的访问权限
$ vdirsyncer discover calendar
这将授权配置文件中提供的配对日历。将弹出浏览器窗口以完成与 google 的授权。
\n\n4.将Orage指向同步文件
\n\n在 Orage 中:文件 -> 交换数据,并添加下面的文件~/.calendars(根据上面的示例配置文件)。
同步现在应该可以工作,并且可以使用命令完成
\n\nvdirsyncer sync
cron仍然需要使用或定期运行该命令(例如每小时)systemd。
我相信您可以大致这样修改此文件 /home/user/.config/orage/oragerc :
\n\nArchive file=/home/user/Dropbox/orage/orage_archive.ics\nOrage file=/home/user/Dropbox/orage/orage.ics\nRun Code Online (Sandbox Code Playgroud)\n\n这些文件最初位于(或应该位于)/home/user/.local/share/orage (2)
\n\n或者您可以进入Orage to File -> Share data(或数据共享?(1))来更改文件的路径。
\n\n因此,您可以使用 Orage(但不能是 Google 日历)和 Dropbox 帐户与任何计算机或移动设备同步。不过,我还没有尝试过,但它可以与像 Keepass 这样的密码管理器一起使用。
\n\n无论如何,将应用程序与Google应用程序同步需要降低Google应用程序的安全性。
\n\n你知道吗?“Orages”在法语中的意思是“雷暴”。
\n\n(1)法语版中的\xc3\x89changer des donn\xc3\xa9es \n (2)如果你从未使用过Orage,它们还不存在
\n| 归档时间: |
|
| 查看次数: |
6570 次 |
| 最近记录: |