<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Chris,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Sorry…missed out the nxnode file.  I’ve attached it to this reply.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">If I have an incorrect patch for nxnode, apart from editing nxnode what are my other options?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Many thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Len<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> freenx-knx-bounces@kde.org [mailto:freenx-knx-bounces@kde.org]
<b>On Behalf Of </b>chris@ccburton.com<br>
<b>Sent:</b> 09 June 2013 16:10<br>
<b>To:</b> User Support for FreeNX Server and kNX Client<br>
<b>Subject:</b> Re: [FreeNX-kNX] Shadow Session fails to attach<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<tt><span style="font-size:10.0pt"><a href="mailto:freenx-knx-bounces@kde.org">freenx-knx-bounces@kde.org</a> wrote on 29/05/2013 10:27:25:</span></tt><span style="font-size:10.0pt;font-family:"Courier New""><br>
<br>
<tt>[SNIP]</tt><br>
<br>
<tt>> I've attached a tar of my .nx folder, the /etc/nxserver and the nxserver.log.</tt><br>
<tt>> </tt><br>
<tt>> Many thanks for all your assistance.  Much appreciated.</tt><br>
<tt>> </tt><br>
<tt>> Len</tt><br>
</span><br>
<tt><span style="font-size:10.0pt">From your log</span></tt> <br>
<br>
<br>
<tt><span style="font-size:10.0pt">[SNIP]</span></tt> <br>
<br>
<tt><span style="font-size:10.0pt">NX> 127 Sessions list of user '.*' for reconnect:</span></tt>
<br>
<br>
<tt><span style="font-size:10.0pt">Display Type             Session ID                       Options  Depth Screen         Status      Session Name</span></tt>
<br>
<tt><span style="font-size:10.0pt">------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------</span></tt>
<br>
<tt><span style="font-size:10.0pt;color:red">1001</span></tt><tt><span style="font-size:10.0pt">    unix-gnome       F788D968C2342B30F59E25FE2F04A052 --D--PSA    24 800x600        Running     me-promis (cscs) (Shadowed)</span></tt>
<br>
<tt><span style="font-size:10.0pt">0       Local            B469FA35AC08F93E0352BCF15F5536AA --------                      Running     X0 (Local)</span></tt>
<br>
<tt><span style="font-size:10.0pt">0       Local            BA127A73F948FB4A066CAB66CB8E474C --------                      Running     X0 (Local)</span></tt>
<br>
<br>
<br>
<tt><span style="font-size:10.0pt">NX> 148 Server capacity: not reached for user: .*</span></tt>
<br>
<tt><span style="font-size:10.0pt">NX> 105 attachsession  --link="lan" --backingstore="1" --encryption="1" --cache="16M" --images="64M" --shmem="1" --shpix="1" --strict="0" --composite="1" --media="0" --session="me-promis-shadow" --type="shadow" --client="winnt"
 --keyboard="pc102/gb" --id="F788D968C2342B30F59E25FE2F04A052" --display="1001" --geometry="800x600" --resize="1"</span></tt>
<br>
<br>
<tt><span style="font-size:10.0pt">Info: Using /etc/nxserver/nxacl to change session parameters or deny session.</span></tt>
<br>
<tt><span style="font-size:10.0pt">&link=lan&backingstore=1&encryption=1&cache=16M&images=64M&shmem=1&shpix=1&strict=0&composite=1&media=0&session=me-promis-shadow&type=shadow&client=winnt&keyboard=pc102/gb&id=F788D968C2342B30F59E25FE2F04A052&<span style="color:red">display=1001</span>&geometry=800x600&resize=1&clientproto=3.2.0&login_method=SSH&shadowdisplay=1001&shadowhost=&shadowcookie=******&shadowuser=cscs&user=cscs&userip=131.111.87.221&uniqueid=0C81AD26055212F1AEED71DE3EA21772&<span style="color:red">display=1002</span>&host=127.0.0.1</span></tt>
<br>
<br>
<tt><span style="font-size:10.0pt">[SNIP]</span></tt> <br>
<br>
<tt><span style="font-size:10.0pt">NX> 1004 Error: NX Agent exited with exit status 1. To troubleshoot set SESSION_LOG_CLEAN=0 in node.conf and investigate "/home/cscs/.nx/F-C-me-promis-1001-0C81AD26055212F1AEED71DE3EA21772/session". You might also want to
 try: ssh -X myserver; /usr/lib/nx/nxnode --agent to test the basic functionality. Session log follows:</span></tt>
<br>
<tt><span style="font-size:10.0pt">NX> 1004 Error: NX Agent exited with exit status 1. To troubleshoot set SESSION_LOG_CLEAN=0 in node.conf and investigate "/home/cscs/.nx/F-C-me-promis-1001-0C81AD26055212F1AEED71DE3EA21772/session". You might also want to
 try: ssh -X myserver; /usr/lib/nx/nxnode --agent to test the basic functionality. Session log follows:</span></tt>
