如何在 Ubuntu Touch 上使用 OwnCloud 同步联系人和日历

mel*_*les 10 sync evolution ubuntu-touch owncloud-server

如何将 OwnCloud 中的联系人和日历与 Ubuntu 手机同步?

mel*_*les 10

Ubuntu手机使用evolution数据服务器,数据可以同步syncevolution

  1. 打开到你的 Ubuntu 手机的 ssh 连接(我为此使用了 Ubuntu-SDK)
  2. 然后执行

    syncevolution --configure --keyring=no --template webdav username=- password='OCPASSWORD' syncurl="YOURSERVER.COM/owncloud" target-config@owncloud
    
    Run Code Online (Sandbox Code Playgroud)
    • 大写的所有内容都需要替换为您自定义的 owncloud 参数。
    • 如果您使用的是自签名证书,您可以从服务器下载它,将其保存在本地并告诉 syncevolution 在哪里找到它SSLServerCertificates="/home/phablet/YOURCERTIFICATE.crt"。您可以将此命令放在 URL 参数之后。
    • 如果上述方法不起作用,您可以使用这种不安全的替代方法 SSLVerifyServer="0"
  3. 现在告诉同步进化手机的信息

    syncevolution --configure --template SyncEvolution_Client sync=none syncURL=local://@owncloud username= password= owncloud
    
    Run Code Online (Sandbox Code Playgroud)
  4. 以及日历的具体参数

    syncevolution --configure --template webdav database=https://YOURSERVER.COM/owncloud/remote.php/caldav/calendars/OCUSER/personal backend=caldav target-config@owncloud calendar
    
    Run Code Online (Sandbox Code Playgroud)

    数据库路径,可以通过单击链符号在 owncloud Web 前端中找到。

  5. 现在

    syncevolution --configure sync=two-way backend=calendar database=personal owncloud calendar
    
    Run Code Online (Sandbox Code Playgroud)
  6. 最后开始同步

    syncevolution --sync slow owncloud calendar
    
    Run Code Online (Sandbox Code Playgroud)

要同步联系人,您只需要添加以下步骤:

  1. syncevolution --configure --template webdav database=https://YOURSERVER.COM/owncloud/remote.php/carddav/addressbooks/OCUSER/contacts backend=carddav target-config@owncloud contacts
    
    Run Code Online (Sandbox Code Playgroud)

    您可以再次从 Web 前端获得正确的路径

  2. syncevolution --configure sync=two-way backend=contacts database=personal owncloud contacts
    
    Run Code Online (Sandbox Code Playgroud) 数据库是您设备上地址簿的名称
  3. 现在运行

    syncevolution --sync slow owncloud contacts
    
    Run Code Online (Sandbox Code Playgroud)