我成功地设置了基于这个任务线程的Owncloud服务器默认日历和默认联系人列表的同步。不过,我在自己的云服务器上有不止一个日历和联系人列表。我已经检查了日历和联系人应用程序添加新的联系人列表和日历的方式。联系人应用程序似乎没有提供这一功能。日历应用程序有一个添加新日历的选项,但是当我按下相应的按钮时,我会被转发到系统设置页面。谢谢你提前给我提示!M.
(我的设备是带有Ubuntu 14.10-R21的BKAQUIISE4.5)。
发布于 2015-04-30 08:45:38
要添加和同步日历和与owncloud的联系人,可以在终端中使用命令行。
我在https://lists.launchpad.net/ubuntu-phone/msg09789.html上找到的
注意:一个很好的方法是使用ssh连接到您的ubuntu电话的桌面终端(然后您可以轻松地复制命令行)。但是它也应该在手机的终端应用程序中工作
创建日历
syncevolution --create-database backend=evolution-calendar database=Calendar1创建同侪
syncevolution --configure --template webdav username=myusername password=mypassword syncURL=https://url-to-owncloud-install/remote.php/caldav/calendars/user-name/defaultcalendar keyring=no target-config@owncloud创造新的源头
syncevolution --configure backend=evolution-calendar database=Calendar1 @default Calendar1添加远程数据库
syncevolution --configure database=https://url-to-owncloud-install/remote.php/caldav/calendars/user-name/defaultcalendar backend=caldav target-config@owncloud Calendar1将远程日历与本地数据库连接
syncevolution --configure --template SyncEvolution_Client syncURL=local://@owncloud username= password= owncloud Calendar1将本地数据库添加到源
syncevolution --configure sync=two-way database=Calendar1 owncloud Calendar1启动第一次同步
syncevolution --sync refresh-from-remote owncloud Calendar1你可以为calendar1那么做,然后calendar2,..。
在这些命令行中,不要忘记替换:
用于N°2命令
'myusername' by your owncloud username
'mypassword' by your owncloud password
'https://url-to-owncloud-install/remote.php/caldav/calendars/user-name/defaultcalendar' by the adress link of calendar1 or calendar2 , ....用于N°4命令
'https://url-to-owncloud-install/remote.php/caldav/calendars/user-name/defaultcalendar' by the adress link of calendar1 or calendar2 , ....同样的方式:
syncevolution --create-database backend=evolution-contacts database=Contact1
syncevolution --configure --template webdav username=myusername password=mypassword syncURL=Your_contact1_owcloud_adress keyring=no target-config@owncloud
syncevolution --configure backend=evolution-contacts database=Contact1 @default Contact1
syncevolution --configure database=Your_contact1_owcloud_adress backend=carddav target-config@owncloud Contact1
syncevolution --configure --template SyncEvolution_Client Sync=None syncURL=local://@owncloud username= password= owncloud Contact1
syncevolution --configure sync=two-way backend=evolution-contacts database=Contact1 owncloud Contact1
syncevolution --sync refresh-from-remote owncloud Contact1和日历一样的注释。我只用一个联系人数据库测试过它,但是它应该适用于Contact2,Contact3,.
对于联系人,请确保使用“后端=演进-联系人”和“backend=carddav”(日历和联系人命令行之间的区别)。
重要:对于下一次同步,您只需做:
syncevolution owncloud calendar1
syncevolution owncloud contact1calendar2,contact2,..。
若要自动同步联系人和日历,可以在需要时使用crontab作业启动这些命令。你可以看到这篇文章:通过caldav/arddav同步ubuntu电话的cronjob同步
希望我的命令行没有错。
https://askubuntu.com/questions/616081
复制相似问题