网站首页 | 下载中心 | FTP中心


 
标题: [教程] 系統设置信息備份、恢復及聯系人、行事歷等同步之Linux版
larryweiliu (Leo)
新手上路
Rank: 1


UID 152835
精华 0
积分 10
帖子 5
金币 3
阅读权限 10
注册 2008-2-20
移动设备型号  7100v
状态 离线
发表于 2008-2-22 18:10  资料  短消息  加为好友 
系統设置信息備份、恢復及聯系人、行事歷等同步之Linux版

BB有Win和Mac驅動,卻不官方支援Linux,這讓使用Linux的我很犯難。雖然自己的BB是在Win下重灌的,但手頭又經常沒有第二台Win機器,備份、恢復系統設置信息以及同步聯系人、行事歷、備忘錄、事項等非常不方便。今天有些空閑,花了些時間研究了一下,發現集合幾個開源軟體就可以很方便地在Linux下實現上述功能。

測試PC平台:Ubuntu Linux 7.10
測試BB平台:7100v 4.1.0.377
使用軟體:OpenSyncBarry

一、軟體安裝

首先安裝OpenSync。在它的官網上還沒有提供對Gutsy Gibbon的支援,但是可以使用Feisty Fawn替代。編輯/etc/apt/sources.list,加入下面兩行。

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

在shell中運行下面命令以加入key。

gpg --keyserver hkp://subkeys.pgp.net/ --recv-keys CB210090B029CB84
gpg --export CB210090B029CB84 | sudo apt-key add -

然後就可以根據官網上的清單選擇安裝包了。其中libopensync0和msynctool必裝。建議安裝下面幾個包。

libopensync-plugin-evolution2 和Evolution同步
libopensync-plugin-file 同步到文件中
libopensync-plugin-google-calendar 和Google Calendar同步
libopensync-plugin-sunbird 和Sunbird同步
multisync-gui OpenSync的圖形界面

其次安裝Barry。Barry官網上有提供給Ubuntu Linux 7.10的deb包。下載并按次序安裝以下四個包。

libbarry_0.11-1_ubuntu710_i386.deb
barry-util_0.11-1_ubuntu710_i386.deb
barrybackup-gui_0.11-1_i386.deb
libopensync-plugin-barry_0.11-1_ubuntu710_i386.deb

二、工具

btool是shell下的程式,可以用來訪問BB。基本參數可以看man,也可在shell中使用btool -h來調出簡化版本的參數介紹。

譬如btool -l可以顯示連接的BB信息。

譬如btool -S可以顯示支援的db parser。

譬如btool -t可以顯示db列表,即可以備份和恢復的db。下面是我的BB連接到電腦後使用btool -t顯示的db。

