CalDAV and CardDAV syncing#
CalDAV and CardDAV are protocols to sync calendars and contacts with a remote server. Many e-mail hosters provide a CalDAV and CardDAV interface.
CalDAV sync can be set up by using the calendar app. Open it, click on the little calendar icon in the top right corner and select “Add internet calendar > Generic CalDAV”. Enter your calendar URL as well as your username and password to complete the process.
CardDAV sync can be set up by using two different ways detailed in the following instructions. These instructions work for CalDAV as well.
First, follow this guide to activate Developer Mode and a connection either through ADB or SSH.
Then choose between the two following guides
The one proposed by Bastos77 and Vanyasem is quite simple, if you have few CalDav or CardDAV to configure.
The one proposed by UT-itilities is much featured, with many commands to create or delete configurations. Use it if you manage many configurations, on one or multiple servers
1. A simple guide proposed by Bastos77 and Vanyasem#
Download this script (let’s call it dav.sh) and edit the following variables:
CAL_URL
CONTACTS_URL
USERNAME
PASSWORD
CONTACT_NAME
CALENDAR_NAME
VISUAL_NAME
CONFIG_NAME
CRON_FREQUENCY
Move the file to your Ubuntu Touch device, either by way of a file manager or through the use of ADB:
adb push dav.sh /home/phablet
Connect with the phablet shell (using
adb shell
) or type the following directly into the Ubuntu Touch device terminal app:chmod +x dav.sh ./dav.sh
2. Or a full featured guide proposed by UT-ilities#
if you have many configurations on one or multiple Caldav/CardDav servers
Read the instructions
Download the script and config files:
git clone https://github.com/UT-ilities/UTouch_CalDAV_and_CardDAV_synchronization.git cd UTouch_CalDAV_and_CardDAV_synchronization
Edit the config file as explained in the instructions:
cp config-nextcloud-template.txt config-personal.txt vim config-personal.txt
Move the files to your Ubuntu Touch device, either by way of a file manager or through the use of ADB:
adb push ../UTouch_CalDAV_and_CardDAV_synchronization /home/phablet/
Connect with the phablet shell (using
adb shell
) or type the following directly into the Ubuntu Touch device terminal app:cd UTouch_CalDAV_and_CardDAV_synchronization chmod +x setup-dav-sync.sh ./setup-dav-sync.sh --contacts config-personal.txt