From owner-freebsd-questions@FreeBSD.ORG Tue Oct 19 08:05:25 2004 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 377CB16A4CE for ; Tue, 19 Oct 2004 08:05:25 +0000 (GMT) Received: from outmx006.isp.belgacom.be (outmx006.isp.belgacom.be [195.238.2.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89AE343D5E for ; Tue, 19 Oct 2004 08:05:24 +0000 (GMT) (envelope-from geert@lori.mine.nu) Received: from outmx006.isp.belgacom.be (localhost [127.0.0.1]) with ESMTP id i9J85IAM001960 for ; Tue, 19 Oct 2004 10:05:19 +0200 (envelope-from ) Received: from lori.mine.nu (90-141.244.81.adsl.skynet.be [81.244.141.90]) with ESMTP id i9J85AJX001898 for ; Tue, 19 Oct 2004 10:05:10 +0200 (envelope-from ) Received: by lori.mine.nu (Postfix, from userid 1000) id 03EEF4E7; Tue, 19 Oct 2004 10:05:09 +0200 (CEST) Date: Mon, 18 Oct 2004 21:34:34 +0200 From: Geert Hendrickx To: Benjamin Walkenhorst Message-ID: <20041018193434.GA71528@lori.mine.nu> References: <20041018185258.GA71347@lori.mine.nu> <417413A0.8050200@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <417413A0.8050200@gmx.net> User-Agent: Mutt/1.4.2i X-GPG-Key: http://lori.mine.nu/gnupgkey.asc X-GPG-Key-ID: 1024D/766C1E92 X-Accept-Language: nl,en Resent-From: geert.hendrickx@ua.ac.be Resent-Date: Tue, 19 Oct 2004 10:05:09 +0200 Resent-To: freebsd-questions@freebsd.org Resent-Message-Id: <20041019080509.03EEF4E7@lori.mine.nu> Subject: Re: arbitrary programs in /etc/ttys 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, 19 Oct 2004 08:05:25 -0000 On Mon, Oct 18, 2004 at 09:04:00PM +0200, Benjamin Walkenhorst wrote: > Hello, > > Geert Hendrickx wrote: > > >ttyv0 "/usr/bin/cu -l cuaa0" vt100 on secure > > > >But this gives me the following error when restarting init: > > > >init: getty repeating too quickly on port /dev/ttyv0, sleeping 30 secs > > > >Apparently cu can not be started directly from /etc/ttys, can it? How > >else should I accomplish this? > > > > > > I think you are trying to start cu on a _virtual_ terminal (ttyvN). In > my /etc/ttys the section with the virtual terminals is followed by these > entries: > > # Serial terminals > # The 'dialup' keyword identifies dialin lines to login, fingerd etc. > ttyd0 "/usr/libexec/getty std.9600" dialup off secure > ttyd1 "/usr/libexec/getty std.9600" dialup off secure > ttyd2 "/usr/libexec/getty std.9600" dialup off secure > ttyd3 "/usr/libexec/getty std.9600" dialup off secure > # Dumb console > dcons "/usr/libexec/getty std.9600" vt100 off secure > > I think you just need to turn the corresponding serial port "on". I am > not sure if you can create a login screen on your soon-to-be terminal > automatically upon startup of the FreeBSD box, however... > > Hope this helps, > Benjamin The terminal server (at the other end of the line) is configured correctly (it's not a FreeBSD btw). It has about 30 serial ports with serial terminals connected to them. Now I want a spare FreeBSD box to act as another serial terminal. "cu -l cuaa0" works correctly, and I want init to spawn such a cu session on the first virtual console, instead of a local getty. GH -- :wq