Sync Google Calendar with iPod on Ubuntu Linux
October 6, 2007 – 10:45Create 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”.)
3 Responses to “Sync Google Calendar with iPod on Ubuntu Linux”
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
Hi! I was surfing and found your blog post… nice! I love your blog.
Cheers! Sandra. R.
By sandrar on Sep 10, 2009