How to sync gnome-calendar with an online calendar?

I thought it was awesome that Ubuntu 16.04 shipped with gnome-calendar, but I noticed that holidays were not included. I also noticed that there is an option to sync the calendar with an online one, how do I do this? I don't know of any online calendars I could use.

Add Calendar from Web


You can achieve that using the gnome control center in Ubuntu:

  1. Type gnome-control-center into dash, settings will appear select that and select online account:

    screenshot

  2. Then add your google account by clicking the plus sign at the bottom of the dialogue window that appears:

    screenshot

  3. Then turn the calendar associated with that gmail account on, and this should sync it with Ubuntu Calendar.:

    screenshot

  4. If you want more Calendars set it up in Calendar in google from the settings options top right corner of calendar page.

  5. Google has changed how apps communicate with your google account so you have to setup your phone from here else you won't be able to add an account.

Set up Google Account Calendar sync

  1. Go to google calendar:

    screenshot

  2. Get to settings, top right of page:

    screenshot

  3. In ther click on the Calendars tab, top left of page:

    screenshot

  4. In there click on export calendars:

    enter image description here

  5. That will export your calendar in a .ics file format. Now Lets instruct Calendar to sync back in Ubuntu desktop.

Instruct Calendar to sync with downloaded .ics file

  1. Extract the downloaded .ics file

  2. Start up Calendar and click on Calendar Settings

  3. Form the dialogue box that appears select from file

  4. Navigate to that extracted .ics file location, select it and choose the one without the #[tag] at the start of the name.

  5. Back in Calendar select synchronize and make sure your internet is working and after a few minutes your synced calendars will appear.


To get all my Google calendars to sync, I had to go enable syncing them in a hidden Google sync settings page:

https://calendar.google.com/calendar/syncselect

Then I had to disable Calendar for my Google account in Gnome Online Accounts settings, and re-enable it. After that all my calendars are synced.

The same is actually needed for the Windows 10 Calendar, which is how I found it.