User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
services:radicale [2024/02/22 08:54] – created willyservices:radicale [2024/11/11 06:48] (current) – external edit 127.0.0.1
Line 22: Line 22:
 </code> </code>
  
-Radicale uses //pip//, so as usual enable it on Gentoo for user Radicale by creating the file **/data/daemons/deemon/.config/pip/pip.conf** with this content: +Radicale uses //pip//, so as usual enable it on Gentoo for user Radicale by creating the file **/data/daemons/radicale/.config/pip/pip.conf** with this content: 
-<file pip.conf>+<file pip.conf>
 [global] [global]
 break-system-packages = true break-system-packages = true
Line 37: Line 37:
 Create the config file **~/.config/radicale/config**: Create the config file **~/.config/radicale/config**:
 <file - config> <file - config>
 +[server]
 # Bind all addresses # Bind all addresses
 hosts = 127.0.0.1:5232 hosts = 127.0.0.1:5232
Line 47: Line 48:
 [storage] [storage]
 filesystem_folder = /data/cardcal filesystem_folder = /data/cardcal
-</code>+</file>
  
 then start it: then start it:
Line 76: Line 77:
 Now go with browser to **http://10.0.0.1/radicale** to finish setup. Now go with browser to **http://10.0.0.1/radicale** to finish setup.
  
-==== Autostart ====+===== Startup =====
  
-Autostartput this into **/etc/local.d/50-radicale.start** and make it executable+Since i use OpenRCto start radicale simply create the following script under /etc/init.d: 
-<file - 50-radicale.start+<file - /etc/init.d/radicale
-#!/bin/bash+#!/sbin/openrc-run 
 +# Copyright 1999-2021 Gentoo Authors 
 +# Distributed under the terms of the GNU General Public License v2
  
-start-stop-daemon -b -m -p /var/run/radicale.pid -n radicale -u radicale /data/daemons/radicale/.local/bin/radicale+description="Radicale WebDAV WebCAL server" 
 +pidfile="/run/radicale.pid
 +command_background=true 
 +command="/data/daemons/radicale/.local/bin/radicale
 +command_args="" 
 +command_user="radicale:users" 
 + 
 +depend() { 
 +        need net 
 +
 +</file> 
 + 
 +Make it executable and add the service to the default runlevel: 
 +<code bash> 
 +chmod +x /etc/init.d/radicale 
 +rc-update add radicale default 
 +</code> 
 + 
 +==== Sharing calendars ==== 
 + 
 +Radicale doesn't directly support sharing calendars (see [[https://github.com/Kozea/Radicale/issues/696|here]]) but it's pretty easy to share calendars between users anyway by creating simple symlinks. 
 + 
 +So, first of all login on Radicale web GUI with all the users you want to share the calendar with, then create in one of them the actual calendar. 
 + 
 +At this point, you only need to link the calendar folder inside all he users: 
 +<code bash> 
 +ln -s /data/cardcal/collection-root/user1/72757af3-557c-e8e4-bdd7-c9bc5689b862   /data/cardcal/collection-root/user2/
 </code> </code>
  
 +and that's it.
  

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information