From owner-freebsd-questions Mon Jul 1 12:55:07 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA01134 for questions-outgoing; Mon, 1 Jul 1996 12:55:07 -0700 (PDT) Received: from gatekeeper.fsl.noaa.gov (gatekeeper.fsl.noaa.gov [137.75.131.181]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA01124 for ; Mon, 1 Jul 1996 12:55:05 -0700 (PDT) Received: from emu.fsl.noaa.gov (kelly@emu.fsl.noaa.gov [137.75.60.32]) by gatekeeper.fsl.noaa.gov (8.7.5/8.7.3) with ESMTP id TAA13251; Mon, 1 Jul 1996 19:54:58 GMT Message-Id: <199607011954.TAA13251@gatekeeper.fsl.noaa.gov> Received: by emu.fsl.noaa.gov (1.40.112.4/16.2) id AA062950946; Mon, 1 Jul 1996 13:55:46 -0600 Date: Mon, 1 Jul 1996 13:55:46 -0600 From: Sean Kelly To: branson@widomaker.com Cc: fadorn19@idt.liberty.com, questions@FreeBSD.ORG In-Reply-To: <199607011847.OAA16496@garion.hq.ferg.com> (message from Branson Matheson on Mon, 01 Jul 1996 14:47:16 -0400) Subject: Re: fvwm and x-windows Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >>>>> "Branson" == Branson Matheson writes: Branson> csh > setenv DISPLAY {hostname}:0.0 Branson> sh > DISPLAY={hostname}:0.0 ; export DISPLAY Branson> ( replace {hostname} with your display. ) Or not. If you're actually logged on {hostname}, then you *want* the DISPLAY to be just :0.0 and NOT {hostname}:0.0. A display of :0.0 means use the local X server serving the first display, through a local Unix socket in /tmp/.X11-unix/X0. This is the fastest way to access a display. In second place is a DISPLAY of localhost:0.0, which uses the loopback interface lo0. In last place is a DISPLAY of {hostname}:0.0, which uses the network interface. Homework question: what's a *fourth* way to access a display (on those displays that are configured for it)? Branson> You might make yourself an .xinitrc that sets the window Branson> manager. somthing like: Branson> #!/bin/csh Branson> setenv DISPLAY `hostname`:0.0 Yes, definitely wrong. When xinit is run, the DISPLAY environment varialbe should already be set ... and set *correctly*. On FreeBSD, it isn't so bad. But on HP/UX, playing xkobo with display set to "{hostname}:0.0" is like molasses in January. But with it set to ":0.0" it just screams! -- sean Kelly NOAA Forecast Systems Laboratory kelly@fsl.noaa.gov Boulder Colorado USA http://www-sdd.fsl.noaa.gov/~kelly/