Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jul 1997 13:02:12 +0100 (BST)
From:      Darryl Bowler <darrylb@lizard.org>
To:        un_x@anchorage.net (Steve Howe)
Cc:        questions@freebsd.org
Subject:   Re: in Xterm as root.
Message-ID:  <199707031202.NAA17032@blinx.lizard.org>
In-Reply-To: <Pine.BSF.3.95q.970703024725.2983A-100000@aak.anchorage.net> from Steve Howe at "Jul 3, 97 02:52:16 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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=<IP ADDRESS>:0; export DISPLAY
csh: setenv DISPLAY <IP ADDRESS>: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!"	
*******************************************************************************



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707031202.NAA17032>