Hi everybody,
        I've got a problem for which I spent several hours of the last two 
months without finding a solution.
        I have a machine equipped with WinNT4.0sp6a Workstation that I use, 
amongst other things, as a terminal for servers featuring HP-UX 10.20 
and HP-UX 11.00. For the last six months I have used NCDSoft's PCXWare 
(a commercial X Server) to connect to those unix servers. Unfortunately 
PCXWare is slow and buggy (at least the version available to me), so I 
decided to replace PCXWare with XFree.
        I already had both cygwin and XFree 4.10, so I tried to use them.

        After an initial problem with missing fonts, I have written this 
little script, called openmachine.sh (a modified version of another 
script that I have seen somewhere):

$ cat openmachine.sh 
#!/bin/sh
export DISPLAY=127.0.0.1:0.0
PATH=/usr/X11R6/bin:$PATH
#eval `ssh-agent`

# Cleanup from last run.
rm -rf /tmp/.X11-unix

XWin :0 -kb -fp `grep catalogue /etc/X11/fs/config | cut -d\  -f3` -ac 
-query $1 -fullscreen -screen 0 1280 1024 -from 151.98.34.64 -audit 4

#eval `ssh-agent -k`

# Return from sh.
exit


Two words about the script:
        1) I have disabled keyboard extensions (-kb), because enabled I 
wasn't able to use function keys in some HP-UX application (anyway I 
also tried to omit "-kb", but the problem does not solve);
        2) fonts are local to my machine (I copied them from one of the 
HP-UX servers of my LAN (and I have also verified that the other servers 
had the same fonts)), and their path is taken from /etc/X11/fs/config).


openmachine.sh (whose first parameters is, obviously the name or address 
of the machine to be contacted) works for some machines in my LAN and 
fails for others. For those machine for which the script works, all is 
fine and I have no problem (at least till now). For the machine for 
which the script fails, here what happens:

        * the X server is started correctly;
        * the X display becomes black and the well known CDE hourglass is 
shown (CDE is installed in all the HP-UX servers);
        * nothing happens anymore (i.e. the login form never shows).

Note that HP-UX version seems not to affect script functionality: there 
exist machines with HP-UX 10.20 for which the script works and machine 
with HP-UX 10.20 for which the script fails (and the same happens for 
HP-UX 11.00).

When I launch openmachine.sh against a machine that successfully shows 
the login screen, the script (i.e. XWin) generates the following output:

ddxProcessArgument ()
ddxProcessArgument ()
ddxProcessArgument ()
ddxProcessArgument ()
ddxProcessArgument ()
ddxProcessArgument ()
ddxProcessArgument ()
ddxProcessArgument () - screen - argc: 17 i: 9
ddxProcessArgument ()
ddxProcessArgument ()
winDetectSupportedEngines () - Windows NT/2000
winDetectSupportedEngines () - DirectDraw installed
winDetectSupportedEngines () - Allowing PrimaryDD
winDetectSupportedEngines () - Returning, supported engines 0000001b
winSetEngine () - Using Shadow DirectDraw
winAdjustVideoModeShadowDD () - Using Windows display depth of 16 bits 
per pixel
winAllocateFBShadowDD () - Not changing video mode
winInitVisualsShadowDD () - Masks 0000f800 000007e0 0000001f BPRGB 6 d 
16
winCreateDefColormap () - Deferring to fbCreateDefColormap ()
AUDIT: Mon Jan  7 13:26:39 2002: 450 XWin: client 1 connected from IP 
151.98.21.37 port 1507
  Auth name: MIT-MAGIC-COOKIE-1 ID: 50
AUDIT: Mon Jan  7 13:26:39 2002: 450 XWin: client 2 connected from IP 
151.98.21.37 port 1508
  Auth name: MIT-MAGIC-COOKIE-1 ID: 50
AUDIT: Mon Jan  7 13:26:39 2002: 450 XWin: client 3 connected from IP 
151.98.21.37 port 1509
  Auth name: MIT-MAGIC-COOKIE-1 ID: 50
AUDIT: Mon Jan  7 13:26:39 2002: 450 XWin: client 3 disconnected
AUDIT: Mon Jan  7 13:26:39 2002: 450 XWin: client 3 connected from IP 
151.98.21.37 port 1510
  Auth name: MIT-MAGIC-COOKIE-1 ID: 50
AUDIT: Mon Jan  7 13:26:39 2002: 450 XWin: client 3 disconnected
AUDIT: Mon Jan  7 13:26:39 2002: 450 XWin: client 3 connected from IP 
151.98.21.37 port 1511
  Auth name: MIT-MAGIC-COOKIE-1 ID: 50
AUDIT: Mon Jan  7 13:26:40 2002: 450 XWin: client 3 disconnected
AUDIT: Mon Jan  7 13:26:40 2002: 450 XWin: client 3 connected from IP 
151.98.21.37 port 1512
  Auth name: MIT-MAGIC-COOKIE-1 ID: 50
