From owner-freebsd-questions Wed Jun 5 11:20:30 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA21991 for questions-outgoing; Wed, 5 Jun 1996 11:20:30 -0700 (PDT) Received: from uswgco2.uswc.uswest.com (uswgco2.uswest.com [206.196.133.74]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA21985 for ; Wed, 5 Jun 1996 11:20:28 -0700 (PDT) Received: (from smap@localhost) by uswgco2.uswc.uswest.com (8.7.1/8.7.1) id MAA04308; Wed, 5 Jun 1996 12:18:53 -0600 (MDT) Received: from egate.mnet.uswest.com(151.116.23.138) by uswgco2.uswc.uswest.com via smap (V1.3) id sma004298; Wed Jun 5 12:18:33 1996 Received: from easthub (easthub.mnet.uswest.com [151.117.26.86]) by egate.mnet.uswest.com (8.7.1/8.7.1) with SMTP id MAA04263; Wed, 5 Jun 1996 12:18:32 -0600 (MDT) Received: by easthub.mnet.uswest.com (M-Net Hub.951228) Received: from astro.acs.uswest.com by acs.uswest.com (5.x/SMI-SVR4) id AA10872; Wed, 5 Jun 1996 13:18:18 -0500 Received: by astro.acs.uswest.com (SMI-8.6/SMI-SVR4) id NAA04604; Wed, 5 Jun 1996 13:18:07 -0500 From: ptroot@uswest.com (Paul T. Root) Message-Id: <199606051818.NAA04604@astro.acs.uswest.com> Subject: Re: Display variable To: dwhite@resnet.uoregon.edu Date: Wed, 5 Jun 1996 13:18:07 -0500 (CDT) Cc: randyd@nconnect.net, questions@freebsd.org In-Reply-To: from "Doug White" at Jun 5, 96 10:21:30 am X-Organization: !nterprise Networking Services X-Phone: (612) 663-1979 X-Fax: (612) 663-8030 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 200 S. 5th St., Suite 1100 X-Address: Minneapolis, MN 55402 X-Mailer: ELM [version 2.4 PL25] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In a previous message, Doug White said: > > On Tue, 4 Jun 1996, Randy DuCharme wrote: > > > Is there a display variable somewhere that needs to be set (FreeBSD > > 2.1)? I encounter the message "unable to open display" (sometimes it's > > unable to open display '' or unable to open $DISPLAY ) when I attempt > > to run ghostscript, or the fvwm window manager for X, or a few other > > apps. I'm new to FreeBSD and UNIX in general and realize I've probably > > missed something, but I've been messing around with it, and reading man > > pages for 3 weeks now and can't find the answer. > > DISPLAY should be set when you login. It is on my machine. > > I'm not on X right now or I'd echo mine. If you are on your console, the easiest DISPLAY is :0 Or you can set it to machine:0 where machine is your machine name (name of ethernet port) or localhost (127.0.0.1). For sh/ksh/bash: export DISPLAY DISPLAY=:0 for csh/tcsh: setenv DISPLAY :0 But, Doug is right, it should be set when you do a startx or from xdm. -- Paul T. Root - USWEST !NTERPRISE Networking Service ptroot@uswest.com Being perfect is a terrible way to spend your life and guys are not equipped for it anyway. It is like a bear riding a bicycle: He can be trained to do it for short periods but he would rather be in the woods doing what bears do there. - Garrison Keillor