From: sheer@sapphirepdsf.ssc.gov (Irwin Sheer)
Subject: Re: HP's quasi-X setup
Organization: Superconducting Super Collider Laboratory
Date: Tue, 18 Aug 1992 15:09:19 GMT

In article <1992Aug5.225923.22689@nas.nasa.gov>, bross@splatter.nas.nasa.gov (Bill Ross) writes:
+> Has anyone run up against the non-standard X setup of HP 7[123]0's?
+> E.g. as shipped, one cluster at least has no X11/Xaw/ includes. 
+> Also, they are configured to force the user into using the vue
+> window management - no way you can get, say, twm. I am told that
+> a root-modifiable configuration file would allow more flexibility,
+> but the newly-minted administrator is not sympathetic.. how-to 
+> stories from people who have escaped from this curse might help him 
+> over the energy barrier.
+> 
+> Can't compile xrn or use my own window manager.. at least it's
+> fast.
+> 
+> Bill Ross
+> NASA Ames & UC San Francisco


I solved this problem by changing the first line in /etc/inittab from:
  init:3:initdefault:
to:
  init:2:initdefault:
This inhibits vue and brings up the hp as a regular terminal.  You 
are now free to customize you X environment to your hearts content.  I
exec xinit from my .login file (see below) so that when I kill the window 
manager (mwm for me) I get logged out.  The only draw back with this 
method is that you loose the screen save when nobody is logged on (of
course you can power down the display...).

Those of you how think vue is great obviously only work on hp's some of the
rest of us have to work on a lot of different vendor machines and there is
nothing quit like having the same enviroment on lots of different machines!

----- example .login file: -----

#
# .login file
# I.Sheer <sheer@sscvx1>
#

echo 'executing .login'

# setup terminal
if ( ! $?TERM ) eval `tset -s -Q -m ':?xterm' `
stty erase ^\? kill ^u intr ^c eof ^d start ^q stop ^s susp ^z \
     echoe tabs tostop
echo TERM = $TERM
switch ( $TERM )
  case hp:
    exec xinit >& /dev/console
  case hpterm:
  case vt100:
  case vt200:
  case xterm:
  default:
    mail
    breaksw
endsw

# end of .login file

----- example .xinitrc file: -----

#!/bin/sh
#
# X11 startup script
# I.Sheer <sheer@sscvx1>
#
xmodmap .xmodmaprc			# setup vt100 keypad
xrdb -load .Xdefaults			# load X window resources
xinitcolormap				# initialize color map
xsetroot -solid blue			# set color of root window
xterm -C -ls -n "Console" &		# start console terminal as icon
xclock &				# start clock
xcal &					# start calendar
xload &					# start load monitor
mwm 					# start motif window manager
exit

-- 
===================================================================
 Irwin Sheer            |   sheer@sapphire.gem.ssc.gov  (internet)
 tel:  (214) 708-1050   |   sheer@sscvx1.bitnet           (bitnet)
 fax:  (214) 708-6354   |   sscvx1::sheer                 (decnet)
-------------------------------------------------------------------
  ___                    ___          ___         
 (___                   (___         |              |
  ___) UPERCONDUCTING    ___) UPER   |___ OLLIDER   |___ ABORATORY

        2550 Beckleymeade Ave., MS-2000, Dallas TX  75237
===================================================================