From owner-freebsd-current Fri Sep 3 14:39:10 1999 Delivered-To: freebsd-current@freebsd.org Received: from metriclient-1.uoregon.edu (metriclient-1.uoregon.edu [128.223.172.1]) by hub.freebsd.org (Postfix) with ESMTP id 94D7D1571C for ; Fri, 3 Sep 1999 14:38:53 -0700 (PDT) (envelope-from gurney_j@efn.org) Received: (from jmg@localhost) by metriclient-1.uoregon.edu (8.9.1/8.8.7) id OAA10360; Fri, 3 Sep 1999 14:38:07 -0700 (PDT) Message-ID: <19990903143807.41435@hydrogen.fircrest.net> Date: Fri, 3 Sep 1999 14:38:07 -0700 From: John-Mark Gurney To: Luoqi Chen Cc: current@FreeBSD.ORG Subject: Re: start xdm on a particular vty References: <199909031441.KAA01499@lor.watermarkgroup.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: <199909031441.KAA01499@lor.watermarkgroup.com>; from Luoqi Chen on Fri, Sep 03, 1999 at 10:41:12AM -0400 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 3.0-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Luoqi Chen scribbled this message on Sep 3: > 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. 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 eval i=\$$# case $i > ttyv*) > vt=vt`expr $1 : 'ttyv\(.*\)' + 1`;; > *) vt=;; > esac > exec /usr/X11R6/bin/xdm -nodaemon -server ":0 local /usr/X11R6/bin/X :0 $vt" then you have a section like: i=1 st="" while [ $i -lt $# ]; do st="$st"' "$'${i}'"' i=$(($i + 1)) done eval exec /usr/X11R6/bin/xdm -nodaemon -server \":0 local /usr/X11R6/bin/X $st :0 \$vt\" that way you can provide -query hostname or another argument to the Xserver.. I haven't tested that the eval exec line works properly, but I do know that the rest of the script works fine though... :) -- John-Mark Gurney Voice: +1 541 684 8449 Cu Networking P.O. Box 5693, 97405 "The soul contains in itself the event that shall presently befall it. The event is only the actualizing of its thought." -- Ralph Waldo Emerson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message