1820882 Members
3529 Online
109628 Solutions
New Discussion юеВ

setting DISPLAY variable

 
SOLVED
Go to solution
patrick coutinho
Frequent Advisor

setting DISPLAY variable

Hi,

What does the following mean.

ipaddress:1.0

I know that 0.0 means screen.monitor. But what does 1.0 mean.

had a user who could not get a display on their PC using ipaddress:0.0, but they say ot worked fine when he used ipaddress:1.0

They are using Exceed on the PC.

I simulated the same on my PC out here. What i did was start the Exceed X-server on my PC. Then telneted to the Unix box and :

export DISPLAY=my_pc_ipaddress:0.0
xclock

This popped up the xlock window just fine on my pc. I am using exceed in Passive mode.

Tried the same on the users pc but it does not work. However when i :

export DISPLAY=users_pc_ipaddress:1.0
xclock

It works fine.

Any clues..

thanks in advance,

Pat

10 REPLIES 10
Victor Fridyev
Honored Contributor

Re: setting DISPLAY variable

Hi,

Check for the user on his PC Exceed's Xconfig settings:
XCONFIG/COMMUNICATIONS and there
Display number
I'm almost sure that thereis 1 in the appropriate window.

HTH
Entities are not to be multiplied beyond necessity - RTFM
Sanjay Kumar Suri
Honored Contributor
Solution

Re: setting DISPLAY variable

Check this thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=132832

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
patrick coutinho
Frequent Advisor

Re: setting DISPLAY variable

Thanks,

The advice and the document did help me, but i still do not have the answer to the

ipaddress:1.0 question. what does the 1.0 imply.

regards
Bharat Katkar
Honored Contributor

Re: setting DISPLAY variable

Hi pat,

" Programs that are linked against X libraries will automatically search their environment for a DISPLAY value. If it specifies a hostname or IP address, they will attempt to open a TCP connection (Internet domain socket) instead of a local file/node (UNIX domain socket) connection. Specifically they will try to connect to port 6000 for :0.0, and 6001 for ...:1.0, etc. (Incidentally, the .0 in :0.0 or localhost:0.0 refers to a possible display number. Some X servers support multiple displays/monitors, and these address each of the displays as 0.0, 0.1, 1.0, 1.1 etc). "

Passage taken from the link below.
Hope that clears your doubt.

Regards,

http://www.linuxgazette.com/issue52/tag/19.html



You need to know a lot to actually know how little you know
Sridhar Bhaskarla
Honored Contributor

Re: setting DISPLAY variable

Hi Pat,

You can configure your HP-UX CDE with multiple monitors and get multiple displays. Each display will have it's own number.

In your case, the DISPLAY number is given as 1 on the X-server hence it doesn't work with 0.0.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Jan Sladky
Trusted Contributor

Re: setting DISPLAY variable

hi Pat,

0:0 or 1:0 is niether IP address nor its part, but only numbering of screens and displays

0 is first (screen or monitor), 1 second, 2 third and so on


br Jan
GSM, Intelligent Networks, UNIX
patrick coutinho
Frequent Advisor

Re: setting DISPLAY variable

Thanks,

I think that explains it. Very valuable info.

rgds

Pat
Steven E. Protter
Exalted Contributor

Re: setting DISPLAY variable

A little piece of /etc/profile code that makes life easier with X clients.

DISPLAY=$(who -m -u | awk '{print $8}')
export DISPLAY


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
patrick coutinho
Frequent Advisor

Re: setting DISPLAY variable

Thanks Steven. Very helpfull

rgds
purushottamaher
Frequent Advisor

Re: setting DISPLAY variable

You can refer to below solution, that helped for me. Hope it will solve your problem too..

 

https://www.esds.co.in/kb/how-to-configure-x11-display-in-linux-or-unix-troubleshoot-display-variable-issues/