[comp.windows.x] X terminal server for Sun 3's

jnv@cl.cam.ac.uk (Neil Viljoen) (04/16/91)

----------
There had been some talk of a X terminal package for Sun 3's (ie. I dont
want to boot SunOs).
If anybody knows of this could they please let me know.

Thanks

------------------------------------------------------------------------------
Neil Viljoen			|  Tel: +44-223-334688
Univ. of Cambridge		|  Fax: +44-223-334678
Computer Laboratory		|  
Pembroke Street			|  Email: jnv@cl.cam.ac.uk
Cambridge CB2 3QG		|
England				|

mouse@lightning.mcrcim.mcgill.EDU (der Mouse) (05/02/91)

> There had been some talk of a X terminal package for Sun 3's (ie. I
> dont want to boot SunOs).

Your informant was probably confused (or perhaps simply uninformed).
The package probably being referred to, something called Xkernel, does
in fact boot a SunOS kernel, but arranges to run nothing but the X
server under it.  Removing the usual clutter of user-level daemons does
improve performace significantly, though I suspect this effect is more
due to the memory saving than anything else.  (Another hint: run the
oldest SunOS kernel you can.  X doesn't need much in the way of kernel
services, and you really want the *smallest* kernel possible.)

If this is good enough for you, you can either get Xkernel or just do
it yourself; it's fairly easy: replace /etc/init in the diskless
machine's root area with a shell script that sets up a few things and
runs Xsun with appropriate options, then strip everything out of the
root area except for what's used.  Here, for example, is the /etc/init
script from our X-terminal disklesses.  (I will be glad to discuss this
script, or any other aspect of our setup, by mail.)

#! /bin/sh
exec >/dev/console 2>&1
/etc/fsck -p /dev/nd0
case $? in
	0)	;;
	4)	/etc/reboot -q -n
		;;
	8)	echo ND fsck failed - get help
		/etc/halt
		;;
	12)	echo Interrupted
		/etc/reboot
		;;
	*)	echo Unknown error in reboot fsck - get help
		/etc/halt
		;;
esac
/bin/dd if=/tmp-fs of=/dev/nd2 bs=512 count=128 >/dev/null 2>&1
/etc/mount /dev/nd2 /tmp
/etc/ifconfig le0 netmask 255.255.255.0 broadcast 132.206.41.255
/etc/mount -o ro apollo:/u2/x11/lib /local/lib/X11
/etc/route add default 132.206.41.1 1 >/dev/null
set `/etc/ifconfig le0`
exec /Xsun -once -multidisp -mux -query `(sh -vn </local/lib/X11/xdm-servers/$2 2>&1)`

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu