MANSFIEL@EMBL.BITNET (Niall Mansfield) (08/26/87)
The problem:
xdemo doesn't work on a Sun - it gives the confusing
message
no such file or directory
Solution-1 (The neat way)
The problem is that "xdemo" is looking for a unix
domain socket "/dev/X0", and the standard SUN
configuration creates "/tmp/X0". We added a
symbolic link from "/dev/X{0,1}" to "/tmp/X{0,1}",
which fixed things up nicely.
Soultion-2
Specify a TCP domain display name, either
explicitly, like
xdemo balls myhost:0
or implicitly by setting the DISPLAY environment
variable
setenv DISPLAY myhost:0
Thanks
To all those people who sent ME these answers when I
asked a while back - many I couldn't thank directly,
as my mail bounced.
Niallleres@ucbarpa.Berkeley.EDU (Craig Leres) (08/27/87)
The xdemo I have is a sun-2 binary and was easy enough to patch: hot 1 % cp /usr/new/xdemo . hot 2 % adb -w xdemo 8e5a?S 0x8e5a: /dev/X ?W2f746d70 0x8e5a: 0x2f646576 = 0x2f746d70 ?S 0x8e5a: /tmp/X ^D I suspect that this address will be the same at other Sun sites. If not, it only took a few minutes to find where the string lived. Craig