On Wed, 18 Apr 2001, Ted Gervais wrote:

>
> What is this error I get when I try to open emacs or some other
> devices. I get a statement like:  'no $DISPLAY environment variable'
> .
>
> Obviously I have to enter something, somewhere. Has anyone seen this
> before and if so how do I fix it?
>
>
You normaly get this error when you try and run an X based program when
you are not in X.  You will also get this error when you use "su -" or
"su - <user name>" from an xterm.  What is happening is that the X based
progam does not know where to send the display output, and get the
keyboard/mouse input.

How to fix it depends on when you are getting the error.  If you are
getting it when running from the command prompt, then start X.  If you
are getting it from an xterm, then your best bet is to use "su" instead
of "su -".  There are ways to make "su -" work by manualy setting the
DISPLAY varable, but you will have to read up on xauth and xhost to use
them.

If you are telnetting into another machine from an xterm, and trying to
run X programs on the other machine, then you will also have to use
xauth or xhost to give the other machine permission to use your display,
as well as setting the DISPLAY varable on the other machine.  It will
usualy be "DISPLAY=<local machine>:0.0".  You can also use ssh with the
X forwardign option turned on, and it will set things up for you.

Mikkel
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to