php caldav,使用radicale搭建calDAV日志服务器

由于google 日历已经被墙,qq exchange日历经常无法同步,因此萌发了自建calDAV的念头;

网上搜索了一番,比较轻量级的就是radicale了。

假定存放目录为:/home/zc/calDav/ , 运行用户为zc,则:

#!bin/bash

echo "begin to install radicale calDAV."

sudo pip install radicale

sudo pip install dulwich --global-option="--pure"

sudo mkdir /var/log/radicale

sudo chown zc:zc /var/log/radicale

mkdir /home/zc/calDav/collections/

cd /home/zc/calDav/collections

git init

sudo su 'zc' -c "cd /home/zc/calDav && radicale -C radicale.config"

echo "you can add calDAV server: http://w.devzc.com:5232/zc/ to your iCalc."

安装过程很简单,可以参考上述步骤,这里是直接运行radicale方式启动,

主要是要注意使用认证方式,防止匿名用户访问写入。

fd921437880406.png

另外还提及一点,如果是个人使用,可以不用比较复杂的db之类的,用文件系统,然后配置好git,做好版本控制:

6f3a1437880517.png

以及git commiter:

3b6b1437880534.png

至此,服务端已经能正常运行了;

客户端,支持iphone/mac/安卓等自带的日历,同时还有很多三方软件;

这里给个iphone的配置截图:

iphone 邮件 通讯录和日历中,选择添加帐户,类型为其他,选中CalDAV:

43a81437880714.png

填入对应的服务器地址,比如

http://w.devzc.com:5232/zc/home.ics/ (支持多个日历则可以是填写到/zc/ )

以及用户名密码。

注意: 服务器地址和用户名部分需要一致。

b2fc1437880866.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
如果你是一个小型的办公网络,你可以创建一个服务器来进行日程安排,这只是一个开源的小服务器,你果你需要大的免费的软件去http://www.bedework.org/bedework/下载 使用教程 Installation Dependencies Radicale is written in pure python and does not depend on any librabry. It is known to work on Python 2.5, 2.6, 3.0 and 3.1 [1]. Linux users certainly have Python already installed. For Windows and MacOS users, please install Python [2] thanks to the adequate installer. [1] See Python Versions and OS Support for further information. [2] Python download page. Radicale Radicale can be freely downloaded on the project website, download section. Just get the file and unzip it in a folder of your choice. CalDAV Clients At this time Radicale has been tested and works fine with the latests version of Mozilla Sunbird (versions 0.9+), Mozilla Lightning (0.9+), and Evolution (2.30+). 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 Sunbird, go to the Sunbird project website and choose the latest version. Follow the instructions depending on your operating system. Simple Usage Starting Server To start Radicale CalDAV server, you have to launch the file called radicale.py located in the root folder of the software package. Using Sunbird or Lightning 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. Next window asks you to provide information about remote calendar access. Protocol used by Radicale is CalDAV. A standard location for a basic use of a Radicale calendar is http://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 now customize your calendar by giving it a nickname and a color. This
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值