<br>
<tt><span style="font-size:10.0pt">nxnode_reader: NX> 1006 Session status: closed</span></tt>
<br>
<tt><span style="font-size:10.0pt">nxnode_reader: Error: Aborting session with 'Server is
<span style="color:red">already active for display 1001</span></span></tt> <br>
<br>
<br>
<br>
<br>
<tt><span style="font-size:10.0pt">You have the same issue that  "Mike Morris" had back in April
</span></tt><br>
<br>
<tt><span style="font-size:10.0pt">see</span></tt> <br>
<br>
<tt><span style="font-size:10.0pt">        </span></tt><a href="http://lists.kde.org/?l=freenx-knx&m=136628654928561&w=2"><tt><span style="font-size:10.0pt">http://lists.kde.org/?l=freenx-knx&m=136628654928561&w=2</span></tt></a>
<br>
<br>
<br>
<tt><span style="font-size:10.0pt">It's an un(properly)tested patch to nxnode . . .
</span></tt><br>
<tt><span style="font-size:10.0pt">. . . put in for some reason (possibly)</span></tt>
<br>
<br>
<br>
<tt><span style="font-size:10.0pt">getparam()</span></tt> <br>
<tt><span style="font-size:10.0pt">{</span></tt> <br>
<tt><span style="font-size:10.0pt">python -c " import sys; from urlparse import parse_qs;</span></tt>
<br>
<tt><span style="font-size:10.0pt">v=parse_qs(sys.argv[2]).get(sys.argv[1],[None])[0];</span></tt>
<br>
<tt><span style="font-size:10.0pt">if (v==None): sys.exit(1);</span></tt> <br>
<tt><span style="font-size:10.0pt">print v;" "$1" "${CMDLINE}"</span></tt> <br>
<tt><span style="font-size:10.0pt">}</span></tt> <br>
<br>
<br>
<tt><span style="font-size:10.0pt">which returns the first</span></tt> <br>
<tt><span style="font-size:10.0pt">         display=</span></tt> <br>
<br>
<tt><span style="font-size:10.0pt">instead of the second one</span></tt> <br>
<br>
<tt><span style="font-size:10.0pt">i.e. you are trying to use :1001 instead of :1002</span></tt>
<br>
<br>
<br>
<tt><span style="font-size:10.0pt">You seem to have missed the bit in my last posting where I asked you to send me a copy of your "nxnode" alongside the logging</span></tt>
<br>
<tt><span style="font-size:10.0pt">so I've had to guess which nxnode you are using for your patch.</span></tt>
<br>
<br>
<tt><span style="font-size:10.0pt">You can edit nxnode manually of course, if you prefer, but make a copy first whatever you do !!</span></tt>
<br>
<br>
<br>
<br>
<tt><span style="font-size:10.0pt">--- nxnode      2013-06-09 15:20:23.157473511 +0100</span></tt>
<br>
<tt><span style="font-size:10.0pt">+++ nxnode-getparam     2013-06-09 15:47:46.493234105 +0100</span></tt>
<br>
<tt><span style="font-size:10.0pt">@@ -72,11 +72,12 @@</span></tt> <br>
<tt><span style="font-size:10.0pt"> </span></tt> <br>
<tt><span style="font-size:10.0pt"> getparam()</span></tt> <br>
<tt><span style="font-size:10.0pt"> {</span></tt> <br>
<tt><span style="font-size:10.0pt">-       python -c "</span></tt> <br>
<tt><span style="font-size:10.0pt">-import sys; from urlparse import parse_qs;</span></tt>
<br>
<tt><span style="font-size:10.0pt">-v=parse_qs(sys.argv[2]).get(sys.argv[1],[None])[0];</span></tt>
<br>
<tt><span style="font-size:10.0pt">-if (v==None): sys.exit(1);</span></tt> <br>
<tt><span style="font-size:10.0pt">-print v;" "$1" "${CMDLINE}"</span></tt> <br>
<tt><span style="font-size:10.0pt">+        stringinstring "&$1=" "$CMDLINE" || return 1</span></tt>
<br>
<tt><span style="font-size:10.0pt">+</span></tt> <br>
<tt><span style="font-size:10.0pt">+        SHARES=$(echo $SHARES|tr -d "|") # Don't mess up the substitution of $SHARES</span></tt>
<br>
<tt><span style="font-size:10.0pt">+        echo "$CMDLINE" |  tr "&" "\n" | egrep "^"$1"=" | awk -F= '{ VAL=$2 } END { print VAL }' | sed "s|%24(SHARES)|$SHARES|g; s/%2d/-/g; s/%3A/:/g; s/%24/\$/g"</span></tt>
<br>
<tt><span style="font-size:10.0pt">+</span></tt> <br>
<tt><span style="font-size:10.0pt">+        return 0</span></tt> <br>
<tt><span style="font-size:10.0pt"> }</span></tt> <br>
<tt><span style="font-size:10.0pt"> </span></tt> <br>
<tt><span style="font-size:10.0pt"> find_app()</span></tt> <br>
<br>
<br>
<br>
<tt><span style="font-size:10.0pt">Let us know how you get on . . . . .</span></tt>
<br>
<br>
<o:p></o:p></p>
</div>
</body>
</html>