<br><tt><font size=2>freenx-knx-bounces@kde.org wrote on 24/10/2011 02:39:37:<br>
<br>
> My users need to be able to do X forwarding from the NX host. <br>
> DISPLAY needs to include the hostname in order for our compute farm
<br>
> nodes to know where to send X to. The NX host serves as a linux
<br>
> desktop from where “interactive” jobs are launched to a compute
farm<br>
> which are then expected to display back on the NX host. ssh
–X is <br>
> not an option.</font></tt>
<br>
<br><tt><font size=2>OK - FROM the NX machine . . .</font></tt>
<br>
<br><tt><font size=2>> </font></tt>
<br><tt><font size=2>> I thought I stumbled across documentation suggesting
sourcing ~/.<br>
</font></tt>
<br><tt><font size=2>Documentation ?? You must have been dreaming . . .
</font></tt>
<br>
<br><tt><font size=2>> tcshrc was not done with NX, my limited experiments
would suggest <br>
> this is true. However I admit to being a novice tcsh user and
will <br>
> continue to test. </font></tt>
<br><tt><font size=2>> </font></tt>
<br><tt><font size=2>> The following does not do what I expect when
one launches an NX <br>
> session with tcsh</font></tt>
<br><tt><font size=2>> ~$ cat .tcshrc </font></tt>
<br><tt><font size=2>> #!/bin/tcsh</font></tt>
<br><tt><font size=2>> setenv DISPLAY ${HOSTNAME}${DISPLAY}</font></tt>
<br>
<br><tt><font size=2>Well</font></tt>
<br>
<br><tt><font size=2>If set my shell to tcsh and I put in ~/.cshrc</font></tt>
<br>
<br><tt><font size=2> setenv DISPLAY
${HOSTNAME}${DISPLAY}</font></tt>
<br>
<br><tt><font size=2>then</font></tt>
<br>
<br><tt><font size=2>every shell I start in an NX session has DISPLAY set
to</font></tt>
<br>
<br><tt><font size=2> machinename:1010</font></tt>
<br>
<br><tt><font size=2>or whatever . . . .</font></tt>
<br>
<br><tt><font size=2>and</font></tt>
<br><tt><font size=2>The same thing happens if my shell is set to bash</font></tt>
<br><tt><font size=2>and in ~/.bashrc I have</font></tt>
<br>
<br><tt><font size=2> export DISPLAY=${HOSTNAME}${DISPLAY}</font></tt>
<br>
<br><tt><font size=2>so</font></tt>
<br>
<br><tt><font size=2>if your ~/.cshrc is behaving differently then</font></tt>
<br><tt><font size=2>you may have commented some of it out . . .</font></tt>
<br>
<br>
<br><tt><font size=2>> </font></tt>
<br><tt><font size=2>> Is there no global NX setting to change the behavior
of $DISPLAY to <br>
> include $HOSTNAME?</font></tt>
<br>
<br><tt><font size=2>No, but if you can work ok with ~/.bashrc then you
should be</font></tt>
<br><tt><font size=2> able to do the same thing with ~/.cshrc.</font></tt>
<br>
<br><tt><font size=2>Do you also have a ~/.tcshrc file which is stopping
~/.cshrc</font></tt>
<br><tt><font size=2>being run ???</font></tt>
<br>
<br><tt><font size=2>Have you tried taking everything else out of .cshrc
???</font></tt>
<br>
<br><tt><font size=2>> </font></tt>
<br><tt><font size=2>> Mark</font></tt>
<br>