如何将 Xubuntu 的日历 Orage 与 Google 日历同步?

Gio*_*ris 6 xfce xubuntu calendar google 15.10

有谁知道如何将 Xubuntu 15.10 日历(Orage)与 Google 日历同步?我找到了一些旧链接,但它似乎不再起作用了。

van*_*ium 1

这里有一篇有趣的文章(Ayman Bagabas 于 2018 年 4 月 8 日发表)建议使用实用程序Vdirsyncer来执行同步。vdirsyncer 是一个命令行工具,可以在服务器和本地文件系统之间双向同步日历和通讯录。cron通常,它通过服务定期运行systemd

\n\n

设置并不是很简单,需要一些技术经验。文章中概述了详细信息。

\n\n
    \n
  1. 使用配置文件,针对 vdirsyncer 设置同步。
  2. \n
  3. 需要从Google API 控制台内为 Google 帐户启用 CALDAV API 。
  4. \n
  5. 然后vdirsyncer需要被授予访问Google帐户的权限。
  6. \n
  7. Orage必须指向同步文件
  8. \n
  9. 使用cronsystemdvdirsyncer定期运行。
  10. \n
\n\n

如果将来这篇文章不可用,这里会复制一些信息。感谢本文作者 Ayman Bagabas:

\n\n

先决条件

\n\n

安装了 vdirsyncer 和 orage:

\n\n
sudo apt install vdirsyncer orage\n
Run Code Online (Sandbox Code Playgroud)\n\n

1.配置文件

\n\n

配置文件的示例~/.vdirsyncer/status如下vdirsyncer

\n\n
[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"\n
Run Code Online (Sandbox Code Playgroud)\n\n

2.为您的Google帐户启用CALDAV API

\n\n
    \n
  1. 转到https://console.developers.google.com/并创建一个新项目。
  2. \n
  3. 单击 \xe2\x80\x9cEnable APIs and Services\xe2\x80\x9d 或单击左侧的 Library,然后搜索 \xe2\x80\x9cCalDAV\xe2\x80\x9d 并启用它。
  4. \n
  5. 单击 \xe2\x80\x9ccreatecredentials\xe2\x80\x9d,然后为您的 API 选择 \xe2\x80\x9cCalDAV API\xe2\x80\x9d,并为应用程序类型选择 \xe2\x80\x9cOther\xe2\x80\x9d 。单击“下一步”并选择一个名称,例如 \xe2\x80\x9cvdirsyncer\xe2\x80\x9d,然后单击“继续”。
  6. \n
  7. 您将获得您的客户端 ID,将其粘贴到您的配置文件中。
  8. \n
  9. 获取客户端 ID 后单击“完成”,然后单击凭据名称并从那里获取客户端密钥。
  10. \n
\n\n

3. 授予vdirsyncer对您的 Google 帐户的访问权限

\n\n

$ vdirsyncer discover calendar

\n\n

这将授权配置文件中提供的配对日历。将弹出浏览器窗口以完成与 google 的授权。

\n\n

4.将Orage指向同步文件

\n\n

在 Orage 中:文件 -> 交换数据,并添加下面的文件~/.calendars(根据上面的示例配置文件)。

\n\n

同步现在应该可以工作,并且可以使用命令完成

\n\n

vdirsyncer sync

\n\n

cron仍然需要使用或定期运行该命令(例如每小时)systemd

\n


Net*_* AP 0

我相信您可以大致这样修改此文件 /home/user/.config/orage/oragerc :

\n\n
Archive file=/home/user/Dropbox/orage/orage_archive.ics\nOrage file=/home/user/Dropbox/orage/orage.ics\n
Run 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