help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help me with Emacs


From: J. David Boyd
Subject: Re: Help me with Emacs
Date: Thu, 12 May 2005 17:03:20 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

"Ronit Tajian" <rtajian@hotmail.com> writes:

> Followed the instructions in the INSTALL text to install
> it. Everything seems to went fine. When trying to run or open the
> Emacs receive this error:
> ---------------------------------------------------------------
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
> 
> emacs: Cannot connect to X server :0.0.
> Check the DISPLAY environment variable or use `-d'.
> Also use the `xhost' program to verify that it is set to permit
> connections from your machine.
> ------------------------------------------------------------------------
> 
> Not sure what the problem is. When open the Emacs like this, a window
> opens, but the menu on top is not available and when closing the Emacs
> window it closes the whole X window.
> However, from my bash console, I can easily open an X window using
> xterm command, the X window opens with no problem, but running the
> Emacs rises the above error. Please let me know of any idea.

If you are running Emacs from your local machine, try 

export DISPLAY=127.0.0.1:0.0 

before starting emacs, perhaps in a shell script that sets the DISPLAY then
calls emacs.

Or, use the real IP address if you know it.

Dave


reply via email to

[Prev in Thread] Current Thread [Next in Thread]