Sync Google Calendar with iPod on Ubuntu Linux

October 6, 2007 – 10:45

Create a script to fetch the Google Calendar and copy it to your iPod:

# download the Google calendar ical file through the private URL
wget -c -N http://www.google.com/calendar/ical/yourname%40gmail.com/public/basic.ics

# copy it to the iPod
cp basic.ics /media/your-ipod-name/Calendars/google.ics
rm basic.ics

Now configure Ubuntu so that this script is run whenever you plug your iPod in. Add the following line to /etc/udev/rules.d/80-programs.rules:

KERNEL=="sdc1", RUN+="/path/to/your/script.sh"

(Replace sdc1 with the appropriate device name, which you can find out by typing “df”.)

  1. 2 Responses to “Sync Google Calendar with iPod on Ubuntu Linux”

  2. Very nice script, but there’s an easier way to make it run when you mount your iPod.

    In Ubuntu, just go to System > Preferences > Removable Drives and Media. Under the Multimedia tab, you should see “Portable Music Players”. Check “Play music files when connected” and then simply put the path to the script in the box below that. Easier and safer than editing system files, IMHO.

    By Adam on Nov 17, 2007

  1. 1 Trackback(s)

  2. Nov 17, 2007: Sync GooCal and iPod in Ubuntu « Simple Words

Post a Comment