<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Courier New, monospace" size="2">
<div>I need DISPLAY to be set to $HOSTNAME:$PORT_NUMBER in order to enable X forwarding to the NX host.  I can accomplish this for bash users by placing the following in ~/.bashrc</div>
<div> </div>
<div style="padding-left: 36pt; ">export DISPLAY=${HOSTNAME}${DISPLAY}</div>
<div style="padding-left: 36pt; "><font face="Calibri, sans-serif" size="2"> </font></div>
<div style="padding-left: 36pt; ">e.g.:</div>
<div style="padding-left: 36pt; ">$ echo $DISPLAY</div>
<div style="padding-left: 36pt; ">:1001</div>
<div style="padding-left: 36pt; ">$ export DISPLAY=$HOSTNAME$DISPLAY</div>
<div style="padding-left: 36pt; ">$ echo $DISPLAY</div>
<div style="padding-left: 36pt; ">myhost:1001</div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div>Unfortunately this cannot be done for tcsh/csh users, since it appears NX does not source ~/.cshrc</div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div>Is there an easy way to configure NX to have DISPLAY set using the NX $hostname?</div>
<div> </div>
<div>~$ cat /etc/redhat-release ; rpm -qa|grep nx; cat /etc/nxserver/node.conf</div>
<div>CentOS release 5.6 (Final)</div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div>freenx-0.7.3-7.el5.centos.x86_64</div>
<div>nx-3.4.0-7.el5.centos.x86_64</div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div>NX_LOG_LEVEL=4</div>
<div>NX_LOGFILE=/var/log/nx/nxserver.log</div>
<div>COMMAND_MD5SUM="md5sum"</div>
<div>AGENT_EXTRA_OPTIONS_X=""</div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div><font face="Times New Roman, serif" size="3"><br>

</font></div>
<div><font face="Times New Roman, serif" size="3"><u>  ________________________________  </u></font></div>
<div><font face="Arial, sans-serif">Confidentiality Notice.<br>

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.<br>

</font></div>
</font>
</body>
</html>