[FreeNX-kNX] Re: Trouble with rdp tunneling

Nick Baird nick1 at permali.co.uk
Sun Jul 31 15:30:12 UTC 2011


On 31 July 2011 at 14:52 chris at ccburton.com wrote:


>
> Nick Baird <nick1 at permali.co.uk> wrote on 31/07/2011 08:02:19:
>
>> Hi
>>
>> I just got the latest updates from the freenx stable ppa on ubuntu 10.04,
>> and
>> I have the same problem as Joseph Simonds when using freenx as an rdp proxy
>> (it works fine when used to access a desktop on the linux server).
> [SNIP]
>>
>> Can anyone suggest what's wrong here?
>>
>> Thanks,
>>
>> Nick
>
> As I posted previously, nxloadconfig should stop nxdesktop
> being executed by checking if it exists and setting:-
>
>         ENABLE_EXTERNAL_NXDESKTOP="1"
>
> when it finds that it doesn't, which causes nxserver
> to set:-
>
>         type="windows-helper"
>
> So . . .
>
> Look in your nxserver script and see what's happend to
> The section (which previously looked like) :-
>
>         if [ "$ACTION" = "start" ]
>         then
>
>                 # Hack for external RDP/RFB agents
>
>                 if [ "$ENABLE_EXTERNAL_NXDESKTOP" = "1" -a "$(getparam 
type)"
> = "windows" ]
>                 then
>                         type="windows-helper"
>                         application="$PATH_BIN/nxdesktop_helper"
>                        
> PARAMS="$PARAMS&type=$type&application=$application&freenx_export_agents=1"
>                         CMDLINE=$PARAMS
>                 fi
>
>
> You may as well also check nxloadconfig to see what's
> happened to the section (which used to look like) :-
>
> { ! mywhich "$PATH_BIN/nxdesktop"; } >/dev/null 2>&1 &&
> ENABLE_EXTERNAL_NXDESKTOP="1"
>
>
> and also in nxloadconfig, check to see if:-
>
>         NXCONFIG_RETEST=1
>
> is still there, else the above check will be missed out !!!
> (sounds like the most likely cause to me)
>
>
> cb
>
>
>
>
>
>
>

Thanks for your reply Chris.

I checked the nxserver script and it contained the section you mentioned 
above,
the only difference being that it was missing
theapplication="$PATH_BIN/nxdesktop_helper" line.  I added this line to the
script but rdp tunnelling still doesn't work.  The output in the log is 
slightly
different:

-- NX SERVER START: -c /usr/bin/nxserver - ORIG_COMMAND=
-- NX SERVER START:  - ORIG_COMMAND=
Info: Using fds #4 and #3 for communication with nxnode.
HELLO NXSERVER - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
NX> 105 hello NXCLIENT - Version 3.2.0
NX> 134 Accepted protocol: 3.2.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: nbaird
NX> 102 Password:
NX> 103 Welcome to: uproxy user: *****
NX> 105 listsession --user="*****" --status="suspended,running"
--geometry="1680x1050x24+render" --type="windows"
NX> 127 Sessions list of user '*****' for reconnect:

Display Type             Session ID                       Options  Depth
Screen         Status      Session Name
------- ---------------- -------------------------------- -------- -----
-------------- ----------- ------------------------------


NX> 148 Server capacity: not reached for user: *****
NX> 105 startsession  --link="adsl" --backingstore="1" --encryption="1"
--cache="128M" --images="256M" --shmem="1" --shpix="1" --strict="0"
--composite="1" --media="0" --session="PGL%20Remote" --type="windows"
--agent_server="192.168.8.21" --geometry="1280x1024+200+0" --client="linux"
--keyboard="pc105/gb" --screeninfo="1280x1024x24+render"

Info: Using /etc/nxserver/nxacl to change session parameters or deny session.
NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
NX> 700 Session id: uproxy-2000-521B9482D922783DABF5CADD59766DEC
NX> 705 Session display: 2000
NX> 703 Session type: windows
NX> 701 Proxy cookie: f8f68b8079968ea5d8eb71695cfdb310
NX> 702 Proxy IP: 127.0.1.1
NX> 706 Agent cookie: f8f68b8079968ea5d8eb71695cfdb310
NX> 704 Session cache: windows
NX> 707 SSL tunneling: 1
NX> 1004 Error: NX Agent exited with exit status 1. To troubleshoot set
SESSION_LOG_CLEAN=0 in node.conf and investigate
"/home/nbaird/.nx/F-C-uproxy-2000-521B9482D922783DABF5CADD59766DEC/session". 
You
might also want to try: ssh -X myserver; /usr/lib/nx/nxnode --agent to test 
the
basic functionality. Session log follows:
/usr/lib/nx/nxnode: line 785: /usr/lib/nx/nxdesktop: No such file or directory
NX> 1006 Session status: closed
NX> 105 NX> 596 Session startup failed.
Info: Closing connection to slave with pid 3967.
1001 Bye.
NX> 1001 Bye.
Info: Closing connection to slave with pid 3967.


NXLOADCONFIG contains the lines that you suggest it should.

Nick



More information about the FreeNX-kNX mailing list