From owner-freebsd-current Fri Sep 3 9:35:32 1999 Delivered-To: freebsd-current@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 8DAFF14CD1 for ; Fri, 3 Sep 1999 09:35:25 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id KAA00844; Fri, 3 Sep 1999 10:34:09 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id KAA02925; Fri, 3 Sep 1999 10:34:09 -0600 Date: Fri, 3 Sep 1999 10:34:09 -0600 Message-Id: <199909031634.KAA02925@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Luoqi Chen Cc: current@FreeBSD.ORG Subject: Re: start xdm on a particular vty In-Reply-To: <199909031441.KAA01499@lor.watermarkgroup.com> References: <199909031441.KAA01499@lor.watermarkgroup.com> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > There have been discussions about the xdm entry /etc/ttys does not guarantee > the X server being started on the particular vty. So I wrote a shell script > to explicitly tell xdm to start X server on a specific vty. I *like* it. I think you should share it with the XFree86 folks, and I think this would be great to have in the base installation (after proper testing of course...). However, does this work with non-XFree86 X servers? (Or, maybe you can't test that...) Nate It's been working > great. I'd like to share it with you, maybe we could include it in the base > system. Here's the script (I call it xdmstart), it's very simple, > > #!/bin/sh > case $1 in > ttyv*) > vt=vt`expr $1 : 'ttyv\(.*\)' + 1`;; > *) vt=;; > esac > exec /usr/X11R6/bin/xdm -nodaemon -server ":0 local /usr/X11R6/bin/X :0 $vt" > > and in /etc/ttys replace the xdm line with > ttyv3 "/usr/local/bin/xdmstart" xterm on secure > > There's one thing should be noted, the vtxx option isn't a standard X server > option, but both XFree86 and Xig support it, so majority of the people should > be covered. > > -lq > > > 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-current" in the body of the message