How do I synchronize contacts and calendars from OwnCloud with the Ubuntu phone?


The Ubuntu phone uses the evolution data server and the data can be synchronized using syncevolution.

  1. Open an ssh-connection to your Ubuntu Phone (I'm using the Ubuntu-SDK for this purpose)
  2. 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"
  3. Now tell syncevolution the information about the phone

    syncevolution --configure --template SyncEvolution_Client sync=none syncURL=local://@owncloud username= password= owncloud
  4. and 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 calendar

    The database path, can be found in the owncloud web frontend by clicking the chain symbol.

  5. now

    syncevolution --configure sync=two-way backend=calendar database=personal owncloud calendar
  6. and finally start the synchronization

    syncevolution --sync slow owncloud calendar

For synchronizing the contacts you would just need to add this steps:

  1. syncevolution --configure --template webdav database=https://YOURSERVER.COM/owncloud/remote.php/carddav/addressbooks/OCUSER/contacts backend=carddav target-config@owncloud contacts

    you can again get the right path from the web frontend

  2. syncevolution --configure sync=two-way backend=contacts database=personal owncloud contacts
    database is the name of the address book on your device
  3. now run

    syncevolution --sync slow owncloud contacts

protected by Community Jul 21 '15 at 8:03


Would you like to answer one of these unanswered questions instead?
