Configure CalDAV/CardDAV synchronisation

At the moment, there is no caldav/carddav implemention directly accessible from the Ubuntu Touch interface, so the only way to sync carddav & caldav is by using syncevolution + cron.
However, there is a simple way to do that with a script that you can run in the terminal or via phablet SSH connection.

1) Follow this guide to activate Developer Mode and SSH connection

2) Download this script (let's call it dav.sh) and edit the following variables:

  • server side : CAL_URL, CONTACTS_URL, USERNAME, PASSWORD (of your ownCloud/nextCloud/baikal/SOGO/... server)
  • CONTACT and CALENDAR _ NAME / VISUAL_NAME / CONFIG_NAME (it's more cosmetic)
  • CRON_FREQUENCY (for the frequency of synchronisation)
  • Line 61: write sudo sh -c "echo '$COMMAND_LINE' > /sbin/sogosync" , instead of sudo echo "$COMMAND_LINE" > /sbin/sogosync, to avoid permission denied error

3) Move the file to your UbuntuTouch device, either by file manager or with adb:
adb push dav.sh /home/phablet

4) Connect with the phablet shell (adb shell) or directly on the phone Terminal app and type the following:
chmod +x dav.sh
./dav.sh

Sources:
https://askubuntu.com/questions/616081/ubuntu-touch-add-contact-list-and-calendars/664834#664834
https://gist.github.com/boTux/069b53d8e06bdb9b9c97
https://gist.github.com/tcarrondo
https://gist.github.com/bastos77
https://askubuntu.com/questions/601910/ssh-ubuntu-touch


This site is maintained by The UBports Developers and is not an any way endorsed by or affiliated with Ubuntu or Canonical. Ubuntu and Canonical are registered trademarks of Canonical Ltd.