In the past few days I've been searching around the web for a way to synchronize my KAddressbook contacts and KOrganizer calendar with my Google mail contacts and calendar. For those who don't know what KAddressbook and KOrganizer are I have to mention that they are applications of KDE's Kontact suite. Yeap, I am talking about Linux here. At first I found out GCalDaemon which is using an LDAP server to syncrhonize the Contacts. However the synchronization is one way and therefore it didn't fulfill my needs. And then I found out that the two way synchronization is easy by using KDE's Akonadi and the libgcal library. So, here is a guide I've written on how to synchronize gmail's contacts and calendar with KDE.
After you have installed all the needed software press Alt+F2 and KRunner will appear. Type akonadi and choose to run the Akonadi Tray Utility.
An icon will appear at the tray. Right click on it and select to start the Akonadi server.
Afterwards press the Configure option and move to the Akonadi Server Configuration tab. There press the Test button.
Make sure that you get no errors.
Next go to the Akonadi Resources Configuration tab and press the Add button. Select to add an Akonadi Google Calendar Resource.
You will be asked to supply your gmail username and password.
Press again the Add button and this time select to add an Akonadi Google Contacts Resource. Once again supply your username and password.
If the two resources are synchronized ok you should see something like this. Just press the Ok button.
Now run KAddressbook. In the Address Books window press the green cross and choose to add an Akonadi Address Book. If everything is ok your Gmail contacts should appear.
** Note: Some information of my contacts didn't synchronized correctly that's why I have advised you for taking a back up.
Next run KOrganizer. Again choose to add an Akonadi Calendar. And here is your Google Calendar synchronized with KOrganizer.
Comments (29)
Subscribe to this comment's feed...
...
nicely done
Thank you so much for this tutorial!
btw, I'm running KDE 4.3 and Mandriva 2010
...
I am using libgcal for a few months now without any problem. In the git versions support for multiple phone numbers and other fields of Kaddressbook has been added. I guess it should be published soon. Adding a new resource doesn't show any Google options
I'm running Ubuntu 10.4 (KDE) and I'm a noob (just came over from Windows).
Synchronize Folder
...
I guess a bug should be filled about it http://code.google.com/p/libgcal/issues/list
Synchronize Folder
...
Auto Synchronize solution
sudo aptitude install akonadiconsole
Then I modified the file: /usr/local/share/akonadi/gcalresource.desktop
I modified this line: "X-Akonadi-MimeTypes" so that it reads:
X-Akonadi-MimeTypes=text/directory,text/calendar
Start up akonadi as your regular user, then I went up to "collection" and then to "folder properties". Make sure the name contains "akonadi_gcal_resource_" and go to cache. De-select "inherit cache policy from parent" and then I set bothe the interval check time and local cache timeout to something reasonable. Not the calendar updates automatically.
I really am not sure what I just modified. Probably something in the akonadi's mysql database. I dunno.
Auto Synchronize solution
You can access the database by:
mysql -S ~/.local/share/akonadi/db_misc/mysql.socket
...
Invalid Password
I installed from KDE4:Extra Repo
akonadi-googledata-1.1.0-1.1.i586
libgcal0-0.9.5-1.1.i586
Tried with
myusername
and
myusername@googlemail.com
Nothing works...
What should I do?
...
...
can access akanodi ressources from Korganizer and Kadressbook (Kontact 4.4.10)
I tried to set my system up according to this tutorial, however It does not work.
I have no problems configuring akanodi with the google-data resources. however I can not add the ressource in Kadressbook. The dialog looks totally different and when I choose the google-data resource it asks again for username and password but still does not add the resource.
For Korganizer it looks similar, there I can choose the akanodi ressource however it asks me to select an additional folder from a list where nothing is shown
did anyone succeed with 4.4.1.0 ??
thanks
Florian
Thanks
Still getting Invalid Password!
has anyone got any progress on this - I'm still unable to get this working even though I have an @gmail.com email address?
Thanks
Stew
Sync problem
I use Debian Squeeze.
I can sync from Google to both Korganizer and Contacts, but not from Korganizer and/or Contacts to Google.
I mean items entered in Google will show up in Korganizer/Contacts, but any changes made in them won't show in Google.
Any ideas?
Correction
Contacts works, it was my fault.
But the calendar doesn't.
This akonadi stuff doesn't seem too mature to me...
So...
Only the first sync after setting up the account in akonadi succeeds.
After that if I open the akonadi config manager i can see that the syncing is stuck at 100%, and not progessing to show 'ready'.
korg vs google cal sync event reccurency
Can someone please suggest something?
Write comment