From owner-freebsd-questions@FreeBSD.ORG Thu Feb 23 16:39:22 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A9D316A420 for ; Thu, 23 Feb 2006 16:39:22 +0000 (GMT) (envelope-from rob@roblytle.org) Received: from smtpout08-04.prod.mesa1.secureserver.net (smtpout08-04.prod.mesa1.secureserver.net [64.202.165.12]) by mx1.FreeBSD.org (Postfix) with SMTP id 18A9343D45 for ; Thu, 23 Feb 2006 16:39:19 +0000 (GMT) (envelope-from rob@roblytle.org) Received: (qmail 20671 invoked from network); 23 Feb 2006 16:39:16 -0000 Received: from unknown (24.20.8.31) by smtpout08-04.prod.mesa1.secureserver.net (64.202.165.12) with ESMTP; 23 Feb 2006 16:39:16 -0000 Date: Thu, 23 Feb 2006 08:38:32 -0800 From: Rob To: freebsd-questions@freebsd.org Message-Id: <20060223083832.5f39a51c.rob@roblytle.org> Organization: LKA X-Mailer: Sylpheed version 2.0.0 (GTK+ 2.6.9; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Giorgos Keramidas Subject: Re: problem regarding setting DISPLAY env variable and hostname X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2006 16:39:22 -0000 On 2006-02-22 13:07, Rob wrote: >On Wed, 22 Feb 2006 20:27:20 +0200 >Giorgos Keramidas wrote: >>> I have read manual pages, searched the archives, but I am really confused >>> about all of this. Thank you for any help. >> >> All this can be resolved by using `/etc/hosts'. Just add your hostname >> there and point it to the 127.0.0.1 address. Then all programs should be >> able to resolve it. > > Thanks Giorgios, > > I think that I have the hostname problem resolved. rc.conf has > hostname="xenon" and /etc/hosts has: 127.0.0.1 localhost xenon That's quite fine :) > So now Xorg does not give errors on startup or shutdown like the > > > bad display name "xenon:0" in "remove" command or > > > bad display name "xenon:0 in "list" command > > But when not setting the DISPLAY variable explicitely anywhere I still > get the error: "out of display lists" upon starting the program I want > from xterm > > But then setting DISPLAY=xenon:0.0 export DISPLAY and then executing > the program then gives the error: > > "Can't open display: xenon:0.0" so I guess I am back to square one. > > Maybe I should call it a day and rest, haha. Just a wild guess, since I don't see why you should have problems running programs like: Can't open display: xenon:0.0 Are you running X11 as a plain user and having problems to run programs *after* using su(1) to become root or does this happen for all users in all terminals? - Giorgos -------------------- Hi Giorgos, I am trying to run a program from xterm as a normal user. However, when su'ing in xterm, I am unable to run any programs. Then I get the error: "Xlib: connection to ":0.0" refused by server Xlib: No protocol specified Error: Can't open display: :0.0 setting for csh as root: setenv DISPLAY xenon:0.0 then gives the error message: _XTransSocketINETConnect() can't get address for xenon:6000: hostname nor server name provided, or not known Error: Can't open display xenon:0.0 I seem to remember never being able to su in xterm and be able to run any programs no matter what combination of settings I have used. I also think that the error messages might have been different but I am starting to lose track of the error messages for combinations of settings for hostname, DISPLAY, etc. I probably need to start putting all of this down on paper so I can find any patterns. Rob. -- ----------------------- http://www.roblytle.org Rob Lytle Home Page