[FreeNX-kNX] [FreeNx-kNx] Help about nxssh and nxproxy

Freymann Sébastien psychopathe67 at hotmail.com
Mon Apr 23 17:11:30 UTC 2007


 > Hi, i'm turning on Fedora 6 and I try to follow the "NX Client 
Developer Guide-1.pdf" that I find on 
http://home.nc.rr.com/moznx/typical.txt
 >
 > I open a konsole and y type :
 > # yum install freenx
 > --> it install and configure freenx
 > # nxkeygen
 > Unique key generated; your users must install
 >
 >     /var/lib/nxserver/home/.ssh/client.id_dsa.key
 >
 > on their computers.
 > # cp /var/lib/nxserver/home/.ssh/client.id_dsa.key /home/<login>/Desktop/
 > // I try the key with the nomachine client and she work fine ;)
 > $ nxssh -nx -i /home/<login>/Desktop/client.id_dsa.key nx at localhost
 > NX> 203 NXSSH running with pid: 4347
 > NX> 200 Connected to address: 127.0.0.1 on port: 22
 > NX> 202 Authenticating user: nx
 > NX> 208 Using auth method: publickey
 > HELLO NXSERVER - Version 1.5.0-50 OS (GPL)
 > NX> 105
 >
 > I type :
 > NX> 105 hello NXCLIENT - Version 1.4.0     // 1) The version is correct ?
 > hello NXCLIENT - Version 1.4.0
 > NX> 134 Accepted protocol: 1.4.0
 > NX> 105
 >
 > 2) Is this step necessary?
 > Next I type :
 >
 > NX> 105 SET SHELL_MODE SHELL
 > SET SHELL_MODE SHELL
 > NX> 105 SET AUTH_MODE PASSWORD
 > SET AUTH_MODE PASSWORD
 > NX> 105
 >
 > 3) What makes these 2 comand? Exist it really?
 >
 > Then I type :
 >
 > NX> 105 login
 > login
 > NX> 101 User: <login>
 > Netzack
 > NX> 102 Password: <password>
 >
 > NX> 103 Welcome to: localhost.localdomain user: <login>
 > NX> 105
 >
 > And yet I type :
 > NX> 105 startsession --session="TEST" --type="unix-kde" --cache="8M" 
--images="32M" --cookie="6726ad07a80d73c69a74c5f341b52a68" --link="adsl" 
--render="1" --encryption="0" --backingstore="when_requested" 
--imagecompressionmethod="2" --geometry="1024x768+188+118" 
--keyboard="defkeymap" --kbtype="pc102/defkeymap" --media="0" 
--agent_server="" --agent_user="" --agent_password="" 
screeninfo="1024x768x16+render"
 >
 > NX> 1000 NXNODE - Version 1.5.0-50 OS (GPL)
 > NX> 700 Session id: 
localhost.localdomain-1000-79DBA62EB1FC89D663F3EB989A324F18
 > NX> 705 Session display: 1000
 > NX> 703 Session type: unix-kde
 > NX> 701 Proxy cookie: cbc8fbb1280fa3362b3b2b35640af2a5
 > NX> 702 Proxy IP: 127.0.0.1
 > NX> 706 Agent cookie: 6726ad07a80d73c69a74c5f341b52a68          // 4) 
Can I type an other random cookie?
 > NX> 704 Session cache: unix-kde
 > NX> 707 SSL tunneling: 0
 > NX> 1009 Session status: starting
 > NX> 710 Session status: running
 > NX> 1002 Commit
 > /usr/bin/nxserver: line 1077:  4539 Terminated              sleep 
$AGENT_STARTUP_TIMEOUT             // 5) Why this line?
 > NX> 105 NX> 1006 Session status: running
 >
 > afer a few second I see :
 > NX> 596 Session startup failed.    // :'(
 > NX> 1004 Error: NX Agent exited with exit status 1.
 > Can't open 
/var/lib/nxserver/db/running/sessionId{79DBA62EB1FC89D663F3EB989A324F18}: 
No such file or directory
 > mv: cannot stat 
`/var/lib/nxserver/db/running/sessionId{79DBA62EB1FC89D663F3EB989A324F18}': 
No such file or directory
 > NX> 1006 Session status: closed
 > NX> 1001 Bye.
 >
 > and when I type <Enter> after that I see :
 >
 > quit
 > Quit
 > NX> 999 Bye
 > [<login>@localhost ~]$
 >
 > Why does it failed? Has anyone a solution?
 > Thank you in advance

 >> That is correct. You need to send a switch command to let nxssh 
startup the proxy internally.
 >>
 >> But I don't know what it was, look into nxssh source code for 
"Switch" or "switch".
 >>
 >> cu
 >>
 >> Fabian

Oh, the posting of my message was not pretty :s

Ok when I launch this process I try (in an other session)
$ nxproxy -S localhost:1000 cookie=6726ad07a80d73c69a74c5f341b52a68
NXPROXY - Version 2.1.0

Copyright (C) 2001, 2006 NoMachine.
See http://www.nomachine.com/ for more information.

Info: Proxy running in client mode with pid '11110'.
Session: Starting session at 'Mon Apr 23 19:02:49 2007'.
Info: Connecting to remote host 'localhost:5000'.
Info: Connection to remote proxy 'localhost:5000' established.
Info: Synchronizing local and remote caches.
Info: Handshaking with remote proxy completed.
Info: Using lan link parameters 1536/24/1/0.
Info: Using image streaming parameters 50/128/1024KB/6144/768.
Info: Using image cache parameters 1/1/32768KB.
Info: Using pack method '16m-rle-9' with session ''.
Info: Not using NX delta compression.
Info: Not using ZLIB data compression.
Info: Not using ZLIB stream compression.
Info: Not using persistent cache.
Info: Using remote server 'localhost:5000'.
Session: Session started at 'Mon Apr 23 19:02:49 2007'.
Info: Established X server connection.
Info: Using shared memory parameters 1/2048K.

----> It open a new windows called : "NX - 
<login>@localhost.localdomain:1000 - TEST (GPL Edition)"
In this windows we can see ne !M logo about 3secondes and then a black 
screen... How can I see my desktop please?





More information about the FreeNX-kNX mailing list