ipmsg on openSUSE 11.1

ipmsg on openSUSE 11.1
^^^^^^^^^^^^^^^^^^^^^^^
- 作者:臭豆腐[trydofor.com]
- 日期:2009-01-13
- 授权:署名-非商业-保持一致 1.0 协议
- 声明:拷贝、分发、呈现和表演本作品,请保留以上全部信息。

0. 文档目录
^^^^^^^^^^
[[<=$INDEX]]

1. 安装飞鸽
^^^^^^^^^^
下载最新版 g2ipmsg-0.9.6.tar.gz http://www.ipmsg.org/index.html.en

=================== tty: make install =======================
trydofor@linux-m6gc:~/Desktop> cd /usr/local/src/
trydofor@linux-m6gc:/usr/local/src> tar -xzf g2ipmsg-0.9.6.tar.gz
trydofor@linux-m6gc:/usr/local/src> ll
>total 520
>drwxr-xr-x 8 trydofor users 4096 2009-01-13 13:55 g2ipmsg-0.9.6
>-rw-r--r-- 1 trydofor users 521263 2009-01-13 13:52 g2ipmsg-0.9.6.tar.gz
trydofor@linux-m6gc:/usr/local/src> cd g2ipmsg-0.9.6
./configure --enable-systray --with-ext-charcode=UTF-8
make
sudo make insatll
g2ipmsg
>
>(g2ipmsg:27370): GStreamer-WARNING **: Failed to load plugin
>'/usr/lib/gstreamer-0.10/libgstcacasink.so': /usr/lib/gstreamer-0.10/
>libgstcacasink.so: undefined symbol: caca_dither_bitmap
# 不影响使用,不用管这个警告.
# 在桌面建立快速启动
trydofor@linux-m6gc:~/Desktop> cat IPMSG.desktop
>[Desktop Entry]
>Version=1.0
>Encoding=UTF-8
>Name=IPMSG
>Type=Application
>Terminal=false
>Icon[en_US]=gnome-panel-launcher
>Name[en_US]=IPMSG
>Exec=/usr/local/bin/g2ipmsg
>Icon=/usr/local/share/pixmaps/ipmsg.png
=============================================================

2. 设置防火墙
^^^^^^^^^^^^
系统默认防火墙是打开的,所以启动Ipmsg后,窗口里没有用户,是被防火墙拦截的原因.
Ipmsg的端口是 2425 TCP/UDP 在防火墙里允许其访问 ,
Yast>firewall>AllowedServices>Advanced..
=========================== tty:iptables ======================
linux-m6gc:~ # cat /etc/services |grep 2425
>fjitsuappmgr 2425/tcp # Fujitsu App Manager
>fjitsuappmgr 2425/udp # Fujitsu App Manager
linux-m6gc:~ # iptables -L | grep fjitsuappmgr
>ACCEPT tcp -- anywhere anywhere tcp dpt:fjitsuappmgr
>ACCEPT udp -- anywhere anywhere udp dpt:fjitsuappmgr
===============================================================
这时,打开ipmsg,刷新用户列表,就可以看到用户了.

3. 设置编码
^^^^^^^^^^
可能刷新ipmsg用户的时候,会出现n多以下错误
.....................................
FileName:userdb.c
Function:fill_user_info_with_message
Line:278
Can not convert message from 10.4.5.98
into ineternal representation
.....................................

恭喜你,说明你的用户群里,有中文用户名,
在g2ipmsg-0.9.5中,需要vi src/codeset.c 来搞定,即,
#define IPMSG_PROTO_CODE IPMSG_EXTERNAL_CHARCODE
改为
#define IPMSG_PROTO_CODE “CP936”
但在g2ipmsg-0.9.6中,不需要修改任何东西,作者已经做好了,
我们要做的就是打开ipmsg窗口,在setting>preferences>
External representation of IPMSG character code
里选择"CP936",然后"YES",再刷新用户列表,问题就搞定了.

原始地址[url]http://www.trydofor.com/a9w3-auhome/trydofor/article/2009/0113075318/body.htm[/url]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值