[FreeNX-kNX] NX session $DISPLAY set to ":$PORT_NUM", how to configure it to '$HOSTNAME:$PORT_NUM'?
Mark Christian
MCHRISTI at altera.com
Mon Oct 24 01:39:37 UTC 2011
My users need to be able to do X forwarding from the NX host. DISPLAY needs to include the hostname in order for our compute farm nodes to know where to send X to. The NX host serves as a linux desktop from where "interactive" jobs are launched to a compute farm which are then expected to display back on the NX host. ssh -X is not an option.
I thought I stumbled across documentation suggesting sourcing ~/.tcshrc was not done with NX, my limited experiments would suggest this is true. However I admit to being a novice tcsh user and will continue to test.
The following does not do what I expect when one launches an NX session with tcsh
~$ cat .tcshrc
#!/bin/tcsh
setenv DISPLAY ${HOSTNAME}${DISPLAY}
Is there no global NX setting to change the behavior of $DISPLAY to include $HOSTNAME?
Mark
From: freenx-knx-bounces at kde.org [mailto:freenx-knx-bounces at kde.org] On Behalf Of chris at ccburton.com
Sent: Sunday, October 23, 2011 9:47 PM
To: User Support for FreeNX Server and kNX Client
Subject: Re: [FreeNX-kNX] NX session $DISPLAY set to ":$PORT_NUM", how to configure it to '$HOSTNAME:$PORT_NUM'?
freenx-knx-bounces at kde.org wrote on 20/10/2011 08:16:42:
> I need DISPLAY to be set to $HOSTNAME:$PORT_NUMBER in order to
> enable X forwarding to the NX host.
Why?? What's wrong with localhost?? (IPv6 in /etc/hosts maybe???)
> I can accomplish this for bash
> users by placing the following in ~/.bashrc
>
> export DISPLAY=${HOSTNAME}${DISPLAY}
>
> e.g.:
> $ echo $DISPLAY
> :1001
> $ export DISPLAY=$HOSTNAME$DISPLAY
> $ echo $DISPLAY
> myhost:1001
>
> Unfortunately this cannot be done for tcsh/csh users, since it
> appears NX does not source ~/.cshrc
NX doesn't need to.
Upon being lauched, tcsh/csh always runs ~/.tcshrc (if it
exists or else ~/.cshrc if it exists), regardless of what
kicks it off . . .
unless you are telling it not to eg. tcsh -f
Do you maybe have a messy line in ~/.cshrc which is
stoppingif it running correctly.
I can run NX quite happily using tcsh without changing
anything.
[SNIP]
________________________________
Confidentiality Notice.
This message may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution, or copying of this message, or any attachments, is strictly prohibited. If you have received this message in error, please advise the sender by reply e-mail, and delete the message and any attachments. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20111023/08f7de77/attachment.html>
More information about the FreeNX-kNX
mailing list