Return to BSD News archive
Newsgroups: comp.os.386bsd.questions From: ian@helen.demon.co.uk (Ian Newham) Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!pipex!demon!helen.demon.co.uk!ian Subject: Re: XOpenDisplay failures References: <771348887snz@helen.demon.co.uk> <2tfcje$fk@knobel.knirsch.de> Organization: (none) Reply-To: ian@helen.demon.co.uk X-Newsreader: Simple NEWS 2.0 (ka9q DIS 1.24) Lines: 36 Date: Mon, 13 Jun 1994 15:31:09 +0000 Message-ID: <771521469snz@helen.demon.co.uk> Sender: usenet@demon.co.uk In article <2tfcje$fk@knobel.knirsch.de> andreas@knobel.knirsch.de writes: > Perhaps try to set the DISPLAY variable to "hostname:0.0" instead of > only ":0.0" ?! > > The same message you get in a running X11 environment, when doing a `su` > to become root. Then the DISPLAY variable isn't set anymore. Then you > have to do a > setenv DISPLAY hostname:0.0 > before calling X11 programs. I had already tried that :(, If that were the problem surely nothing would work - but the binaries that came with XFree86 run ok, and so does the tetris game I mentioned. I can get this type of effect by setting DISPLAY to some bogus host, then nothing works - which is what you would expect. The man page for the server just says if the hostname part of $DISPLAY is NULL, then "the most efficient local transport will be used" ( or something similar ). I don't use the machine to connect to anything else, so I never bothered setting up the networking stuff apart from putting a name in /etc/myname and /etc/hosts. What is this "local transport"? - maybe there's something outside X that I've not set up. Also another thought, (remember I know next to nothing about X so this may not make any sense), where does the Xserver get its name from? I put an extra line in the tetris program to print out what it thought it's display name was (this is the program that runs ok.) and that returned null, rather than the machine's name irrespective of what DISPLAY is set to ? thanks, Ian -- +----------------------------------------------------+ | Ian Newham Nottingham, U.K. | | ian@helen.demon.co.uk | +----------------------------------------------------+