[dbus]How to verify the capability of dbus IPC between machines
yinxiaobiao at gmail.com
Tue Nov 29 00:34:45 PST 2011
Add os and dbus version
Local PC:ubuntu 10.04 D-Bus Daemon version 1.2.6
Remote PC:ubuntu 11.04 D-Bus Daemon version 1.4.6
在 2011年11月29日 下午12:58，yinxb <yinxiaobiao at gmail.com> 写道：
> In addition,dbus-monitor in the remote PC cannot find any info related
> the dbus-send.
> 在 2011年11月29日 上午10:38，yinxb <yinxiaobiao at gmail.com> 写道：
>> Hi Thiago Macieira and Pavel
>> Thanks for your reply.
>> As metioned in your mail,I did the following steps:
>> 1.Romote PC:
>> Config /etc/dbus-1/system.conf.
>> Add listen tcp:host=0.0.0.0,port=12434
>> 2.Local PC:
>> dbus-send --address=tcp:host=xx.xxx.xx.116,port=12434 --print-reply
>> after that,I got the following message:
>> Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply.
>> Possible causes include: the remote application did not send a reply,
>> the message bus security policy blocked the reply, the reply timeout
>> expired, or the network connection was broken.
>> Can you figure out what is missing or wrong with my steps?
>> telnet can connect the remote PC (xx.xxx.xx.116).
>> 2011/11/29 Thiago Macieira <thiago at kde.org>:
>>> On Monday, 28 de November de 2011 15.59.42, 尹YinXiaobiao wrote:
>>>> Hi all
>>>> I am a newbie at Dbus and this is my first mail in this maillist.
>>>> By some investigate and look at the source code,I know that dbus
>>>> is using socket(tcp & unix domain socket) to transfer data.
>>>> So it is possible for communication between two machines(or VM).
>>> Right, it's possible.
>>>> Now my question is how to vevify this capability by dbus-send command.
>>>> Can anyone give me a hint?
>>> Just send the message you want to send. You know the address of the bus server
>>> to connect to, so pass it in the --address= option. You know that address
>>> because you configured the other machine with it.
>>>> Someone tell me that dbus do not listen on TCP by default,how to
>>>> enable TCP listen?
>>> Create your own config file and change the <listen> directive to be on TCP.
>>> Remember: D-Bus TCP is unauthenticated an unencrypted. It accepts connections
>>> from anywhere and trusts it blindly.
>>> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>>> Software Architect - Intel Open Source Technology Center
>>> PGP/GPG: 0x6EF45358; fingerprint:
>>> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
>>> dbus mailing list
>>> dbus at lists.freedesktop.org
More information about the dbus