1831277 Members
2758 Online
110022 Solutions
New Discussion

DISPLAY variable

 
dattu_1
Regular Advisor

DISPLAY variable

Hi guys,
My display variable of an hp 11iv2 box keeps on changing..like sometimes it says 10.5.6.224:0.0
and sometimes 10.5.6.224:1.0 what is it exactly????
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: DISPLAY variable

Well, it depends on what your DISPLAY is.

Typically it is :0.0 for a single monitor on a system.

If you are using something like VNC it could be :1.0 or even a :2.0.

Once exported, your DISPLAY environment variable should not change.
IT_2007
Honored Contributor

Re: DISPLAY variable

did you set it in your .profile? Also check it using

echo $DISPLAY

to see current value.
Peter Godron
Honored Contributor

Re: DISPLAY variable

Hi,
we set our DISPLAY via .profile:
DISPLAY=`who -Rm|cut -f2 -d"("|cut -f1 -d")"`:0.0;
export DISPLAY
Rick Garland
Honored Contributor

Re: DISPLAY variable

Whenever you connect to an HPUX system (or many other UNIX systems) you can issue the command 'who -um'. The last field will be your IP address or hostname (if you have name/IP resolution)

If you are connecting from a PC that has DHCP and the IP of your PC changes then you will have different DISPLAY values.

Peter Godron
Honored Contributor

Re: DISPLAY variable

HI,
if you are happy with the answers given, could you please award points, identify the solution and close the thread.
Thanks