[SOLVED] freenx not connecting

Issues related to applications and software problems
gennum
Posts: 21
Joined: 2011/11/04 18:55:42

[SOLVED] freenx not connecting

Post by gennum » 2012/04/17 04:25:52

hello,
installed the latest centos 6.2 with the CR package (continuous release), installed freenx

disabled selinux and iptables

when i try to start an NX session the session will either die saying 'session startup failed' or i will flash for a second without output.

i enabled higher logging level for trouble shoot both for session clean up and verbose /var/log/nx/nxserver.log

when i cat the 'session' in .nx/sessionname/session


Info: Agent running with pid '19079'.
Session: Starting session at 'Tue Apr 17 00:17:50 2012'.
Info: Proxy running in server mode with pid '19079'.
Info: Waiting for connection from '127.0.0.1' on port '5105'.
Info: Accepted connection from '127.0.0.1'.
Info: Connection with remote proxy completed.
Info: Using ADSL link parameters 512/24/1/0.
Info: Using agent parameters 5000/10/50/0/0.
Info: Using cache parameters 4/4096KB/16384KB/16384KB.
Info: Using pack method 'adaptive-7' with session 'kde'.
Info: Using product 'LFE/None/LFEN/None'.
Info: Using ZLIB data compression 1/1/32.
Info: Using ZLIB stream compression 4/4.
Info: Using cache file '/user/mmacneil/.nx/cache-kde/C-E1BB1B1C1E0A392CC449B4CA3BD7895B'.
Info: Listening to X11 connections on display ':1105'.
Error: Aborting session with 'Unable to open display 'nx/nx,options=/user/mmacneil/.nx/C-ottlogin18-1105-E8119CB39CE0EC7A28A7656C23CC74BA/options:1105''.
Session: Aborting session at 'Tue Apr 17 00:17:51 2012'.
Session: Session aborted at 'Tue Apr 17 00:17:51 2012'.
Warning: Signals were not blocked in process with pid '19079'.
Info: Your session has died before reaching an usable state.
Info: This can be due to the remote X server refusing access to the client.
Info: Please check the authorization provided by your X application.
Info: Watchdog running with pid '19127'.
Info: Waiting the watchdog process to complete.


What is blocking the session from starting properly?

Thanks in advance for the help.

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 18:10:05

Are you running in an X-windows session? How are you connecting to the remote host? SSH? If so, is X11 forwarding enabled, or have you otherwise allowed the remote system to connect to the X server?

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

Re: freenx not connecting

Post by gennum » 2012/04/17 20:24:13

X11forwarding is turned on in sshd_config

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 20:26:11

And the answers to the other questions?

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

Re: freenx not connecting

Post by gennum » 2012/04/17 20:30:27

i should add that ssh via putty works fine

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 20:34:54

If you are using a PuTTY SSH client then it seems highly likely that you are coming from Windows and [b][i]not[/i][/b] from an X-windows session. I'm not at all familiar with [url=http://wiki.centos.org/HowTos/FreeNX]NX/FreeNX[/url] but it seems you need to install and use a [url=http://www.nomachine.com/download-client-windows.php]Windows NX client[/url], configuring so the server expects that, rather than an X-windows session.

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

Re: freenx not connecting

Post by gennum » 2012/04/17 20:56:13

i also ran;
ssh -X myserver; /usr/bin/nxnode --agent to test the basic functionality. Session log follows:

i get error message in the session info

info: aborting the procedure due to signal '15'.
Error: aborting session with 'Unable to open display' 'nx/nx, options=......"

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

Re: freenx not connecting

Post by gennum » 2012/04/17 20:58:54

sorry yes i am using a windows 3.5.0-7 client connecting to freenx 0.7.3-8

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:08:03

X-windows should not be used at all, unless you have installed an [url=https://www.google.com/search?q=Windows+Xwindows+server&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:unofficial&client=firefox-a]X-window server on Windows[/url], and that should not be necessary if using NX.

Have you read the Wiki article referenced in post #6? If that does not help then someone else needs to jump in. I am NX-illiterate.

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

Re: freenx not connecting

Post by gennum » 2012/04/17 21:15:05

yes thank you i read wiki, no help

Post Reply