[FreeNX-kNX] FreeNX 0.5.0 - Snapshot 2

Emmanuel Blindauer freenx at mooby.net
Tue Mar 7 08:49:46 UTC 2006


Hi,

The session is now correctly closed and end of nxclient.

But I still cannot close a session with --terminate. I've attached an "sh 
-x" of "nxserver --terminate".

I add an oneliner patch too, for "nxserver --send" 

Emmanuel

Le Mardi 7 Mars 2006 07:37, Fabian Franz a écrit :
> Hi,
>
> due to good feedback, here is the next snapshot. Reported issues have
> been fixed. I also tried a "connection loss" again and it did work.
>
> I also added support for "Running" sessions. Behaviour is now the same
> as with commercial nxserver:
>
> NX Client will always resume the first available session having the same
> name. To change this: Rename your session.
>
> Please test it now and give feedback.
>
> cu
>
> Fabian
-------------- next part --------------
++++ dirname /usr/bin/nxserver
+++ cd /usr/bin
+++ pwd
++ PATH=/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
++ which nxloadconfig
+ . /usr/bin/nxloadconfig --
++ HELP=no
++ CHECK=no
++ USERCONF=no
++ NXLCFG_IGNORE_ERRORS=no
++ '[' -- ']'
++ shift
++ break
++ '[' no = yes ']'
++ NX_VERSION=1.5.0-50-SVN
++ NX_LICENSE=OS (GPL)
++ NX_DIR=/usr
++ PATH_BIN=/usr/bin
++ PATH_LIB=/usr/lib
++ NX_ETC_DIR=/etc/nxserver
++ NX_SESS_DIR=/var/lib/nxserver/db
++ NX_HOME_DIR=/var/lib/nxserver/nxhome
++ AGENT_LIBRARY_PATH=
++ PROXY_LIBRARY_PATH=
++ APPLICATION_LIBRARY_PATH=
++ APPLICATION_LIBRARY_PRELOAD=
++ SSH_AUTHORIZED_KEYS=authorized_keys2
+++ hostname
++ SERVER_NAME=pipit.u-strasbg.fr
++ SSHD_PORT=22
++ ENABLE_USERMODE_AUTHENTICATION=0
++ ENABLE_PASSDB_AUTHENTICATION=1
++ ENABLE_SSH_AUTHENTICATION=1
++ ENABLE_SU_AUTHENTICATION=0
++ ENABLE_USER_DB=0
++ ENABLE_FORCE_ENCRYPTION=0
++ SSHD_CHECK_IP=0
++ DISPLAY_BASE=1000
++ SESSION_LIMIT=200
++ SESSION_USER_LIMIT=
++ DISPLAY_LIMIT=200
++ ENABLE_PERSISTENT_SESSION=all
++ DISABLE_PERSISTENT_SESSION=
++ NX_LOG_LEVEL=0
++ NX_LOG_SECURE=1
++ NX_LOGFILE=/var/log/nxserver.log
++ SESSION_LOG_CLEAN=1
++ SESSION_HISTORY=2592000
++ ENABLE_SERVER_FORWARD=0
++ SERVER_FORWARD_HOST=
++ SERVER_FORWARD_PORT=22
++ SERVER_FORWARD_KEY=/usr/NX/share/client.id_dsa.key
++ ENABLE_NOMACHINE_FORWARD_USER=0
++ NOMACHINE_SERVER=/usr/NX/bin/nxserver
++ NOMACHINE_NX_HOME_DIR=/usr/NX/home/nx
++ ENABLE_NOMACHINE_FORWARD_PORT=0
++ NOMACHINE_FORWARD_PORT=22
++ SERVER_LOADBALANCING=
++ ENABLE_LOADBALANCE_PREFERENCE=0
++ ENABLE_ESD_PRELOAD=0
++ ESD_BIN_PRELOAD=esddsp
++ ENABLE_ARTSD_PRELOAD=0
++ ARTSD_BIN_PRELOAD=artsdsp
++ ENABLE_KDE_CUPS=0
++ KDE_PRINTRC=
++ CUPS_ETC=/etc/cups/
++ USER_FAKE_HOME=
++ SET_LD_LIBRARY_PATH=1
++ DEFAULT_X_WM=
++ KILL_DEFAULT_X_WM=1
++ USER_X_STARTUP_SCRIPT=.Xclients
++ DEFAULT_X_SESSION=/etc/X11/xdm/Xsession
++ COMMAND_START_KDE=startkde
++ COMMAND_START_GNOME=gnome-session
++ COMMAND_START_CDE=cdwm
++ COMMAND_XTERM=xterm
++ COMMAND_XAUTH=/usr/X11R6/bin/xauth
++ COMMAND_SMBMOUNT=smbmount
++ COMMAND_SMBUMOUNT=smbumount
++ COMMAND_NETCAT=netcat
++ COMMAND_SSH=ssh
++ COMMAND_SSH_KEYGEN=ssh-keygen
++ COMMAND_CUPSD=/usr/sbin/cupsd
++ COMMAND_MD5SUM=md5sum
++ ENABLE_AUTORECONNECT=0
++ ENABLE_AUTORECONNECT_BEFORE_140=1
++ EXPORT_USERIP=0
++ EXPORT_SESSIONID=0
++ NODE_AUTOSTART=
++ ENABLE_ROOTLESS_MODE=1
++ ENABLE_USESSION=0
++ COMMAND_SESSREG=sessreg
++ AGENT_EXTRA_OPTIONS_RFB=
++ AGENT_EXTRA_OPTIONS_RDP=
++ AGENT_EXTRA_OPTIONS_X=
++ AGENT_STARTUP_TIMEOUT=60
++ AGENT_FONT_SERVER=
++ PROXY_TCP_NODELAY=0
++ PROXY_EXTRA_OPTIONS=
+++ uname -sr
++ OS=Linux 2.6.3-19mdk-i686-up-4GB
++ '[' -d /etc/nxserver/node.conf.d ']'
++ '[' -e /etc/nxserver/node.conf ']'
++ . /etc/nxserver/node.conf
+++ ENABLE_SSH_AUTHENTICATION=1
+++ ENABLE_PERSISTENT_SESSION=all
+++ NX_LOG_LEVEL=3
+++ NX_LOGFILE=/var/log/nxserver.log
+++ USER_FAKE_HOME=/tmp/.nx/root
+++ ENABLE_AUTORECONNECT=0
+++ ENABLE_ROOTLESS_MODE=1
+++ ENABLE_1_5_0_BACKEND=1
+++ ENABLE_ROOTLESS_MODE=1
++ '[' no = yes -a -e /etc/nxserver/root.node.conf ']'
++ '[' -z '' ']'
++ SESSION_USER_LIMIT=200
++ '[' -z /tmp/.nx/root ']'
++ '[' -z '' ']'
++ AGENT_LIBRARY_PATH=/usr/lib
++ '[' -z '' ']'
++ PROXY_LIBRARY_PATH=/usr/lib
++ '[' -z '' ']'
++ APPLICATION_LIBRARY_PATH=/usr/lib
++ '[' -z '' ']'
++ APPLICATION_LIBRARY_PRELOAD=/usr/lib/libX11.so.6.2:/usr/lib/libXext.so.6.4:/usr/lib/libXcomp.so.1:/usr/lib/libXcompext.so.1:/usr/lib/libXrender.so.1.2
++ '[' -z '' -a -n '' ']'
++ '[' -z '' -a -z '' ']'
++ KDE_PRINTRC=/root/.kde/share/config/kdeprintrc
++ '[' no = yes ']'
+ '[' root = nxfree -o root = nx -o 0 = 1 ']'
+ '[' 0 -ne 0 ']'
+ '[' 2 -lt 1 ']'
+ '[' --terminate = --help ']'
+ '[' --terminate = --version ']'
+ CMD=--terminate
+ echo 'NX> 100 NXSERVER - Version 1.5.0-50-SVN OS (GPL)'
+ cmd_terminate --terminate e.blindauer
++ cmd_parse_3_params e.blindauer
++ '[' 11 -eq 32 ']'
++ '[' e = : ']'
++ '[' e.blindauer = '*' ']'
++ '[' e.blindauer '!=' '' ']'
+++ session_find_user e.blindauer
+++ '[' -f '/var/lib/nxserver/db/running/sessionId{0F8E675400670EAEE2085BA0FD146450}' ']'
+++ egrep -q '^userName=e.blindauer$' '/var/lib/nxserver/db/running/sessionId{0F8E675400670EAEE2085BA0FD146450}'
+++ echo '/var/lib/nxserver/db/running/sessionId{0F8E675400670EAEE2085BA0FD146450}'
++ CMD_APARAMS=/var/lib/nxserver/db/running/sessionId{0F8E675400670EAEE2085BA0FD146450}
++ '[' -n '/var/lib/nxserver/db/running/sessionId{0F8E675400670EAEE2085BA0FD146450}' ']'
++ echo '/var/lib/nxserver/db/running/sessionId{0F8E675400670EAEE2085BA0FD146450}'
+ CMD_PARAMS=/var/lib/nxserver/db/running/sessionId{0F8E675400670EAEE2085BA0FD146450}
+ '[' -z '/var/lib/nxserver/db/running/sessionId{0F8E675400670EAEE2085BA0FD146450}' ']'
++ session_get_cmdline '/var/lib/nxserver/db/running/sessionId{0F8E675400670EAEE2085BA0FD146450}'
++ echo a=b
++ cat - '/var/lib/nxserver/db/running/sessionId{0F8E675400670EAEE2085BA0FD146450}'
++ tr '\n' '&'
+ CMDLINE=a=b&sessionName=pipit&display=1022&status=Running&startTime=1141721070&foreignAddress=130.79.81.2&type=unix-kde&sessionId=0F8E675400670EAEE2085BA0FD146450&creationTime=1141721070&userName=e.blindauer&serverPid=&screeninfo=800x570x16+render&geometry=800x570&host=127.0.0.1&
++ getparam sessionId
++ stringinstring '&sessionId=' 'a=b&sessionName=pipit&display=1022&status=Running&startTime=1141721070&foreignAddress=130.79.81.2&type=unix-kde&sessionId=0F8E675400670EAEE2085BA0FD146450&creationTime=1141721070&userName=e.blindauer&serverPid=&screeninfo=800x570x16+render&geometry=800x570&host=127.0.0.1&'
++ return 0
++ echo 'a=b&sessionName=pipit&display=1022&status=Running&startTime=1141721070&foreignAddress=130.79.81.2&type=unix-kde&sessionId=0F8E675400670EAEE2085BA0FD146450&creationTime=1141721070&userName=e.blindauer&serverPid=&screeninfo=800x570x16+render&geometry=800x570&host=127.0.0.1&'
++ tr '&' '\n'
++ egrep '^sessionId='
++ awk -F= '{ VAL=$2 } END { print VAL }'
++ return 0
+ cmd_sessionid=0F8E675400670EAEE2085BA0FD146450
++ getparam userName
++ stringinstring '&userName=' 'a=b&sessionName=pipit&display=1022&status=Running&startTime=1141721070&foreignAddress=130.79.81.2&type=unix-kde&sessionId=0F8E675400670EAEE2085BA0FD146450&creationTime=1141721070&userName=e.blindauer&serverPid=&screeninfo=800x570x16+render&geometry=800x570&host=127.0.0.1&'
++ return 0
++ echo 'a=b&sessionName=pipit&display=1022&status=Running&startTime=1141721070&foreignAddress=130.79.81.2&type=unix-kde&sessionId=0F8E675400670EAEE2085BA0FD146450&creationTime=1141721070&userName=e.blindauer&serverPid=&screeninfo=800x570x16+render&geometry=800x570&host=127.0.0.1&'
++ tr '&' '\n'
++ egrep '^userName='
++ awk -F= '{ VAL=$2 } END { print VAL }'
++ return 0
+ cmd_user=e.blindauer
++ getparam type
++ stringinstring '&type=' 'a=b&sessionName=pipit&display=1022&status=Running&startTime=1141721070&foreignAddress=130.79.81.2&type=unix-kde&sessionId=0F8E675400670EAEE2085BA0FD146450&creationTime=1141721070&userName=e.blindauer&serverPid=&screeninfo=800x570x16+render&geometry=800x570&host=127.0.0.1&'
++ return 0
++ echo 'a=b&sessionName=pipit&display=1022&status=Running&startTime=1141721070&foreignAddress=130.79.81.2&type=unix-kde&sessionId=0F8E675400670EAEE2085BA0FD146450&creationTime=1141721070&userName=e.blindauer&serverPid=&screeninfo=800x570x16+render&geometry=800x570&host=127.0.0.1&'
++ tr '&' '\n'
++ egrep '^type='
++ awk -F= '{ VAL=$2 } END { print VAL }'
++ return 0
+ cmd_type=unix-kde
++ getparam status
++ stringinstring '&status=' 'a=b&sessionName=pipit&display=1022&status=Running&startTime=1141721070&foreignAddress=130.79.81.2&type=unix-kde&sessionId=0F8E675400670EAEE2085BA0FD146450&creationTime=1141721070&userName=e.blindauer&serverPid=&screeninfo=800x570x16+render&geometry=800x570&host=127.0.0.1&'
++ return 0
++ echo 'a=b&sessionName=pipit&display=1022&status=Running&startTime=1141721070&foreignAddress=130.79.81.2&type=unix-kde&sessionId=0F8E675400670EAEE2085BA0FD146450&creationTime=1141721070&userName=e.blindauer&serverPid=&screeninfo=800x570x16+render&geometry=800x570&host=127.0.0.1&'
++ tr '&' '\n'
++ egrep '^status='
++ awk -F= '{ VAL=$2 } END { print VAL }'
++ return 0
+ cmd_status=Running
+ echo sessionid=0F8E675400670EAEE2085BA0FD146450
+ su - e.blindauer -c '/usr/bin/nxnode --terminate'
+ session_close 0F8E675400670EAEE2085BA0FD146450
++ date +%s
+ perl -pi -e 's/startTime=\(.*\)/startTime=\1\nendTime=1141721203/' '/var/lib/nxserver/db/running/sessionId{0F8E675400670EAEE2085BA0FD146450}'
+ session_status 0F8E675400670EAEE2085BA0FD146450 Finished
+ session_change 0F8E675400670EAEE2085BA0FD146450 status Finished
+ '[' -f '/var/lib/nxserver/db/running/sessionId{0F8E675400670EAEE2085BA0FD146450}' ']'
+ perl -pi -e 's/status=.*/status=Finished/' '/var/lib/nxserver/db/running/sessionId{0F8E675400670EAEE2085BA0FD146450}'
+ '[' 2592000 = 0 ']'
+ '[' 2592000 = 0 ']'
+ mv -f '/var/lib/nxserver/db/running/sessionId{0F8E675400670EAEE2085BA0FD146450}' '/var/lib/nxserver/db/closed/sessionId{0F8E675400670EAEE2085BA0FD146450}'
+ echo 'NX> 999 Bye'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nxserver-send.patch
Type: text/x-diff
Size: 586 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20060307/ae7e955b/attachment.bin>


More information about the FreeNX-kNX mailing list