Synce
From openSUSE
|
Overview
SynCE is a framework for Linux and FreeBSD to communicate with PocketPC / Windows Mobile Devices. Currently SynCE has support for viewing/transferring files, syncing, partnership management, installation/removal of software, and more on your device.
SynCE uses the OpenSync framework to sync PIM data with other Linux applications like Kontact and Evolution. It can currently sync Calendar items, Contacts, and Tasks, as well as backing up your PDA's data as files. Installation and removal of software onto your device is very easy, and the SynCE project includes software to expand the "self-extracting" installers that Windows Mobile software is distributed in.
SynCE is now quite a mature project. Basic tasks with older devices should cause very little trouble. It supports Windows Mobile 2003, 2005, and Windows Mobile 6 devices. If your device isn't working, contact the project and help us fix it!
SynCE is NOT meant to sync with PDAs running Linux. It is a replacement for the ActiveSync software on the desktop, not the Windows Mobile OS actually running on the device.
The current released version of the SynCE project components is 0.14.
Running SynCE on openSUSE
SynCE packages are built into RPMs on the Build Service in the project system:SynCE. These packages are tuned for openSUSE and are the best way to get SynCE working on your machine.
Installation
For more information, visit Download Help and Installation Help.}
| | Make sure you have completely uninstalled any versions of the SynCE components you had installed from source. |
Identify which version of the Windows Mobile operating system your device is running.
Legacy (WM2003) Devices
| |
If you want to connect a device running Windows Mobile 2003, DO NOT install the YaST Metapackages. They include the latest versions of SynCE software, which are now incompatible with WM2003 devices. |
Instead, add the repositories (as shown below) and install the following packages:
- libopensync-plugin-legacy
- synce-hal
- rra-tools
A suitable zypper command to do this would be
and add the following packages depending on your Desktop Environment
| If you are using the KDE Desktop Environment: For KDE3
For KDE4
|
Unfortunately, there is no system tray utility available for legacy (WM2003) devices for KDE.
If you are using the GNOME Desktop Environment:
|
Once this is done, skip ahead to Running the Software
WM2005 and newer Devices
Click the most appropriate YaST Metapackage File below that matches the version of openSUSE you are running.
If you are using the KDE Desktop Environment:
|
| If you are using the GNOME Desktop Environment: Download the synce-gnome YMP. |
YaST will ask for permission to install software on your machine. Enter your/root's password, and follow the steps in the wizard. If you are interested, consider installing some of the suggested software as well.
Download Links
| Version: 11.0
|
OR Add the repository with zypper ar --repo http://download.opensuse.org/repositories/system://SynCE/openSUSE_11.0/system:SynCE.repo |
| Version: 11.1
|
OR Add the repository with zypper ar --repo http://download.opensuse.org/repositories/system://SynCE/openSUSE_11.1/system:SynCE.repo |
| Version: 11.2
|
OR Add the repository with zypper ar --repo http://download.opensuse.org/repositories/system://SynCE/openSUSE_11.2/system:SynCE.repo |
Running the Software
Once the software has been installed, you should be in a position to sync your PDA.
| If you are using the KDE Desktop Environment: Start the program synce-kpm. |
| If you are using the GNOME Desktop Environment: Start the program synce-trayicon. |
An icon should appear in your system tray. From this icon you should be able to access various information about your device. Try plugging in your device and see if the system recognizes it (the system tray icon will react). If it does not, move on to the Troubleshooting part of this page.
Otherwise, move on to Syncing.
Syncing
Syncing using SynCE uses the OpenSync framework. SynCE provides one plugin, and whatever program you want to sync with has to provide a similar OpenSync plugin. Visit the OpenSync page to identify which plugin you want to sync with and install it.
Once you have two plugins, you have to set up a "sync group" including the two. Various frontends exist to set up OpenSync, including kitchensync (for KDE), multisync-gui (for GTK), and msynctool (for the CLI). Installing one of these is necessary to sync with your PDA. Here, we will go over how to set up a file-sync with msynctool.
In the terminal, as your normal user, enter
You should see something similar to
Available plugins: file-sync synce-opensync-plugin
Now enter
msynctool --addgroup synce-file msynctool --addmember synce-file file-sync
msynctool --addmember synce-file synce-opensync-plugin
Some plugins, like the file sync plugin, need to be configured before they will work. Entering the following command will open the plugin's configuration file in $EDITOR
Once all of that is set up, try and sync!
You should see lots of output followed by a success message. If you encounter problems, take a look at the Troubleshooting section.
Other Tools
| If you are using the KDE Desktop Environment: The program kcemirror (available for both KDE3 and KDE4) allows you to control and take screenshots of your device from your computer. kde{3,4}-kio_rapip are KIO-Slaves that allow you to browse through your device's file system (read+write) by typing rapip:/ or synce:/ into the address bar of Dolphin or Konqueror. |
| If you are using the GNOME Desktop Environment: synce-gvfs and synce-gnomevfs allow you to browse through your device's file system in Nautilus and other Gnome programs by typing the address synce:/. gcemirror allows you to control and take screenshots of your device from your computer. |
FUR is a filesystem tool allowing you to mount your device as a local directory using FUSE.
Troubleshooting
First Steps
The first step in debugging problems with synchronizing your device is to test the connection. This is most easily done by running the low-level command-line tools in the package rapi2-tools. If you have not already done so, add the system:SynCE repository (see above) and install it now with
Then try running
If you do not see a list of files on your device, the connection is not working. See below. If you do see the list of files, the problem lies in the syncing software.
Kernel
Most of the SynCE code has been integrated into the mainline kernel. However, if you are finding that the kernel is not recognizing or communicating with your device properly, try installing the usb-rndis-lite KMP RPM. Add the system:SynCE repository (see above) and install it now with
If someone tells you to install the kernel module "with the samsung patch", you can also install the above package.
You should also blacklist the ipaq module.
If the ipaq module has already been loaded, it might be a mess to unload it. It's easiest to just reboot.
Connection
Try disabling SuSEfirewall2 for your device's interface. This is usually eth* or rndis*. The firewall configuration can be accessed through Yast (Administrator Settings) >> Security and Users >> Firewall. Add the interface to the "Internal Zone" or disable your firewall completely.
| |
It is only considered safe to completely disable SuSEfirewall2 if you are behind a hardware firewall, such as a router! |
Unfortunately, even if you add the device's interface to the firewall's "Internal Zone", you might still experience problems with your device being firewalled. You will need to restart SuSEfirewall2 every time the device is plugged in, unplug the device, and then plug it back in. One way around this is to edit `/etc/udev/rules.d/70-persistent-net.rules`. Find the 2 lines that look like the following (the "?" differ between devices):
# USB device 0x????:0x???? (rndis_host)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="??:??:??:??:??:??", ATTR{type}=="1", KERNEL=="eth*", NAME="eth?"
Note that you might have "rndis" instead of "eth" above and there should be no line breaks after "SUBSYSTEM". Add `, RUN+="/sbin/rcSuSEfirewall2 restart"` at the end of the line. The two lines should look like this now:
# USB device 0x????:0x???? (rndis_host)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="??:??:??:??:??:??", ATTR{type}=="1", KERNEL=="eth*", NAME="eth?", RUN+="/sbin/rcSuSEfirewall2 restart"
Now the firewall setup will be restarted each time the device is plugged in, and you don't need to worry about doing it manually and replugging your device.
| This procedure was tested on 11.0 |
If you run NetworkManager, it will interfere with your connection, causing you to lose your internet connection whenever you connect your device. Try the following:
- Create a file (as root) in /etc/sysconfig/network titled ifcfg-%name of your device's interface%
- Add the following to it:
BOOTPROTO='dhcp' BROADCAST= ETHTOOL_OPTIONS= IPADDR= MTU= NETMASK= NETWORK= REMOTE_IPADDR= STARTMODE='auto' USERCONTROL='no' NM_CONTROLLED='no' DHCLIENT_MODIFY_RESOLV_CONF='no'
This should prevent NetworkManager from attempting to take over the interface.
Sync-Engine
The best way to solve problems in sync-engine, the SynCE to OpenSync syncing program, is to post the output of sync-engine to the synce-users mailing list with a description of your problem. This especially applies if you are experiencing problems with the actual data being synchronized, not the connection.
Where is the logfile? Try this:
ps aux | grep sync-engine
Will show you something like
/usr/bin/python /usr/bin/sync-engine --detached --logfile=~/.synce/sync-engine.log --once
Which shows you the logfile is in /home/%your username%/.synce/sync-engine.log.
For More Information
Visit the SynCE Homepage.
The openSUSE-specific page is at [1].
Join the SynCE Users Mailing List and ask questions. Most get answered very quickly and helpfully!
Visit #synce on irc.freenode.net, where several of the developers hang out.
Join in the OBS project at system:SynCE.
The older version of the page which detailed a method of building everything from source is available at Synce/Archive.




