From owner-freebsd-questions Sun Jul 27 06:30:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA05112 for questions-outgoing; Sun, 27 Jul 1997 06:30:04 -0700 (PDT) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id GAA05076 for ; Sun, 27 Jul 1997 06:30:00 -0700 (PDT) Received: from ct.picker.com by whqvax.picker.com with SMTP; Sun, 27 Jul 1997 9:29:28 -0400 (EDT) Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA21966; Sun, 27 Jul 97 09:29:26 EDT Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id JAA03386; Sun, 27 Jul 1997 09:27:08 -0400 Message-Id: <19970727092707.14850@ct.picker.com> Date: Sun, 27 Jul 1997 09:27:07 -0400 From: Randall Hopper To: "Chris F." Cc: freebsd-questions@FreeBSD.ORG Subject: Re: XWindows: Can't open display: References: <199707261927.OAA24580@smtp.gte.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76 In-Reply-To: <199707261927.OAA24580@smtp.gte.net>; from Chris F. on Sat, Jul 26, 1997 at 02:27:29PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Chris F.: |I am using FreeBSD 2.2.2. When running Xwindows applications I get the |following error: | |(When I don't set the display variable) | |Error: Can't open display: | |(When I set it to :0) | |Error: Can't open display: :0 | |I don't know what I should set my display variable to. I have tried setting |it to :0, unix:0, unix:0.0, as they were suggested in archived mailing list |messages. None of them caused any different results. Please copy all |suggestions to me at theta@gte.net. Where are you running the X apps from? Cmd line in Xterms? Pull-down menu in window manager? Run "xhost" and note the output. Then run "xhost +" (for testing only) and see if starting an X app that failed before with that error will come up now. Also, if running from inside an xterm, verify correct syntax for setting an env var for your shell: "setenv DISPLAY :0.0" for tcsh/csh, or "DISPLAY=:0.0 export DISPLAY" for sh/ksh/bash Randall Hopper