*BSD News Article 98128


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
From: "Dmitry Cherkasov" <chd@aval.kiev.ua>
Subject: Re: ttys
Organization: AVAL BANK
Date: Fri, 20 Jun 1997 13:24:53 GMT
Message-ID: <EC2t9H.674@aval.kiev.ua>
X-Newsreader: TIN [UNIX 1.3 unoff BETA 970424; i386 FreeBSD 2.2.2-RELEASE]
References: <433069.d365eb@f23.n212.z2.fidonet.org>
Sender: usenet@aval.kiev.ua (Usenet News Owner)
Nntp-Posting-Host: yes.aval.kiev.ua
Lines: 36
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.lava.net!news.flex.com!www.nntp.primenet.com!nntp.primenet.com!su-news-hub1.bbnplanet.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!dispatch.news.demon.net!demon!news.cs.kiev.ua!monoli!csoft!aval!yes.aval.kiev.ua!chd
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43219

Geir_Eivind Mork <gemork@online.no> wrote:
> How do I get more than four tty's in FreeBSD (virtual ttys), in /dev I've only
> got ttyv0-3 ? I'm new with this so..

> _tDr_

1) Edit /etc/ttys. I have 12 virtual consoles (12th - for X) and here is
a piece of my /etc/ttys:

[... skipped ...]
#
ttyv0	"/usr/libexec/getty Pc"		cons25r	on  secure
# Virtual terminals
ttyv1	"/usr/libexec/getty Pc"		cons25r	on insecure
ttyv2	"/usr/libexec/getty Pc"		cons25r	on insecure
ttyv3	"/usr/libexec/getty Pc"		cons25r	on insecure
ttyv4	"/usr/libexec/getty Pc"		cons25r	on insecure
ttyv5	"/usr/libexec/getty Pc"		cons25r	on insecure
ttyv6	"/usr/libexec/getty Pc"		cons25r	on insecure
ttyv7	"/usr/libexec/getty Pc"		cons25r	on insecure
ttyv8	"/usr/libexec/getty Pc"		cons25r	on insecure
ttyv9	"/usr/libexec/getty Pc"		cons25r	on insecure
ttyva	"/usr/libexec/getty Pc"		cons25r	on insecure
ttyvb	"/usr/X11R6/bin/xdm -nodaemon"	xterm	on insecure
[... skipped ...]

2) Create corresponding devices and restart init (or reboot):

# cd /dev
# sh MAKEDEV vty12
# kill -1 1

That's all as it seems.

-- 
Dmitry Cherkasov, chd@aval.kiev.ua