Remote DBus

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(New page: 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 [http://gabriel.sourceforge.net/ ...)
 
m
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
'''A new and easier way to get remote dbus is using
 +
dbus-daemon-proxy like described on the SHR blog:
 +
http://blog.shr-project.org/2010/05/howto-develop-and-debug-the-shr-phone-stack-on-your-desktop.html'''
 +
 
There is a possibility to connect to your Freerunner DBus from remote computer via ssh.
 
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 [http://gabriel.sourceforge.net/ Gabriel].
 
To be able to do so you need to compile and install program called [http://gabriel.sourceforge.net/ Gabriel].
 
There is a release but svn version is more advanced:
 
There is a release but svn version is more advanced:
 
<pre>svn co https://gabriel.svn.sourceforge.net/svnroot/gabriel gabriel</pre>
 
<pre>svn co https://gabriel.svn.sourceforge.net/svnroot/gabriel gabriel</pre>
 +
 +
On Freerunner you need installed [http://www.opkg.org/package_192.html Socat]. It will be then launched by Gabriel via ssh.
  
 
Then just run:
 
Then just run:
Line 19: Line 25:
 
<pre>DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/gabriel" qdbusviewer</pre>
 
<pre>DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/gabriel" qdbusviewer</pre>
 
Remember to run this last command as '''root''' as DBus allows the access only for the same user.
 
Remember to run this last command as '''root''' as DBus allows the access only for the same user.
 +
 +
More info [http://www.eldemonionegro.com/wordpress/archivos/2008/05/22/howto-to-intercomunicate-processes-in-differentremote-machines-through-dbus here].
  
 
Happy hacking!
 
Happy hacking!
 +
  
 
--[[User:Leonti|Leonti]] 18:52, 5 April 2009 (UTC)
 
--[[User:Leonti|Leonti]] 18:52, 5 April 2009 (UTC)
 +
 +
[[Category:Middleware]]
 +
[[Category:Application Developer]]

Latest revision as of 19:10, 14 May 2010

A new and easier way to get remote dbus is using dbus-daemon-proxy like described on the SHR blog: http://blog.shr-project.org/2010/05/howto-develop-and-debug-the-shr-phone-stack-on-your-desktop.html

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 https://gabriel.svn.sourceforge.net/svnroot/gabriel gabriel

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

Then just run:

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

You should see something like this:

gabriel --host=192.168.0.202 --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

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 https://gabriel.svn.sourceforge.net/svnroot/gabriel gabriel

Then just run:

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

You should see something like this:

gabriel --host=192.168.0.202 --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.

Happy hacking!

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