[FreeNX-kNX] Server setup; no logging & command not found

Lucky0106 lucky0106 at msn.com
Wed Feb 19 21:17:01 UTC 2014


>
> Well . . .
>
> start by checking that you DO have the private key from the FreeNX server
> key pair set up in the nxclient,
> either
> the (default) nomachine one if you didn't generate your own
> or
> copy over the new key from the server if you did choose to generate your
> own key pair, when you ran nxsetup 

I made sure to follow the defaults when running the server setup script, 
so here's what I get when I try to log in with Nxserver's default key:

> Pseudo-terminal will not be allocated because stdin is not a terminal.
>
> Permission denied (publickey).

And when using my SSH private key (it seems like this is what I had the 
client setup to do to begin with), the NoMachine client will prompt me 
for a username and password (I'll specify my ubuntu user account and its 
password). The client will proceed to think on it for awhile, then 
respond with the error "The NoMachine service is not available". Looking 
at my client connection log this time:

> Pseudo-terminal will not be allocated because stdin is not a terminal.
>
> Warning: No xauth data; using fake authentication data for X11 forwarding.
>
> Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.2.0-58-generic-pae i686)
>
>  * Documentation:  https://help.ubuntu.com/
>
> 16 packages can be updated.
> 16 updates are security updates.
>
> Linux
> NX server command not found

So it seems like my SSH private key is doing the trick, although I see 
some potentially concerning errors there besides the server command not 
found.

I also just found a more detailed log on the client side:

> Info: Slave server running with pid 4976.
> Info: Listening to slave connections on port 34391.
> 5044 5048 16:01:22 581.262 Connection: Finished connection at 0x4ab0bb0.
> 5044 5048 16:01:22 581.262 Connection: Initializing connection at 
> 0x4ab0bb0.
> 5044 5048 16:01:22 581.262 Connection: Initialized connection at 
> 0x4ab0bb0.
> 5044 5048 16:01:22 581.262 Connection: Starting connection at 0x4ab0bb0.
> 5044 5048 16:01:22 596.862 ClientProcess: Starting command 'nxssh.exe 
> "-F" "(redacted)\sshoptions" "glen at 192.168.1.133"'
> 5044 5048 16:01:22 596.862 Process: ERROR! Can't set priority to 0.
> 5044 5048 16:01:22 596.862 Process: ERROR! Error is 22 'Invalid argument'.
> 5044 5048 16:01:22 596.862 ClientSession: Going to add child with pid 
> '2128' and process at 0.
> 5044 5048 16:01:22 596.862 ClientSession: Now there are 1 running 
> children.
> 5044 5048 16:01:22 596.862 Connection: Started connection at 0x4ab0bb0.
> 5044 5048 16:01:22 612.462 ClientSession: Change state to 'Started'.
> 5044 5048 16:01:22 612.462 ClientSession: Started session at 0x741740.
> 5044 5048 16:01:28 852.473 Connection: Connection at 0x4ab0bb0 failed.
> 5044 5048 16:01:28 852.473 ClientSession: Runnable at 0x4ab0bb0 caused 
> the session at 0x741740 to fail.
> 5044 5048 16:01:28 852.473 ClientSession: Failing reason is 'The 
> NoMachine service is not available'.
> 5044 5048 16:01:28 868.073 ClientSession: Stopping session at 0x741740.
> 5044 5048 16:01:28 868.073 ClientSession: Change state to 'Stopping'.
> 5044 4976 16:01:28 883.673 SlaveServerApplication/Application: 
> WARNING! Not waiting with FD#1636 ready.
> 5044 5048 16:01:28 883.673 Connection: Stopping connection at 0x4ab0bb0.
> 5044 5048 16:01:28 883.673 Connection: Stopped connection at 0x4ab0bb0.
> 5044 5048 16:01:28 883.673 ClientSession: Going to kill all children.
> 5044 5048 16:01:28 883.673 ClientSession: Joining the child process 
> '2128'.
> 5044 5048 16:01:28 899.273 ClientSession: Change state to 'Stopped'.
> 5044 5048 16:01:28 899.273 ClientSession: Stopped session at 0x741740.
> 5044 5048 16:01:28 899.273 ClientSession: Change state to 'Failed'.

Hopefully that offers some more information...

