How to increase/Decrease Local Virtual consoles?

 
Thread Tools Search this Thread
Operating Systems Linux Fedora How to increase/Decrease Local Virtual consoles?
# 1  
Old 12-16-2011
How to increase/Decrease Local Virtual consoles?

I m tring to figure out the option where i can increase/Decrease the count for local virtual consoles(vtys).

I can able to take upto 6 vtys using (left alt+(F1-F6))

But is there any way i can increase the count ?

One more query
even though i can only take tty upto tty6 why there are tty entries in /etc/securetty file ranging from 1-11(Noob about tty)
# 2  
Old 12-16-2011
This is a Linux thing, not a UNIX one, by the way.

Try ctrl-alt-f8. Do you get a blank screen? It wouldn't switch you to a terminal that doesn't exist, so a blank screen means you have an 8th terminal. It's just not used by anything.

I think there's a hardcoded 12 terminals, one for each function key, handled by the 'vga console' device driver inside the kernel itself. It's somewhat arbitrary and not likely to change. I think even the switching behavior is mostly hardcoded.

But beyond that, they're just devices. What things talk to what devices depends on your system. On my server:
Code:
#
# /etc/inittab:  This file describes how the INIT process should set up
#                the system in a certain run-level.
#
# Author:  Miquel van Smoorenburg, <miquels@cistron.nl>
# Modified by:  Patrick J. Volkerding, <volkerdi@ftp.cdrom.com>
# Modified by:  Daniel Robbins, <drobbins@gentoo.org>
# Modified by:  Martin Schlemmer, <azarah@gentoo.org>
#
# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/files/inittab,v 1.5 2005/12/22 02:03:23 vapier Exp $

# Default runlevel.
id:3:initdefault:

# System initialization, mount local filesystems, etc.
si::sysinit:/sbin/rc sysinit

# Further system initialization, brings up the boot runlevel.
rc::bootwait:/sbin/rc boot

l0:0:wait:/sbin/rc shutdown
l1:S1:wait:/sbin/rc single
l2:2:wait:/sbin/rc nonetwork
l3:3:wait:/sbin/rc default
l4:4:wait:/sbin/rc default
l5:5:wait:/sbin/rc default
l6:6:wait:/sbin/rc reboot
#z6:6:respawn:/sbin/sulogin

# TERMINALS
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty 38400 tty6 linux

# What to do at the "Three Finger Salute".
ca:12345:ctrlaltdel:/sbin/shutdown -r now

# Used by /etc/init.d/xdm to control DM startup.
# Read the comments in /etc/init.d/xdm for more
# info. Do NOT remove, as this will start nothing
# extra at boot if /etc/init.d/xdm is not added
# to the "default" runlevel.
x:a:once:/etc/X11/startDM.sh

See the part in red? Terminals 1 through 6 have logins because, in runlevels 2 through 5, init runs agetty for them. (In runlevel 1, you only get ctrl-alt-f1, looks like.) If you copy those lines to make entries for tty8-12, they ought to work. Delete the line for tty6 and you won't get a login prompt on ctrl-alt-f6 next reboot.

Traditionally you get 1-6 as terminal logins, the 7th is saved for your X server(you can switch in and out of GUI just by switching consoles), and the rest are left for custom uses.

So what's your system?

Last edited by Corona688; 12-16-2011 at 06:49 PM..
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 12-16-2011
As Corona said, this REEEEALLY depends what flavor of linux + version you're running. For example, if you're running a recent version of Fedora, you won't see anything like that in /etc/inittab. (However, if your inittab does look like that, I can confirm that there's nothing wrong with adding additional respawn lines for higher numbered ttys.)

In other news: chvt is the command you want to switch consoles, especially if you start processes on ones higher than tty12. Smilie
This User Gave Thanks to ryran For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Virtual Memory problem on local zone

Hi I have a problem with Virtual Memory on one local zone (myzone1): //from local zone (myzone1) swap -s total: 22888544k bytes allocated + 0k reserved = 22888544k used, 3325856k available swap -l swapfile dev swaplo blocks free /dev/swap ... (0 Replies)
Discussion started by: primo102
0 Replies

2. Programming

How to decrease virtual size of a process after cleaning all containers and using malloc_trim (0)?

Hello all i have simple server running on linux redhat 6.1 it is build with c++ in the server i have huge std vector that holds pointers to cache objects those cache objects holds allot of data from the DB any way ... in some point in time there is simple API that suppose to clean the... (2 Replies)
Discussion started by: umen
2 Replies

3. Shell Programming and Scripting

increase/decrease multiple numbers in a filename.

I got a game that output map tiles of the session with the 0,0 position at the place you login/spawn. That makes making a map somewhat troublesome since the 0,0 will move. So I've been looking for a way to change the numbers in the filenames of all files in a folder by a certain value. The... (5 Replies)
Discussion started by: Ravenholdt
5 Replies

4. Solaris

How to increase or decrease inode number of the particular UFS filesystem

Hi Gurus I want to know the command & tips regarding, how to increase or decrease inode number of the particular ufs filesystem. Is it possible to do it in a live/production environment. Regards (3 Replies)
Discussion started by: girish.batra
3 Replies

5. AIX

How to increase Virtual Disk size

Hello, I am working AIX VIO server and extended Virtual Disk of one of the Partition with 10GB. After starting partition, i am not able to see increased size of disk. Can you please help me what I need to do to increase the size of virtual disk from partition? Thanks Kishor ... (7 Replies)
Discussion started by: kishorbhede
7 Replies

6. Solaris

Consoles gone wild!

I have a Sunfire V890 running solaris 10 that has a weird console problem. In the XWindows environment, everything seems to work fine. However, if I go to command-line mode in multi-user mode or otherwise, my prompt scrolls accross the screen so incontrollably, that the only thing you can do is... (5 Replies)
Discussion started by: josephgreensr
5 Replies

7. Solaris

more consoles

Hi! Is it possible to add more console logins in Solaris 10 x86 like it is in Linux and FreeBSD? The Problem is, when i make some configuration in the console, kdmconfig for example, and something hangs, i cannot switch to another console to kill the process. What i want is to switch with Alt-F2... (5 Replies)
Discussion started by: donald1111
5 Replies

8. Solaris

increase/decrease filesystem

Hi All, I need to increase the filesystem of / and /var (two different slices)? Space will be coming from /home slice so I need to decrease it. Is that possible without reinstallation or in a single-user-mode? Any idea or link please. Thanks in advance. (5 Replies)
Discussion started by: itik
5 Replies

9. UNIX for Advanced & Expert Users

web consoles

I posted this in Unix Apps but I think it was put there in error as an after thought. What I am looking for (if one even exists) is a remote Console tool that will work for all my different flavors of Unix (HPUX, AIX, Redhat) I would prefer it be web based if possible. I know HP has a web... (0 Replies)
Discussion started by: josudami
0 Replies

10. UNIX and Linux Applications

web consoles

reposted in correct forum (I think) (0 Replies)
Discussion started by: josudami
0 Replies
Login or Register to Ask a Question