February 06 2016, 00:00#

Setup Radicale server on Debian 8

Radicale is a small but powerful CalDAV (calendars, to-do lists) and CardDAV (contacts) server.

We will see how to setup it quickly with a basic HTTP authentication using a file to store the users credentials.

Prerequisites

# apt install radicale apache2-utils

Authentication

Create the users file.

# htpasswd -cd /etc/radicale/users johndoe
# chown root:radicale /etc/radicale/users
# chmod 640 /etc/radicale/users

Add a new user or change his password

# htpasswd -d /etc/radicale/users katsmith

Delete a user

# htpasswd -D /etc/radicale/users katsmith

Data

Create the data directory

# mkdir -p /srv/radicale/collections
# chown -R radicale:radicale /srv/radicale
# chmod 750 /srv/radicale

The user and group radicale are generated automatically during the package installation.

Configuration

Edit /etc/radicale/config

# Authentication method
type = htpasswd

# Rights backend
type = owner_write

# Folder for storing local collections, created if not present
filesystem_folder = /srv/radicale/collections

Edit /etc/default/radicale and uncomment the following line

ENABLE_RADICALE=yes

Reboot

Tags : unix linux debian server