On Thu, 2002-03-28 at 22:29, Chad and Doria Skinner wrote: > I have VNC and GDM running on my local computer, but we are wanting to > install it on a server and want to disable the local x server and just > enable gdm so that it will respond to vnc connections via xdmcp. I have > hosts.deny and hosts.allow setup to only allow connections from the local > machine and block port 177. > > My question is what is the proper method to start gdm in run level 3? > > There do not appear to be any init scripts and in run level 5 I believe it > is started by inittab. > > Thanks, > Chad
I created my own init script for gdm in /etc/rc.d/init.d, and if it is set up properly, you can use chkconfig --add to create the rc.[0123456] links. I also edited inittab and commented out where it starts it up in runlevel 5. Then you may have to edit /etc/X11/gdm/gdm.conf to disable starting a server when you enter runlevel 3, 4 or 5. Make sure under the [servers] section there is not something like 0=/usr/bin/X11/X or else comment it out. Here's the gdm init script I use: ------------------- Start ------------------ #!/bin/bash # init file for gdm # # chkconfig: 345 98 02 # description: X Display Manager Daemon # # processname: gdm # config: /etc/X11/gdm/gdm.conf # config: /etc/X11/gdm/gdm-config # source function library . /etc/rc.d/init.d/functions RETVAL=0 case "$1" in start) echo -n "Starting gdm: " daemon /usr/bin/gdm -config /etc/X11/gdm/gdm.conf RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/gdm echo ;; stop) echo -n "Shutting down gdm: " killproc gdm RETVAL=$? [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/gdm echo ;; restart) $0 stop $0 start RETVAL=$? ;; status) status gdm RETVAL=$? ;; *) echo "Usage: gdm {start|stop|restart|status}" exit 1 esac exit $RETVAL ------------------- End ------------------------ _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list