LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs > jere21
User Name
Password

Notices


Rate this Entry

Sync calendar and contacts: Alternative server: radicale/calypso (Part 5)

Posted 07-14-2015 at 08:45 AM by jere21
Updated 07-14-2015 at 09:08 AM by jere21

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:
  1. General
  2. Setup CalDAV/CardDAV server (on my laptop):
    ownCloud, Apache, self-signed certificate
  3. 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
  4. Setup calendar and contacts on the Android phone:
    F-Droid market, import certificate, DAVdroid
  5. 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
/etc/default/radicale:
Code:
ENABLE_RADICALE=yes
Enable automatic use of git (requires restart of radicale):
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
### 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:
Code:
# touch /var/lib/radicale/collections/jens/contacts.vcf
# chown radicale.radicale -R /var/lib/radicale/collections/
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
Posted in Uncategorized
Views 2902 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 07:56 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration