From owner-freebsd-questions Thu Jul 3 04:56:57 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id EAA05732 for questions-outgoing; Thu, 3 Jul 1997 04:56:57 -0700 (PDT) Received: from blinx.lizard.org (blinx.wms.co.uk [194.159.247.13]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA05727 for ; Thu, 3 Jul 1997 04:56:53 -0700 (PDT) Received: (from darrylb@localhost) by blinx.lizard.org (8.8.5/8.7.3) id NAA17032; Thu, 3 Jul 1997 13:02:12 +0100 (BST) From: Darryl Bowler Message-Id: <199707031202.NAA17032@blinx.lizard.org> Subject: Re: in Xterm as root. To: un_x@anchorage.net (Steve Howe) Date: Thu, 3 Jul 1997 13:02:12 +0100 (BST) Cc: questions@freebsd.org In-Reply-To: from Steve Howe at "Jul 3, 97 02:52:16 am" X-Mailer: ELM [version 2.4ME+ PL22 (25)] 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 an Xterm window, as "superuser" - root, > > i get "Error: cannot open display" errors > > when i try to launch a "graphics" application > such as XV, GV, GhostView, Netscape, etc. > > i know i shouldn't want to do this, > but was wondering if something is wrong. > ------------------------------------------------ > all my text based apps work ok. > and all my graphical based apps > work ok as a normal user. > > all you need to do is to set the $DISPLAY variable to the IP address of the machine you are trying to export to. Depending on which shell you are using sh: DISPLAY=:0; export DISPLAY csh: setenv DISPLAY :0 Regards Darryl -- ******************************************************************************* http://www.lizard.org/ Web Cache: www.lizard.org 3128 Tel:+44 (0)966 197371 Free Web Space - webmaster@lizard.org Just remember...Captain Pugwash..."One eyed Jack shot seamen Stains all over the deck!" *******************************************************************************