Godo afternoon, Chris,
On Tue, 1 Jul 2008, Chris Moran wrote:
I'm trying to be able to SSH to a remote linux box and send commands
to run programs on its local X window. In fedora, setting DISPLAY=0
and exporting the display and all the host jazz, I was able to do such
a thing when sending commands to a running VNC session, but I could
not get it to work when trying to send to the local X session...
I'm assuming that the display # I'm trying to send to is 0, but could
that be wrong? Using the VNC method (and having VNC open remotely to
check the results), vncserver set it to display :1
The DISPLAY value I'm used to using is :0.0 , which I believe
refers to the first X server, first screen. I just tried this on an ssh
session a moment ago and was able to get the xclock running on the remote
X display:
ssh [EMAIL PROTECTED]
#In the terminal, type
export DISPLAY=':0.0'
xhost +127.0.0.1
xclock &
As you probably already know, the xhost command allows X clients
running on the remote system to talk to the X server/display on the remote
system.
Cheers,
- Bill
---------------------------------------------------------------------------
The day Microsoft makes something that doesn't suck is
probably the day they start making vacuum cleaners.
-- Ernst Jan Plugge
(Courtesy of Christian Vogel <[EMAIL PROTECTED]>)
--------------------------------------------------------------------------
William Stearns ([EMAIL PROTECTED], tools and papers: www.stearns.org)
Top-notch computer security training at www.sans.org , www.giac.net
--------------------------------------------------------------------------