SUMMARY (intermediate): XWindow i/o redirect, DISPLAY variable is wrong

From: Thomas Voegeli <tv.pop_at_zuvrz.unizh.ch>
Date: Thu, 28 Feb 2002 16:21:01 +0100

Hello,

the problem was:

I run Reflection on my-PC.yyyy.zz and have a XDMCP connection to myhost.yyyy.zz,
then I telnet from myhost.yyyy.zz to host2.yyyy.zz.
Now the DISPLAY variable shows my-PC.yyyy.zz:0.0

so far everyting is correct, but if I telnet from myhost.yyyy.zz to
host3.yyyy.zz (instead of host2)
the DISPLAY variable is set to myhost.yyyy.zz and I have to correct it.

I compared many "." files on host2 and on host3 but could not find any
significant difference.

Solution:

1. On host3.yyyy.zz I corrected a DNS (bind) problem.
   "who am i" did still show funny results
2. Reboot of host3.yyyy.zz
   "who am i" now shows correct results
   DISPLAY is different to the situation before, but still incorrect.
3. Grep for DISPLAY in .profile, .cshrc, and /etc/profile on host3.
   Had a look at the files at $HOME on host3.
   Could not find DISPLAY at any of these files.
4. Placed the line
   setenv DISPLAY `who -mM | sed -e 's/^.*(//;s/).*$//;s/^:.0$//'`:0
   at the .login file
5. I did telnet from a unix-host to host3.yyyy.zz and now DISPLAY is correct!

   I then tried it from my-PC (using Reflection) DISPLAY is still wrong (same
   situation as described on top). Reason?.

There was a proposal to use ssh instead of telnet. I'l try this an summaryze it later.

Thanks to Bob Vickers, Chris Ruhnke, John Losey, Pat O'Brien

Thomas Voegeli
Received on Thu Feb 28 2002 - 15:21:13 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT