7) Add the following line to the $HOME/.dt/sessions/sessionetc file:
/usr/openwin/bin/olwm -single -display :0.1 &
where :0.1 is the number of the screen the user wants Openwindows to appear.
This will make CDE run on screen 0, and olwm on screen 1.
Please note we have to create "sessionetc" file. We have to set
rwxr-xr-x permissions for the file.
[[[[[[[[[[[[[[ my env ]]]]]]]]]]]]]]]]]]]]
Disable dtlogin
# mv /etc/rc2.d/s99dtlogin /etc/rc2.d/s99dtlogin
# getent passwd root
root:x:0:1:Super-User:/:/sbin/sh
# cat .profile
PATH=$PATH:/usr/local/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/local/bin:/opt/SUNWspro/bin
LD_LIBRARY_PATH=$LD_LITRARY_PATH:/opt/ldapsdk/lib:/opt/hpnpl/lib:/opt/SUNWspro/lib
LM_LICENSE_FILE=/etc/opt/licenses/licenses_combined
TERM=vt100
EDITOR=vi
export PATH TERM LD_LIBRARY_PATH EDITOR LM_LICENSE_FILE
MANPATH=$MANPATH:/usr/local/man:/opt/hpnpl/man:/usr/share/man:/opt/SUNWspro/man:/opt/SUNWste/license_tools/man
export MANPATH
[ `tty` = "/dev/console" ] && /usr/openwin/bin/openwin -dev /dev/fbs/m640 -dev /dev/fbs/m642 right && exit
ctdev% getent passwd sybase
sybase:x:1003:10::/opt/sybase/dba:/bin/csh
ctdev% cat .login
# @(#)local.login 1.3 93/09/15 SMI
stty -istrip
# setenv TERM `tset -Q -`
#
# if possible, start the windows system. Give user a chance to bail out
#
if ( `tty` == "/dev/console" ) then
if ( $TERM == "sun" || $TERM == "AT386" ) then
if ( ${?OPENWINHOME} == 0 ) then
setenv OPENWINHOME /usr/openwin
endif
echo ""
echo -n "Starting OpenWindows in 5 seconds (type Control-C to interrupt)"
sleep 5
echo ""
/usr/openwin/bin/openwin -dev /dev/fb0 -dev /dev/fb1 right
clear # get rid of annoying cursor rectangle
logout # logout after leaving windows system
endif
endif
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7970627/viewspace-687682/,如需转载,请注明出处,否则将追究法律责任。