> set logging to debug,  ie. 6
>
> tho . .
>
> . . . probably you are not connecting at all. 

Bumped logging up to 6 in node.conf, sudo nxserver --stop, sudo nxserver 
--start, attempted another log in with the client, annnnd...

> glen at glenux:/var/log$ sudo cat nxserver.log
> glen at glenux:/var/log$

Still empty. FWIW, the client logs still appear to be relatively the 
same, in case that would have made a difference.

> To test your server you can try
>
> logging in to the server as your normal user, then running
>
>         sudo su -l nx
>
> at a command prompt
> to see
> if user nx logs in and finds its shell 

Now *that* is pretty darned cool. I just tried the command:

> glen at glenux:/var/log$ sudo su -l nx
> HELLO NXSERVER - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
> NX> 105 help
> help
> NX> 105 ls
> ls
> NX> 105 quit
> quit
> Quit
> NX> 999 Bye

So clearly I have no idea what I'm doing once I'm in, but hey, I logged 
in on the server side! And naturally, the log:

> glen at glenux:/var/log$ sudo cat nxserver.log 
> -- NX SERVER START:  - 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 help
> NX> 105 ls
> NX> 105 quit
> Quit
> NX> 999 Bye
> glen at glenux:/var/log$

So it seems like things may be functioning over there. Now just for 
getting the client to talk!

> Development ceased in 2008 tho' various people have fixed various
> things since . . . 

Ah, shoot. I was reading up on some of the history; does this coincide 
with when NoMachine cut off their mailing list?

Thank you!

On 2/19/2014 6:52 AM, chris at ccburton.com wrote:
>
> freenx-knx-bounces at kde.org wrote on 18/02/2014 16:45:46:
>
> > Hello everyone,
> >
> > I would like to ask a question that is more Ubuntu-specific: I'm hoping
> > that it won't be too far off topic from the freenx server in general.
> >
> > I've finished setting up the server and I would like to start
> > connecting. So I start up the NoMachine NX client on my windows 
> computer
> > to connect. I've set it up for the SSH protocol, and I try to auth 
> using
> > my ubuntu username and SSH private key (although it might be the 
> private
> > key that freenx generated; I can't quite remember which).
>
> Well . . .
>
> start by checking that you DO have the private key from the FreeNX server
> key pair set up in the nxclient,
> either
> the (default) nomachine one if you didn't generate your own
> or
> copy over the new key from the server if you did choose to generate your
> own key pair, when you ran nxsetup
>
> >
> > The connection is dropped however, and when I look at the clientside
> > logs from NoMachine, I see my SSH log in welcome message, followed by a
> > line saying "the command was not found". Trying to find more 
> information
>
>
> What exactly does it say ( on the client, in the log ). . . .
>
>
> > on my server is fruitless, however, as the nxserver.log file is
> > completely empty, despite me setting the logging level to 5 and
>
> set logging to debug,  ie. 6
>
> tho . .
>
> . . . probably you are not connecting at all.
>
>
> To test your server you can try
>
> logging in to the server as your normal user, then running
>
>         sudo su -l nx
>
> at a command prompt
> to see
> if user nx logs in and finds its shell
>
>
> > subsequently rebooting the server. The log file also appears to be 
> owned
> > (and is writable by) an nx user.
>
> yup, the original "ssh tunnel" connection is made by
>          user nx
> with a
>          ssh key pair
>
> then
> your username and password are used to log in your user session
> via the tunnel
>
> >
> > If anyone can help me get up and running, that would be wonderful.
> >
> > P.S. Is the freenx server still actively developed? I see there hasn't
> > been a stable release in nearly four years!
>
> Development ceased in 2008 tho' various people have fixed various
> things since . . .
>
>
>
>
>
>
>
>
>
> ________________________________________________________________
>       Were you helped on this list with your FreeNX problem?
>      Then please write up the solution in the FreeNX Wiki/FAQ:
>
> http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ
>
>           Don't forget to check the NX Knowledge Base:
>                   http://www.nomachine.com/kb/
>
> ________________________________________________________________
>         FreeNX-kNX mailing list --- FreeNX-kNX at kde.org
>        https://mail.kde.org/mailman/listinfo/freenx-knx
> ________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20140219/94671a4d/attachment-0001.html>


More information about the FreeNX-kNX mailing list