Kontact/Синхронізація Kontact з Palm Pre

From KDE UserBase Wiki
Revision as of 09:56, 26 September 2010 by Yurchor (talk | contribs) (Created page with '''5. Змініть права доступу'' так, щоб звичайний користувач мав право на читання і запис до каталогу G...')
Other languages:

Як синхронізувати ваш Palm Pre з Kontact і Google Calendar

Мною було налаштовано систему так, що можна вводити події календаря у будь-якому з наведених нижче місць з метою виконання синхронізації з усіма трьома календарями:

  • Пристрій Palm Pre
  • Календар у Kontact
  • Мій Календар Google


За моїх поточних налаштувань автоматична синхронізація між моїм Календарем Google і моїм календарем Kontact виконується кожні 5 хвилин. Щоб виконати синхронізацію з пристроєм Palm Pre, мені доводиться вибрати пункт Preferences & Accounts (налаштування та облікові записи) у меню Calendar (календар) у верхній лівій частині екрана, гортати список до низу і натискати кнопку Sync Now (синхронізувати зараз). Після виконання синхронізації вручну всі події з календаря пристрою буде негайно показано у моєму календарі Google, а у календарі Kontact через 5 хвилин. Досі все працювало чудово.


Подяки початковим авторам

Всі наведені тут відомості було запозичено зі статті на soft.zoneo.net, отже, щоб всім був відомий справжній автор порад, тут наведено початкові настанови, які слід виконати.


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


Зміни до параметрів було внесено лише з метою узгодження з параметрами моєї системи.


Ось ці настанови

1. Створіть обліковий запис Календаря Google (і переконайтеся, що все працює). Мої дані прив’язано до моєї особистої адреси електронної пошти, отже мати обліковий запис на gmail.com не обов’язково.


2. Звантажте GCALDaemon з SourceForge.


3. Розпакуйте файл gcaldaemon-linux-*


4. Пересуньте каталог GCALDaemon до /usr/local (або іншого подібного каталогу).


5. Змініть права доступу так, щоб звичайний користувач мав право на читання і запис до каталогу GCALDaemon і всіх підкаталогів та файлів. Звичайний користувач ПОВИНЕН мати право створювати файли у каталозі /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

 # Увімкнути файл iCalendar для зберігання даних/синхронізації
 file.enabled=true

 # Повний шлях до локального файла iCalendar
 file.ical.path=/usr/local/GCALDaemon/google.ics

 # Ім’я користувача Gmail (ваша адреса електронної пошти повністю)
 file.google.username=ВАША АДРЕСА

 # Пароль до Gmail (скористайтеся кодованим паролем!)
 file.google.password=Шифрований пароль, скопійований на кроці 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

 # Увімкнути у разі використання комутованого з’єднання (типово, "true")
 file.offline.enabled=true


9. Запустіть синхронізацію

/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.