發文作者:marky0511 | 七月 4, 2007

同步 iCal 與 Google Calendar

as title
read more~


1) Install GCALDaemon (Java 1.5 required).

sudo mkdir -p /usr/local/sbin
cd /usr/local/sbin
sudo unzip /downloads/gcaldaemon-linux-1.x.zip
sudo chgrp -R admin /usr/local/sbin/GCALDaemon
sudo chmod -R g+w /usr/local/sbin/GCALDaemon
sudo chmod 755 /usr/local/sbin/GCALDaemon/bin/*.sh

2) Put a colored label on all folders in ‘~/Library/Application Support/iCal/Sources’.
open ~/Library/Application Support/iCal/Sources
3) Launch iCal, and create a new calendar, maybe named ‘Google’.
open -a iCal
4) Quit iCal, and see which folder doesn’t have a label in ‘~/Library/Application Support/iCal/Sources’ (you can’t go by timestamp since all calendars will be updated by iCal, but colored labels will show you the new folder clearly).
Hint: Look in ‘~/Library/Application Support/iCal/Sources/*.calendar/Info.plist’ for the name of that calendar.
5) Open the ‘gcal-daemon.cfg’ configuration file.
cd /usr/local/sbin/GCALDaemon/conf
open -a subethaedit gcal-daemon.cfg

6) Put the full path to ‘corestorage.ics’ in that new, unlabeled folder (with no ~ shortcut) for the variable ‘file.ical.path’.
# Full path of the local iCalendar file
file.ical.path=/Users/*/Library/Application Support/iCal/Sources/*.calendar/corestorage.ics

7) Encode your Gmail password with the ‘password-encoder.sh’. Input your password and press ENTER. Copy the encoded password.
cd /usr/local/sbin/GCALDaemon/bin
./password-encoder.sh

8) Put your Gmail address for the variable ‘file.google.username’.
# Gmail user (your full email address)
file.google.username=example@gmail.com

9) Put your encoded password for the variable ‘file.google.password’.
# Gmail password (use password encoder!)
file.google.password=31260V7mc34jV22c

10) Copy the iCal URL for your calendar’s Private Address on the Calendar Settings page.
11) Put your iCal URL for the variable ‘file.private.ical.url’, without protocol and hostname.
# URL (without hostname) of the Google Calendar’s private ical file
file.private.ical.url=/calendar/ical/example%40gmail.com/private-495c0f1bfg/basic.ics

12) Set the ‘file.enabled’ property to ‘true’.
# Enable iCalendar file listener/synchronizer
file.enabled=true

13) Start GCALDaemon (‘standalone-start.sh’ or ‘sync-now.sh’).
cd /usr/local/sbin/GCALDaemon/bin
./standalone-start.sh

INFO | GCALDaemon V1.0 beta 12 starting…
INFO | Local time zone is Pacific Standard Time.
INFO | HTTP server disabled.
INFO | RSS/ATOM feed converter disabled.
INFO | Start listening file /Users/user/Library/…/iCal/corestorage.ics…
INFO | File listener started successfully.
INFO | LDAP server disabled.
INFO | Gmail notifier disabled.
INFO | Sendmail service disabled.

14) Start iCal. Items added (or modified/deleted) to your iCal will now automatically appear in your Google Calendar.
15) Then you can create a System Daemon from GCALDaemon using Lingon. To get started, click on ‘Assistant’ in the toolbar.
Keep an application/script always running
Label: net.sf.gcaldaemon (leave ‘Launch only when I log in’ checked)
Application/script: /usr/local/sbin/GCALDaemon/bin/standalone-start.sh


發表迴響

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

連結到 %s

分類

Follow

Get every new post delivered to your Inbox.