From owner-freebsd-questions@FreeBSD.ORG Mon May 19 17:09:19 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FE0F37B401 for ; Mon, 19 May 2003 17:09:19 -0700 (PDT) Received: from smtp.monmouth.com (smtp.monmouth.com [209.191.58.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3763B43F75 for ; Mon, 19 May 2003 17:09:16 -0700 (PDT) (envelope-from markov@monmouth.com) Received: from happy.markov.net (bg-tc-ppp178.monmouth.com [209.191.60.179]) by smtp.monmouth.com (8.12.9/8.12.9) with ESMTP id h4K09E4u064676 for ; Mon, 19 May 2003 20:09:14 -0400 (EDT) Received: from happy.markov.net (happy.markov.net [192.168.0.5]) by happy.markov.net (Postfix) with SMTP id 9D6683FF2 for ; Mon, 19 May 2003 20:17:01 -0400 (EDT) Date: Mon, 19 May 2003 20:17:01 -0400 From: "Vlad D.Markov" To: questions@freebsd.org Message-Id: <20030519201701.72435bdb.markov@monmouth.com> X-Mailer: Sylpheed version 0.8.11 (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: X and xdm question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 May 2003 00:09:19 -0000 I generally use my FreeBSD computer as a workstation. I have other unix-like computers around the house. I am attempting to run "xdm - query theFreeBSDComputer" on one virtual terminal and "xdm -indirect theFreeBSDComputer" in another virtual terminal. That way on one virtual terminal I go directly to the FreeBSD computer and in the other I get a chooser. This kind of works. When the FreeBSD box boots up I get the chooser on the wrong virtual terminal and a logon prompt on the other which is also wrong. When I cancel the chooser, I get the proper logon window; when I CTRL-C the logon window I get the chooser. This annoys me and I can't figure it out. I start xdm and XFree86 with the following script in /usr/local/etc/rc.d: #!/bin/sh pidfiledir=/var/run xdm=/usr/X11R6/bin/xdm x=/usr/X11R6/bin/X # start if [ "x$1" = "x" -o "x$1" = "xstart" ]; then if [ -f $xdm ]; then echo -n ' Xdm' $xdm $x :0 -depth 16 vt09 -query $(hostname)& echo $! > $pidfiledir/x.pid sleep 5 $x :1 -depth 16 vt10 -indirect $(hostname)& echo $! > $pidfiledir/x_1.pid fi # stop elif [ "x$1" = "xstop" ]; then kill $(cat $pidfiledir/x.pid) kill $(cat $pidfiledir/x_1.pid) kill $(cat $pidfiledir/xdm.pid) fi -------------------------------------------------------------------- I suspect the problem is in /etc/ttys. It looks like this: console none unknown off secure # ttyv0 "/usr/libexec/getty Pc" cons25 on secure # Virtual terminals ttyv1 "/usr/libexec/getty Pc" cons25 on secure ttyv2 "/usr/libexec/getty Pc" cons25 on secure ttyv3 "/usr/libexec/getty Pc" cons25 on secure ttyv4 "/usr/libexec/getty Pc" cons25 on secure ttyv5 "/usr/libexec/getty Pc" cons25 on secure ttyv6 "/usr/libexec/getty Pc" cons25 on secure ttyv7 "/usr/libexec/getty Pc" cons25 on secure ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm off secure # Serial terminals ------------------------------------------------------------- Thank you, Vlad