Database database:
    Database: 0x0 'Content Store' (records: 23)
    Database: 0x1 'Service Book' (records: 1)
    Database: 0x2 'Trusted Key Store' (records: 46)
    Database: 0x3 'AutoText' (records: 108)
    Database: 0x4 'Default Service Selector' (records: 2)
    Database: 0x5 'Handheld Key Store' (records: 67)
    Database: 0x6 'Handheld Configuration' (records: 0)
    Database: 0x7 'Handheld Agent' (records: 195)
    Database: 0x8 'KeyStoreManager' (records: 1)
    Database: 0x9 'Firewall Options' (records: 1)
    Database: 0xa 'Policy' (records: 1)
    Database: 0xb 'Device Options' (records: 0)
    Database: 0xc 'Options' (records: 9)
    Database: 0xd 'Key Store Options' (records: 1)
    Database: 0xe 'Application Permissions' (records: 1)
    Database: 0xf 'RMS Databases' (records: 11)
    Database: 0x10 'TLS Options' (records: 1)
    Database: 0x11 'Certificate Options' (records: 0)
    Database: 0x12 'Smart Card Options' (records: 1)
    Database: 0x13 'Random Pool' (records: 1)
    Database: 0x14 'WTLS Options' (records: 1)
    Database: 0x15 'Input Method Switcher Option' (records: 1)
    Database: 0x16 'MemoPad Options' (records: 1)
    Database: 0x17 'Memos' (records: 2)
    Database: 0x18 'Memory Cleaner Options' (records: 1)
    Database: 0x19 'Browser Bookmarks' (records: 1)
    Database: 0x1a 'Browser Messages' (records: 0)
    Database: 0x1b 'Browser Data Cache' (records: 0)
    Database: 0x1c 'Browser Channels' (records: 0)
    Database: 0x1d 'Browser Folders' (records: 2)
    Database: 0x1e 'Browser Options' (records: 1)
    Database: 0x1f 'WAP Push Messages' (records: 0)
    Database: 0x20 'Browser Urls' (records: 2)
    Database: 0x21 'Profiles Options' (records: 1)
    Database: 0x22 'Profiles' (records: 6)
    Database: 0x23 'Categories' (records: 2)
    Database: 0x24 'Message List Options' (records: 1)
    Database: 0x25 'Calendar Options' (records: 1)
    Database: 0x26 'Suretype options' (records: 1)
    Database: 0x27 'CustomWordsCollection' (records: 52)
    Database: 0x28 'Alarm Options' (records: 1)
    Database: 0x29 'Messages' (records: 0)
    Database: 0x2a 'PIN Messages' (records: 0)
    Database: 0x2b 'Saved Email Messages' (records: 0)
    Database: 0x2c 'Ribbon Bar Positions' (records: 1)
    Database: 0x2d 'Phone Options' (records: 1)
    Database: 0x2e 'Calendar' (records: 0)
    Database: 0x2f 'Address Book Options' (records: 1)
    Database: 0x30 'Address Book' (records: 29)
    Database: 0x31 'Folder Id' (records: 1)
    Database: 0x32 'Folders' (records: 0)
    Database: 0x33 'Purged Messages' (records: 0)
    Database: 0x34 'SMS Messages' (records: 7)
    Database: 0x35 'Recipient Cache' (records: 1)
    Database: 0x36 'Searches' (records: 5)
    Database: 0x37 'Phone Call Logs' (records: 11)
    Database: 0x38 'Phone Hotlist' (records: 9)
    Database: 0x39 'Attachment Options' (records: 1)
    Database: 0x3a 'Attachment Data' (records: 0)
    Database: 0x3b 'Browser Push Options' (records: 1)
    Database: 0x3c 'MMS Options' (records: 1)
    Database: 0x3d 'MMS Messages' (records: 1)
    Database: 0x3e 'Quick Contacts' (records: 2)

另外,在操作btool的過程當中,BB上可能出現下面提示框。不用擔心,無視就可以了,因為在使用btool後USB口電力已經足夠給BB充電了。

如需要進一步確認,可使用bcharge命令。


在shell或者alt-f2中輸入barrybackup可以啟動備份和恢復工具。工具啟動後會獲取BB的PIN碼,同時BB會顯示與電腦連接。

可在Edit->Config...中設置需要備份或恢復的db。

點擊Restore後會彈出窗口選擇備份文件恢復。


點擊Applications->Accessories->Multisync-gui來啟動同步程式。點擊Add建立一個組,組的名字可以自定。

點擊Edit->Add Member來添加同步的對象。譬如我想將BB和Evolution同步,就添加了barry-sync和evo2-sync。

在同步前需要設置barry-sync參數。點擊barry-sync來更改參數。


Device 這裏填寫BB的PIN碼 是否同步行事歷 是否同步聯系人

其中,1代表是,0代表否。然後就可以點擊Refresh同步了。

三、其他

BB和Evolution同步:聯系人同步沒有問題。行事歷同步雙方都不能識別對方的重復事件、附言以及提醒設置。
BB和Google Calendar同步:如果GCal上有重復事件,則不能同步成功。可直接將ics下來,導入Evolution與BB同步;或者直接在Evolution上添加在線Cal和BB同步;或者用BB和Sunbird同步。
BB和Sunbird同步:沒有嘗試更多的參數,只實驗了<file path='path-to-calendar' />,沒有問題,但同樣不識別重復事件。

[ 本帖最后由 larryweiliu 于 2008-2-24 14:29 编辑 ]


本帖最近评分记录
斗战胜佛   2008-2-22 18:29  积分  +3   辛苦了
斗战胜佛   2008-2-22 18:29  金币  +3   辛苦了
顶部
zwf2002
中级会员
Rank: 3Rank: 3



UID 31223
精华 0
积分 321
帖子 265
金币 3
阅读权限 30
注册 2007-1-11
移动设备型号  7130
状态 离线
发表于 2008-2-22 18:13  资料  短消息  加为好友 
支持一下用linux的

顶部
淘宝黑莓5钻消保先行赔付旗舰店-打造专业黑莓新机一手货源、大家购机更放心、
斗战胜佛 (黑莓专卖)
超级版主
Rank: 8Rank: 8
专卖黑莓


UID 29
精华 53
积分 43744
帖子 35029
金币 62
阅读权限 255
注册 2006-2-27
移动设备型号  palm 黑莓
来自 深圳
状态 离线
发表于 2008-2-22 18:25  资料  主页 短消息  加为好友  添加 斗战胜佛 为MSN好友 通过MSN和 斗战胜佛 交谈 QQ
也来支持一下子 呵呵





买黑莓 用palm 找老佛   店铺不记得?百度 google来搜索  俺是“随身秀” http://shop33192649.taobao.com    黑莓8310 ¥1480;8800 ¥1280。。8100 8110 8820 8320 现货发售 手机:13510832248  0755-21814250  QQ:113588035
顶部
mktsyy
铜牌会员
Rank: 5Rank: 5


UID 6114
精华 0
积分 2311
帖子 2042
金币 0
阅读权限 200
注册 2006-7-4
移动设备型号  “莓友”
来自 上海
状态 离线
发表于 2008-2-22 23:23  资料  短消息  加为好友 
高人,mark待查

顶部
深圳实店9新黑莓7730=超低178元 超大屏幕 看电子书超
sean
铜牌会员
Rank: 5Rank: 5
If you are so smart,


UID 11914
精华 1
积分 1646
帖子 1352
金币 14
阅读权限 200
注册 2006-9-9
移动设备型号  8100T
状态 离线
发表于 2008-2-22 23:34  资料  短消息  加为好友 
路过,好帖,帮顶





*The Triple Threat - Smoking, Drinking and CrackBerrying*
顶部
bingmou (冰眸)
中级会员
Rank: 3Rank: 3



UID 91601
精华 0
积分 427
帖子 354
金币 3
阅读权限 30
注册 2007-9-11
移动设备型号  BB 7130g
状态 离线
发表于 2008-2-23 10:48  资料  短消息  加为好友 
在备份的时候RMS database可以备份吗?

顶部
深圳实店9新黑莓7730=超低178元 超大屏幕 看电子书超
wis (J-Ho)
铜牌会员
Rank: 5Rank: 5
庸俗而不装逼


UID 74461
精华 0
积分 2084
帖子 1681
金币 13
阅读权限 200
注册 2007-7-7
移动设备型号  7290 8100
来自 长安
状态 离线
发表于 2008-2-23 11:02  资料  主页 短消息  加为好友 
终于等到了
我也用GUSTY!

软件在LINUX下怎么装啊?





BBer · 莓博 BBer.info 手机访问:wap.bber.info
顶部
ahtian928
铜牌会员
Rank: 5Rank: 5



UID 4023
精华 0
积分 1688
帖子 1325
金币 0
阅读权限 200
注册 2006-5-27
移动设备型号  BB8700v
状态 离线
发表于 2008-2-23 11:52  资料  短消息  加为好友 
楼主强人  mark备用





BB8700V QQ: 337482359; MSN:ahtian928@hotmail.com
顶部
centro黑色全新三码合一仅需2380,提及maxpda更优惠
larryweiliu (Leo)
新手上路
Rank: 1


UID 152835
精华 0
积分 10
帖子 5
金币 3
阅读权限 10
注册 2008-2-20
移动设备型号  7100v
状态 离线
发表于 2008-2-23 12:14  资料  短消息  加为好友 


QUOTE:
原帖由 bingmou 于 2008-2-23 10:48 发表
在备份的时候RMS database可以备份吗?

可以的。

顶部
larryweiliu (Leo)
新手上路
Rank: 1


UID 152835
精华 0
积分 10
帖子 5
金币 3
阅读权限 10
注册 2008-2-20
移动设备型号  7100v
状态 离线
发表于 2008-2-23 12:15  资料  短消息  加为好友 


QUOTE:
原帖由 wis 于 2008-2-23 11:02 发表
终于等到了
我也用GUSTY!

软件在LINUX下怎么装啊?

從repository安裝使用命令sudo apt-get install 包的名字
安裝deb包圖形界面下只需要雙擊然後選擇安裝就好了

顶部
centro黑色全新三码合一仅需2380,提及maxpda更优惠
 

 



关于本站 | 版权声明 | 网站地图 | 友情连接 | 联系我们 | 广告服务|
Copyright 2005-2008 WWW.MAXPDA.COM All rights reserved.

当前时区 GMT+8, 现在时间是 2008-11-23 08:48
粤ICP备07002221号


    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
Processed in 0.028920 second(s), 8 queries , Gzip enabled

清除 Cookies - 联系我们 - MAXPDA - Archiver - WAP