PDA

View Full Version : [ubuntu] Starting an application on a remote machine GUI session



crismdq
April 16th, 2009, 02:35 AM
Hi!

Lets say i on my work and want to start for example "amule" on the ubuntu located in my home. I log into my home computer and type


# amule

getting


Error: Unable to initialize gtk, is DISPLAY set properly?

My question is, how can i tell the remote ubuntu to open "amule" on the already opened gnome session in that computer.

Same happend with any app thats need GUI, like picasa for example.


# picasa
ERROR: Couldn't open display.


Regards

PacSci
April 16th, 2009, 02:56 AM
First, I'd suggest typing 'w'. It will list something like:


21:54:37 up 1:32, 2 users, load average: 0.48, 0.53, 0.48
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
leaf tty7 :0 20:22 5:32 4:23m 0.24s x-session-manager
leaf pts/0 :0.0 20:23 0.00s 0.76s 0.00s w


Look for the one named x-session-manager, and check its "FROM" field. Then, type "export DISPLAY=':0'", replacing :0 with the actual FROM entry. No guarantees, as I can't exactly replicate your circumstances, but it should work.

crismdq
April 16th, 2009, 12:05 PM
Thanks! It works perfect!