[FreeNX-kNX] freenx on gnusolaris
freenx at mindmirror.de
freenx at mindmirror.de
Tue Oct 17 23:46:41 UTC 2006
at http://www.gnusolaris.org is something very nice :-)
At least Solaris Kernel Ubuntu Userland tools;
SunOS osol 5.11 NexentaOS_20061012 i86pc i386 i86pc Solaris
with some minor changes i've compiled the NX sources from sid
(deb-src http://debian.tu-bs.de/project/kanotix/unstable/ sid nx and apt-get source freenx)
you need gcc-3.4 for this on gnusolaris
with a
ln -s /usr/bin/make /usr/ccs/bin/make
ln -s /usr/bin/ar /usr/ccs/bin/ar
ln -s /usr/bin/cpp-3.4 /usr/ccs/lib/cpp
and some libjpeg path replacement, in Makefile from nxviever
anything seems ok
Installation works fine, but after after connecting i have a
NX> 1004 Error: NX Agent exited with exit status 1.
/usr/NX/bin/nxserver: line 1190: 9086 Terminated sleep $AGENT_STARTUP_TIMEOUT
jens
==================================================
Complete Client Failure Log:
NX> 203 NXSSH running with pid: 7016
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 200 Connected to address: 192.168.111.117 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 1.5.0-60-SVN OS (GPL)
NX> 105 hello NXCLIENT - Version 1.5.0
NX> 134 Accepted protocol: 1.5.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: jens
NX> 102 Password:
NX> 103 Welcome to: osol user: jens
NX> 105 listsession --user="jens" --status="suspended,running" --geometry="1600x1200x32+render" --type="unix-gnome"
NX> 127 Sessions list of user 'jens' for reconnect:
Display Type Session ID Options Depth Screen Status Session Name
------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------
NX> 148 Server capacity: not reached for user: jens
NX> 105 startsession --session="117" --type="unix-gnome" --cache="8M" --images="32M" --link="lan" --kbtype="pc102/de" --nodelay="1" --backingstore="never" --geometry="1600x1170" --media="0" --agent_server="" --agent_user="" agent_password="******"" --screeninfo="1600x1170x32+render"
NX> 1000 NXNODE - Version 1.5.0-60-SVN OS (GPL)
NX> 700 Session id: osol-1001-FD1C49CC65AE38C9C59B75D6604B5DF7
NX> 705 Session display: 1001
NX> 703 Session type: unix-gnome
NX> 701 Proxy cookie: 92de48ece35ad9616406d59b358cad7d
NX> 702 Proxy IP: 192.168.111.111
NX> 706 Agent cookie: 92de48ece35ad9616406d59b358cad7d
NX> 704 Session cache: unix-gnome
NX> 707 SSL tunneling: 0
NX> 105 NX> 596 Session startup failed.
NX> 1004 Error: NX Agent exited with exit status 1.
/usr/NX/bin/nxserver: line 1190: 9086 Terminated sleep $AGENT_STARTUP_TIMEOUT
Can't open /usr/NX/var/db/running/sessionId{FD1C49CC65AE38C9C59B75D6604B5DF7}: No such file or directory.
mv: cannot stat `/usr/NX/var/db/running/sessionId{FD1C49CC65AE38C9C59B75D6604B5DF7}': No such file or directoryKilled by signal 15.
====================
Install Log
/usr/src/freenx/freenx-trunk# ./nxsetup --install --setup-nomachine-key
Setting up /usr/NX/etc ...done
Setting up /usr/NX/var/db ...done
Setting up /var/log/nxserver.log ...done
Setting up known_hosts and authorized_keys2 ...done
Setting up permissions ...done
----> Testing your nxserver configuration ...
Warning: Invalid value "DEFAULT_X_SESSION=/etc/X11/xdm/Xsession"
Users might not be able to request a default X session.
Warning: Invalid value "COMMAND_START_CDE=cdwm"
Users will not be able to request a CDE session.
Warning: Invalid value "COMMAND_SMBMOUNT=smbmount". You'll not be able to use SAMBA.
Warning: Invalid value "COMMAND_SMBUMOUNT=smbumount". You'll not be able to use SAMBA.
Warnings occured during config check.
To enable these features please correct the configuration file.
<---- done
----> Testing your nxserver connection ...
HELLO NXSERVER - Version 1.5.0-60-SVN OS (GPL)
NX> 105 quit
Quit
NX> 999 Bye
<--- done
Ok, nxserver is ready.
PAM authentication enabled:
All users will be able to login with their normal passwords.
PAM authentication will be done through SSH.
Please ensure that SSHD on localhost accepts password authentication.
You can change this behaviour in the /usr/NX/etc/node.conf file.
Have Fun!
===========================
FreeNX Start:
# sh -x /usr/NX/bin/nxserver --start
++++ dirname /usr/NX/bin/nxserver
+++ cd /usr/NX/bin
+++ pwd
++ PATH=/usr/NX/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
++ which nxloadconfig
+ . /usr/NX/bin/nxloadconfig --
++ HELP=no
++ CHECK=no
++ USERCONF=no
++ NXLCFG_IGNORE_ERRORS=no
++ '[' -- ']'
++ case "$1" in
++ shift
++ break
++ '[' no = yes ']'
++ NX_VERSION=1.5.0-60-SVN
++ NX_LICENSE='OS (GPL)'
++ NX_DIR=/usr/NX
++ PATH_BIN=/usr/NX/bin
++ PATH_LIB=/usr/NX/lib
++ NX_ETC_DIR=/usr/NX/etc
++ NX_SESS_DIR=/usr/NX/var/db
++ NX_HOME_DIR=/usr/NX/home/nx
++ AGENT_LIBRARY_PATH=
++ PROXY_LIBRARY_PATH=
++ APPLICATION_LIBRARY_PATH=
++ APPLICATION_LIBRARY_PRELOAD=
++ SSH_AUTHORIZED_KEYS=authorized_keys2
++ NXCONFIG_RETEST=1
+++ hostname
++ SERVER_NAME=osol
++ 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=7
++ 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
++ NOMACHINE_SERVER=/usr/NX/bin/nxserver
++ NOMACHINE_NX_HOME_DIR=/usr/NX/home/nx
++ ENABLE_NOMACHINE_FORWARD_PORT=0
++ NOMACHINE_FORWARD_PORT=22
++ LOAD_BALANCE_SERVERS=
++ LOAD_BALANCE_ALGORITHM=load
++ ENABLE_LOAD_BALANCE_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_2_0_0_BACKEND=1
++ ENABLE_AUTORECONNECT=1
++ ENABLE_AUTORECONNECT_BEFORE_140=1
++ EXPORT_USERIP=0
++ EXPORT_SESSIONID=1
++ 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=
++ PROXY_EXTRA_OPTIONS=
+++ uname -sr
++ OS='SunOS 5.11'
++ case "$OS" in
++ case "$OS" in
++ '[' 1 = 1 ']'
+++ which xauth
++ COMMAND_XAUTH=/usr/bin/xauth
++ '[' -d /usr/NX/etc/node.conf.d ']'
++ '[' -e /usr/NX/etc/node.conf ']'
++ . /usr/NX/etc/node.conf
+++ NX_LOG_LEVEL=7
+++ NX_LOGFILE=/var/log/nxserver.log
++ '[' no = yes -a -e /usr/NX/etc/root.node.conf ']'
++ '[' -z '' ']'
++ SESSION_USER_LIMIT=200
++ '[' -z '' ']'
++ USER_FAKE_HOME=/root
++ '[' -z '' ']'
++ AGENT_LIBRARY_PATH=/usr/NX/lib
++ '[' -z '' ']'
++ PROXY_LIBRARY_PATH=/usr/NX/lib
++ '[' -z '' ']'
++ APPLICATION_LIBRARY_PATH=/usr/NX/lib
++ '[' -z '' ']'
++ APPLICATION_LIBRARY_PRELOAD=/usr/NX/lib/libX11.so.6.2:/usr/NX/lib/libXext.so.6.4:/usr/NX/lib/libXcomp.so.1:/usr/NX/lib/libXcompext.so.1:/usr/NX/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 ']'
+ '[' 1 -lt 1 ']'
+ '[' --start = --help ']'
+ '[' --start = --version ']'
+ CMD=--start
+ echo 'NX> 100 NXSERVER - Version 1.5.0-60-SVN OS (GPL)'
NX> 100 NXSERVER - Version 1.5.0-60-SVN OS (GPL)
+ case $CMD in
+ cmd_start
+ '[' -f /usr/NX/home/nx/.ssh/authorized_keys2 ']'
+ mv /usr/NX/home/nx/.ssh/authorized_keys2.disabled /usr/NX/home/nx/.ssh/authorized_keys2
+ echo 'NX> 122 Service started'
NX> 122 Service started
+ echo 'NX> 999 Bye'
NX> 999 Bye
============================
nxserver.log Login failed
cat /var/log/nxserver.log
-- NX SERVER START: -c /usr/NX/bin/nxserver - ORIG_COMMAND=
HELLO NXSERVER - Version 1.5.0-60-SVN OS (GPL)
NX> 105 hello NXCLIENT - Version 1.5.0
NX> 134 Accepted protocol: 1.5.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: jens
NX> 102 Password:
Info: Auth method: passdb ssh
NX> 103 Welcome to: osol user: jens
NX> 105 listsession --user="jens" --status="suspended,running" --geometry="1590x1110x24+render" --type="unix-gnome"
NX> 127 Sessions list of user 'jens' for reconnect:
Display Type Session ID Options Depth Screen Status Session Name
------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------
NX> 148 Server capacity: not reached for user: jens
NX> 105 startsession --session="test185" --type="unix-gnome" --cache="8M" --images="32M" --link="lan" --kbtype="pc102/" --nodelay="1" --backingstore="when_requested" --geometry="1590x1085" --media="0" --agent_server="" --agent_user="" agent_password="******"" --screeninfo="1590x1085x24+render"
&session=test185&type=unix-gnome&cache=8M&images=32M&link=lan&kbtype=pc102/&nodelay=1&backingstore=when_requested&geometry=1590x1085&media=0&agent_server=&agent_user=&agent_password=******&screeninfo=1590x1085x24+render&clientproto=1.5.0&user=jens&userip=192.168.111.23&uniqueid=44D2EF7F2A50A299B3F64999A34C6189&display=1001&host=127.0.0.1
Password:
NX> 1000 NXNODE - Version 1.5.0-60-SVN OS (GPL)
NX> 700 Session id: osol-1001-44D2EF7F2A50A299B3F64999A34C6189
NX> 705 Session display: 1001
NX> 703 Session type: unix-gnome
NX> 701 Proxy cookie: 05a195af4a1d13deaceef869115c878b
NX> 702 Proxy IP: 192.168.111.23
NX> 706 Agent cookie: 05a195af4a1d13deaceef869115c878b
NX> 704 Session cache: unix-gnome
NX> 707 SSL tunneling: 0
/usr/NX/bin/nxnode: line 361: 10321 Killed PATH="$PATH_BIN:$PATH" $PATH_BIN/nxagent $P $R -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" -option "$USER_FAKE_HOME/.nx/C-$sess_id/options" $K $G $B $FP $AGENT_EXTRA_OPTIONS_X :$display 2>&3
NX> 1004 Error: NX Agent exited with exit status 1.
NX> 105 NX> 596 Session startup failed.
NX> 1006 Session status: closed
NX> 1001 Bye.
========================
ls -l /usr/NX/var/db/failed
-rw-r--r-- 1 nx nx 290 Oct 18 05:45 sessionId{11DFE2A5D1E867C248B24EAFE8B1140D}
cat sessionId{11DFE2A5D1E867C248B24EAFE8B1140D}
sessionName=117
display=1001
status=Failed
startTime=1161143132
foreignAddress=192.168.111.111
sessionRootlessMode=0
type=unix-gnome
sessionId=11DFE2A5D1E867C248B24EAFE8B1140D
creationTime=1161143132
userName=jens
serverPid=
screeninfo=1600x1170x32+render
geometry=1600x1170
host=127.0.0.1
More information about the FreeNX-kNX
mailing list