2009-07-29 17:19:55 +02:00
|
|
|
====================
|
|
|
|
User Documentation
|
|
|
|
====================
|
|
|
|
|
|
|
|
:Author: Guillaume Ayoub
|
|
|
|
|
2010-02-11 01:54:58 +01:00
|
|
|
:Date: 2010-02-11
|
2009-07-29 17:19:55 +02:00
|
|
|
|
|
|
|
:Abstract: This document is a short description for installing and using the
|
|
|
|
Radicale Calendar Server.
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
|
|
|
|
Installation
|
|
|
|
============
|
|
|
|
|
|
|
|
Dependencies
|
|
|
|
------------
|
|
|
|
|
2010-01-11 12:18:15 +01:00
|
|
|
Radicale is written in pure python and does not depend on any librabry. It is
|
2010-12-27 17:20:44 +01:00
|
|
|
known to work on Python 2.5, 2.6, 2.7, 3.0 and 3.1 [#]_.
|
2009-07-29 17:19:55 +02:00
|
|
|
|
2010-01-11 12:18:15 +01:00
|
|
|
Linux users certainly have Python already installed. For Windows and MacOS
|
|
|
|
users, please install Python [#]_ thanks to the adequate installer.
|
2009-07-29 17:19:55 +02:00
|
|
|
|
2010-04-10 01:33:58 +02:00
|
|
|
.. [#] See `Python Versions and OS Support`_ for further information.
|
2010-01-22 19:29:03 +01:00
|
|
|
|
2009-07-29 17:19:55 +02:00
|
|
|
.. [#] `Python download page <http://python.org/download/>`_.
|
|
|
|
|
|
|
|
Radicale
|
|
|
|
--------
|
|
|
|
|
|
|
|
Radicale can be freely downloaded on the `project website, download section
|
|
|
|
<http://www.radicale.org/download>`_. Just get the file and unzip it in a
|
|
|
|
folder of your choice.
|
|
|
|
|
|
|
|
CalDAV Clients
|
|
|
|
--------------
|
|
|
|
|
2010-01-11 12:18:15 +01:00
|
|
|
At this time Radicale has been tested and works fine with the latests version
|
2011-01-26 02:35:52 +01:00
|
|
|
of:
|
2009-07-29 17:19:55 +02:00
|
|
|
|
2011-01-26 02:35:52 +01:00
|
|
|
- `Mozilla Lightning <http://www.mozilla.org/projects/calendar/lightning/>`_
|
|
|
|
- `GNOME Evolution <http://projects.gnome.org/evolution/>`_
|
|
|
|
- `Google Android <http://www.android.com/>`_
|
|
|
|
- `Apple iCal (coming soon) <http://www.apple.com/support/ical/>`_
|
|
|
|
- `Apple iPhone (coming soon) <http://www.apple.com/iphone/>`_
|
|
|
|
|
|
|
|
More clients will be supported in the future. However, it may work with any
|
|
|
|
calendar client which implements CalDAV specifications too (luck is highly
|
|
|
|
recommanded).
|
|
|
|
|
|
|
|
To download Lightning, go to the `Lightning project website
|
|
|
|
<http://www.mozilla.org/projects/calendar/lightning/>`_ and choose the latest
|
2009-07-29 17:19:55 +02:00
|
|
|
version. Follow the instructions depending on your operating system.
|
|
|
|
|
|
|
|
|
|
|
|
Simple Usage
|
|
|
|
============
|
|
|
|
|
2011-01-26 02:35:52 +01:00
|
|
|
Starting the Server
|
|
|
|
-------------------
|
2009-07-29 17:19:55 +02:00
|
|
|
|
|
|
|
To start Radicale CalDAV server, you have to launch the file called
|
2010-01-22 19:29:03 +01:00
|
|
|
``radicale.py`` located in the root folder of the software package.
|
2009-07-29 17:19:55 +02:00
|
|
|
|
2011-01-26 02:35:52 +01:00
|
|
|
Starting the Client
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
Sunbird or Lightning
|
|
|
|
~~~~~~~~~~~~~~~~~~~~
|
2009-07-29 17:19:55 +02:00
|
|
|
|
2010-04-19 16:43:46 +02:00
|
|
|
After starting Sunbird or Lightning, click on ``File`` and ``New
|
|
|
|
Calendar``. Upcoming window asks you about your calendar storage. Chose a
|
|
|
|
calendar ``On the Network``, otherwise Sunbird will use its own file system
|
|
|
|
storage instead of Radicale's one and your calendar won't be remotely
|
|
|
|
accessible.
|
2009-07-29 17:19:55 +02:00
|
|
|
|
|
|
|
Next window asks you to provide information about remote calendar
|
2010-02-11 01:54:58 +01:00
|
|
|
access. Protocol used by Radicale is ``CalDAV``. A standard location for a basic
|
2010-06-24 01:54:25 +02:00
|
|
|
use of a Radicale calendar is ``http://localhost:5232/user/calendar/``, where
|
2010-02-11 01:54:58 +01:00
|
|
|
you can replace ``user`` and ``calendar`` by some strings of your
|
|
|
|
choice. Calendars are automatically created if needed.
|
2009-07-29 17:19:55 +02:00
|
|
|
|
|
|
|
You can now customize your calendar by giving it a nickname and a color. This
|
|
|
|
is only used by Sunbird to identify calendars among others.
|
|
|
|
|
|
|
|
If no warning sign appears next to the calendar name, you can now add events
|
|
|
|
and tasks to your calendar. All events and tasks are stored in the server, they
|
|
|
|
can be accessed and modified from multiple clients by multiple users at the
|
|
|
|
same time.
|
|
|
|
|
2011-01-26 02:35:52 +01:00
|
|
|
Evolution
|
|
|
|
~~~~~~~~~
|
2010-04-19 16:43:46 +02:00
|
|
|
|
|
|
|
First of all, show the calendar page in Evolution by clicking on the calendar
|
|
|
|
icon at the bottom of the side pane. Then add a new calendar by choosing in the
|
|
|
|
menu ``File``, ``New``, ``Calendar``.
|
|
|
|
|
|
|
|
A new window opens. The calendar ``type`` is ``CalDAV``, and the location is
|
2010-06-24 01:54:25 +02:00
|
|
|
something like ``caldav://localhost:5232/user/calendar/``, where you can
|
|
|
|
replace ``user`` and ``calendar`` by some strings of your choice. Calendars are
|
|
|
|
automatically created if needed.
|
|
|
|
|
|
|
|
You can fill other attributes like the color and the name, these are only used
|
|
|
|
for Evolution and are not uploaded.
|
2010-04-19 16:43:46 +02:00
|
|
|
|
|
|
|
Click on ``OK``, and your calendar should be ready for use.
|
|
|
|
|
2011-01-26 02:35:52 +01:00
|
|
|
Android
|
|
|
|
~~~~~~~
|
|
|
|
|
|
|
|
*Coming soon*
|
|
|
|
|
|
|
|
iPhone
|
|
|
|
~~~~~~
|
|
|
|
|
|
|
|
*Coming soon*
|
|
|
|
|
|
|
|
iCal
|
|
|
|
~~~~
|
|
|
|
|
|
|
|
*Coming soon*
|
|
|
|
|
2009-07-29 17:19:55 +02:00
|
|
|
|
|
|
|
Complex Configuration
|
|
|
|
=====================
|
|
|
|
|
2009-09-01 19:01:28 +02:00
|
|
|
.. note::
|
|
|
|
This section is only for Linux users. Windows and MacOS advanced support
|
|
|
|
will be available later.
|
|
|
|
|
2009-09-01 19:05:33 +02:00
|
|
|
Installing Server
|
|
|
|
-----------------
|
2009-09-01 19:01:28 +02:00
|
|
|
|
|
|
|
You can install Radicale CalDAV server with the following command, with
|
|
|
|
superuser rights::
|
|
|
|
|
|
|
|
python setup.py install
|
|
|
|
|
|
|
|
Then, launching the server can be easily done by typing as a normal user::
|
|
|
|
|
|
|
|
radicale
|
|
|
|
|
2009-09-01 19:05:33 +02:00
|
|
|
Configuring Server
|
|
|
|
------------------
|
2009-09-01 19:01:28 +02:00
|
|
|
|
2010-01-22 19:29:03 +01:00
|
|
|
Configuration File
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2010-06-17 11:00:58 +02:00
|
|
|
The server configuration can be modified in ``/etc/radicale/config`` or in
|
2010-01-22 19:29:03 +01:00
|
|
|
``~/.config/radicale/config``. Here is the default configuration file, with the
|
|
|
|
main parameters::
|
2009-09-01 19:01:28 +02:00
|
|
|
|
|
|
|
[server]
|
2010-06-14 20:17:20 +02:00
|
|
|
# CalDAV server hostname, empty for all hostnames
|
2010-01-22 19:29:03 +01:00
|
|
|
host =
|
2009-09-01 19:01:28 +02:00
|
|
|
# CalDAV server port
|
|
|
|
port = 5232
|
2010-01-22 19:29:03 +01:00
|
|
|
# Daemon flag
|
|
|
|
daemon = False
|
|
|
|
# SSL flag, enable HTTPS protocol
|
|
|
|
ssl = False
|
|
|
|
# SSL certificate path (if needed)
|
|
|
|
certificate = /etc/apache2/ssl/server.crt
|
|
|
|
# SSL private key (if needed)
|
|
|
|
key = /etc/apache2/ssl/server.key
|
2009-09-01 19:01:28 +02:00
|
|
|
|
|
|
|
[encoding]
|
|
|
|
# Encoding for responding requests
|
|
|
|
request = utf-8
|
|
|
|
# Encoding for storing local calendars
|
|
|
|
stock = utf-8
|
|
|
|
|
2010-01-22 19:29:03 +01:00
|
|
|
[acl]
|
|
|
|
# Access method
|
|
|
|
# Value: fake | htpasswd
|
|
|
|
type = fake
|
2010-08-07 14:31:01 +02:00
|
|
|
# Personal calendars only available for logged in users (if needed)
|
|
|
|
personal = False
|
2010-01-22 19:29:03 +01:00
|
|
|
# Htpasswd filename (if needed)
|
|
|
|
filename = /etc/radicale/users
|
|
|
|
# Htpasswd encryption method (if needed)
|
|
|
|
# Value: plain | sha1 | crypt
|
|
|
|
encryption = crypt
|
|
|
|
|
2010-02-11 11:27:37 +01:00
|
|
|
[storage]
|
2010-06-14 20:17:20 +02:00
|
|
|
# Folder for storing local calendars,
|
|
|
|
# created if not present
|
2010-02-11 01:54:58 +01:00
|
|
|
folder = ~/.config/radicale/calendars
|
2009-09-01 19:01:28 +02:00
|
|
|
|
|
|
|
This configuration file is read each time the server is launched. If some
|
|
|
|
values are not given, the default ones are used. If no configuration file is
|
|
|
|
available, all the default values are used.
|
2010-01-22 19:29:03 +01:00
|
|
|
|
|
|
|
Command Line Options
|
|
|
|
~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
All the options of the ``server`` part can be changed with command line
|
|
|
|
options. These options are available by typing::
|
|
|
|
|
|
|
|
radicale --help
|
2010-04-10 01:33:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
Python Versions and OS Support
|
|
|
|
==============================
|
|
|
|
|
|
|
|
TLS Support
|
|
|
|
-----------
|
|
|
|
|
|
|
|
HTTPS support depends on the ``ssl`` module, only available from Python
|
|
|
|
2.6. Nevertheless, Radicale without TLS encryption works well with Python 2.5.
|
|
|
|
|
2010-09-06 01:55:02 +02:00
|
|
|
Moreover, python 2.6 suffered `a bug <http://bugs.python.org/issue5103>`_
|
|
|
|
causing huge timeout problems with TLS. The bug is fixed since Python 2.6.6.
|
2010-07-31 14:01:11 +02:00
|
|
|
|
2010-12-27 17:20:44 +01:00
|
|
|
Python 2.7 and Python 3.x do not suffer this bug.
|
2010-07-31 14:01:11 +02:00
|
|
|
|
2010-04-10 01:33:58 +02:00
|
|
|
Crypt Support
|
|
|
|
-------------
|
|
|
|
|
|
|
|
With the htpasswd access, many encryption methods are available, and crypt is the
|
2011-02-08 20:51:02 +01:00
|
|
|
default one in Radicale. Unfortunately, the ``crypt`` module is unavailable on
|
2010-04-10 01:33:58 +02:00
|
|
|
Windows, you have to pick another method on this OS.
|