[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-dbus
Subject: Re: [Connect to remote system bus]
From: Krzysztof Konopko <krzysztof.konopko () gmail ! com>
Date: 2013-03-15 8:00:01
Message-ID: CAPq8Ph_x1qAHSRBkOQ2Vm0B_bDHkCT3WjM7QcvYO4E21zRPZNw () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi Krisztian,
You can connect to a remote bus over TCP. This requires that you configure
the bus on your embedded system by adding the following to the
configuration file (I chose port 5000):
cat <<-EOF > /etc/dbus-1/system.d/tcp.conf
<busconfig>
<listen>tcp:host=localhost,bind=*,port=5000</listen>
</busconfig>
EOF
and then after rebooting your embedded system, on your desktop you
refer to it with the following address:
DBUS_SYSTEM_BUS_ADDRESS="tcp:host=<ip address>,port=5000"
If you want to run dbus-monitor, it'd look like this:
dbus-monitor --address "tcp:host=<ip address>,port=5000"
I'm writing off top of my head so you might want to take it as a hint only.
Hope this helps,
Kris
2013/3/14 Krisztian Kocsis <krisztian.kocsis@optimaster.eu>
> Dear All!
>
> Is there any way to connect to the system message bus on an other machine
> running D-Bus (an embedded which does not have sessions)?
> If yes can anybody give me some start points how to get it working?
>
> Thanks for the help!
>
> BR,
> Krisztian Kocsis
>
> ______________________________**_________________
> dbus mailing list
> dbus@lists.freedesktop.org
> http://lists.freedesktop.org/**mailman/listinfo/dbus<http://lists.freedesktop.org/mailman/listinfo/dbus>
>
[Attachment #5 (text/html)]
<div dir="ltr">Hi Krisztian,<div><br></div><div style>You can connect to a remote bus \
over TCP. This requires that you configure the bus on your embedded system by adding \
the following to the configuration file (I chose port 5000):</div> <div style>cat \
<<-EOF > /etc/dbus-1/system.d/tcp.conf</div><div style><pre \
class=""><busconfig> \
<listen>tcp:host=localhost,bind=*,port=5000</listen> \
</busconfig></pre><pre class="" style>EOF</pre><pre class="" \
style><br></pre><pre class="" style>and then after rebooting your embedded system, on \
your desktop you refer to it with the following address:</pre><pre class="" style> \
<pre class="">DBUS_SYSTEM_BUS_ADDRESS=<span class="">"tcp:host=<ip \
address>,port=5000"</span></pre><pre class=""><span \
class=""><br></span></pre><pre class="" style><span class="">If you want to run \
dbus-monitor, it'd look like this:</span></pre> <pre class="" style><span \
class="">dbus-monitor --address </span><span \
style="font-family:arial">"tcp:host=<ip \
address>,port=5000"</span></pre><pre class="" style><span \
style="font-family:arial"><br></span></pre> <pre class="" style><span \
style="font-family:arial">I'm writing off top of my head so you might want to \
take it as a hint only.</span></pre><pre class="" style><span \
style="font-family:arial"><br></span></pre><pre class="" style> <span \
style="font-family:arial">Hope this helps,</span></pre><pre class="" style><span \
style="font-family:arial">Kris</span></pre></pre></div></div><div \
class="gmail_extra"><br><br><div class="gmail_quote">2013/3/14 Krisztian Kocsis <span \
dir="ltr"><<a href="mailto:krisztian.kocsis@optimaster.eu" \
target="_blank">krisztian.kocsis@optimaster.eu</a>></span><br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Dear All!<br> <br>
Is there any way to connect to the system message bus on an other machine running \
D-Bus (an embedded which does not have sessions)?<br> If yes can anybody give me some \
start points how to get it working?<br> <br>
Thanks for the help!<br>
<br>
BR,<br>
Krisztian Kocsis<br>
<br>
______________________________<u></u>_________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org" \
target="_blank">dbus@lists.freedesktop.org</a><br> <a \
href="http://lists.freedesktop.org/mailman/listinfo/dbus" \
target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/dbus</a><br> \
</blockquote></div><br></div>
_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic