LTSP 客户端通过进化同步黑莓地址簿和日历

map*_*ap7 7 sync evolution blackberry ltsp

我正在尝试在 LTSP 客户端上设置与 Evolution 的黑莓同步。它在服务器上工作。

我在服务器上使用 Ubuntu 10.04 64 位,以下是我为使服务器正常工作而遵循的说明:

  1. 安装所需的同步包
    $ sudo apt-get install libopensync0 multisync-tools libbarry0 opensync-plugin-evolution opensync-plugin-barry
    $ msynctool --addgroup BB
    $ msynctool --addmember BB barry-sync
    $ msynctool --addmember BB evo2-sync
    $ msynctool --showgroup BB
  1. 在手机上找到 PIN 码并将其输入到配置中
   $ msynctool --configure BB 1
  1. 同步
   $ msynctool --sync BB

这一切都有效,但它不好,因为用户登录到他们的瘦客户端而不是服务器。

在客户端上运行相同的步骤我收到错误::同步组“BBtofile”:无法连接:同步时出错:无法打开 fifo

起初我以为这是 USB 问题,因为我将设备插入客户端并使用服务器端程序。所以我将以下内容安装到我的瘦客户端映像中,重建它并重新启动客户端:

$ sudo apt-get install libopensync0 multisync-tools libbarry0 
opensync-plugin-evolution opensync-plugin-barry barry-util multisync0.90
Run Code Online (Sandbox Code Playgroud)

在重新启动后的客户端上,我尝试了以下命令

$ ltsp-localapps xterm
Run Code Online (Sandbox Code Playgroud)

在 xterm 中

$ msynctool --sync BB
Run Code Online (Sandbox Code Playgroud)

我犯了同样的错误!

所以我尝试了 btool

$ btool -M
Run Code Online (Sandbox Code Playgroud)

btool 显示来自黑莓的 ContactLdif 映射信息,因此它正在查看设备。

如果我拔下设备并输入 btool -M 它会告诉我“找不到设备”

以下是我在客户端上尝试同步时得到的两个调试日志:

线程3078059712-6396.log

...
[1327296051.50333] >>>>>>>  osync_member_load(0x9ea8480, 
/home/dean/.opensync-0.22/group2/2, 0xbfb7c50c)
[1327296051.52517] <<<<<<<  osync_member_load: Loaded member: 0x9e9d298
[1327296051.53929] <<<<<<<  osync_group_load
[1327296051.55233]        +++++++++ This is the client #1 (barry-sync 
plugin) of group test
[1327296051.56548] >>>>>>>  
osync_queue_new(/home/dean/.opensync-0.22/group2/1/pluginpipe, 0xbfb7c50c)
[1327296051.57914] <<<<<<<  osync_queue_new: 0x9e9cda0
[1327296051.60535] <--- ERROR --- main: Unable to connect
Run Code Online (Sandbox Code Playgroud)

线程3079096000-6395.log

