使用SynCE在Ubuntu 8.04上实现PPC同步


今年迷上了Ubuntu,但由于自已使用的PPC手机不能与Ubuntu同步,所以一直徘徊在Windows和Ubuntu之间。。。这几天在网上狂找资料,终于在SynCE官方网站找到同步的方法,并经过尝试可顺利实现。

环境要求

Ubuntu 8.04 LTS (Hardy Heron)

Windows Mobile 5/6/6.1 设备(如果你正在使用wm2002/2003,请不要继续往下)

Note: 如果你使用的是wm5或更新版本,请设置成使用RNDIS:

WM5: Microsoft doesn't supply a program to change the behaviour, but it is set by default to RNDIS. In case of problems, check for the existence of a program regarding USB settings on your device (some vendors supply a third-party tool with the device for this).

WM6: 进入 开始 -> 设置 -> 连接 -> USB,勾上“ Enable enhanced network functionality ”.

USB线缆 (本文不支持通过蓝牙方式连接)

Important note: When you have enabled KDE4 PPA's in ubuntu, there is a big chance things will not work for you with opensync part for the actual syncing. The reason for this is that in those repositories, KDE4 depends on an experimental version of opensync which is not backwards compatible.

在Ubuntu中添加第三方软件源

到系统( System) -> 系统管理(Administration) -> 软件源(Software Sources)

点击“第三方软件”(Third Party software)

点击“添加”...

粘贴下行:

deb http://ppa.launchpad.net/synce/ubuntu hardy main

点击关闭。

点击更新。

高级用户可以直接编辑配置文件(/etc/apt/sources.list ),加入下面两行并在终端中运行“ sudo apt-get update”:

deb http://ppa.launchpad.net/synce/ubuntu hardy main

deb-src http://ppa.launchpad.net/synce/ubuntu hardy main

SynCE for Windows Mobile 5/6

内核(适用内核版本

注意: 如内核版本为或高于2.6.24-19 ,应跳过本步骤。

获取USB驱动(这步必须完成)---包含一些不存在于内核的重要fix。

卸载当前模块:

sudo rmmod rndis_host cdc_ether usbnet

现在我们必须删除旧驱动,以便下次内核不会重新装载它:

sudo rm /lib/modules/`uname -r`/kernel/drivers/net/usb/{rndis_host,cdc_ether,usbnet}.ko

接着,我们获取并编译新驱动:

sudo apt-get install usb-rndis-source cdbs

sudo module-assistant auto-install usb-rndis

核心库(Core libraries)

获取核心库:

sudo apt-get install synce-hal librra0-tools librapi2-tools

连接你的PPC和ubuntu并运行:

synce-pls

如果能看到你设备上的文件列表,那么恭喜你,你已经成功连接至你的设备。

使用OpenSync同步

为了正常同步设备,你必须使用 OpenSync. 获取opensync相关软件及插件:

sudo apt-get install multisync-tools opensync-plugin-evolution opensync-plugin-synce

KDE 用户可以用opensync-plugin-kdepim使用evolution2 插件. 而Thunderbird任何稳定的opensync版本支持。

直到现在,你已经在ubuntu上安装了所有必须的软件及插件。接着,我们将要配置SyncEngine及OpenSync

运行sync-engine(Have sync-engine running)

在终端里运行下面命令运行sync-engine(Ubuntu Hardy):

$ synce-sync-engine

注:你也可以使用命令“synce-sync-engine&”,以便让sync-engine在后台运行。

如果出现以下错误提示:

File "/usr/bin/sync-engine", line 84, in

    configObj = Config.Config(progopts)

  File "/usr/lib/python2.5/site-packages/SyncEngine/config.py", line 292, in __init__

    oldconf = os.path.join(self.path,"config.xml")

AttributeError: Config instance has no attribute 'path'

  • 1
  • 2
  • 下一页

相关内容