Operating System - Tru64 Unix
1752579 Members
3110 Online
108788 Solutions
New Discussion юеВ

Set environment display

 
Paul Stanard
Regular Advisor

Set environment display

Any idea of how to set the env display in Tru64 to that of the local machine
3 REPLIES 3
Johan Brusche
Honored Contributor

Re: Set environment display

sh or ksh
DISPLAY=0:0 ; export DISPLAY

csh
sentenv DISPLAY 0:0

one can also use localhost:0 instead of 0:0

Make sure the owner of the display has set
"xhost +" to disable access control.

Johan.

_JB_
Mic V.
Esteemed Contributor

Re: Set environment display

To clarify, "xhost +" allows anyone to connect to your display. If you'd prefer to allow only yourself:

xhost +`uname -n`

xhost +localhost

If your environment already allows everyone to connect (to find out: xhost), you can "xhost -" to disallow everyone who wasn't explicitly allowed to access your display.

Do:

man xhost

to read more about the command.

Mic

What kind of a name is 'Wolverine'?
Ralf Puchner
Honored Contributor

Re: Set environment display

using .0 without a hostname leads to a faster output because shared memory will be used instead of the network layer.
Help() { FirstReadManual(urgently); Go_to_it;; }