From owner-freebsd-current Wed Apr 22 04:30:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA21401 for freebsd-current-outgoing; Wed, 22 Apr 1998 04:30:08 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA21387 for ; Wed, 22 Apr 1998 11:30:02 GMT (envelope-from dag-erli@ifi.uio.no) Received: from hrotti.ifi.uio.no (2602@hrotti.ifi.uio.no [129.240.64.15]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with ESMTP id NAA15120; Wed, 22 Apr 1998 13:29:46 +0200 (MET DST) Received: (from dag-erli@localhost) by hrotti.ifi.uio.no ; Wed, 22 Apr 1998 13:29:45 +0200 (MET DST) Mime-Version: 1.0 To: Kazutaka YOKOTA Cc: "Alok K. Dhir" , current@FreeBSD.ORG Subject: Re: Disappearing keyboard References: <199804220516.OAA00391@zodiac.mech.utsunomiya-u.ac.jp> Organization: Gutteklubben Terrasse / KRST / PUMS / YASMW X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-Stop-Spam: http://www.cauce.org From: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 22 Apr 1998 13:29:44 +0200 In-Reply-To: Kazutaka YOKOTA's message of "Wed, 22 Apr 1998 14:16:40 +0900" Message-ID: Lines: 40 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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