|
For some background reading, take a look at the response in 6937.5
in this conference. That explained how to do it for a V3.2
DECwindows environment.
The approach for CDE is similar - replace the startup/stop
scripts in /sbin/rc3.d with customized versions. The problem is
that CDE rather heavily depends upon cleanly coming through
the dtlogin process to set up environment variables, so that
more work is needed.
I've played around with this on a V4.0 system - I no longer have
easy access to a V3.2 system. This appears to work for the most
part. It could use some cleanup, and should be made to do something
more clever if the user logs out of CDE, but it's a proof of
concept.
Rename the existing /sbin/rc3.d/S95xlogin script on a V4.0x system
and create another script (e.g., S95noxlogin) with the following:
#!/bin/sh
DISPLAY=war.unx.dec.com:0.0 # replace with your system name
export DISPLAY
/usr/bin/X11/X -ac -errorFile /var/dt/Xerrors &
PATH=/sbin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/bin/X11:/usr/local
export PATH
HOME=/
export HOME
LOGNAME=root
export LOGNAME
SHELL=/bin/sh
export SHELL
TERM=vt100
export TERM
USER=root
export USER
SESSIONTYPE=dt
export SESSIONTYPE
LANG=C
export LANG
DTXSERVERLOCATION=local
export DTXSERVERLOCATION
/var/X11/xdm/Xsetup_0
/usr/bin/X11/xset fp+ /usr/dt/config/xfonts/C
/usr/dt/bin/Xsession
|