Sync calendar and contacts: Alternative server: radicale/calypso (Part 5)
Tags debian jessie, radicale, sync
This is the last of a series of blog posts with a complete guide to sync calendar and contacts between Debian Jessie laptop (as server and client) and Android (CyanogenMod) mobile:
These are some notes I took when I tried radicale, before using ownCloud as server. Radicale might be better suited for you, if you only want to sync calendar and contacts, but nothing else. The rest of my setup (without Apache and ownCloud) should work just fine (as long as you adapt the URLs), no promise though. You just have to add the certificate stuff to radicale.
Also remember that I solved my Icedove Contacts sync issues while using the SOGo connector by my owncloud.export script and the ThunderSync addon.
[...]
As contacts and calendar server radicale, which just works out of the box.
As an alternative to radicale, there is calypso, forked from radicale 0.5 by keithp. It uses python-vobject to parse iCalendar and VCards, and stores events in single files, ..., but it has a lower Debian-popcon than radicale, and probably not so much future development. Also it might have problems with aCal (Android Calendar app, which is ugly anyways).
radicale doesn't implememnt the complete CalDAV and CardDAV RFCs, but only what is needed by some clients. If this isn't enough, Davical, a standards-compliant calendar server, might be the next thing to look at.
NOT USED: CalDAV/CardDAV server (on my laptop): Radicale
Note: Google Calendar does not support radicale (not standard compliant), you have to use gapps or something else for that.
radicale runs as daemon under user "radicale".
radicale's port is blocked (not forwarded) in my router. This means extra security, but less convenience, because I can only sync while my laptop is running and both, laptop and client are in the WLAN at home.
/etc/default/radicale:
Enable automatic use of git (requires restart of radicale):
### TODO: use https and self certificate
Note about radicale:
Lightning and Thunderbird cannot access CardDAV servers yet. Also, as of version 17.0.5 the SOGo Connector addon is not fully functionally and will create extra address book entries with every sync.
Initially create radicale addressbook on server:
Lightning/Iceowl
Setup:
icedove
-> Events & Tasks (Lightning/Iceowl)
-> Calendar
Right-click a blank space in the Calendar listing
-> "New Calendar ..."
New calendar
On the Network
Format: CalDav
Location: http://localhost:5232/jens/calendar.ics/ (creates /var/lib/radicale/collections/jens/calendar.ics)
### TODO: https/self certificate
Tick "Offline support" (necessary?)
Android calendar:
radicale might be slow with too many events saved (in one file). If this turns out to be an issue either clean up past events or use Calypso instead.
Note: Tasks needs to be installed before DAVdroid, if you want to use the tasks functionality. Also the contacts.vcf needs to exist on the server before you install DAVdroid. In the end of the setup you'll be asked about every single one of contacts, calendar and tasks. If they don't appear you need to reinstall DAVdroid.
### TODO: use https and self certificate
- General
- Setup CalDAV/CardDAV server (on my laptop):
ownCloud, Apache, self-signed certificate - Setup calendar and contacts in Icedove (rebranded Thunderbird) and Iceowl (rebranded Lightning):
export, transform and backup the data with a script (owncloud.export), SOGo connector, ThunderSync, print to paper - Setup calendar and contacts on the Android phone:
F-Droid market, import certificate, DAVdroid - Alternative Servers (NOT USED, NOT COMPLETE):
Radicale, Calypso
These are some notes I took when I tried radicale, before using ownCloud as server. Radicale might be better suited for you, if you only want to sync calendar and contacts, but nothing else. The rest of my setup (without Apache and ownCloud) should work just fine (as long as you adapt the URLs), no promise though. You just have to add the certificate stuff to radicale.
Also remember that I solved my Icedove Contacts sync issues while using the SOGo connector by my owncloud.export script and the ThunderSync addon.
[...]
As contacts and calendar server radicale, which just works out of the box.
As an alternative to radicale, there is calypso, forked from radicale 0.5 by keithp. It uses python-vobject to parse iCalendar and VCards, and stores events in single files, ..., but it has a lower Debian-popcon than radicale, and probably not so much future development. Also it might have problems with aCal (Android Calendar app, which is ugly anyways).
radicale doesn't implememnt the complete CalDAV and CardDAV RFCs, but only what is needed by some clients. If this isn't enough, Davical, a standards-compliant calendar server, might be the next thing to look at.
NOT USED: CalDAV/CardDAV server (on my laptop): Radicale
Note: Google Calendar does not support radicale (not standard compliant), you have to use gapps or something else for that.
radicale runs as daemon under user "radicale".
radicale's port is blocked (not forwarded) in my router. This means extra security, but less convenience, because I can only sync while my laptop is running and both, laptop and client are in the WLAN at home.
Code:
ii radicale 0.10-2 simple calendar and addressbook server - daemon ii adduser 3.113+nmu3 add and remove users and groups ii python 2.7.9-1 interactive high-level object-oriented language (default version) ii python-radicale 0.10-2 simple calendar and addressbook server - module un apache2-utils <none> un courier-authdaemon <none> ii python-dulwich 0.10.1-1 Python Git library (necesserary for automatic git usage) un python-ldap <none> un python-pampy <none> ii python-requests 2.7.0-2 elegant and simple HTTP library for Python2, built for human beings ii python-sqlalchemy 0.9.8+dfsg-0.1 SQL toolkit and Object Relational Mapper for Python
Code:
ENABLE_RADICALE=yes
Code:
# cd /var/lib/radicale/collections (configured as filesystem_folder) # git init # chown radicale.radicale -R /var/lib/radicale/collections/.git # chmod o-rwx -R /var/lib/radicale/collections/.git
Note about radicale:
Lightning and Thunderbird cannot access CardDAV servers yet. Also, as of version 17.0.5 the SOGo Connector addon is not fully functionally and will create extra address book entries with every sync.
Initially create radicale addressbook on server:
Code:
# touch /var/lib/radicale/collections/jens/contacts.vcf # chown radicale.radicale -R /var/lib/radicale/collections/
Setup:
icedove
-> Events & Tasks (Lightning/Iceowl)
-> Calendar
Right-click a blank space in the Calendar listing
-> "New Calendar ..."
New calendar
On the Network
Format: CalDav
Location: http://localhost:5232/jens/calendar.ics/ (creates /var/lib/radicale/collections/jens/calendar.ics)
### TODO: https/self certificate
Tick "Offline support" (necessary?)
Android calendar:
radicale might be slow with too many events saved (in one file). If this turns out to be an issue either clean up past events or use Calypso instead.
Note: Tasks needs to be installed before DAVdroid, if you want to use the tasks functionality. Also the contacts.vcf needs to exist on the server before you install DAVdroid. In the end of the setup you'll be asked about every single one of contacts, calendar and tasks. If they don't appear you need to reinstall DAVdroid.
### TODO: use https and self certificate
Total Comments 0