Newsgroup: it.comp.os.linux.sys
Titolo: Sapete configurare un server nx?

Chi mi sa spiegare perche' nonostante ho aggiunto un utente (gia' presente 
nel sistema) con nxserver --useradd <utente>, quando mi collego da un client 
nx continua ad avere:
NX> 200 Host found. Connecting...
NX> 202 Connected.
NX> 204 Permission Denied.

 client nx continua ad avere:
Ho risolto, ho abilitato
ENABLE_USER_DB = "1"
ENABLE_PASSWORD_DB = "1"
in node.cfg
Questi parametri fanno in modo che l'utente che aggiungo in nxserver venga 
inserito in un database per le password separato da quello del sistema, e 
cosi' pare funzionare.... o quasi.
Ora anche se riesce ad utenticarsi, il programma nxclient si chiude un 
istante dopo senza dare spiegazioni.
Ecco i log sul server:
Jan 24 16:17:09 davidemobile NXSERVER 1.5.0-91[1381]: User 'davide' logged 
in from '192.168.0.2'. 'NXLogin::set'
Jan 24 16:17:15 davidemobile NXSERVER 1.5.0-91[1381]: Session 
'5FA18D4CCB92CC9C6F909E84EF9E0DA4' started by user 'davide'. 
'NXShell::handler_session_start'
Jan 24 16:17:15 davidemobile NXSERVER 1.5.0-91[1381]: User 'davide' from 
'192.168.0.2' logged out. 'NXLogin::reset'
Jan 24 16:17:15 davidemobile NXNODE 1.5.0-91[1394]: INFO: Using port '1009' 
on node '
davidemobile.novasoftonline.it
' for session 'unix-console'. 
'main:nxnode:3584'
Jan 24 16:17:46 davidemobile NXNODE 1.5.0-91[1423]: ERROR: Session 
connection timeout: connection is in status: 'ShuttingDown' since too much 
time 'NXSessionMonitor::__handleConnectionTimeout'
Jan 24 16:17:46 davidemobile NXNODE 1.5.0-91[1423]: Killing agent pid with 
signal 15 and setting status to error: Proxy connection was closed, but the 
link was not shut down 'NXSessionMonitor::__handleConnectionTimeout'
Jan 24 16:17:46 davidemobile NXNODE 1.5.0-91[1423]: ERROR: Error when 
monitoring session: Proxy connection was closed, but the link was not shut 
down in the expected time. 'NXSessionMonitor::__setSessionStatus'
Jan 24 16:17:46 davidemobile NXNODE 1.5.0-91[1423]: NXSessionMonitor: 
killing unexpected agent running with pid '1416' with signal '15' 
'NXSessionMonitor::monitorStatus'
Jan 24 16:17:49 davidemobile NXNODE 1.5.0-91[1423]: NXSessionMonitor: 
killing unexpected agent running with pid '1416' with signal '15' 
'NXSessionMonitor::monitorStatus'
Jan 24 16:17:50 davidemobile NXNODE 1.5.0-91[1423]: NXSessionMonitor: 
killing unexpected agent running with pid '1416' with signal '9' 
'NXSessionMonitor::monitorStatus'
Jan 24 16:17:50 davidemobile NXNODE 1.5.0-91[1394]: ERROR: run command: 
process: 1416 died because of signal: 9 'main::__run_command_waitpid'
Jan 24 16:17:51 davidemobile NXNODE 1.5.0-91[1423]: INFO: Directory 
'/home/davide/.nx/C-davidemobile.novasoftonline.it-1009-5FA18D4CCB92CC9C6F909E84EF9E0DA4' 
renamed into 
'/home/davide/.nx/F-C-davidemobile.novasoftonline.it-1009-5FA18D4CCB92CC9C6F909E84EF9E0DA4' 
for further investigation 'main:nxnode:3688'
Jan 24 16:17:51 davidemobile NXNODE 1.5.0-91[1423]: INFO: session monitor: 
cleaning session files: removing '/tmp/.X11-unix/X1009' 'main:nxnode:5713'
Jan 24 16:17:51 davidemobile NXNODE 1.5.0-91[1394]: INFO: Session 
'unix-console' on port '1009' failed. 'main:nxnode:3731'
Jan 24 16:17:53 davidemobile NXSERVER 1.5.0-91[1420]: User 'davide' from 
'192.168.0.2' logged out. 'NXLogin::reset'

 '192.168.0.2' logged out. 'NXLogin::reset'
Io la butto là
Sicuro che il tuo utente abbi apermessi per far girare applicazioni X?
Aloa Zp

 Sicuro che il tuo utente abbi apermessi per far girare applicazioni X?
L'utente e' un utente di sistema che lavora proprio con X! 

Davide D'Amico ha scritto:

Scusa la domanda. Se il tuo utente fosse autenticato attraverso il
meccanismo di /etc/passwd e /etc/shadow funzionerebbe anche la
connessione nx?
Aloa Zp

 meccanismo di /etc/passwd e /etc/shadow
Il mio utente 'è' autenticato attraverso passwd e shadow!
cco l'uotput del client:
NXPROXY - Version 1.3.0
Copyright (C) 2001,2003 NoMachine.
See 
http://www.nomachine.com/
 for more information.
Info: Proxy running in client mode with pid '3304'.
Info: Connecting to remote host '
192.168.0.35:5015
'.
Info: Connection to remote proxy '
192.168.0.35:5015
' established.
Warning: Connected to remote NXPROXY version 1.5.0 with local version 1.3.0.
Warning: Consider checking 
http://www.nomachine.com/
 for updates.
Info: Handshaking with remote proxy '
192.168.0.35:5015
' completed.
Info: Synchronizing local and remote caches.
Info: Not using NX delta compression.
Info: Using lan link parameters 16384/80/16/8192.
Info: Using pack method '16m-jpeg-9' with session 'unix-gnome'.
Info: Not using ZLIB stream compression.
Info: Not using remote ZLIB stream compression.
Info: Not using persistent cache.
Info: Using remote server '
192.168.0.35:5015
'.
Info: Starting X protocol compression.
Info: Established X server connection.
Warning: Not using shared memory support in X server.

 Warning: Connected to remote NXPROXY version 1.5.0 with local version 1.3.0.
Se è così a me è capitato che il server nx moriva perchè la seguente
impostazione era sbagliata ìn node.conf:
AGENT_EXTRA_OPTIONS_X="-fp
/usr/share/X11/fonts/misc:/usr/share/X11/fonts/cyrillic:/usr/share/X11/fonts/Type1:
/usr/share/X11/fonts/CID:/usr/share/X11/fonts/100dpi:/usr/share/X11/fonts/75dpi:/var/lib/defoma
/x-ttcidfont-conf.d/dirs/TrueType:/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
(dovrebbe stare tutta in una riga l'ho divisa per leggibilità)
Spero ti sia utile
Aloa zp