LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   how to extend my tty terminals in redhat-5.later (http://www.linuxquestions.org/questions/red-hat-31/how-to-extend-my-tty-terminals-in-redhat-5-later-769592/)

bharatlalgupta 11-17-2009 12:15 AM

how to extend my tty terminals in redhat-5.later
 
Hello all
i'm using the redhat linux i'm newer with linux, i want to extend my my virtual console that's mean by default we get a 6 virtual consele /dev/tty[1-6] now i want to extend it.
plz help me as soon as....

MensaWater 11-17-2009 08:43 AM

These are setup in /etc/inittab with lines like:

Code:

1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

These are equivalent to ctrl-alt-F1, ...F2, ...F3 etc...

Note that ctrl-atl-F7 is where the GUI login is rather than character logins like the above.

You can add additional character login screens by doing the following:
1) Save a copy of /etc/inittab (e.g. cp -p /etc/inittan /etc/inittab.20091117) for backout.
2) Modify /etc/inittab and add a line like:
8:2345:respawn:/sbin/mingetty tty8
3) Exit /etc/inittab and type "init q" to make it reread the inittab.

At that point ctrl-alt-F8 should work like ctrl-alt-F6 and the others.
You can repeat that for other function keys - just be sure NOT to do it for 7 as that is the GUI login as I mentioned above.

Also always remember on the GUI login you can open multiple terminals so using the character login may not be necessary depending on your purpose.

bharatlalgupta 11-18-2009 01:04 AM

Thankssssssssssssssss
 
hello friend
Thanks a lot for quick and correct answer me,
this is working, but i have a 1 more confusion on this i heard, u can extend ur virtual console ctrl+alt+F[1-63] and in /dev directory availabel 1-63 file i add entry of terminals from 8-63 in this inittab file,
but i unable to switch on that terminals i'm easily switch on 1-12 tty with
ctrl+alt+F[1-12] keys but how to swith on more extendable console

MensaWater 11-18-2009 08:15 AM

Why exactly do you need 63 virtual consoles?

Anyway unless your keyboard actually has F1-F63 or is programmable I don't know of a way to do it at keyboard level if you're not logged in.

If you run "infocmp" after login it will show you kf[#] definitions for your terminal type. Programming a key to send the sequence shown (e.g. \EO4R = escape key, uppper case O, numeral 4 and upper case R for kf63) would work presumably.

However, I did find a Wikipedia article at:
http://en.wikipedia.org/wiki/Virtual_console_%28PC%29

It talks about thinks like chvt that allow you to switch from command line and other things that will open processes in your other virtual console windows.

On doing a quick test I was able to add a mingetty for 63 to inittab then login on tty1 (alt-F1). From that login running "chvt 63" sent me to the virtual console on tty63. (After login to tty63 run "tty" to verify which tty you're on.)

If you're trying to get more windows simply to be able to run things in other screens while you continue to work in one you don't have to do that. You can background processes simply by adding the ampersand (&) to the end of a command line.

bharatlalgupta 11-23-2009 01:42 AM

root no take a login successfully why
 
hello friends,
sorry again disturbed u
hello friend ur suggetion is working properly but root user directly login on /dev/ttyF[1-12] only these terminals but after that like 13-63 terminals
root not get a login directly, it successfully via switch user.
why and will it possible to root user get a login directly.....

MensaWater 11-23-2009 08:28 AM

The /etc/securetty file determines what can login directly as root.

By default it has tty1 through tty11. You'd need to add the others you created.

Save a date stamped copy of the file then modify the original using vi or your favorite text editor to add the others.


All times are GMT -5. The time now is 03:09 PM.