Sync Google Calendar with iPod on Ubuntu Linux

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”.)

This entry was posted in Geek, Ubuntu Linux. Bookmark the permalink.

3 Responses to Sync Google Calendar with iPod on Ubuntu Linux

  1. Adam says:

    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.

  2. Pingback: Sync GooCal and iPod in Ubuntu « Simple Words

  3. sandrar says:

    Hi! I was surfing and found your blog post… nice! I love your blog. :) Cheers! Sandra. R.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">