📜 ⬆️ ⬇️

Synchronize KDE4 Kontact and mobile

I was always worried about the synchronization of contacts / calendar mobile phone and OSes. But all did not reach the hands. Decided to address the issue. In fact, everything turns out to be very easy. Let me give you an example with Ubuntu 9.04 and a Nokia mobile phone.

Installing software


The jaunty miraculously forgot the kdepim plugin for opensync.
sudo apt-get install opensync-plugin-syncml multisync-tools
wget launchpad.net/~holy.cheater/+archive/ppa/+files/opensync-plugin-kdepim_0.22-4hcppa1_i386.deb
sudo dpkg -i *kdepim*.deb

Package for amd64

Configuring msync


Let's create a synchronization group between kdepim and the SyncML device.
msynctool --addgroup n72-kde
msynctool --addmember n72-kde kdepim-sync
msynctool --addmember n72-kde syncml-obex-client

Determine the MAC of the phone


We are looking for a phone (do not forget to make sure that it is searchable):
hcitool scan
It turns out something like:
01: 23: 45: 67: 89: ab PhoneName

Customize SyncML plugin


msynctool --configure n72-kde 2
The editor opens. It is necessary to fill approximately the following content:
 <? xml version = "1.0"?>
 <config>
   <bluetooth_address> 01: 23: 45: 67: 89: ab </ bluetooth_address>
   <bluetooth_channel> 11 </ bluetooth_channel>
   <interface> 0 </ interface>
   <identifier> PC Suite </ identifier>
   <version> 1 </ version>
   <wbxml> 1 </ wbxml>
   <username> </ username>
   <password> </ password>
   <type> 2 </ type>
   <usestringtable> 1 </ usestringtable>
   <onlyreplace> 0 </ onlyreplace>
   <onlyLocaltime> 0 </ onlyLocaltime>
   <recvLimit> 0 </ recvLimit>
   <maxObjSize> 0 </ maxObjSize>
   <contact_db> Contacts </ contact_db>
   <calendar_db> Calendar </ calendar_db>
 </ config>

As for the bluetooth_channel, it can vary for different phone models. Therefore, it is worthwhile to look with the help of sdptool and look for the channel number for the “Nokia SyncML Client” in the output.
sdptool browse aa:bb:cc:dd:ee:ff

Synchronization


If Kontact is running, close it. If there is no pairing with the phone, it can be portrayed via Kdebluetooth4. Sync:
msynctool --sync n72-kde


Is done. Those interested can dream up on how to automate it (cron, autostart, etc.).

')

Source: https://habr.com/ru/post/66003/


All Articles