LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 11-17-2009, 12:15 AM   #1
bharatlalgupta
Member
 
Registered: Aug 2008
Posts: 79
Blog Entries: 1

Rep: Reputation: 16
Post 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....
 
Old 11-17-2009, 08:43 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,950
Blog Entries: 5

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
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.

Last edited by MensaWater; 11-17-2009 at 08:55 AM.
 
Old 11-18-2009, 01:04 AM   #3
bharatlalgupta
Member
 
Registered: Aug 2008
Posts: 79
Blog Entries: 1

Original Poster
Rep: Reputation: 16
Post 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
 
Old 11-18-2009, 08:15 AM   #4
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,950
Blog Entries: 5

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
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.

Last edited by MensaWater; 11-18-2009 at 08:17 AM.
 
Old 11-23-2009, 01:42 AM   #5
bharatlalgupta
Member
 
Registered: Aug 2008
Posts: 79
Blog Entries: 1

Original Poster
Rep: Reputation: 16
Post 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.....
 
Old 11-23-2009, 08:28 AM   #6
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,950
Blog Entries: 5

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
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.
 
  


Reply

Tags
console, extend, virtual


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tty terminals not available after gui starts rajesh.bahl Linux - Hardware 2 12-11-2008 05:01 AM
FC4 - Can't access any other terminals(tty) renato167 Fedora 0 04-04-2006 01:57 AM
Regarding Pseudo tty, Pseudo terminals ? mqureshi Programming 0 07-30-2005 10:51 AM
Is there something like tty screen in Redhat DriveMeCrazy Red Hat 2 05-10-2004 12:51 PM
TTY pts/# terminals increasing. Technoslave Linux - General 1 04-22-2004 01:28 PM


All times are GMT -5. The time now is 12:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration