CalDAV server on Debian
### http://www.mail-archive.com/calendarserver-users@lists.macosforge.org/ms...
# add testing sources
rossetti@Wakatipu:/usr/local/calendarserver$ vi /etc/apt/sources.list
deb-src ftp://ftp.iinet.net.au/debian/debian/ testing main non-free contrib
# get the sources
rossetti@Wakatipu:/usr/local/calendarserver$ sudo apt-get source calendarserver
# run setup
rossetti@Wakatipu:/usr/local/calendarserver-1.2.dfsg$ sudo ./run -s
# allow xattr on a volume
$ sudo vi /etc/fstab
/dev/hda8 /var ext3 defaults,user_xattr 0 2
$ sudo mount -o remount /var/
# create a spot for calendars
$ sudo mkdir /var/cache/calendarserver
# create a config file
rossetti@Wakatipu:/usr/local/calendarserver-1.2.dfsg$ sudo cp conf/caldavd-test.plist conf/caldavd-dev.plist
# point it to the proper directory by commenting out the bind to localhost
rossetti@Wakatipu:/usr/local/calendarserver-1.2.dfsg$ sudo vi conf/caldavd-dev.plist
DocumentRoot
/var/cache/calendarserver/
# allow the server to listen on all interfaces ( comment out localhost )
BindAddresses
# run the server
rossetti@Wakatipu:/usr/local/calendarserver-1.2.dfsg$ sudo ./run
# test the server
# browse to http://10.0.0.7:8008/
# open calendars collection with user admin password admin
# create a new calendar in sunbird at https://10.0.0.7:8443/calendars/users/admin/calendar/
# next -
# users - done, edit /usr/local/calendarserver-1.2.dfsg/conf/accounts-test.xml
# multiple calendars - done, in ical3 highlight a calendar in the server group and press the plus sign . an error is thrown, ignore it and proceed
# working outside sunbird - done, ical2 and 3 notes below
#start up script - done ( not covered here )
#ssl cert - done ( not covered here )
#importing an existing calendar- done see notes below
#to switch to ssl
#1.port forward 8443 as well as 8008
#2.point safari to https://house.ww2.houseoflaudanum.com:8443/
#3.when the nag appears, show details and tick the always trust checkbox
#4.open ical and change the server settings from
#http://house.ww2.houseoflaudanum.com:8008/
#to
#https://house.ww2.houseoflaudanum.com:8443/
#to import an existing calendar into a caldav server using ical3
#1.open ical
#2.join the caldav server
#3.create a new caldav calendar as the destination
#4.export the old calendar
#highlight the calendar
#choose file > export
#5.open the calendar from the finder
#6.when prompted, add the events to the new calendar in the caldav destination .
#to publish in ical v2 use this base url
#http://house.ww2.houseoflaudanum.com/calendars/users/mr.snow
#when you join in ical v3, use preferences > accounts
#the url should be
#http://house.ww2.houseoflaudanum.com:8008/principals/__uids__/laudanum/
#when you create a new calendar on ical, it throws a 500 error for MKCALENDAR but continues anyway
#when you subscribe on sunbird, you need to know the path to the calendar, so browse it from the website and cut and paste the url
#eghttp://house.ww2.houseoflaudanum.com:8008/calendars/users/zina/39A47E21-...
#to subscribe in ical2 you can use the same path
#https://house.ww2.houseoflaudanum.com:8443/calendars/users/zina/39A47E21...