*BSD News Article 72105


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.hawaii.edu!news.uoregon.edu!vixen.cso.uiuc.edu!newsfeed.internetmci.com!hunter.premier.net!netnews.worldnet.att.net!ix.netcom.com!netcom.net.uk!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@awfulhak.demon.co.uk (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: X Windows Problem
Date: 23 Jun 1996 21:45:24 +0100
Organization: Coverform Ltd.
Lines: 28
Message-ID: <4qkad4$c4@anorak.coverform.lan>
References: <31C8B5F3.167EB0E7@eramp.net>
X-NNTP-Posting-Host: awfulhak.demon.co.uk
X-Newsreader: TIN [version 1.2 PL2]

Syntax (syntax@eramp.net) wrote:

: I therefor typed: setenv DISPLAY :0.0 and got the error:
: 	TRANS(SocketINETConnect)()can't connect:errno=61
: 	Can't open display :0.0

: I then typed the same command but used: localhost:0.0
: 	Error message was the same except for 61 became 2

: I know this is something I have done and would appreciate knowing what
: files I need to edit and what to add or remove from them.

It sounds like you haven't got an entry in /etc/hosts for 'localhost'.
If you have, but have a DNS running, then it sounds like you're not
a primary for 127.  I suspect the former.

You need a line saying:

    127.0.0.1 localhost

in /etc/hosts.

If this is already there, what does 'netstat -rn' say.  What doesn
'ping -c1 localhost' say ?

--
Brian <brian@awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour....