On Feb 1, 2008, at 1:53 PM, Fargusson.Alan wrote:

There are two problems here.

First: doing a "sudo echo $DISPLAY" does not echo the DISPLAY that
sudo is using.  The shell will replace the $DISPLAY before starting
the sudo command.

Second: DISPLAY=localhost can't work.  I don't see how xclock can be
working.

When you're sshed in, your DISPLAY is usually localhost:10.0

That's because SSH does some funny under-the-hood port-forwarding
magic to securely tunnel the X ports to local ports on your machine.

Adam

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to