Remote DBus

From Openmoko

Jump to: navigation, search

A new and easier way to get remote dbus is using dbus-daemon-proxy like described on the SHR blog:

There is a possibility to connect to your Freerunner DBus from remote computer via ssh. To be able to do so you need to compile and install program called Gabriel. There is a release but svn version is more advanced:

svn co gabriel

On Freerunner you need installed Socat. It will be then launched by Gabriel via ssh.

Then just run:

gabriel --host= --username=root --password= -d unix:path=/var/run/dbus/system_bus_socket

You should see something like this:

gabriel --host= --username=root --password= -d unix:path=/var/run/dbus/system_bus_socket

** (gabriel:7437): WARNING **: Public key method didn't work out, trying password method..

Listening to D-Bus clients on: "unix:abstract=/tmp/gabriel"

That's it. Now to connect to DBus on Freerunner you have to use something like this:

DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/gabriel" qdbusviewer

Remember to run this last command as root as DBus allows the access only for the same user.

More info here.

Happy hacking!

--Leonti 18:52, 5 April 2009 (UTC)

Personal tools