...
osync_queue_new(/home/dean/.opensync-0.22/group2/2/enginepipe, 0xbf8bdd08)
[1327296050.887129] <<<<<<<  osync_queue_new: 0x84250c8
[1327296050.888562] <<<<<<<  osync_client_new: 0x8424dc8
[1327296050.890041] >>>>>>>  osengine_mappingtable_new(0x8424500)
[1327296050.891511]            osengine_mappingview_new(0x8425508)
[1327296050.892941]            osengine_mappingview_new(0x8424a78)
[1327296050.894376] <<<<<<<  osengine_mappingtable_new: 0x8425678
[1327296050.895807] <<<<<<<  osengine_new: 0x8424500
[1327296050.897254] >>>>>>>  osengine_init(0x8424500, 0xbf8bdd08)
[1327296050.898717] >>>>>>>  osync_group_lock(0x8420268)
[1327296050.900192]            [GRP] FULL DEBUG: locking file 
/home/dean/.opensync-0.22/group2/lock
[1327296050.904136]            [GRP] FULL DEBUG: Successfully locked
[1327296050.905556] <<<<<<<  osync_group_lock: OSYNC_LOCK_OK
[1327296050.906992]        Spawning clients
[1327296050.909177] >>>>>>>  osync_client_spawn(0x84255e0, 0x8424500, 
0xbf8bdd08)
[1327296050.918226]            Waiting for other side to create fifo
[1327296051.921123]            Waiting for other side to create fifo
[1327296052.924263]            Waiting for other side to create fifo
[1327296053.927407]            Waiting for other side to create fifo
[1327296054.930439]            Waiting for other side to create fifo
[1327296055.933628]            Waiting for other side to create fifo
[1327296056.936901]            Queue was created
*[1327296056.944148] <--- ERROR --- osync_client_spawn: Unable to open fifo
*[1327296056.945649]        [GRP] FULL DEBUG: unlocking group test
[1327296056.947855] <--- ERROR --- osengine_init: Unable to open fifo
[1327296056.949077] >>>>>>>  osengine_free(0x8424500)
[1327296056.950923] >>>>>>>  osync_client_free(0x84255e0)
[1327296056.952270] >>>>>>>  osync_queue_free(0x8424a28)
[1327296056.953582] <<<<<<<  osync_queue_free
[1327296056.954644] >>>>>>>  osync_queue_free(0x8424bc8)
[1327296056.956703] <<<<<<<  osync_queue_free
[1327296056.958002] <<<<<<<  osync_client_free
[1327296056.959311] >>>>>>>  osync_client_free(0x8424dc8)
[1327296056.960621] >>>>>>>  osync_queue_free(0x8424f28)
[1327296056.961947] <<<<<<<  osync_queue_free
[1327296056.963243] >>>>>>>  osync_queue_free(0x84250c8)
[1327296056.964282] <<<<<<<  osync_queue_free
[1327296056.965580] <<<<<<<  osync_client_free
[1327296056.966891] >>>>>>>  osengine_mappingtable_free(0x8425678)
[1327296056.968179]            Free mappings
[1327296056.969471]            Free unmapped
[1327296056.970866]            osengine_mappingview_free(0x8425508)
[1327296056.972018]            osengine_mappingview_free(0x8424a78)
[1327296056.973320] <<<<<<<  osengine_mappingtable_free
[1327296056.974651] <<<<<<<  osengine_free
[1327296056.975972] >>>>>>>  osync_env_finalize(0x841d008, 0xbf8be19c)
[1327296056.977317]        osync_plugin_free(0x84299e0)
[1327296056.978690]        osync_plugin_free(0x8435ce8)
[1327296056.980100]        osync_plugin_free(0x8436540)
[1327296056.981443]        osync_module_unload(0x841d008, 0x84298c0)
[1327296056.982661]        osync_module_unload(0x841d008, 0x8429840)
[1327296056.983849]        osync_module_unload(0x841d008, 0x8436120)
[1327296056.984954]        osync_module_unload(0x841d008, 0x8436a20)
[1327296056.986264]        osync_module_unload(0x841d008, 0x8436c98)
[1327296056.987456]        osync_module_unload(0x841d008, 0x8437160)
[1327296056.988763]        osync_module_unload(0x841d008, 0x8437708)
[1327296056.990114]        osync_module_unload(0x841d008, 0x8437f20)
[1327296056.991470]        osync_module_unload(0x841d008, 0x8437f60)
[1327296056.992781]        osync_module_unload(0x841d008, 0x8438a90)
[1327296056.994129]        osync_module_unload(0x841d008, 0x84397c8)
[1327296056.995480]        osync_module_unload(0x841d008, 0x8439d60)
[1327296056.996832]        osync_module_unload(0x841d008, 0x843a398)
[1327296056.998142]        osync_module_unload(0x841d008, 0x843a3e0)
[1327296056.999456]        osync_module_unload(0x841d008, 0x843a8a8)
[1327296057.869] <<<<<<<  osync_env_finalize
Run Code Online (Sandbox Code Playgroud)

所以我很接近,但我不知道为什么我无法同步工作。

小智 1

我认为不可能通过网络打开 FIFO。您的 LTSP 客户端可以创建到手机的 FIFO 管道,但它无法在服务器中创建 FIFO。

我实在想不出一个简单的解决方案。如果可能的话,也许您可​​以将数据转储到客户端上(如果它是无硬盘的,则设置一个 ram 磁盘,或使用 LTSP 客户端创建的磁盘)。之后,导入/导出到进化。这可能很困难,也可能很容易,具体取决于您可以发送到此同步软件的标志。但是,您将需要一些脚本来方便您的用户。

进一步阅读:

http://linux.about.com/library/cmd/blcmdl4_fifo.htm

https://beej.us/guide/bgipc/html/single/bgipc.html#fifos