Kontact/Kontact Palm Pre Sync: Difference between revisions

From KDE UserBase Wiki
No edit summary
(Removed horizontal lines)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template:I18n/Language Navigation Bar|Tutorials/Kontact_Palm_Pre_Sync}}
<languages />
= How to sync your Palm Pre with Kontact and Google Calendar =
<translate>
== How to sync your Palm Pre with Kontact and Google Calendar == <!--T:1-->


I've setup my system so I can enter a calendar event in any of the following places and the event get's sync'ed to all three calendars:
<!--T:2-->
* The Palm Pre device
I've setup my system so I can enter a calendar event in any of the following places and the event gets sync'ed to all three calendars:
* A calendar in Kontact
* The ''Palm Pre'' device
* My Google Calendar
* A calendar in '''Kontact'''
* My '''Google Calendar'''




My current setup auto-sync's between my Google Calendar and my Kontact Calendar every 5 minutes. To sync the Palm Pre device I need to go to the calendar, choose 'Preferences & Accounts' from the 'Calendar' menu at the top/left of the screen scroll to the bottom and tap the 'Sync Now' button. Once I do a manual sync from the device any Calendar events I added on the device show up on my Google calendar immediately and on my Kontact Calendar within 5 minutes.  So far it's been flawless.
<!--T:3-->
My current setup auto-sync's between my Google Calendar and my Kontact Calendar every 5 minutes. To sync the Palm Pre device I need to go to the calendar, choose <menuchoice>Preferences & Accounts</menuchoice> from the <menuchoice>Calendar</menuchoice> menu at the top/left of the screen scroll to the bottom and tap the <menuchoice>Sync Now</menuchoice> button. Once I do a manual sync from the device any Calendar events I added on the device show up on my Google calendar immediately and on my '''Kontact''' Calendar within 5 minutes.  So far it's been flawless.




====Credit Due to the original author(s)====
===Credit Due to the original author(s)=== <!--T:4-->
All of my info originally came from an article on soft.zoneo.net, so in order to credit the real author of this info here's the original page I followed to set this up.  
All of my information originally came from an article on soft.zoneo.net, so in order to credit the real author, here's the original page I followed to set this up.  




<!--T:5-->
[http://soft.zoneo.net/Linux/ggcal_and_kontact.php http://soft.zoneo.net/Linux/ggcal_and_kontact.php]
[http://soft.zoneo.net/Linux/ggcal_and_kontact.php http://soft.zoneo.net/Linux/ggcal_and_kontact.php]




<!--T:6-->
I've tweaked the settings below only per my installation details
I've tweaked the settings below only per my installation details




==Here's how:==
==Here's how:== <!--T:7-->


'''1) Make sure you have a Google Calendar account''' (and make sure it works). Mine is tied to my own email/domain so it doesn't mean you have to have a gmail.com account
<!--T:8-->
''<!--(-->1) Make sure you have a Google Calendar account'' (and make sure it works). Mine is tied to my own email/domain so it doesn't mean you have to have a gmail.com account




'''2) Download the GCALDaemon''' from [http://sourceforge.net/project/showfiles.php?group_id=184382 Source Forge]  
<!--T:9-->
''<!--(-->2) Download the GCALDaemon'' from [http://sourceforge.net/project/showfiles.php?group_id=184382 Source Forge]  




'''3) Unzip the gcaldaemon-linux-* file'''
<!--T:10-->
''<!--(-->3) Unzip the '''gcaldaemon-linux-*''' file''




'''4) Move the new GCALDaemon directory to /usr/local''' (or a similarly appropriate place)
<!--T:11-->
''<!--(-->4) Move the new GCALDaemon directory to /usr/local'' (or a similarly appropriate place)




'''5) Change permissions''' so an ordinary user has rights to read/write to the GCALDaemon directory and all sub-directories/files.  The normal user MUST be able to create new files in /usr/local/GCALDaemon
<!--T:12-->
''<!--(-->5) Change permissions'' so an ordinary user has rights to read/write to the GCALDaemon directory and all sub-directories/files.  The normal user MUST be able to create new files in ''/usr/local/GCALDaemon''




'''6) Generate an encoded password string'''
<!--T:13-->
Open a terminal (as the user who run Kontact) and execute this:
''<!--(-->6) Generate an encoded password string''
cd /usr/local/GCALDaemon/bin
Open a terminal (as the user who runs '''Kontact''') and execute this:
  ./password-encoder.sh
{{Input|1= cd /usr/local/GCALDaemon/bin
  ./password-encoder.sh}}




Enter your Google password and copy the encoded password from the output.
<!--T:14-->
Enter your ''Google password'' and copy the ''encoded password'' from the output.
If you get an error message, there is a problem with your permissions.  
If you get an error message, there is a problem with your permissions.  




'''7) copy your Google Private URL (ICAL)'''
<!--T:15-->
* Go to your Google Calendar
''<!--(-->7) copy your Google Private URL (ICAL)''
* Click the arrow/pulldown icon to the right of the calendar you want to use listed in the "My Calendars" box on the left side of the page and choose 'Calendar Settings"
* Go to your '''Google Calendar'''
* Click on the ICAL icon in the "Private Address" section
* Click the arrow/pulldown icon to the right of the calendar you want to use listed in the <menuchoice>My Calendars</menuchoice> box on the left side of the page and choose <menuchoice>Calendar Settings</menuchoice>
* Click on the <menuchoice>ICAL icon</menuchoice> in the <menuchoice>Private Address</menuchoice> section
* Copy the link shown
* Copy the link shown




'''8) Configure GCALD'''
<!--T:16-->
''<!--(-->8) Configure GCALD''
* Edit /usr/local/GCALDaemon/conf/gcal-daemon.cfg
* Edit /usr/local/GCALDaemon/conf/gcal-daemon.cfg
  (vi /usr/local/GCALDaemon/conf/gcal-daemon.cfg)
{{Input|1=vi /usr/local/GCALDaemon/conf/gcal-daemon.cfg}}
* Change the following lines as shown:
* Change the following lines as shown:




----
<!--T:17-->
 
{{Input|1=
  http.enabled=false
  http.enabled=false <br />
 
# Enable iCalendar file listener/synchronizer
# Enable iCalendar file listener/synchronizer
  file.enabled=true <br />
  file.enabled=true
# Full path of the local iCalendar file
 
  file.ical.path=/usr/local/GCALDaemon/google.ics <br />
# Full path of the local iCalendar file
# Gmail user (your full email address)
  file.ical.path=/usr/local/GCALDaemon/google.ics
  file.google.username=YOUR ADDRESS <br />
 
# Gmail password (use password encoder!)
# Gmail user (your full email address)
  file.google.password='''''The encrypted passwd string copied in step 6''''' <br />
  file.google.username=YOUR ADDRESS
# URL (without hostname) of the Google Calendar's private ical file
 
# Gmail password (use password encoder!)
  file.google.password='''The encrypted passwd string copied in step 6'''  
 
# URL (without hostname) of the Google Calendar's private ical file
  file.private.ical.url=/calendar/ical/XXXXXX/basic.ics  
  file.private.ical.url=/calendar/ical/XXXXXX/basic.ics  
  '''(The Private ICS Google Calendar Address you Copied in step 7)'''  
  '''''(The Private ICS Google Calendar Address you Copied in step 7)'''
  '''WITHOUT the hostname (leave off the 'http://www.google.com')'''
  WITHOUT the hostname (leave off the '<nowiki>http://www.google.com</nowiki>')'' <br />
 
# Local iCalendar file polling interval (recommended is "10 sec")
# Local iCalendar file polling interval (recommended is "10 sec")
  file.polling.file=10 sec <br />
  file.polling.file=10 sec
# Google Calendar polling interval (recommended is "10 min")
 
  file.polling.google=5 min <br />
# Google Calendar polling interval (recommended is "10 min")
# Turn it on when you use dial-up connection (default is "true")
  file.polling.google=5 min
 
# Turn it on when you use dial-up connection (default is "true")
  file.offline.enabled=true
  file.offline.enabled=true
 
}}
----
 
 
'''9) Start the Sync'''
/usr/local/GCALDaemon/bin/standalone-start.sh &
 
 
'''10) Make sure the sync process starts at login'''
* Create the file ~/.kde/Autostart/googleCal.sh with the following content




----
<!--T:26-->
''<!--(-->9) Start the Sync''
{{Input|1= /usr/local/GCALDaemon/bin/standalone-start.sh &}}


#!/bin/bash


/usr/local/GCALDaemon/bin/standalone-start.sh &
<!--T:27-->
''<!--(-->10) Make sure the sync process starts at login''
* ''Create the file'' ~/.kde/Autostart/googleCal.sh with the following content


exit


----
<!--T:28-->
{{Input|1=
#!/bin/bash <br />
/usr/local/GCALDaemon/bin/standalone-start.sh & <br />
exit
}}




'''11) Add the new Calendar to Kontact'''
<!--T:31-->
* Open the Kontact Calendar page and add a new Calendar resource at the bottom-left of the screen
''<!--(-->11) Add the new Calendar to Kontact''
* When you click the add (+) icon you'll be prompted for the resource type, choose '''Calendar in Local File'''
* Open the '''Kontact''' Calendar page and <menuchoice>add a new Calendar</menuchoice> resource at the bottom-left of the screen
* When you click the add (+) icon you'll be prompted for the resource type, choose <menuchoice>Calendar in Local File</menuchoice>
* in the next dialog box that shows up add the following :
* in the next dialog box that shows up add the following :
**new resource name
**new resource name
Line 121: Line 126:




'''12) Add the google account to you Palm Pre Device'''
<!--T:32-->
* Go to the Calendar
''<!--(-->12) Add the google account to you Palm Pre Device''
* choose 'Preferences & Accounts' from the 'Calendar' menu at the top/left of the screen  
* Go to the <menuchoice>Calendar</menuchoice>
* Scroll to the bottom, tap the 'Add An Account' button
* choose <menuchoice>Preferences & Accounts</menuchoice> from the <menuchoice>Calendar</menuchoice> menu at the top/left of the screen  
* Tap the 'Google' button
* Scroll to the bottom, tap the <menuchoice>Add An Account</menuchoice> button
* Enter your google calendar info
* Tap the <Menuchoice>Google</menuchoice> button
* Enter your Google calendar info




==That's it==
==That's it== <!--T:33-->




Note when you add a Kontact event you'll be prompted to use the default calendar resource, or the new google calendar resource. Only events added to the new google calendar resource will be sync'ed.  Any event added to any of the 3 calendars (the new google Kontact calendar resource, the google calendar or your Palm Pre device) will now sync to all 3 calendars.
<!--T:34-->
Note when you add a '''Kontact''' event you'll be prompted to use the <menuchoice>default calendar</menuchoice> resource, or the new <menuchoice>Google calendar</menuchoice> resource. Only events added to the new <menuchoice>Google calendar</menuchoice> resource will be sync'ed.  Any event added to any of the 3 calendars (the new '''Kontact''' <menuchoice>Google calendar</menuchoice> resource, the Google calendar itself, or your Palm Pre device) will now sync to all 3 calendars.


<!--T:35-->
[[Category:Tutorials]]
[[Category:Office]]
[[Category:Office]]
</translate>

Latest revision as of 14:02, 19 November 2010

How to sync your Palm Pre with Kontact and Google Calendar

I've setup my system so I can enter a calendar event in any of the following places and the event gets sync'ed to all three calendars:

  • The Palm Pre device
  • A calendar in Kontact
  • My Google Calendar


My current setup auto-sync's between my Google Calendar and my Kontact Calendar every 5 minutes. To sync the Palm Pre device I need to go to the calendar, choose Preferences & Accounts from the Calendar menu at the top/left of the screen scroll to the bottom and tap the Sync Now button. Once I do a manual sync from the device any Calendar events I added on the device show up on my Google calendar immediately and on my Kontact Calendar within 5 minutes. So far it's been flawless.


Credit Due to the original author(s)

All of my information originally came from an article on soft.zoneo.net, so in order to credit the real author, here's the original page I followed to set this up.


http://soft.zoneo.net/Linux/ggcal_and_kontact.php


I've tweaked the settings below only per my installation details


Here's how:

1) Make sure you have a Google Calendar account (and make sure it works). Mine is tied to my own email/domain so it doesn't mean you have to have a gmail.com account


2) Download the GCALDaemon from Source Forge


3) Unzip the gcaldaemon-linux-* file


4) Move the new GCALDaemon directory to /usr/local (or a similarly appropriate place)


5) Change permissions so an ordinary user has rights to read/write to the GCALDaemon directory and all sub-directories/files. The normal user MUST be able to create new files in /usr/local/GCALDaemon


6) Generate an encoded password string Open a terminal (as the user who runs Kontact) and execute this:

cd /usr/local/GCALDaemon/bin
 ./password-encoder.sh


Enter your Google password and copy the encoded password from the output. If you get an error message, there is a problem with your permissions.


7) copy your Google Private URL (ICAL)

  • Go to your Google Calendar
  • Click the arrow/pulldown icon to the right of the calendar you want to use listed in the My Calendars box on the left side of the page and choose Calendar Settings
  • Click on the ICAL icon in the Private Address section
  • Copy the link shown


8) Configure GCALD

  • Edit /usr/local/GCALDaemon/conf/gcal-daemon.cfg
vi /usr/local/GCALDaemon/conf/gcal-daemon.cfg
  • Change the following lines as shown:


http.enabled=false 
# Enable iCalendar file listener/synchronizer file.enabled=true
# Full path of the local iCalendar file file.ical.path=/usr/local/GCALDaemon/google.ics
# Gmail user (your full email address) file.google.username=YOUR ADDRESS
# Gmail password (use password encoder!) file.google.password=The encrypted passwd string copied in step 6
# URL (without hostname) of the Google Calendar's private ical file file.private.ical.url=/calendar/ical/XXXXXX/basic.ics (The Private ICS Google Calendar Address you Copied in step 7) WITHOUT the hostname (leave off the 'http://www.google.com')
# Local iCalendar file polling interval (recommended is "10 sec") file.polling.file=10 sec
# Google Calendar polling interval (recommended is "10 min") file.polling.google=5 min
# Turn it on when you use dial-up connection (default is "true") file.offline.enabled=true


9) Start the Sync

/usr/local/GCALDaemon/bin/standalone-start.sh &


10) Make sure the sync process starts at login

  • Create the file ~/.kde/Autostart/googleCal.sh with the following content


#!/bin/bash 
/usr/local/GCALDaemon/bin/standalone-start.sh &
exit


11) Add the new Calendar to Kontact

  • Open the Kontact Calendar page and add a new Calendar resource at the bottom-left of the screen
  • When you click the add (+) icon you'll be prompted for the resource type, choose Calendar in Local File
  • in the next dialog box that shows up add the following :
    • new resource name
    • The file location: /usr/local/GCALDaemon/google.ics


12) Add the google account to you Palm Pre Device

  • Go to the Calendar
  • choose Preferences & Accounts from the Calendar menu at the top/left of the screen
  • Scroll to the bottom, tap the Add An Account button
  • Tap the Google button
  • Enter your Google calendar info


That's it

Note when you add a Kontact event you'll be prompted to use the default calendar resource, or the new Google calendar resource. Only events added to the new Google calendar resource will be sync'ed. Any event added to any of the 3 calendars (the new Kontact Google calendar resource, the Google calendar itself, or your Palm Pre device) will now sync to all 3 calendars.