Tuesday, May 13, 2008

Installing Calendar Server on CentOS - part I

I am interested to have a server to host my calendar using caldav over http on CentOS 5.1 Linux. The advantage is that this calendar can be shared, if I reformat my PC, the calendar will continue to survive. Copying an ics does not allow me to edit it from the server.

Based on the link http://www.mail-archive.com/calendarserver-users@lists.macosforge.org/msg00195/LinuxBuildAndRun-DarwinCalendarServer
Here are my steps:

1. Connect to the CentOS server as user nicholas
ssh nicholas@

2. create the working folder ~/dcs
mkdir dcs
cd dcs

3. Ensure subversion is installed. Get the svn for Calendar Server
svn checkout http://svn.macosforge.org/repository/calendarserver/CalendarServer/trunk CalendarServer

4. Install python-kerberos and python-devel
su -c "yum install python-kerberos python-devel"

5. Setup the disk to use extended filesystem
su -c "vi /etc/fstab"

Edit the options to include user_xattr in the filesystem that will hold the calendar.
/dev/hdb1 /mnt/data ext3 user,rw,user_xattr 0 2

6. Add a directory to put dcs data :
su -c "mkdir /mnt/data/dcs-data"
su -c "chown nicholas:nicholas /mnt/data/dcs-data/"

In DCS source directory, copy and edit the developement config file:
cd ~/dcs
cp ./conf/caldavd-test.plist ./conf/caldavd-dev.plist
vi ./conf/caldavd-dev.plist

Look for the string element specifying where to put data :
And change it to point to a directory of your XATTR mounting point :


7. Run the CalendarServer scripts. This will download and place the required scripts at same level as dcs directory.
cd CalendarServer
./run -s

8. Trouble was encountered to download several subversion packages. Therefore I have to download and extract them manually.
cd ../xattr
wget http://svn.eby-sarna.com/ez_setup.tar.gz
tar xzvf ez_setup.tar.gz

I am stuck at the following...so will wait till i can find out why I cant download the Twisted.
svn co svn://svn.twistedmatrix.com/svn/Twisted/trunk Twisted

No comments: