From owner-freebsd-questions@FreeBSD.ORG Wed Feb 22 18:28: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 B439416A420 for ; Wed, 22 Feb 2006 18:28:22 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1FC143D62 for ; Wed, 22 Feb 2006 18:28:03 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) (authenticated bits=128) by igloo.linux.gr (8.13.5/8.13.5/Debian-3) with ESMTP id k1MIRh7f010739 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 22 Feb 2006 20:27:46 +0200 Received: from flame.pc (flame [127.0.0.1]) by flame.pc (8.13.4/8.13.4) with ESMTP id k1MIRKss045890; Wed, 22 Feb 2006 20:27:20 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by flame.pc (8.13.4/8.13.4/Submit) id k1MIRKhq045889; Wed, 22 Feb 2006 20:27:20 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 22 Feb 2006 20:27:20 +0200 From: Giorgos Keramidas To: Rob Message-ID: <20060222182720.GA45869@flame.pc> References: <20060222101759.66d3e0e3.rob@roblytle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060222101759.66d3e0e3.rob@roblytle.org> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.369, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.83, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr Cc: freebsd-questions@freebsd.org 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: Wed, 22 Feb 2006 18:28:22 -0000 On 2006-02-22 10:17, Rob wrote: > I have been trying to figure out how to set the display name on my > computer. I have a program used with Xorg that gives me the error > message: > > _X11TransSocketINETConnect() can't get address for xenon:6000: hostname nor servname provided, or not known > Error: Can't open display: xenon:0.0 > > also when starting or stopping Xorg I either get: > > bad display name "xenon:0" in "remove" command or > bad display name "xenon:0 in "list" command Your laptop can't resolve the name "xenon". > I have my XDISPLAY env variable set using (in Bash): > > DISPLAY=xenon:0.0 export DISPLAY > > xenon is the name of the machine > > I think part of the problem is the setting of the hostname. This laptop > runs off of DHCP and I am not really sure about what I should do for > setting the hostname. The manual says to set HOSTNAME="" in rc.conf if > using DHCP, but then I get the amnesiac message upon boot. Sendmail > doesn't like that either and hangs during the boot process. So I just > set it arbitrarily to "xenon" Note that the capitalization of rc.conf variables is *significant*. The real rc.conf variable that you have to set to avoid the "Amnesiac" name is: hostname="xenon" > 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.