AUDIT: Mon Jan  7 13:26:40 2002: 450 XWin: client 3 disconnected
AUDIT: Mon Jan  7 13:26:40 2002: 450 XWin: client 3 connected from IP 
151.98.21.37 port 1513
  Auth name: MIT-MAGIC-COOKIE-1 ID: 50
AUDIT: Mon Jan  7 13:26:40 2002: 450 XWin: client 3 disconnected
AUDIT: Mon Jan  7 13:26:40 2002: 450 XWin: client 3 connected from IP 
151.98.21.37 port 1514
  Auth name: MIT-MAGIC-COOKIE-1 ID: 50
AUDIT: Mon Jan  7 13:26:40 2002: 450 XWin: client 4 connected from IP 
151.98.21.37 port 1515
  Auth name: MIT-MAGIC-COOKIE-1 ID: 50
AUDIT: Mon Jan  7 13:26:40 2002: 450 XWin: client 4 disconnected





When I launch openmachine.sh against a machine for which the login 
screen is never reached, the script (i.e. XWin) generates the following 
output:

ddxProcessArgument ()
ddxProcessArgument ()
ddxProcessArgument ()
ddxProcessArgument ()
ddxProcessArgument ()
ddxProcessArgument ()
ddxProcessArgument ()
ddxProcessArgument () - screen - argc: 17 i: 9
ddxProcessArgument ()
ddxProcessArgument ()
winDetectSupportedEngines () - Windows NT/2000
winDetectSupportedEngines () - DirectDraw installed
winDetectSupportedEngines () - Allowing PrimaryDD
winDetectSupportedEngines () - Returning, supported engines 0000001b
winSetEngine () - Using Shadow DirectDraw
winAdjustVideoModeShadowDD () - Using Windows display depth of 16 bits 
per pixel
winAllocateFBShadowDD () - Not changing video mode
winInitVisualsShadowDD () - Masks 0000f800 000007e0 0000001f BPRGB 6 d 
16
winCreateDefColormap () - Deferring to fbCreateDefColormap ()
AUDIT: Mon Jan  7 13:30:54 2002: 331 XWin: client 1 connected from IP 
151.98.21.81 port 2040
  Auth name: MIT-MAGIC-COOKIE-1 ID: 50
AUDIT: Mon Jan  7 13:30:54 2002: 331 XWin: client 2 connected from IP 
151.98.21.81 port 2041
  Auth name: MIT-MAGIC-COOKIE-1 ID: 50
AUDIT: Mon Jan  7 13:30:55 2002: 331 XWin: client 3 connected from IP 
151.98.21.81 port 2042
  Auth name: MIT-MAGIC-COOKIE-1 ID: 50
AUDIT: Mon Jan  7 13:30:55 2002: 331 XWin: client 3 disconnected
AUDIT: Mon Jan  7 13:30:55 2002: 331 XWin: client 3 connected from IP 
151.98.21.81 port 2043
  Auth name: MIT-MAGIC-COOKIE-1 ID: 50
AUDIT: Mon Jan  7 13:30:55 2002: 331 XWin: client 3 disconnected
AUDIT: Mon Jan  7 13:30:55 2002: 331 XWin: client 3 connected from IP 
151.98.21.81 port 2044
  Auth name: MIT-MAGIC-COOKIE-1 ID: 50
AUDIT: Mon Jan  7 13:30:55 2002: 331 XWin: client 3 disconnected
AUDIT: Mon Jan  7 13:30:55 2002: 331 XWin: client 3 connected from IP 
151.98.21.81 port 2045
  Auth name: MIT-MAGIC-COOKIE-1 ID: 50
AUDIT: Mon Jan  7 13:30:55 2002: 331 XWin: client 3 disconnected
AUDIT: Mon Jan  7 13:30:55 2002: 331 XWin: client 3 connected from IP 
151.98.21.81 port 2046
  Auth name: MIT-MAGIC-COOKIE-1 ID: 50
AUDIT: Mon Jan  7 13:30:55 2002: 331 XWin: client 3 disconnected
AUDIT: Mon Jan  7 13:30:55 2002: 331 XWin: client 3 connected from IP 
151.98.21.81 port 2047
  Auth name: MIT-MAGIC-COOKIE-1 ID: 50





It seems, in this second case, that client 4 is never called or never 
connects. But who is "client 4"?
I don't know XDMCP and/or CDE's dtlogin so well to understand (and, 
hopefully, to solve) the problem.

Can anyone help?

P.S. I have also monitored /var/dt/Xerrors, but I'm not able to identify 
any difference between working and non-working hosts.


-------------------------------------
Danilo Turina
Alcatel Optics TND Network Management
Rieti (Italy) - Phone: +39 746 600332
-------------------------------------

8 mesi 28 giorni 55 minuti 

<<attachment: WINMAIL.DAT>>

Reply via email to