kevin kim schrieb:
Hi Bob,
Thank you for the reply.
We are using Grid computing, so need to pass DISPLAY variable to other
Unix and Linux.
Whereever you programmatically pass a display value to somewhere else,
you can insert a script particle like Bob suggested below. Why do you
need to change the environment for the entire session? (FWIW I'd expect
grid-enabled software to do that on its own.)
And we are using Solaris 10 gnome and KDE environment.
We have tried to cange Xservers file in /etc/dt/config/
however it seems to work for only Console session.
any other way to simply change DISPLAY variable for all csh, ksh, bash
in Gnome and KDE environment??
You could put a ksh stanza like the one suggested by Bob into some
script that you put into the /etc/dt/config/Xsession.d/ directory.
That script will be sourced in a ksh environment during session start
(see the dtlogin(1X) man page), so that environment changes will
propagate to the session.
Warning: do not do this when using Sun Ray Kiosk Mode. Kiosk uses the
DISPLAY to identify session configuration, but it does not know that
some_hostname:num refers to the same display as :num for hostnames that
resolve to some interface of the local machine.
- Jörg
2007/11/17, Bob Doolittle <[EMAIL PROTECTED]>:
kevin kim wrote:
Hi all,
i have a question about DTU display variable.
normally when i login to the sunray server through DTU
and i can get the display name like ":3.0" from "echo $DISPLAY"
however I'd like to change to "hostname:3.0".
does anyone has an idea about it ??
It's relatively simple to do this, but why do you want to if I may ask?
Using :NN as your display number uses various optimized IPC
mechanisms which will give better performance than using
hostname:NN (e.g. shared memory versus socket/tcp/ip).
Are you using CAM/Kiosk mode or are you using a normal
Solaris/Linux login? The approach would be different for each.
In all cases you'd want a ksh stanza something like:
------- BEGIN STANZA ------------
if [ ":${DISPLAY#*:}" = "$DISPLAY" ]; then
DISPLAY=$(hostname)$DISPLAY
fi
------- END STANZA --------------
The question is where to put it? If you have a
standard Solaris login, then I'd put it into
$HOME/.dtprofile
--
Joerg Barfurth phone: +49 40 23646662 / x66662
Software Engineer mailto:[EMAIL PROTECTED]
Desktop Technology http://reserv.ireland/twiki/bin/view/Argus/
Thin Client Software http://www.sun.com/software/sunray/
Sun Microsystems GmbH http://www.sun.com/software/javadesktopsystem/
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users