Re: [K12OSN] Starting X w/o login

Adam J. Melancon (adammelancon@hotmail.com)
Mon, 22 Apr 2002 17:25:36 +0000



Try putting this under the start_ws section of rc.local and using the 
WS_LEVEL paramater that we came up with for just netscape and x starting up

just take out the netscape line in level 1 and put in the rdesktop line from 
your rc script

and add WS_LEVEL = 1 in lts.conf on the machine that you want this to work 
with

here is the rc.local file
http://melancon.org/linux/linuxlibrary/projects/k12ltsp/fileschanged/rc.local

here is the start_ws section
#######################################################################################################
#######################################################################################################
# Build the start_ws script
#

WS_LEVEL=`get_cfg WS_LEVEL`

# Workstation level 1.  Netscape only and limited to what pages it can go to 
by ipchains.
if [ "${WS_LEVEL}" = "1" ]; then

	echo "Building the netscapews script"

	XDM_SERVER=`get_cfg XDM_SERVER ${DEFAULT_SERVER}`

	case ${XSERVER} in

	    XF86_*)  XBINARY="${XSERVER}"
	             ;;

	    *)       XBINARY="XFree86"
	             ;;
	esac

	ACCESS_CONTROL=`get_cfg DISABLE_ACCESS_CONTROL N`
	if [ "${ACCESS_CONTROL}" = "Y" ]; then
	    ACC_CTRL="-ac"
	else
	    ACC_CTRL=""
	fi

echo "/usr/X11R6/bin/${XBINARY} ${ACC_CTRL} &" >/tmp/start_ws

###################put your rdesktop stuff here to replace netscape###
######################################################################

	echo "/usr/local/netscape/netscape -no-about-splash -display :0 -geometry 
1024x768+0+0 http://opac.vermilion.lib.la.us" >>/tmp/start_ws
#else

#	echo "/usr/local/netscape/netscape -no-about-splash -display :0 -geometry 
800x600+0+0" >>/tmp/start_ws
#fi
###################################################################

# Workstation level 2.  IceWM and netscape and whatever else.
elif [ "${WS_LEVEL}" = "2" ]; then

	echo "Building the icewm-lite script....so be patient huh!...man, can't you 
wait 5 seconds....dang, some people's children"

	XDM_SERVER=`get_cfg XDM_SERVER ${DEFAULT_SERVER}`

	case ${XSERVER} in

	    XF86_*)  XBINARY="${XSERVER}"
	             ;;

	    *)       XBINARY="XFree86"
	             ;;
	esac

	ACCESS_CONTROL=`get_cfg DISABLE_ACCESS_CONTROL N`
	if [ "${ACCESS_CONTROL}" = "Y" ]; then
	    ACC_CTRL="-ac"
	else
	    ACC_CTRL=""
	fi

	echo "/usr/X11R6/bin/${XBINARY} ${ACC_CTRL} &" >/tmp/start_ws
	echo "/usr/X11R6/bin/icewm -display :0 &" >>/tmp/start_ws
	echo "/usr/local/netscape/netscape -no-about-splash -display :0 -geometry 
1024x768+0+0 http://opac.vermilion.lib.la.us " >>/tmp/start_ws

else

	echo "Building the start_ws script"

	XDM_SERVER=`get_cfg XDM_SERVER ${DEFAULT_SERVER}`

	case ${XSERVER} in

	    XF86_*)  XBINARY="${XSERVER}"
	             ;;

	    *)       XBINARY="XFree86"
	             ;;
	esac

	ACCESS_CONTROL=`get_cfg DISABLE_ACCESS_CONTROL N`
	if [ "${ACCESS_CONTROL}" = "Y" ]; then
	    ACC_CTRL="-ac"
	else
	    ACC_CTRL=""
	fi

	if [ -w /proc/progress ]; then
	    echo "/usr/X11R6/bin/${XBINARY} ${ACC_CTRL} -query ${XDM_SERVER} 
 >/dev/tty3 2>&1" >/tmp/start_ws
	else
	    echo "/usr/X11R6/bin/${XBINARY} ${ACC_CTRL} -query ${XDM_SERVER}" 
 >/tmp/start_ws
	fi

fi

chmod 0755 /tmp/start_ws

#######################################################################################################





Adam J. Melancon




Adam J. Melancon


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com



_______________________________________________
K12OSN mailing list
K12OSN@redhat.com
https://listman.redhat.com/mailman/listinfo/k12osn
For more info see