Hi All, I'm hoping someone will be able to offer some advice on desktop shadowing with the latest CentOS 4's FreeNX. I've installed the latest FreeNX RPMs as described on the wiki: [james@localhost ~]$ rpm -qa |grep nx nxclient-3.2.0-9 freenx-0.7.3-1.el4.centos nx-3.2.0-8.el4.centos And I can NX in using two separate test user accounts. However when I try to enable shadowing I encounter two problems: 1) The shadow selection dialog doesn't show usernames (the column is simply blank). The result is that you need to know the display number in advance. 2) On choosing a display, I get an error connecting (and an authentication request is never shown on the display being shadowed). I can work around 2 by first doing 'xhost +' on the display which is about to be shadowed. But this isn't ideal... Any ideas / tips / pointers to more documentation appreciated! Cheers, James NXlog attached containing: 1 session created, followed by attempt to shadow from another user account.
-- NX SERVER START: -c /usr/bin/nxserver - ORIG_COMMAND= -- NX SERVER START: - ORIG_COMMAND= Info: Using fds #4 and #3 for communication with nxnode. HELLO NXSERVER - Version 3.2.0-73 OS (GPL, using backend: not detected) NX> 105 hello NXCLIENT - Version 3.2.0 NX> 134 Accepted protocol: 3.2.0 NX> 105 SET SHELL_MODE SHELL NX> 105 SET AUTH_MODE PASSWORD NX> 105 login NX> 101 User: james NX> 102 Password: Info: Auth method: ssh james@xxxxxxxxx's password: NX> 1000 NXNODE - Version 3.2.0-73 OS (GPL, using backend: not detected) NX> 716 Slave mode started successfully. nxnode_reader: NX> 1000 NXNODE - Version 3.2.0-73 OS (GPL, using backend: not detected) nxnode_reader: NX> 716 finished nxnode_reader: NX> 1001 Bye. NX> 103 Welcome to: localhost.localdomain user: james NX> 105 listsession --user="james" --status="suspended,running" --geometry="1920x1200x32+render" --type="unix-gnome" NX> 127 Sessions list of user 'james' for reconnect: Display Type Session ID Options Depth Screen Status Session Name ------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------ NX> 148 Server capacity: not reached for user: james NX> 105 startsession --link="adsl" --backingstore="1" --encryption="1" --cache="32M" --images="256M" --shmem="1" --shpix="1" --strict="0" --composite="1" --media="0" --session="centos4" --type="unix-gnome" --geometry="1916x1156" --client="macosx" --keyboard="query" --screeninfo="1916x1156x32+render" &link=adsl&backingstore=1&encryption=1&cache=32M&images=256M&shmem=1&shpix=1&strict=0&composite=1&media=0&session=centos4&type=unix-gnome&geometry=1916x1156&client=macosx&keyboard=query&screeninfo=1916x1156x32+render&clientproto=3.2.0&user=james&userip=172.23.32.6&uniqueid=C4F9C4FA16F4BBCF5DAB1D203299A950&display=1000&host=127.0.0.1 nxnode_reader: NX> 1000 NXNODE - Version 3.2.0-73 OS (GPL, using backend: not detected) server_nxnode_echo: NX> 1000 NXNODE - Version 3.2.0-73 OS (GPL, using backend: not detected) NX> 1000 NXNODE - Version 3.2.0-73 OS (GPL, using backend: not detected) nxnode_reader: NX> 700 Session id: localhost.localdomain-1000-C4F9C4FA16F4BBCF5DAB1D203299A950 nxnode_reader: NX> 705 Session display: 1000 nxnode_reader: NX> 703 Session type: unix-gnome nxnode_reader: NX> 701 Proxy cookie: 981089d7fa2f0ca21f24bb7fa255f9a7 nxnode_reader: NX> 702 Proxy IP: 127.0.0.1 nxnode_reader: NX> 706 Agent cookie: 981089d7fa2f0ca21f24bb7fa255f9a7 nxnode_reader: NX> 704 Session cache: unix-gnome nxnode_reader: NX> 707 SSL tunneling: 1 server_nxnode_echo: NX> 700 Session id: localhost.localdomain-1000-C4F9C4FA16F4BBCF5DAB1D203299A950 server_nxnode_echo: NX> 705 Session display: 1000 server_nxnode_echo: NX> 703 Session type: unix-gnome server_nxnode_echo: NX> 701 Proxy cookie: 981089d7fa2f0ca21f24bb7fa255f9a7 server_nxnode_echo: NX> 702 Proxy IP: 127.0.0.1 server_nxnode_echo: NX> 706 Agent cookie: 981089d7fa2f0ca21f24bb7fa255f9a7 server_nxnode_echo: NX> 704 Session cache: unix-gnome server_nxnode_echo: NX> 707 SSL tunneling: 1 NX> 700 Session id: localhost.localdomain-1000-C4F9C4FA16F4BBCF5DAB1D203299A950 NX> 705 Session display: 1000 NX> 703 Session type: unix-gnome NX> 701 Proxy cookie: 981089d7fa2f0ca21f24bb7fa255f9a7 NX> 702 Proxy IP: 127.0.0.1 NX> 706 Agent cookie: 981089d7fa2f0ca21f24bb7fa255f9a7 NX> 704 Session cache: unix-gnome NX> 707 SSL tunneling: 1 nxnode_reader: NX> 1009 Session status: starting server_nxnode_echo: NX> 1009 Session status: starting NX> 1009 Session status: starting nxnode_reader: NX> 710 Session status: running nxnode_reader: NX> 1002 Commit nxnode_reader: NX> 1006 Session status: running server_nxnode_echo: NX> 710 Session status: running server_nxnode_echo: NX> 1002 Commit session_status C4F9C4FA16F4BBCF5DAB1D203299A950 Running server_nxnode_echo: NX> 1006 Session status: running NX> 710 Session status: running NX> 1002 Commit NX> 1006 Session status: running NX> 105 bye Bye NX> 999 Bye -- NX SERVER START: -c /usr/bin/nxserver - ORIG_COMMAND= -- NX SERVER START: - ORIG_COMMAND= Info: Using fds #4 and #3 for communication with nxnode. HELLO NXSERVER - Version 3.2.0-73 OS (GPL, using backend: not detected) NX> 105 hello NXCLIENT - Version 3.2.0 NX> 134 Accepted protocol: 3.2.0 NX> 105 SET SHELL_MODE SHELL NX> 105 SET AUTH_MODE PASSWORD NX> 105 login NX> 101 User: jamesb1 NX> 102 Password: Info: Auth method: ssh jamesb1@xxxxxxxxx's password: NX> 1000 NXNODE - Version 3.2.0-73 OS (GPL, using backend: not detected) NX> 716 Slave mode started successfully. nxnode_reader: NX> 1000 NXNODE - Version 3.2.0-73 OS (GPL, using backend: not detected) nxnode_reader: NX> 716 finished nxnode_reader: NX> 1001 Bye. NX> 103 Welcome to: localhost.localdomain user: jamesb1 NX> 105 listsession --type="shadow" NX> 127 Sessions list of user '.*' for reconnect: Display Type Session ID Options Depth Screen Status Session Name ------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------ 1000 unix-gnome C4F9C4FA16F4BBCF5DAB1D203299A950 --D--PSA 24 1916x1156 Running centos4 (Shadowed) NX> 148 Server capacity: not reached for user: .* NX> 105 listsession --type="shadow" NX> 127 Sessions list of user '.*' for reconnect: Display Type Session ID Options Depth Screen Status Session Name ------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------ 1000 unix-gnome C4F9C4FA16F4BBCF5DAB1D203299A950 --D--PSA 24 1916x1156 Running centos4 (Shadowed) NX> 148 Server capacity: not reached for user: .* NX> 105 attachsession --link="modem" --backingstore="1" --encryption="1" --cache="128M" --images="512M" --shmem="1" --shpix="1" --strict="0" --composite="1" --media="0" --session="centos4" --type="shadow" --client="winnt" --keyboard="pc102/gb" --id="C4F9C4FA16F4BBCF5DAB1D203299A950" --display="1000" --geometry="fullscreen" --resize="1" &link=modem&backingstore=1&encryption=1&cache=128M&images=512M&shmem=1&shpix=1&strict=0&composite=1&media=0&session=centos4&type=shadow&client=winnt&keyboard=pc102/gb&id=C4F9C4FA16F4BBCF5DAB1D203299A950&display=1000&geometry=fullscreen&resize=1&clientproto=3.2.0&shadowdisplay=1000&shadowhost=&shadowcookie=******&user=jamesb1&userip=172.23.32.8&uniqueid=5F95C22D090466CE8246DFE8B8559ACA&display=1001&host=127.0.0.1 nxnode_reader: NX> 1000 NXNODE - Version 3.2.0-73 OS (GPL, using backend: not detected) NX> 1000 NXNODE - Version 3.2.0-73 OS (GPL, using backend: not detected) server_nxnode_echo: NX> 1000 NXNODE - Version 3.2.0-73 OS (GPL, using backend: not detected) nxnode_reader: NX> 700 Session id: localhost.localdomain-1001-5F95C22D090466CE8246DFE8B8559ACA nxnode_reader: NX> 705 Session display: 1001 nxnode_reader: NX> 703 Session type: shadow nxnode_reader: NX> 701 Proxy cookie: 167ad0bb42dad63ceb7d39f443969fe7 nxnode_reader: NX> 702 Proxy IP: 127.0.0.1 nxnode_reader: NX> 706 Agent cookie: 167ad0bb42dad63ceb7d39f443969fe7 nxnode_reader: NX> 704 Session cache: shadow nxnode_reader: NX> 707 SSL tunneling: 1 NX> 700 Session id: localhost.localdomain-1001-5F95C22D090466CE8246DFE8B8559ACA NX> 705 Session display: 1001 NX> 703 Session type: shadow NX> 701 Proxy cookie: 167ad0bb42dad63ceb7d39f443969fe7 NX> 702 Proxy IP: 127.0.0.1 NX> 706 Agent cookie: 167ad0bb42dad63ceb7d39f443969fe7 NX> 704 Session cache: shadow NX> 707 SSL tunneling: 1 server_nxnode_echo: NX> 700 Session id: localhost.localdomain-1001-5F95C22D090466CE8246DFE8B8559ACA server_nxnode_echo: NX> 705 Session display: 1001 server_nxnode_echo: NX> 703 Session type: shadow server_nxnode_echo: NX> 701 Proxy cookie: 167ad0bb42dad63ceb7d39f443969fe7 server_nxnode_echo: NX> 702 Proxy IP: 127.0.0.1 server_nxnode_echo: NX> 706 Agent cookie: 167ad0bb42dad63ceb7d39f443969fe7 server_nxnode_echo: NX> 704 Session cache: shadow server_nxnode_echo: NX> 707 SSL tunneling: 1 nxnode_reader: NX> 1009 Session status: starting NX> 1009 Session status: starting server_nxnode_echo: NX> 1009 Session status: starting nxnode_reader: NX> 710 Session status: running NX> 710 Session status: running server_nxnode_echo: NX> 710 Session status: running nxnode_reader: NX> 1002 Commit NX> 1002 Commit server_nxnode_echo: NX> 1002 Commit nxnode_reader: NX> 1006 Session status: running NX> 1006 Session status: running session_status 5F95C22D090466CE8246DFE8B8559ACA Running server_nxnode_echo: NX> 1006 Session status: running NX> 105 bye Bye NX> 999 Bye Info: Closing connection to slave with pid 1082. nxnode_reader: NX> 1004 Error: NX Agent exited with exit status 1. To troubleshoot set SESSION_LOG_CLEAN=0 in node.conf and investigate "/home/jamesb1/.nx/F-C-localhost.localdomain-1001-5F95C22D090466CE8246DFE8B8559ACA/session". You might also want to try: ssh -X myserver; /usr/bin/nxnode --agent to test the basic functionality. Session log follows: NX> 1004 Error: NX Agent exited with exit status 1. To troubleshoot set SESSION_LOG_CLEAN=0 in node.conf and investigate "/home/jamesb1/.nx/F-C-localhost.localdomain-1001-5F95C22D090466CE8246DFE8B8559ACA/session". You might also want to try: ssh -X myserver; /usr/bin/nxnode --agent to test the basic functionality. Session log follows: nxnode_reader: 1001 Bye. 1001 Bye. nxnode_reader: nxnode_reader: NXAGENT - Version 3.2.0 nxnode_reader: nxnode_reader: Copyright (C) 2001, 2007 NoMachine. nxnode_reader: See http://www.nomachine.com/ for more information. NXAGENT - Version 3.2.0 Copyright (C) 2001, 2007 NoMachine. See http://www.nomachine.com/ for more information. nxnode_reader: nxnode_reader: Info: Agent running with pid '1811'. nxnode_reader: Session: Starting session at 'Fri Nov 14 13:05:15 2008'. nxnode_reader: Info: Proxy running in server mode with pid '1811'. nxnode_reader: Info: Waiting for connection from '127.0.0.1' on port '5001'. nxnode_reader: Info: Accepted connection from '127.0.0.1'. nxnode_reader: Info: Connection with remote proxy completed. nxnode_reader: Info: Using MODEM link parameters 256/24/1/0. nxnode_reader: Info: Using agent parameters 5000/50/50/0/0. nxnode_reader: Info: Using cache parameters 4/4096KB/131072KB/131072KB. nxnode_reader: Info: Using pack method 'adaptive-3' with session 'shadow'. nxnode_reader: Info: Using ZLIB data compression 1/1/32. nxnode_reader: Info: Using ZLIB stream compression 9/9. nxnode_reader: Info: Using cache file '/home/jamesb1/.nx/cache-shadow/C-13848FAE3B07562B56FC10242F82EEF3'. nxnode_reader: Info: Listening to X11 connections on display ':1001'. nxnode_reader: Info: Established X client connection. nxnode_reader: Info: Using shared memory parameters 1/1/0/0K. Info: Agent running with pid '1811'. Session: Starting session at 'Fri Nov 14 13:05:15 2008'. Info: Proxy running in server mode with pid '1811'. Info: Waiting for connection from '127.0.0.1' on port '5001'. Info: Accepted connection from '127.0.0.1'. Info: Connection with remote proxy completed. Info: Using MODEM link parameters 256/24/1/0. Info: Using agent parameters 5000/50/50/0/0. Info: Using cache parameters 4/4096KB/131072KB/131072KB. Info: Using pack method 'adaptive-3' with session 'shadow'. Info: Using ZLIB data compression 1/1/32. Info: Using ZLIB stream compression 9/9. Info: Using cache file '/home/jamesb1/.nx/cache-shadow/C-13848FAE3B07562B56FC10242F82EEF3'. Info: Listening to X11 connections on display ':1001'. Info: Established X client connection. Info: Using shared memory parameters 1/1/0/0K. nxnode_reader: Info: Using alpha channel in render extension. nxnode_reader: Info: Using local device configuration changes. nxnode_reader: Xlib: connection to ":1000.0" refused by server nxnode_reader: Xlib: No protocol specified nxnode_reader: nxnode_reader: Error: Aborting session with 'Failed to connect to display ':1000''. nxnode_reader: Session: Aborting session at 'Fri Nov 14 13:05:18 2008'. nxnode_reader: Session: Session aborted at 'Fri Nov 14 13:05:18 2008'. nxnode_reader: Warning: Signals were not blocked in process with pid '1811'. nxnode_reader: Info: Watchdog running with pid '1857'. nxnode_reader: Info: Waiting the watchdog process to complete. Info: Using alpha channel in render extension. Info: Using local device configuration changes. Xlib: connection to ":1000.0" refused by server Xlib: No protocol specified Error: Aborting session with 'Failed to connect to display ':1000''. Session: Aborting session at 'Fri Nov 14 13:05:18 2008'. Session: Session aborted at 'Fri Nov 14 13:05:18 2008'. Warning: Signals were not blocked in process with pid '1811'. Info: Watchdog running with pid '1857'. Info: Waiting the watchdog process to complete. nxnode_reader: NX> 1006 Session status: closed NX> 1006 Session status: closed nxnode_reader: NX> 1001 Bye. NX> 1001 Bye. server_nxnode_echo: NX> 596 Session startup failed. Info: Closing connection to slave with pid 1082.
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos