[Sugar-devel] Running an activity through ssh

Bert Freudenberg bert at freudenbergs.de
Fri Apr 13 13:28:31 EDT 2012


On 13.04.2012, at 09:07, Manuel Kaufmann wrote:

> Hello,
> 
> I'm trying to run an Activity over "ssh -C -X" to my XO.
> 
> Once I'm logged in, I'm running:
> 
> $ sugar-launch org.laptop.AbiWordActivity
> 
> But I'm getting this error:
> 
> Traceback (most recent call last):
>  File "/usr/bin/sugar-launch", line 38, in <module>
>    proxy = bus.get_object('org.laptop.Shell', '/org/laptop/Shell')
>  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 244, in get_object
>    follow_name_owner_changes=follow_name_owner_changes)
>  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 241, in __init__
>    self._named_service = conn.activate_name_owner(bus_name)
>  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 183, in
> activate_name_owner
>    self.start_service_by_name(bus_name)
>  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 281, in
> start_service_by_name
>    'su', (bus_name, flags)))
>  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line
> 630, in call_blocking
>    message, timeout)
> dbus.exceptions.DBusException:
> org.freedesktop.DBus.Error.ServiceUnknown: The name org.laptop.Shell
> was not provided by any .service files
> 
> Is there a way to do this?


Probably not.

The immediate problem you ran into is that by logging in remotely, you are not in the same DBus session as the running Sugar instance. That could be worked around by setting the DBUS_SESSION_BUS_ADDRESS environment variable.

But I doubt this would help you running the activity remotely. Sugar very much assumes an activity runs on the same host as the X server, that is, locally.

About the only way to run Sugar remotely is via VNC. But then, why bother? VirtualBox works fine. What is the actual problem you want to solve?

- Bert -



More information about the Sugar-devel mailing list