[FreeNX-kNX] NX session $DISPLAY set to ":$PORT_NUM", how to configure it to '$HOSTNAME:$PORT_NUM'?

chris at ccburton.com chris at ccburton.com
Sun Oct 23 13:47:19 UTC 2011


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]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20111023/5cab54f8/attachment.html>


More information about the FreeNX-kNX mailing list