Hi Bob,
Thank you for the reply.
We are using Grid computing, so need to pass DISPLAY variable to other
Unix and Linux.
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??
Many Thanks,
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
>
> This should work for Kiosk mode in Solaris SRSS
> 4.0 also.
>
> For Linux I'd suggest putting it into $HOME/.login
> if you use bash for your login shell, but other
> people may have better suggestions. If you use
> csh or tcsh for your login shell this won't work
> because you'd need csh syntax and there's nothing
> in csh quite like what I showed above. There are
> obviously alternatives using sed or similar,
> however.
>
> However for pre-4.0 CAM mode you'll have to modify
> an SRSS CAM startup script I'm afraid, and that's
> subject to clobbering with a patch or SRSS upgrade
> so you'd have to reapply it. Let us know if you
> want to go this route and I'll send you
> instructions later when I have access to a CAM
> system I can poke around on (I'm downloading some
> CentOS 5 DVDs at the moment (which should be
> welcome news for many of you :-), so can't bring
> my VPN tunnel up to Sun right now).
>
> -Bob
>
> _______________________________________________
> SunRay-Users mailing list
> [email protected]
> http://www.filibeto.org/mailman/listinfo/sunray-users
>
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users