[SOLVED] freenx not connecting

Issues related to applications and software problems
pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: freenx not connecting

Post by pschaff » 2012/04/17 21:22:50

I have called for some expert help. Please stand by.

gennum
Posts: 21
Joined: 2011/11/04 18:55:42

Re: freenx not connecting

Post by gennum » 2012/04/17 21:52:08

thank you.
i have further tested by logging into working NX server, ssh into broken server and export display to working server. From broken nx server i use /usr/bin/nxnode --agent, in working server i get M! with black screen. So the X forwarding is working.

Very frustrating as i have a working CentOS6 with NX already setup and working. The only difference is that the working centos6 server was a centos6 ISO install and the new server is a centos6.2 ISO install.

Not sure if this info helps but I am really stumped.

gennum
Posts: 21
Joined: 2011/11/04 18:55:42

Re: freenx not connecting

Post by gennum » 2012/04/17 21:54:29

sorry to keep posting.
I also rolled back the freenx and nx installs to later versions and still get the same problem. older versions used freenx-7.3-7 and nx-3.3.0-38

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

[SOLVED] freenx not connecting

Post by toracat » 2012/04/17 22:47:15

[quote]
gennum wrote:

i have further tested by logging into working NX server, ssh into broken server and export display to working server. From broken nx server i use /usr/bin/nxnode --agent, in working server i get M! with black screen. So the X forwarding is working.

Very frustrating as i have a working CentOS6 with NX already setup and working. The only difference is that the working centos6 server was a centos6 ISO install and the new server is a centos6.2 ISO install.[/quote]
If I understand the situation correctly, you have at least two servers, both running CentOS-6. One is 6.0 and NX is working. The other is 6.2 and NX is [i]not[/i] working. Is this correct?

Try running the following ssh commands from server1 to server2 :

ssh -X server2 nxagent :3000 (or other display number of your choice)

Wait for an NX window to open AND

ssh -X server2 export DISPLAY=:3000 ; xterm

Now, run the same commands from server2 to server1. Would either session show useful error message?

gennum
Posts: 21
Joined: 2011/11/04 18:55:42

Re: freenx not connecting

Post by gennum » 2012/04/17 23:06:14

both servers completed the command with NX agent starting on the other server.

error message on both server- error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
- Error: cannot open "compiled/server - 3000.xkm" to write keybaord description

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: freenx not connecting

Post by toracat » 2012/04/17 23:22:42

OK.

I just want to be sure you have the same version of nx/freenx installed on the working and the non-working server.

rpm -qa | grep nx

gennum
Posts: 21
Joined: 2011/11/04 18:55:42

Re: freenx not connecting

Post by gennum » 2012/04/17 23:59:59

bad server

rpm -qa | grep nx
nx-3.5.0-1.el6.centos.x86_64
freenx-0.7.3-8.el6.centos.x86_64



good server

rpm -qa | grep nx
freenx-0.7.3-8.el6.centos.x86_64
nxclient-3.5.0-7.x86_64
nx-3.5.0-1.el6.centos.x86_64


I had the client install on the bad server, but I rebuilt from ISO as I thought i may have done something wrong on install.

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: freenx not connecting

Post by toracat » 2012/04/18 00:32:48

Please run (as root):

nxloadconfig --check

on both machines and see if you get the same output.

gennum
Posts: 21
Joined: 2011/11/04 18:55:42

Re: freenx not connecting

Post by gennum » 2012/04/18 01:09:10

bad

nxloadconfig --check
Warning: Could not find nxdesktop in /usr/bin. RDP sessions won't work.
Warning: Could not find nxviewer in /usr/bin. VNC sessions won't work.
Warning: Invalid value "APPLICATION_LIBRARY_PRELOAD=/usr/lib/libX11.so.6.2:/usr/lib/libXext.so.6.4:/usr/lib/libXcomp.so.2:/usr/lib/libXcompext.so:/usr/lib/libXrender.so.1.2". /usr/lib/libX11.so.6.2 could not be found. Users will not be able to run a single application in non-rootless mode.
Warning: Invalid value "CUPS_ETC=/etc/cups/"
Users will not be able to enable printing.
Warning: Invalid value "COMMAND_START_CDE=cdwm"
Users will not be able to request a CDE session.
Warning: Invalid value "COMMAND_SMBMOUNT=smbmount". You'll not be able to use SAMBA.
Warning: Invalid value "COMMAND_SMBUMOUNT=smbumount". You'll not be able to use SAMBA.
Warning: Invalid cupsd version of "/usr/sbin/cupsd". Need version 1.2.
Users will not be able to enable printing.
Error: Could not find 1.5.0 or 2.[01].0 or 3.[01].0 version string in nxagent. NX 1.5.0 or 2.[01].0 or 3.[012].0 backend is needed for this version of FreeNX.

Warnings occured during config check.
To enable these features please correct the configuration file.






good

nxloadconfig --check
Warning: Could not find nxdesktop in /usr/bin. RDP sessions won't work.
Warning: Could not find nxviewer in /usr/bin. VNC sessions won't work.
Warning: Invalid value "APPLICATION_LIBRARY_PRELOAD=/usr/lib/libX11.so.6.2:/usr/lib/libXext.so.6.4:/usr/lib/libXcomp.so.2:/usr/lib/libXcompext.so:/usr/lib/libXrender.so.1.2". /usr/lib/libX11.so.6.2 could not be found. Users will not be able to run a single application in non-rootless mode.
Error: Invalid value "USER_FAKE_HOME=/user/root"
Warning: Invalid value "COMMAND_START_CDE=cdwm"
Users will not be able to request a CDE session.
Warning: Invalid value "COMMAND_SMBMOUNT=smbmount". You'll not be able to use SAMBA.
Warning: Invalid value "COMMAND_SMBUMOUNT=smbumount". You'll not be able to use SAMBA.
Warning: Invalid cupsd version of "/usr/sbin/cupsd". Need version 1.2.
Users will not be able to enable printing.
Error: Could not find 1.5.0 or 2.[01].0 or 3.[01].0 version string in nxagent. NX 1.5.0 or 2.[01].0 or 3.[012].0 backend is needed for this version of FreeNX.

Errors occured during config check.
Please correct the configuration file.

gennum
Posts: 21
Joined: 2011/11/04 18:55:42

Re: freenx not connecting

Post by gennum » 2012/04/18 01:12:35

fails with this message sometimes after it flashes and dies;

Info: Display running with pid '5316' and handler '0x80c94'.

NXPROXY - Version 3.5.0

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

Info: Proxy running in client mode with pid '5796'.
Session: Starting session at 'Tue Apr 17 21:11:30 2012'.
Info: Connection with remote proxy completed.
Info: Using ADSL link parameters 512/24/1/0.
Info: Using cache parameters 4/4096KB/16384KB/16384KB.
Info: Using pack method 'adaptive-7' with session 'kde'.
Info: Using ZLIB data compression 1/1/32.
Info: Using ZLIB stream compression 4/4.
Info: Using cache file 'C:\Users\mike\NXC495~1/cache-kde/S-54ACA9483DC838E352E647DA862AD996'.
Info: Forwarding X11 connections to display ':0'.
Info: Listening to font server connections on port '11000'.
Session: Session started at 'Tue Apr 17 21:11:30 2012'.
Session: Terminating session at 'Tue Apr 17 21:11:32 2012'.
Info: Your session was closed before reaching a usable state.
Info: This can be due to the local X server refusing access to the client.
Info: Please check authorization provided by the remote X application.
Session: Session terminated at 'Tue Apr 17 21:11:32 2012'.

Post Reply