From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dave@adboyd.com (J. David Boyd) Newsgroups: gmane.emacs.help Subject: Re: Help me with Emacs Date: Thu, 12 May 2005 17:03:20 GMT Organization: Road Runner High Speed Online http://www.rr.com Message-ID: <81sm0sz8a5.fsf@adboyd.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1115917030 29879 80.91.229.2 (12 May 2005 16:57:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 May 2005 16:57:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 12 18:57:09 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DWGyq-0004q6-8E for geh-help-gnu-emacs@m.gmane.org; Thu, 12 May 2005 18:56:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DWH7o-0004zH-QN for geh-help-gnu-emacs@m.gmane.org; Thu, 12 May 2005 13:05:28 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!cyclone.socal.rr.com!cyclone2.kc.rr.com!news2.kc.rr.com!news-post.tampabay.rr.com!tornado.tampabay.rr.com.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-NNTP-Posting-Host: 67.78.201.138 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: tornado.tampabay.rr.com 1115917400 67.78.201.138 (Thu, 12 May 2005 13:03:20 EDT) Original-NNTP-Posting-Date: Thu, 12 May 2005 13:03:20 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:130883 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:26542 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26542 "Ronit Tajian" 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