To summarize my past posts so you guys don't have to go combing the archives
...
When I start Xvnc from the command line, the keyboard works fine. This method
has two large drawbacks for us.
First, the user is not being validated by the system, which leads to the
second problem.
Second, the user's configuration is not being drawn from NIS (we have free
seating/roaming users), which is to say, the configuration scripts which set
up the desktop for the user are not called. That is done by dtlogin after user
validation.
What I have done is to add the following line to /etc/dt/config/Xservers
:1 Local local@none /usr/local/bin/vncserver :1
I had to modify the vncserver perl script ...
1) ... so that it contains the proper environment variables (not even PATH was
set, so uname couldn't be found in SanityCheck)
2) ... to catch SIGHUP and SIGTERM. This is the minimum to catch and pass on
to Xvnc.
3) ... to hang in a loop until the process id which I read from $pidFile
disappears.
(I would be glad to pass this script on to anybody who wants to play with
this.)
This results in the vncviewer getting the login dialog from dtlogin.
BUT ... the keyboard is useless. Even the alternate key returns a character.
Some keys return two characters. Some keys are dead. There seems to be no
logical relation except that the key presses always return the same values.
This behavior is identical whether I use a Digital keyboard, a Sun keyboard, a
Windows keyboard or an AIX keyboard.
The mouse works fine.
Attempting to use xmodmap in the vncserver perl script results in an authority
denial.
I coincidentally discovered that I could enter digits with the numeric keypad
so I created a user with the id 123 and the password 123. Using the mouse to
confirm, I successfully log in as user 123 and the desktop setup looked 100%
correct. All wigits, colors, icons, etc. were exactly as they should be.
BUT ... the keyboard is useless. Typing in an xterm gives the same results as
in the dtlogin dialog.
Attempting to use xmodmap in the user's profile produces no error but changes
nothing. Here are the xmodmap commands.
/usr/bin/X11/xmodmap /usr/lpp/X11/defaults/xmodmap/de_DE/keyboard
/usr/bin/X11/xmodmap -pk -pm -pp
If anybody wants the output from the second command, let me know, I don't know
if there are any problems indicated in it.
I grew hopeful when I discovered "Socket not connected" errors in
$HOME/.dt/startlog. I traced the errors to their sources and became none the
wiser since the commands producing the errors seemed to have nothing to do
with the keyboard setup. I then logged in on the console and, although the
keyboard was perfectly usable, I found those "Socket not connected" errors in
$HOME/.dt/startlog again.
Now here is the NEWS!!!
I found some CLOSE_WAIT states in the output from netstat. The local port was
1024 which concerned me since a Windows trojan named NetSpy uses that port.
So I used lsof to find out who's on that socket. What'd I find? (If you don't
use Lotus Notes you might have to change the following text block to a fixed
font.)
2:root@ws979:/usr/local/bin # ./lsof -i :1024
lsof: WARNING: compiled for AIX version 4.1.5.0; this is 4.2.1.0.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dtlogin 2668 root 7u inet 0x01e7ba00 0t0 TCP *:1024 (LISTEN)
perl 3062 root 7u inet 0x01e7ba00 0t0 TCP *:1024 (LISTEN)
dtgreet 4164 root 7u inet 0x01e7ba00 0t0 TCP *:1024 (LISTEN)
dtwm 5522 esotest 7u inet 0x01e7ba00 0t0 TCP *:1024 (LISTEN)
X 14006 root 7u inet 0x01e7ba00 0t0 TCP *:1024 (LISTEN)
Xvnc 20230 root 7u inet 0x01e7ba00 0t0 TCP *:1024 (LISTEN)
dtlogin 20504 root 7u inet 0x01e7ba00 0t0 TCP *:1024 (LISTEN)
dtfile 20884 esotest 7u inet 0x01e7ba00 0t0 TCP *:1024 (LISTEN)
aixims 21088 esotest 7u inet 0x01e7ba00 0t0 TCP *:1024 (LISTEN)
dtsession 21934 esotest 7u inet 0x01e7ba00 0t0 TCP *:1024 (LISTEN)
ttsession 22914 esotest 7u inet 0x01e7ba00 0t0 TCP *:1024 (LISTEN)
dtlogin 24254 root 7u inet 0x01e7ba00 0t0 TCP *:1024 (LISTEN)
Ok, now, finally, the biiiiig question: who knows exactly what this port is
used for? Why does lsof think that even the vncserver perl script is listening
to it?
I would appreciate anybody's tips, pointers, comments and questions.
Carlyle Sutphen
--
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
---------------------------------------------------------------------