Mac's, iPhones, and Sun Calendars

So I'm one of those daring persons that replaces my Treo with an iPhone last week. The many things I'm missing (no way to transfer existing notes??? huh??? or save attachments???) is syncing with my calendar. I'm used to using SyncML to do it OTA, but I've found an OK solution for now. I was never able to get any of the other ical sync solutions to work. I ONLY want to be able to download a copy of the calendar and always update online via the web calendar page. A slightly modified icald to the rescue. icald ( a daemon that translates ical to SunONE wcap implemented in perl) can also post events but I have not tested this. Also, my calendar server is on the edge and requires http/ssl. I made a couple of modifications.
  • I couldn't get mac os native perl (5.8.6) to make modules and install them correctly. If you can, great.
  • If not see Active Perl (http://www.activestate.com/Products/activeperl/) and it's free.
  • You need the modules listed on the page at http://www.hovenweep.org/~rowan/software/icald.html.

(You can get the list of modules you have installed by doing a "r" in cpan> -- see below)

  • You need to install Crypt::SSLeay (I did this using ActivePerl in /usr/local/bin/perl (link from /usr/local/Active-Perl\*):

sudo /usr/local/bin/perl -MCPAN -eshell then (cpan needs to be configured) cpan> install Crypt::SSLeay

  • You need icald also from http://www.hovenweep.org/~rowan/software/icald.html. I made the following changes:

Edited Lines:

I hard coded the calendar entry my $CALSERVER = ""; to my $CALSERVER = "cal.sunit.net:444"; your calendar server and port above

Assuming you need SSL - Lines 498, 500, 543, 545

Replace "http:" with "https:" eg: $url = "https://$CALSERVER/$command.wcap?$argstring";

  • Start up the icald process. Look for PID in /var/run/icald.pid and access log in /var/log/icald/access.log. Debug output is at /tmp/ical.log. Be sure to have file permissions in the log locations correct, and port above 1000 (7080 is the default) for non-root.

If you are using active perl you may need to modify the path in the icald file (the first line). To execute and change user:

sudo ./icald -u <UID>

Setup iCal (Mac's Calendar Program) Calendar/Subscribe

String for iCal Subscribe: http://localhost:7080/login/

Enter your username and password.

Now sync your iphone and you should be good to go. I'll do some more testing and see what happens. Once I figure out how to make a startup file for this I'll post that when I get time.
Comments:

Post a Comment:
Comments are closed for this entry.
About

Thoughts from Jason Carolan -- Distinguished Engineer @ Sun and Global Systems Engineering Director - http://twitter.com/jtcarolan - http://archmatters.wordpress.com

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today