[FreeNX-kNX] Some other checks to add to nxloadconfig --check directive.
Gregory Carter
gcarter at aesgi.com
Thu Mar 20 15:11:05 UTC 2008
drwxrwxrwt 2 root root 4096 2008-03-20 09:41 .X11-unix
The above directory was missing on one of my Fedora 8 systems, which,
was running at init level 3, remotely at a colo service, so probably is
not surprising However, I found I could not startup a NX session, and
I got the following:
[root at brahe C-brahe-1000-A9FCFB81F1EF2ED623C631FEBB27A978]# cat clients
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be
created.
_XSERVTransSocketUNIXCreateListener: mkdir(/tmp/.X11-unix) failed, errno = 2
_XSERVTransMakeAllCOTSServerListeners: failed to create listener for local
So I created it as follows:
# mkdir /tmp/.X11-unix
# chmod 1777 /tmp/.X11-unix
Interesting enough if you look in the session file, you get a totally
nonsensical output if /tmp/.X11-unix is not present ot has the wrong
permissions set on it, which wasn't very helpful in figuring out this
problem.
NXAGENT - Version 3.1.0
Copyright (C) 2001, 2007 NoMachine.
See http://www.nomachine.com/ for more information.
Info: Agent running with pid '16563'.
Session: Starting session at 'Thu Mar 20 11:55:49 2008'.
Info: Proxy running in server mode with pid '16563'.
Info: Waiting for connection from '127.0.0.1' on port '5000'.
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 'unix-kde'.
Info: Using ZLIB data compression 1/1/32.
Info: Using ZLIB stream compression 9/9.
Info: No suitable cache file found.
Info: Listening to X11 connections on display ':1000'.
Info: Established X client connection.
Info: Using shared memory parameters 1/1/0/0K.
Info: Using alpha channel in render extension.
Info: Using local device configuration changes.
Session: Session started at 'Thu Mar 20 11:55:51 2008'.
Session: Terminating session at 'Thu Mar 20 11:55:53 2008'.
Info: Watchdog running with pid '16686'.
Info: Waiting the watchdog process to complete.
set a property to a given value
-root examine the root window
-len n display at most n bytes of any property
-notype do not display the type field
-fs filename where to look for formats for properties
-frame don't ignore window manager frames
-f propname format [dformat] formats to use for property of given name
-spy examine window properties forever
kdeinit: Can't connect to the X Server.
kdeinit: Might not terminate at end of session.
kded: cannot connect to X server :1000
kcminit_startup: cannot connect to X server :1000
ksmserver: cannot connect to X server :1000
startkde: Shutting down...
klauncher: Exiting on signal 1
startkde: Running shutdown scripts...
xprop: unable to open display ':1000'
usage: xprop [-options ...] [[format [dformat]] atom] ...
where options include:
-grammar print out full grammar for command line
-display host:dpy the X server to contact
-id id resource id of window to examine
-name name name of window to examine
-font name name of font to examine
-remove propname remove a property
-set propname value set a property to a given value
-root examine the root window
-len n display at most n bytes of any property
-notype do not display the type field
-fs filename where to look for formats for properties
-frame don't ignore window manager frames
-f propname format [dformat] formats to use for property of given name
-spy examine window properties forever
startkde: Done.
So what I propose, is to add this check to nxloadconfig to properly
check the environment for those of us running remote servers in runlevel
3 (without a GUI head). Here is what I would suggest:
# nxloadconfig --check
Error: /tmp/.X11-unix is not present or has the wrong permissions. If
not set you will not be able to start any X sessions. To correct, try #
mkdir /tmp/.X11-unix;chmod 1777 /tmp/.X11-unix.
-gc
More information about the FreeNX-kNX
mailing list