Re: SSH X11 Setting the Display Variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



this didn't make it to the list:

On Wed, May 20, 2009 at 1:08 AM, Chris Mirchandani <novashadow@xxxxxxx> wrote:

> ... To make this work, the following line is in /etc/profile.
> export DISPLAY=192.168.11.1:0.0

> ... I got around this by adding the following to ~/.profile
> export DISPLAY=localhost:10.0

how about in /etc/profile setting the following:?

----
if [ -z "$DISPLAY" ]; then export DISPLAY=192.168.11.1:0.0; fi
----

the above tests for emptyness of the $DISPLAY variable, and sets it to
the predefined setting (192.168.11.1:0.0) if it hasn't already been
set by sshd. (I hope)

--
Regards,
   Daniel Llewellyn


[Index of Archives]     [Open SSH Unix Development]     [Fedora Users]     [Fedora Desktop]     [Yosemite Backpacking]     [KDE Users]     [Gnome Users]

  Powered by Linux