Solaris Handbook for Sun Frame Buffers

Starting OpenWindows from the Console

The following is an example of a .login file configured to start OpenWindows from the console.


#
# if possible, start the windows system.  Give user a chance to bail out
#
if ( `tty` == "/dev/console" && $TERM == "sun" ) 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 ""
	$OPENWINHOME/bin/openwin
	clear					# get rid of annoying cursor rectangle
	logout					# logout after leaving windows system

endif