Ok. I almost have what I set out for.

The operating system is AIX 4.2.1
The UI is AIX CDE and window manager dtwm

dtlogin is started from the inittab

I have added the following line to /etc/dt/config/Xservers:

:1   Local local@none /bin/vncserver :1

The environment variables that are set when vncserver runs (output by
    while (($key,$value) = each %ENV) {
        print STDERR "$key=$value\n";
    }
in vncserver) are:

XTOEXEC=true
VNCDESKTOP=X
HOME=/
LANG=C
LOCPATH=/usr/lib/nls/loc
PATH=/bin:/bin/X11
DISPLAY=ws979:1
ODMDIR=/etc/objrepos

The process listing for Xvnc as started by dtlogin:

root  4578     1   0 16:36:49      -  1:35 Xvnc :1 -desktop X -httpd
/usr/local/vnc/classes -geometry 1024x768 -depth 8 -rfbwait 120000 -rfbauth
/.vnc/passwd -rfbport 5901 -fp
/usr/lib/X11/fonts/,/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/,/usr/l
ib/X11/fonts/100dpi/,/usr/lib/X11/fonts/ibm850/,/usr/lib/X11/fonts/Type1/ -co
/usr/lib/X11/rgb -auth /var/dt/A:1-zNcCM7

The vncviewer connects, I get the login dialog but as far as I can tell there
is absolutely no keyboard definition. When I start vncserver from the command
line, the keyboard works fine but then I'm stuck with just one user who is not
verified by the system and doesn't even have his desktop configuration because
dtlogin calls a set of scripts which gets the information from NIS maps.

Now, what I'm thinking is that IBM's version of the X server for AIX "knows"
all the default places to get things like keyboard definitions and such or,
even more likely, has a complete set of defaults that should work already
built in. Xvnc needs to be told to load something.

Is it correct that xmodmap should be able to do that? When I try to call
xmodmap with a call to system in vncserver, I get the error:

Xlib:  connection to "ws979:1.0" refused by server
Xlib:  Invalid MIT-MAGIC-COOKIE-1 key
1356-203 xmodmap:  Unable to open display:  ws979:1

This is because dtlogin won't release the server for connections until someone
logs in. I could probably monkey with the magic cookie but I'd rather either
be able to pass a parameter to Xvnc, set an environment variable or put the
keyboard file in a path from whence Xvnc would automatically load it.

Can somebody tell me how to get Xvnc to load a keyboard definition before a
user has logged on; before any connections are allowed?

Thanks,
Carlyle.


--

Diese E-Mail enthdlt vertrauliche und/oder rechtlich gesch|tzte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt|mlich
erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie
diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail
ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are
not the intended recipient (or have received this e-mail in error) please
notify the sender immediately and destroy this e-mail. Any unauthorised
copying, disclosure or distribution of the material in this e-mail is strictly
forbidden.
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to [EMAIL PROTECTED]
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------

Reply via email to