From owner-freebsd-questions@FreeBSD.ORG Tue Oct 26 15:42:06 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 A5DA116A4CE for ; Tue, 26 Oct 2004 15:42:06 +0000 (GMT) Received: from galaxy.systems.pipex.net (galaxy.systems.pipex.net [62.241.162.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id A75E043D41 for ; Tue, 26 Oct 2004 15:42:05 +0000 (GMT) (envelope-from mark.cullen@dsl.pipex.com) Received: from [10.0.0.247] (81-178-122-12.dsl.pipex.com [81.178.122.12]) by galaxy.systems.pipex.net (Postfix) with ESMTP id 941FDE000301; Tue, 26 Oct 2004 16:42:03 +0100 (BST) Message-ID: <417E7050.4070208@dsl.pipex.com> Date: Tue, 26 Oct 2004 16:42:08 +0100 From: Mark Cullen User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <417E1FDE.3050407@dsl.pipex.com> <417E30F4.8060903@comptek.ru> In-Reply-To: <417E30F4.8060903@comptek.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: Artem Kazakov Subject: Re: Serial console weirdness 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, 26 Oct 2004 15:42:06 -0000 Artem Kazakov wrote: > Mark Cullen wrote: > >>Ok, I am having a bit of trouble setting up a serial console login. The >>cable is attached to com1, heres my /etc/ttys >> >># The 'dialup' keyword identifies dialin lines to login, fingerd etc. >>ttyd0 "/usr/libexec/getty std.115200" dialup on secure >> >> >>Now, my problem is that when I do a kill -HUP 1 nothing happens; Well, I >>am sure something happens, it certainly doesn't start getty on that >>serial port though! However(!) when I start getty manually on that port: >> >>/usr/libexec/getty std.9600 ttyd0 >> >>It promptly goes into the background and on my other machine I get the >>login prompt and all is well (until I logout as getty isn't being >>respawned). I didn't see anything logged as to why it's not working. >> >>I will mention that I yanked the (very very broken) graphics card out of >>that machine, so there's no ttyv's. Do I need to make the serial console >>my ... console/display for getty to start working again perhaps? >> >>Any help would be much appreciated. > > probably you need to change dialup with something (like vt100) sutable > your enviroment > I have tried cons25, xterm and (now) vt100. It's not that... # Serial terminals # The 'dialup' keyword identifies dialin lines to login, fingerd etc. ttyd0 "/usr/libexec/getty std.115200" cons25 on 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 # Pseudo terminals ttyp0 none network /etc/ttys: 307 lines, 7539 characters (root|bone)/home/mrboo# kill -HUP 1 (root|bone)/home/mrboo# ps ax | grep getty 21134 p0 R+ 0:00.02 grep getty (root|bone)/home/mrboo# Note: I have no getty processes as there's no graphics card, so I am guessing if it was working right I would start to see a: /usr/libexec/getty std.115200 ttyd0 It appears in the process list (and works) when I run the above manually! -- Internet Explorer? Try FireFox at http://www.mozilla.org/products/firefox/ Outlook Express? Try ThunderBird at http://www.mozilla.org/products/thunderbird/