How do I synchronize contacts and calendars from OwnCloud with the Ubuntu phone?
Asked
Active
Viewed 6,043 times
1 Answers
10
The Ubuntu phone uses the evolution data server and the data can be synchronized using syncevolution.
- Open an ssh-connection to your Ubuntu Phone (I'm using the Ubuntu-SDK for this purpose)
Then execute
syncevolution --configure --keyring=no --template webdav username=- password='OCPASSWORD' syncurl="YOURSERVER.COM/owncloud" target-config@owncloud- everything that's written in capitals needs to be replaced with your custom owncloud parameters.
- if you are using a self-signed certificate you would download it from the server, save it locally and tell syncevolution where to find it
SSLServerCertificates="/home/phablet/YOURCERTIFICATE.crt". You can place this command just after the URL parameter. - if the above doesn't work, you could use this unsecure alternative
SSLVerifyServer="0"
Now tell syncevolution the information about the phone
syncevolution --configure --template SyncEvolution_Client sync=none syncURL=local://@owncloud username= password= owncloudand the specific parameters for the calendar
syncevolution --configure --template webdav database=https://YOURSERVER.COM/owncloud/remote.php/caldav/calendars/OCUSER/personal backend=caldav target-config@owncloud calendarThe database path, can be found in the owncloud web frontend by clicking the chain symbol.
now
syncevolution --configure sync=two-way backend=calendar database=personal owncloud calendarand finally start the synchronization
syncevolution --sync slow owncloud calendar
For synchronizing the contacts you would just need to add this steps:
syncevolution --configure --template webdav database=https://YOURSERVER.COM/owncloud/remote.php/carddav/addressbooks/OCUSER/contacts backend=carddav target-config@owncloud contactsyou can again get the right path from the web frontend
database is the name of the address book on your devicesyncevolution --configure sync=two-way backend=contacts database=personal owncloud contactsnow run
syncevolution --sync slow owncloud contacts
-
My question about adding a self signed certificate is found here: http://askubuntu.com/questions/601195/how-can-i-add-a-ca-at-an-ubuntu-phone/603064#603064 – meles Apr 06 '15 at 17:40
-
Nice. I will add some information in https://help.ubuntu.com/community/SyncEvolution/Synchronize-evolution-data-with-caldav-cardav-server – Khurshid Alam Apr 10 '15 at 08:14
-
You can find a bash script to add owncloud contact & calendar, and setup a cronjob to sync on your phone : [ubuntu-touch-add-contact-list-and-calendars](https://askubuntu.com/questions/616081/ubuntu-touch-add-contact-list-and-calendars/664834#664834) – Romain Fluttaz Aug 23 '15 at 11:50
-
And if anything goes wrong? how can I delete the config? – Tiago Carrondo Dec 04 '15 at 17:14
-
1This didn't work for me until I used my OCUSER in step 2 (username=OCUSER) and I dropped the word "personal" in steps 5 and 9 (syncevolution --configure sync=two-way backend=calendar database= owncloud calendar). – Michael Terry Jan 29 '16 at 20:47
-
Step 8 had to be (for me): `syncevolution --configure --template webdav database=https://YOURSERVER.COM/owncloud/remote.php/dav/addressbooks/users/OCUSER/contacts backend=carddav target-config@owncloud contacts` – steffen Jul 28 '16 at 13:56
-
Currently, I have not been able to sync my contacts automatically. However, my calendar is a different issue, it performs the sync automatically without me having to do anything. I have one Google calendar and 2 tablets and 2 phones connected. When I make a change to the calendar on one device, the other three get the update within a matter of minutes. I have not done any of the configuration above. It does it automatically. – Phil UK Jul 29 '16 at 03:01