Howto calendar with caldav and android

This small howto is about  a linux calendar caldav server which  I'm using with an Android device, the Lightning Thunderbird/Seamonkey calendar plugin and the webmail Roundcube.

Linux caldav server.

For the caldav server  a lightweight python script named  Radicale http://radicale.org can be used.
Save the basic config in ~/.config/radicale/config and change the config to your needs and start radicale. I left authentication to none (type = None), because i allready have a webserver running.
For a connecting to the outside world Apache webserver as an reverse proxy, forexample:

<VirtualHost *:80>
ServerName calendar.example.com
ServerAlias calendar
ServerAdmin webmaster
DocumentRoot /home/calendar/www
ErrorLog /home/calendar/logs/calendar_error_log
TransferLog /home/calendar/logs/calendar_access_log
<Directory "/home/calendar/www">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
<Location />
    Order allow,deny
    AuthType Basic
    AuthName "Access to calendar"
    AuthUserFile /home/calendar/.htpasswd
   Require valid-user
    Satisfy any
</Location>
       ProxyPass / http://localhost:5232/
       ProxyPassReverse / http://localhost:5232/
</VirtualHost>

 

Android calendar.

The default calendar app doesn't support caldav, Google wish you to use there calendar. Caldav-Sync app supports caldav. CalDAV-Sync is a CalDAV client for Android to synchronize events and tasks. Due to its implementation as sync adapter it integrates seamlessly with the native calendar app and widgets.
 

Lightning Thunderbird/Seamonkey calendar plugin

This plugin also supports caldav, connect to the remote calendar by creating a new calendar:
- Choose 'On the network'
- Select CalDAV, forexample Location: http://calendar.example.com/user/john

Webmail and calendar.

Roundcube  webmail, http://roundcube.net. Calendar in Roundcube  is a plugin. The plugins can be found at: http://trac.roundcube.net/wiki/Plugin_Repository
Download the Roundcube plugin bundle from http://code.google.com/p/myroundcube. Unzip the bundle in the plugin directory of your Roundcube install directory. Don't forget to run the database script in de SQL direcory of the calendar plugin and rename the config.inc.php.dist to config.inc.php.
Activate the plugin by adding calendar in main.inc.php: $rcmail_config['plugins'] = array('calendar');
Finally change the user calendar personal settings:

Provider CalDAV
Username john
Password ******
CalDAV Url      http://calendar.example.com/user/john
Authentication Method   Basic

Ulterius