From owner-freebsd-doc Thu Apr 23 15:40:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA11183 for freebsd-doc-outgoing; Thu, 23 Apr 1998 15:40:03 -0700 (PDT) (envelope-from owner-freebsd-doc@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA11149; Thu, 23 Apr 1998 15:40:01 -0700 (PDT) (envelope-from gnats) Date: Thu, 23 Apr 1998 15:40:01 -0700 (PDT) Message-Id: <199804232240.PAA11149@hub.freebsd.org> To: freebsd-doc Cc: From: Tim Vanderhoek Subject: Re: conf/3590 Reply-To: Tim Vanderhoek Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR conf/3590; it has been noted by GNATS. From: Tim Vanderhoek To: freebsd-gnats-submit@FreeBSD.ORG Cc: Subject: Re: conf/3590 Date: Thu, 23 Apr 1998 18:34:55 -0400 (EDT) Yet Another Opinion on This Contentious Bug -- tIM...HOEk OPTIMIZATION: the process of using many one-letter variables names hoping that the resultant code will run faster. ---------- Forwarded message ---------- Date: 22 Apr 1998 13:29:44 +0200 From: Dag-Erling Coidan Smørgrav To: Kazutaka YOKOTA Cc: "Alok K. Dhir" , current@FreeBSD.ORG Subject: Re: Disappearing keyboard Kazutaka YOKOTA writes: > AFAIK, there are four ways to start xdm and avoid conflicts with getty. > > 1. Specify xdm in /etc/ttys. If you want to run xdm in ttyv3, you write: > > ttyv3 "/usr/X11R6/bin/xdm -nodaemon" xterm on secure This is evil and should never have been suggested in the docs. > 2. Run xdm from /etc/rc.local (or other rc* files). > [...] > 3. Another way to run xdm from /etc/rc.local (or other rc* files). > [...] There is a better way, see below. > 4. Specify the X server in /etc/ttys. > > ttyv3 "/usr/X11R6/bin/X vt4 -query localhost" xterm on secure Again, this is evil. The Right Way (tm) to start X or xdm is to put a shell script in /usr/local/etc/rc.d which Does the Deed. It will work, no questions asked. I have something similar to this: #!/bin/sh if [ -r /noxdm ] ; then echo -n " (xdm disabled)" else [ -x /usr/X11R6/bin/xdm ] && /usr/X11R6/bin/xdm && echo -n " xdm" fi in /usr/local/etc/rc.d/xdm.sh. If you're picky about the execution order of /usr/local/etc/rc.d/*, use a numeric prefix for each script, as in /etc/periodic/*. -- Noone else has a .sig like this one. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message