** NOTE: 26TH APRIL 2008 - THIS GUIDE ALSO APPLIES TO UBUNTU 8.04 HARDY HERON. TESTED AND WORKING 100% **
Hi all,
After much pain, I have finally got my Nokia N95 (non-8GB model) syncing properly with Evolution, so I thought I'd share my experience, in particular to those who are currently suffering from the "Syntax error" issue that arises out of most of the other HowTo's.
This HowTo has the following prerequisites:
- Vanilla Ubuntu Gutsy Gibbon 7.10 with relevant updates to today. Or vanilla Ubuntu Hardy Heron 8.04 LTS First Release.
- Nokia N95 with firmware 11.0.026 or later.
- OpenSync version 0.21 (Gutsy comes with 0.19 which causes the "Syntax error" messages people have been getting - Hardy Heron comes with 0.22).
- Evolution 2.12.0 (as shipped with Gutsy - Hardy ships with 2.22.1).
- A successful pairing of your N95 and Ubuntu install. If you can transfer files to/from your N95, you're ready to sync Evolution. If you don't know how to pair your Bluetooth-enabled phone, there is an excellent tutorial for doing that here.
NOTE: OpenSync does NOT have support yet for syncing Notes. Using this guide you will only be able to sync your Contacts, Tasks (ToDo's) and Calendar.
DISCLAIMER: You try these intructions at your own risk. I will not be responsible if your N95 goes supernova or if the cats and dogs in your neighbourhood call a truce and start living together. Backup all data on your N95 and Evolution installation before doing anything that you might regret later!
There are two lots of instructions here, one for the GUI fans and one for the commando, erm, command-line fans. Take your pick, but before we go anywhere, we do need to get the MAC address and SyncML Client Channel number your N95 uses.
- To get your N95's MAC address, open a terminal and type:
Code:$ hcitool scan Scanning ... 00:AA:11:BB:22:CC Nokia N95 $- My phone is called "Nokia N95" and has a MAC address of 00:AA:11:BB:22:CC - yours will obviously be different. Note it down.
.- Next, determine the Channel your N95 uses to sync with. By default, it should be Channel 10, but if in doubt, issue the command (substitute your MAC address):
...and scroll through until you come to the section referring to "SyncMLClient" (NOT the "Nokia SyncML Server" or "SyncML DM Client"). Note down the Channel shown.Code:$ sdptool browse 00:AA:11:BB:22:CC
.
HARDY HERON USERS: SKIP THE NEXT TWO STEPS. You do NOT need to do this. Go to Step 6 NOW.- Next, we need to update Ubuntu's repository so we can get the latest OpenSync software. Start with getting the GPG keys:
Code:$ gpg --keyserver hkp://subkeys.pgp.net/ --recv-keys CB210090B029CB84 $ gpg --export CB210090B029CB84 | sudo apt-key add -- Now add the following to the end of /etc/apt/sources.list (note, there is no Gutsy repository yet at the time of writing):
GUI fans can use System->Administration->Software Sources->Third-Party Software and use the "Add" button to add each line in turn. When you click close, you will be prompted to reload to get the info from the new repositories you just added. Do so.Code:deb http://opensync.gforge.punktart.de/repo/opensync-0.21/ feisty main deb-src http://opensync.gforge.punktart.de/repo/opensync-0.21/ feisty main
.
HARDY HERON USERS: Continue instruction from here. The Ubuntu-supplied version of OpenSync is 0.22 and will work for you, hence no need for third-party updates.- Now update the system with new package lists and download the software we need:
Code:$ sudo apt-get update $ sudo apt-get install multisync-tools multisync0.90 opensync-plugin-evolution opensync-plugin-syncml
Now we are ready to configure OpenSync. Choose GUI or command line instructions below.
COMMAND LINE CONFIGURATION
- Let's go commando with OpenSync. First we create a group to refer to our sync session with. I've called mine "evolution-n95", but you can call it whatever you want. We then create the config for the Evolution side as the first member of this group.
Code:$ msynctool --addgroup evolution-n95 $ msynctool --addmember evolution-n95 evo2-sync $ msynctool --configure evolution-n95 1- Your text editor will pop up editing member 1 of your evolution-n95 group. Edit the config to look like this:
Code:<config> <address_path>default</address_path> <calendar_path>default</calendar_path> <tasks_path>default</tasks_path> </config>- Now do to the N95 side, adding its config as the second member of the group:
Code:$ msynctool --addmember evolution-n95 syncml-obex-client $ msynctool --configure evolution-n95 2- Your text editor will pop up editing member 2 of your evolution-n95 group. Edit the config to look like this (remember to put your N95's MAC address and Channel number in):
Code:<config> <bluetooth_address>00:AA:11:BB:22:CC</bluetooth_address> <bluetooth_channel>10</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> <recvLimit>0</recvLimit> <maxObjSize>0</maxObjSize> <contact_db>Contacts</contact_db> <calendar_db>Calendar</calendar_db> <note_db></note_db> </config>- Now you're ready to rock and/or roll. Let's try syncing:
...and you should get a whole stream of mumbo-jumbo similar to the following:Code:$ msynctool --sync evolution-n95
Depending on your data to sync, you may see a LOT of info. This may be done quickly or take a minute or two. In any case, you should see "The sync was successful" at the end amd be returned to the prompt.Code:$ msynctool --sync evolution-n95 Synchronizing group "evolution-n95" The previous synchronization was unclean. Slow-syncing Member 1 of type evo2-sync just connected received event dsession received contact dsession Member 2 of type syncml-obex-client just connected All clients connected or error Received an entry pas-id-47AA3D7000000000 with data of size 4 from member 1. Changetype ADDED Received an entry pas-id-47AAB03C00000000 with data of size 4 from member 1. Changetype ADDED ... Received an entry 20080206T205400Z-5332-1000-1-0@lamaar with data of size 4 from member 1. Changetype ADDED Received an entry 20080212T131911Z-5797-1000-1-0@lamaar with data of size 4 from member 1. Changetype ADDED ... Member 1 of type evo2-sync just sent all changes Received an reply to our Alert Received an reply to our Alert Going to receive 27 changes Received an entry 1 with data of size 4 from member 2. Changetype ADDED Going to receive 4 changes Received an entry 2 with data of size 4 from member 2. Changetype ADDED Received an entry 3 with data of size 4 from member 2. Changetype ADDED ... Member 2 of type syncml-obex-client just sent all changes All clients sent changes or error All conflicts have been reported Sent an entry pas-id-47BF9BC100000001 of size 92 to member 1. Changetype ADDED Sent an entry pas-id-47BF9BC100000002 of size 104 to member 1. Changetype ADDED Sent an entry pas-id-47BF9BC100000003 of size 113 to member 1. Changetype ADDED ... Sent an entry 20080223T040625Z-14241-1000-1-0@lamaar of size 426 to member 1. Changetype ADDED Sent an entry 20080223T040625Z-14241-1000-1-2@lamaar of size 252 to member 1. Changetype ADDED ... Member 1 of type evo2-sync committed all changes. Received an reply to our sync Sent an entry 29 of size 205 to member 2. Changetype ADDED Sent an entry 30 of size 153 to member 2. Changetype ADDED ... Received an reply to our sync Sent an entry 6 of size 362 to member 2. Changetype ADDED Sent an entry 7 of size 345 to member 2. Changetype ADDED ... Member 2 of type syncml-obex-client committed all changes. All clients have written Member 1 of type evo2-sync just disconnected Member 2 of type syncml-obex-client just disconnected All clients have disconnected The sync was successful $
.- Pat yourself on the back - you're done. Sync again with the same command as much as you want.
GUI CONFIGURATION
- Go to the Accessories menu and choose "Multisync-qad".
- Click on the "Add" icon at the top. You will be prompted for a group name. You can use whatever you want. I chose "evolution-n95". Type it in and click "Apply".
- Now click on the "Edit" button in the middle of the window.
- In the new window that appears, click "Add member" on the middle-left. A new window appears.
- Choose "Evolution 2.x" from the list and click "Apply". This is your first member of the group and will appear as "evo2-sync" in the list under the group name.
- Click on "evo2-sync" in the list and the window content will change to show its config. All three of the options should read "Personal".
- Now click on "Add member" again and this time choose "SyncML over OBEX Client" from the list and click Apply. This will be your second member of the group and will appear as "syncml-obex-client" in the list under the group name.
- Click on "syncml-obex-client" in the list and the window content will change to show its config. Ensure that all the text in that window looks like this (substituting your N95's MAC address and Channel number of course):
Code:<config> <bluetooth_address>00:AA:11:BB:22:CC</bluetooth_address> <bluetooth_channel>10</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> <recvLimit>0</recvLimit> <maxObjSize>0</maxObjSize> <contact_db>Contacts</contact_db> <calendar_db>Calendar</calendar_db> <note_db></note_db> </config>- Now click on the Close button. You are ready to sync. Click on the Refresh button in the middle of the original window and watch was your N95 syncs away. You won't get any feedback other than the status in that window. If all is good, after a few seconds or a minute, you should see "The sync was successful".
.- Pat yourself on the back. If you have a pet, pat him too, because he's been begging for your attention all this time.
Note that your N95 will record a successful (or failed) sync in its log too.
That's it! Happy syncing!
Bookmarks