[Gllug] automagic DISPLAYs

Nix nix at esperi.demon.co.uk
Wed Sep 19 14:45:42 UTC 2001


On Tue, 18 Sep 2001, Simon Trimmer said:
> Hi All,
> A question, someone must have tried this before...
> 
> I want to get the DISPLAY environment variable set to the hostname from
> which I logged in from, anyone think of a reliable method?
> 
> Don't suggest ssh X redirection, machines have no X libraries :)

This makes no sense. If the machines have no X libraries, how are you
going to run any X applications on them?

(Or do you mean that your X server boxes have no X client libraries on?
Why do you care; all you need is an X server.)

Further, this breaks as soon as you telnet from A to B and thence to C,
because DISPLAY would get set to something on B, which has no X server
running.

A better thing to do is just to leave DISPLAY alone through all your
telnets and sshes; things will just work then (except that you have to
get X authentication set up properly).

-- 
`Upsetting this BOFH was a BAD MOVE.' --- Chris Newport

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list