tags:

views:

28

answers:

1

Hello,

my development server has a running Gnome-Desktop. I am connected to it by a ssh session. The Gnome-Session and the ssh session are running with the same user.

How to I start a Gnome-application (for example gedit) from the ssh remote session so that it appears on the remote servers Gnome-Desktop?

Thanks a lot, Hacksteak25

A: 

This would probably work:

Tcsh:

setenv DISPLAY :0
gedit

Bash:

export DISPLAY=:0
gedit

If you are not the user that is logged into the Gnome session, then you would need to do xhost + to disable the authentication.

If the above doesn't work, then instead of :0, try simply copying the DISPLAY environment variable to the ssh terminal.

sharth
Thx, it is working.
hacksteak25