2007-11-22 11:04:09

by Csillag Kristóf

[permalink] [raw]
Subject: [Bluez-users] integrating BlueZ into remote session

Hi there!

I am maintaining a system with thin-client terminals,
which are running X locally, and remote gnome sessions
on the server. (This works pretty good.)

I would like to configure BlueZ on the clients, so
that they can use local Bluetooth devices.

I can install the necessary software on the client
computers, but since the desktop application run
on the server (and thus they are connected to the D-Bus
of the server computer), and the BlueZ core is
connected to ths D-Bus System Bus on the client,
the messages won't go through

(Ie. for the PIN requests arriving to the client,
the passkey agen on the server can not be invoked
automatically, etc.)

What is the best way to solve this?

Should I try to configure a bridge between the two D-Buses?
(Does D-bus support this already?)

Or should I try to run the relevant GUI applications locally on
the client, and integrate them into the desktop running remotely
on the server? (Does the gnome panel accept applets running on
different hosts than the desktop?)

I have already in place the needed infrastructure for transferring
the actual content of Bluetooth services (obex, audio, etc.)
between the client and the server; the only part still missing is
the d-bus level.

Can I make this work somehow?

Thank you for your help:

Kristof Csillag

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2007-11-24 10:09:47

by Csillag Kristóf

[permalink] [raw]
Subject: Re: [Bluez-users] integrating BlueZ into remote session

Csillag Krist=F3f wrote:

> Hi there!
>
> I am maintaining a system with thin-client terminals,
> which are running X locally, and remote gnome sessions
> on the server. (This works pretty good.)
>
> I would like to configure BlueZ on the clients, so
> that they can use local Bluetooth devices.
>
> [...]
>
> Or should I try to run the relevant GUI applications locally on
> the client, and integrate them into the desktop running remotely
> on the server? (Does the gnome panel accept applets running on
> different hosts than the desktop?)
> =

This approach worked. So, here is how to do it:
1. start the X server on the client
2. start the gnome session on the server
(LTSP handles the first two steps automatically.)
3. from your gnome session running on the server,
one an SSH session to the client
4. set the DISPLAY variable to the local X server (:6 in LTSP)
5. start the blutooth-applet
(Steps 3-5 can be done automatically, from a script.)

If I do this, the bluetooth applet automagically appears in the tray
applet! (This is cool, because the tray applet is sitting on the
gnome panel which is running on the server, but the locally running
bluetooth-applet finds at anyway.)

After this, the bluetooth-applet works just fine. (Asks for PIN, etc.)

So, after all, this works, almost out-of-the-box.

Kristof


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users