Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!news.duke.edu!godot.cc.duq.edu!ddsw1!news.mcs.net!not-for-mail From: chilton@MCS.COM (Christopher Hilton) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: multiple vt's increase to 8 Date: 11 Aug 1995 16:17:21 -0500 Organization: /usr/lib/news/organi[sz]ation Lines: 66 Message-ID: <40ghd1$jld@Mars.mcs.com> References: <40dt73$416@trauma.rn.com> <DD5Atn.Fn5@ritz.mordor.com> <40fbs7$134@trauma.rn.com> NNTP-Posting-Host: mars.mcs.com In article <40fbs7$134@trauma.rn.com>, Larry Snyder <larry@rn.com> wrote: >In article <DD5Atn.Fn5@ritz.mordor.com>, >Chris Mauritz <ritz@ritz.mordor.com> wrote: >>Larry Snyder (larry@rn.com) wrote: >>: How do I increase the number of virtual terminals on >>: the console from the default of 3 to 8? >> >>Isn't this configurable in /usr/src/sys/i386/conf/yourkernel? >>I believe the option in your case would be: >> >>options "MAXCONS=8" >>Of course, then you need to config...make depend...make all...etc. > >I'm running with the MAXCONS=10 as the default - but I don't have >the 10 VT's available -- only 3.. Assuming you made the kernel what you need to do is make the device entries in the /dev/directory and then enable logins on the other 7 virtuals. To make the device entries you need to go into the /dev directory and run the MAKEDEV script. On my laptop this would be: # cd /dev # ./MAKEDEV vty09 This script may have changed between releases so take a look at before you run it. To enable the new terminals edit the /etc/ttys file and add lines for the ttys: 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/libexec/getty Pc" cons25 on secure ttyv9 "/usr/libexec/getty Pc" cons25 on secure Then shutdown the machine and bring it back up again. -------- This will reload the init process and make room to control all the new ttys. BTW - kill -HUP 1 from the command line _should_ have the same effect but I'm truly paraniod and know that rebooting will work right. In the ttys file you should find entries for your _four_ existing ttys. Only three of them will be enabled in the fourth field of one of them, ttyv3?, will be the word off rathern than on. This is so you can run X. If you want to run X then leave a virtual tty disabled for it otherwise you can enable them all. Any other questions, feel free to write me. Also if you want better explainations of whats going on here than you can get by reading the man pages yada yada yada. C. -- Christopher Sean Hilton E-mail: chilton@mcs.com ---------------------------------------------------------------------- ICBM address: | "Thus it is said if you know them and know 42 07 39 N/87 49 44 W | yourself, your victory will not be imperiled. For PGP key finger: | If you know Heaven and you know Earth, your chilton@mcs.com | victory will be complete." - Sun Tsu ----------------------------------------------------------------------