githubhjs / neatx

Automatically exported from code.google.com/p/neatx
0 stars 0 forks source link

/usr/lib/neatx/ttysetup very slow, session setup times out #52

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
server Ubuntu Lucid 10.04, client ubuntu jaunty 9.04 with NX Client 
downloaded last weekend.

I'm trying to connect through an SSH tunnel, and the session is timing out.

I can see in /var/log/debug that the ttysetup step is taking 26 seconds, 
which I suppose is the reason for this.

If I connect to the same server through the local network the connection 
setup is also slow, but it works in the end.

May 27 11:22:20 xbmc nxserver-login[4228]: DEBUG auth:50 Authenticating as 
'boekhold', running ['/usr/lib/neatx/nxserver', '--proto=3030000', '--', 
'boekhold']
May 27 11:22:20 xbmc nxserver-login[4228]: DEBUG auth:53 Auth command 
['/usr/lib/neatx/ttysetup', '/bin/su', 'boekhold', '-c', 'cd && 
/usr/lib/neatx/nxserver --proto=3030000 -- boekhold']
May 27 11:22:46 xbmc nxserver[4236]: DEBUG protocol:172 >>> 'NX> 103 
Welcome to: xbmc user: boekhold\n'

which leads in the end to:

May 27 11:22:49 xbmc nxnode[4242]: DEBUG daemon:461 /usr/bin/nxagent[4247] 
stderr: Info: Listening to X11 connections on display ':650'.
May 27 11:22:57 xbmc nxserver-login[4228]: DEBUG auth:133 fdcopy exited 
(exitstatus=0, signum=None)
May 27 11:23:23 xbmc nxnode[4242]: DEBUG daemon:461 /usr/bin/nxagent[4247] 
stderr: Warning: No data received from remote proxy within 33 seconds.

What's the reason for these 2 large intervals in the setup?

Btw. I read somewhere that this could have something to do with the 
permissions on the /var/lib/nxserver/home directory, so I added the 
'boekhold' user to the nx group. Permissions on /var/lib/nxserver/home are:

root@xbmc:/var/lib/nxserver/home# ls -la
total 20
drwxr-xr-x 4 nx root 4096 2010-05-27 11:22 .
drwxr-xr-x 3 nx root 4096 2010-05-23 22:50 ..
drwxr-xr-x 2 nx nx   4096 2010-05-23 22:55 .cache
drwxr-xr-x 2 nx root 4096 2010-05-23 22:50 .ssh
-rw------- 1 nx nx    150 2010-05-27 11:22 .Xauthority

So not sure if just adding to the group is enough... (no group write 
permissions etc.)

Any idea how to fix this? Would like to be able to access my home box from 
work :)

Original issue reported on code.google.com by boekh...@gmail.com on 27 May 2010 at 7:31