On Friday 01 February 2008 13:53, Kim Goldenberg wrote:
>Mark - I still get "Gtk-WARNING **: cannot open display: " with a "sudo
>gedit foo" command that works when I use "gedit foo".

If you pasted the entire error message here, then it looks like the DISPLAY
variable is not set in your environment.  Is that the case?  Of course, you
could have just left of the display number at the end of the message...

I always try to run a very basic X-Windows command to see if authentication is
working: xclock.  If you can't run xclock, then you have either a display
specification problem or an X authentication problem.  The first thing is to
make sure DISPLAY is set on your remote system
to "<hostname>:<display>.<screen>", where "<hostname>" is the name of your
local X server system (resolvable from the remote system), and <display> and
<screen> are usually zero.
        - MacK.
-----
Edmund R. MacKenty
Software Architect
Rocket Software, Inc.
Newton, MA USA

----------------------------------------------------------------------
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