Subject: Re: Several questions
To: Ivan Voras <ivoras@geri.cc.fer.hr>
From: Steven M. Bellovin <smb@research.att.com>
List: netbsd-users
Date: 03/10/2004 17:01:45
In message <404F884F.9020201@geri.cc.fer.hr>, Ivan Voras writes:
>Hernani Marques Madeira wrote:
>> On Wed, 10 Mar 2004 12:38:12 +0100
>> Ivan Voras <ivoras@fer.hr> wrote:
>> 
>> Hello.
>> 
>> 
>>>- how to switch virtual consoles? (maybe I need to activate them first?)
>> 
>> 
>> Yes, you can activate them editing /etc/ttys.
>
>I tried, but messed something up. What I did was modify the lines:
>
>ttyE0   "/usr/libexec/getty Pc"         vt220   on secure
>ttyE1   "/usr/libexec/getty Pc"         vt220   on secure
>ttyE2   "/usr/libexec/getty Pc"         vt220   on secure
>ttyE3   "/usr/libexec/getty Pc"         vt220   on secure
>
>to state "on" instead of off. Now the console is somehow broken - some 
>characters get 'lost', at times it becomes unresponsive, etc. (It did 
>say something like 'device unavailable /dev/ttyE0..E3' but I lost the 
>actual error message. I have /dev/ttyE0..E7 and /dev/E7cfg present.
>

Don't enable ttyE0 and console.

Here's the start of mine:

#
#       from: @(#)ttys  5.1 (Berkeley) 4/17/89
#       $NetBSD: ttys,v 1.15 2002/02/17 21:04:31 tron Exp $
#
# name  getty                           type    status          comments
#
console "/usr/libexec/getty Pc"         vt100   on secure
ttyE0   "/usr/libexec/getty Pc"         vt220   off secure
ttyE1   "/usr/libexec/getty Pc"         vt220   on secure
ttyE2   "/usr/libexec/getty Pc"         vt220   on secure
ttyE3   "/usr/libexec/getty Pc"         vt220   off secure
ttyE4   "/usr/libexec/getty Pc"         vt220   off secure
tty00   "/usr/libexec/getty std.9600"   unknown off secure
tty01   "/usr/libexec/getty std.9600"   unknown off secure
tty02   "/usr/libexec/getty std.9600"   unknown off secure
tty03   "/usr/libexec/getty std.9600"   unknown off secure
tty04   "/usr/libexec/getty std.9600"   unknown off secure
tty05   "/usr/libexec/getty std.9600"   unknown off secure
tty06   "/usr/libexec/getty std.9600"   unknown off secure
tty07   "/usr/libexec/getty std.9600"   unknown off secure
ttyp0   none                            network
ttyp1   none                            network


		--Steve Bellovin, http://www.research.att.com/~smb