Synchronize with windowsmobile5 mobile phones in linux

Source: Internet
Author: User
Tags dmesg kontact
Complete synchronization between linux and windowsmobile5 mobile phones-Linux Enterprise Application-Linux server application information. The following is a detailed description. The steps are cumbersome (too many things are needed ). My mobile phone is 577 W, and the system is windows mobile 5 smartphone. Synce is used, and the opensync synchronization framework is indispensable. The specific process is as follows (it may not be very complete. Some steps have been completed a long time ago and may be omitted .) :

1. Install synce (from tarball and SVN)
The installation process is similar to compiling and installing other software./configure, make, and make install.

Several packages are required:

Synce-libsynce-0.10.0.tar.gz
Synce-librapi2-0.10.0.tar.gz
Synce-odccm-0.10.0.tar.gz
Synce-gnome-0.10.0.tar.gz (it seems not necessary, I didn't install it)

The general release version comes with these software. You may not have to install it on your own. Like my archlinux, I searched pacman-Ss synce and installed them. Many ubuntu programs are used. If you are not familiar with compilation and installation, check the wiki.

2. Install the driver (wiki on the official website)
If your kernel> = 2.6.21, You need to patch the kernel.

CONFIG_USB_USBNET = m CONFIG_USB_NET_CDCETHER = m CONFIG_USB_NET_RNDIS_HOST = m can also compile them as kernel modules. Compile the kernel as usual. (God, compiling the kernel is a physical task. In fact, you don't need to re-compile the entire kernel. Compile the required modules)

Linux Kernel 2.6.21 or lower is a little troublesome. You need to download the entire driver (2.6.21 already comes with a driver). If you do not need to download it, check the official website wiki. In fact, it is not too troublesome, and it is almost the same.

After the kernel is compiled and started with the new kernel, plug in your phone. The system should be able to find your phone and add an rndis_host device. For more information, see dmesg messages. The official website says to use this command to view:
Dmesg | grep "rndis [0-9]: register" | grep "rndis_host" | tail-1
In fact, this command is not necessarily correct, because on my computer, the recognized interface is named eth1. For details, it is similar to the following:
Eth1: register 'rndis _ host' at usb-0000: 00: 10.1-2, rndis device, 80: 00: 60: 0f: e8: 00
.

It has come to an end. You can copy files to/from your mobile phone, install software on your mobile phone, and so on. Enter odccm in the terminal to start odccm, then plug in the mobile phone, and enter pls to see if you can browse the mobile phone file to test.

3. synchronization (SyncEngine synchronization)

Ladies and gentlemen, the most complex step is coming! The purpose of this step is to synchronize the mobile phone with the software in the system, such as synchronizing contacts, calendars, and so on. It is not difficult but troublesome to say that it is the most complex. Why? Because it depends on too many software! Let's take a look at the list below.

Libopensync >=0.21
Libopensync-plugin-python> = 0.21
Msynctool> = 0.21
Udev-> make sure that udev-> hald-> queue-daemon (ps aux | grep-E "hald | queue-daemon | udevd") are all running
Dependencies> = 0.60 and its python bindings (e.g. python2.4-runtime, or for Gentoo users: runtime-python)
Python2.4-gobject (note that this package should be necessary ...)
Python2.4-pyrex
Python-pyrex
Python2.4-xml
Libxml2-dev
Libxslt
Python-libxslt1
Libexpat1-dev
Python2.4-dev
Pyxml
Swig
Libsqlite3-dev (note that this package should be necessary ...)
Libmimedir0
Libmimedir-dev

Are you dizzy? I was almost dizzy. But fortunately, things are not so terrible, because, first, these packages may be required by other software, and your system has been installed; second, if your system's Package Manager is very convenient, such as my archlinux, it is actually very simple to install these things, other such as debian, gentoo, ubuntu and so on. However, you must note that the package file name may not be the same as above.

Well, let's assume that you already have the above items (it may not be all necessary. I did not check them carefully and try again when I encountered Missing errors ). So let's continue. Yes, and there are many more! We also need to install the following (required ):

Rra
Librtfcomp
Wbxml2
Pywbxml
Sync-engine
OpenSync

Haha, you are crazy. There are several ways to go in front of you: first, give up, why? Why? ActiveSync and outlook work well; second, work hard, download these packages from the official website and install them one by one (click the above list to link to the wiki on the official website to teach you how to install them ); third, check whether there are any of these items in your system package repository. If so, you can directly install apt-get install or pacman-S or emerge. If not, install them manually.

I installed it. When installing sync-engine and OpenSync, you need to install the python plug-in of synce to the plug-in directory of opensync.

Let's look at Wik. Ask me again.

Start the test after installation. Start sync-engine first. First, start a terminal and enter the sync-engine Directory:

Mkdir ~ /. Synce cp config. xml ~ /. Synce

Mkdir ~ /PDAFiles and then run. /sync-engine: Don't close it. This is a daemon process. Otherwise, add a daemon in the backend and run it in the background. Otherwise, you can keep the daemon and open another terminal, go to the tools directory under the sync-engine Directory and run. /list_partnerships.py: If you can list the existing partnerships on your mobile phone, congratulations, you are only one step away from success (what? Not yet successful !). Next, we will create a new partnership (Note: A mobile phone can only have two partnerships. If there are already two on your mobile phone, delete one ). Run the following command to create an ECS instance:

./Create_partnership.py "Linux desktop" "Contacts, Calendar" and "Linux desktop" can be any string smaller than 20 bytes. "Contacts, Calendar" is the project to be synchronized, contacts is the contact, and calendar is the Calendar. There are four projects that can be synchronized:

Contacts Calendar
Tasks

After creating the partnership, use./select_partnership.py to select which partnership to use on the mobile phone to synchronize with our linux system.

Configuration

Create an OpenSync group for synchronization and add the SynCE plug-in to the group:

Msynctool? Addgroup pda-sync

Msynctool? Addmember pda-sync synce-plugin
Evolution
Add the Evolution plug-in to the group:

Msynctool? Addmember pda-sync evo2-sync

Msynctool? Configure pda-sync 2
Kontact
Add KDE-Pim to the group:

Msynctool? Addmember pda-sync kdepim-syncEvolution and Kontact plug-ins need to be installed separately. Depending on the personal information software you use, install what you need. Both plug-ins can be found on the opensync website.

Finally, use msynctool? Sync pda-sync command to start synchronization.

In fact, when I installed this, synce was still under development step by step. Many things were not perfect yet. It was more difficult to install it than I did. However, I finally succeeded! I think there are not many people who will spend so much time installing this, especially compiling the kernel. Although it is very simple, it takes a lot of time to compile the kernel, if it weren't for me to hack my video card by the way, I guess I'm too lazy to compile the kernel. The installation steps are cumbersome, and the practicality is not very strong (if it is not a linux enthusiast, who does not install windows or outlook on the computer)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.