[lug] auto set DISPLAY variable from ssh login?

James Borley james.borley at gmail.com
Mon Sep 25 08:08:45 MDT 2006

X11 forwarding is usually turned off by default.  Use the following when 
you need it:
ssh -X <hostname>

D. Stimits wrote:
> Does anyone know if there is a way to automate setting of DISPLAY 
> based on the remote IP of an ssh text login? And better yet, to do so 
> only for certain IP addresses?
> Unrelated DHCP stuff:
> On the issue I'd asked about a while back for dhcp plus static alias, 
> it turned out that making DHCP the main device solved it. I may have 
> had something else incorrect, so I'm not certain that static as the 
> main eth0 and dhcp as eth0:1 will not work, but it certain seems to be 
> more of a hassle.
> D. Stimits, stimits AT comcast DOT net
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug

More information about the LUG mailing list