Subject: Re: X Windows problems on diskless SunOS 4.1.4 client of NetBSD 1.5.1 server
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Volker Borchert <bt@insiders-fs.com>
List: port-sparc
Date: 11/13/2001 11:54:16
Manuel Bouyer <bouyer@antioche.eu.org>:

|> OK, and what does 'ls -l' show for the socket, from NetBSD and from
|> SunOS point of few ?

The session transcript below shows a script run on Demeter which is
the SunOS client. Uranos is the NetBSD server. It "ls"es X0 on both
machines, then tries to run "xset q" with DISPLAY :0.0 first and
then localhost:0.0 to verify that the X server is still running.

(BTW, I have found a workaround: make /var/tmp/.X11-unix a tmpfs.
 Due to bugs in SunOS's tmpfs code, this is not recommendable for
 a potentially hostile environment, but due to other security
 problems, SunOS itself as a whole is not recommendable in such
 an environment.                                                 )


+ df /var/tmp/.X11-unix/X0
Filesystem           1k-blocks      Used Available Use% Mounted on
Uranos:/export/vtmp/Demeter
                       1014887      3912    960230   1% /var/tmp
+ ls -il /var/tmp/.X11-unix/X0
   11521 srwxrwxrwx    1 bt       users             0 Nov 13 00:12 /var/tmp/.X11-unix/X0
+ ssh Uranos ls -il /export/vtmp/Demeter/.X11-unix/X0
   11521 srwxrwxrwx    1 bt       users             0 Nov 13 00:12 /export/vtmp/Demeter/.X11-unix/X0
+ trace xset q -display :0.0
+ tail -10
brk (0xbf70) = 0
socket (1, 1, 0) = 3
connect (3, "\0\1/tmp/.X11-unix/X0", 19) = -1 ENOTSOCK (Socket operation on non-socket)
close (3) = 0
write (2, "xset:  unable to open display ":".., 37) = xset:  unable to open display ":0.0"
37
close (0) = 0
close (1) = 0
close (2) = 0
exit (1) = ?
+ xset q -display localhost:0.0
Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000000

	[ more output snipped, since it is not really of interest here ]