歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 使用SynCE在Ubuntu 8.04上實現PPC同步

使用SynCE在Ubuntu 8.04上實現PPC同步

日期:2017/2/28 16:54:51   编辑:Linux教程

今年迷上了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'

Copyright © Linux教程網 All Rights Reserved