xinit under A/UX

Richard Todd rmtodd at servalan.uucp
Fri Oct 5 11:11:16 AEST 1990


coolidge at cs.uiuc.edu (John Coolidge) writes:

>Has anyone out there had any luck getting xinit to do the right thing
>under A/UX 2.0? I've been working with the xinit source off the MIT R4
>tape, and it will start up the server fine but then hang. I've got it
>traced back to the alarm(15) call in startServer(), but why it's just
>hanging at that point I don't know. Does anyone know any magic to make
>it work?

  Well, I don't usually use xinit (I use xdm and xdmshell usually),
but I have used xinit under A/UX 2.0 and it works OK.  You do have to
be a bit careful in the args, etc. passed to it; I recall that the
default "X11" script that MIT recommended to start up xinit was
broken.  Here are the scripts I use to start up X11 in color or mono
mode with xinit.  (BTW, all this is using the stock X11R4 patchlevel
11 MIT source for server,clients,etc.)

#--------------------------------CUT HERE-------------------------------------
#! /bin/sh
#
# This is a shell archive.  Save this into a file, edit it
# and delete all lines above this comment.  Then give this
# file to sh by executing the command "sh file".  The files
# will be extracted into the current directory owned by
# you with default permissions.
#
# The files contained herein are:
#
# -rwxr-xr-x   1 rmtodd   root         857 Oct  4 20:07 .x11start
# -rwxr-xr-x   1 rmtodd   root          92 Oct  4 20:05 colorX
# -rwxr-xr-x   1 rmtodd   root         236 Oct  4 20:08 monoX
#
echo 'x - .x11start'
if test -f .x11start; then echo 'shar: not overwriting .x11start'; else
sed 's/^X//' << '________This_Is_The_END________' > .x11start
X: "@(#) /usr/lib/X11/.x11start		Shell Script for X11"
X
Xif [ -r /dev/oldmsgs ]
Xthen
X      # Do a tail to display any new console messages in this window,
X      # using -1c to ensure that we don't see any old messages.  Start
X      # this at the beginning of this script so that we see any messages
X      # generated while this script executes.
X      tail -1cf /dev/oldmsgs &
X      tailproc=$!
Xfi
X
Xxstdcmap -all
Xxset m 4 2 s 120 120
Xxrdb -load /users/rmtodd/.Xresources
Xtwm &
Xsleep 3
X#xclock -analog -update 60 -geometry 96x96-2-2 &
X#sleep 1
Xxload -geometry 96x96-100-2 &
Xsleep 3
X#xlogo -fg grey -bg maroon -geometry 96x96-200-2 &
X#sleep 1
Xxterm  -geometry 80x24+40+88 -title "`hostname` 1" -bg black -fg cyan &
Xsleep 3
X#xterm -geometry 80x24+60+108 -title "`hostname` 2" &
X#sleep 1
X
Xif [ "$tailproc" ]
Xthen
X    $SHELL
X    kill $tailproc
Xelse
X	exec $SHELL
Xfi
________This_Is_The_END________
if test `wc -l < .x11start` -ne 35; then
	echo 'shar: .x11start was damaged during transit (should have been 35 bytes)'
fi
fi		; : end of overwriting check
echo 'x - colorX'
if test -f colorX; then echo 'shar: not overwriting colorX'; else
sed 's/^X//' << '________This_Is_The_END________' > colorX
X:
X# Go into X Windows in color mode
Xexec /bin/sh /users/rmtodd/bin/monoX -screen 0 -depth 8
________This_Is_The_END________
if test `wc -l < colorX` -ne 3; then
	echo 'shar: colorX was damaged during transit (should have been 3 bytes)'
fi
fi		; : end of overwriting check
echo 'x - monoX'
if test -f monoX; then echo 'shar: not overwriting monoX'; else
sed 's/^X//' << '________This_Is_The_END________' > monoX
X: "@(#) /usr/bin/X11/X11		Shell Script for X11"
XDISPLAY="unix:0.0"
Xexport DISPLAY
Xxinit /usr/bin/X11/xterm -geometry 60x8+0+0 +ut -sb -fb 6x10 -T "console" -e $HOME/.x11start -- -logo -v $* > $HOME/debug.log 2>&1
XXrepair
Xscreenrestore
X
________This_Is_The_END________
if test `wc -l < monoX` -ne 7; then
	echo 'shar: monoX was damaged during transit (should have been 7 bytes)'
fi
fi		; : end of overwriting check
exit 0



More information about the Comp.unix.aux mailing list