Kontact/Kontact Palm Pre Sync/ca: Difference between revisions

From KDE UserBase Wiki
(Created page with "<!--(-->7) ''Copieu la URL privada de Google (ICAL)''. * Aneu al '''Google Calendar'''. * Feu clic a la icona de fletxa/desplegable a la dreta del calendari per utilitzar la ll...")
(Created page with "<!--(-->8) ''Configureu GCALD''. * Editeu /usr/local/GCALDaemon/conf/gcal-daemon.cfg {{Input|1=vi /usr/local/GCALDaemon/conf/gcal-daemon.cfg}} * Canvieu les següents línies ...")
Line 55: Line 55:




''<!--(-->8) Configure GCALD''
<!--(-->8) ''Configureu GCALD''.
* Edit /usr/local/GCALDaemon/conf/gcal-daemon.cfg
* Editeu /usr/local/GCALDaemon/conf/gcal-daemon.cfg
{{Input|1=vi /usr/local/GCALDaemon/conf/gcal-daemon.cfg}}
{{Input|1=vi /usr/local/GCALDaemon/conf/gcal-daemon.cfg}}
* Change the following lines as shown:
* Canvieu les següents línies com es mostra:





Revision as of 05:56, 14 July 2011

Com sincronitzar el vostre Palm Pre amb Kontact i Google Calendar

He configurat el meu sistema per a poder entrar en un esdeveniment del calendari en qualsevol dels següents llocs i sincronitzar-ho en els tres calendaris:

  • El dispositiu Palm Pre.
  • Un calendari a Kontact.
  • El meu Google Calendar.


La meva configuració actual és la sincronització automàtica entre Google Calendar i el calendari de Kontact cada 5 minuts. Per sincronitzar el dispositiu Palm Pre he d'anar al calendari, seleccionar Preferències i comptes des del menú Calendari a la part superior esquerra de la pantalla desplaçar a la part inferior i prémer el botó Sincronitza ara. Una vegada feta una sincronització manual del dispositiu a qualsevol esdeveniment del calendari he afegit al dispositiu mostrar-me el Google Calendar immediatament i en el calendari de Kontact en 5 minuts. Fins ara ha estat impecable.


Crèdit pel autor original

Tota la meva informació prové originalment d'un article sobre soft.zoneo.net, de manera que pel crèdit del veritable autor, aquí hi ha la pàgina original que vaig seguir per configurar aquesta opció.


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


He modificat els valors següents només pels meus detalls de la instal·lació.


Heus aquí com:

1) Assegureu-vos de tenir un compte de Google Calendar (i assegureu-vos que funciona). El meu està lligat al meu propi domini de correu electrònic per la qual cosa no vol dir que hageu de tenir un compte de gmail.com.


2) Descarregueu el GCALDaemon des de Source Forge.


3) Descomprimiu amb unzip el fitxer gcaldaemon-linux-*.


4) Moveu el directori GCALDaemon nou a /usr/local (o un lloc similar apropiat).


5) Canvieu els permisos, de manera que un usuari normal tingui drets per llegir/escriure al directori GCALDaemon i a tots els subdirectoris/fitxers. L'usuari normal ha de ser capaç de crear nous fitxers en /usr/local/GCALDaemon.


6) Genereu una cadena de contrasenya codificada. Obriu un terminal (com l'usuari que ejecuta Kontact) i executeu això:

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


Introduïu la vostra contrasenya de Google i copieu la contrasenya codificada des de la sortida. Si rebeu un missatge d'error, hi ha un problema amb els vostres permisos.


7) Copieu la URL privada de Google (ICAL).

  • Aneu al Google Calendar.
  • Feu clic a la icona de fletxa/desplegable a la dreta del calendari per utilitzar la llista en la caixa Els meus calendaris al costat esquerre de la pàgina i trieu Configuració del calendari.
  • Feu clic a la icona ICAL a la secció Adreça privada.
  • Copieu l'enllaç que es mostra.


8) Configureu GCALD.

  • Editeu /usr/local/GCALDaemon/conf/gcal-daemon.cfg
vi /usr/local/GCALDaemon/conf/gcal-daemon.cfg
  • Canvieu les següents línies com es mostra:


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


Això és tot

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.