- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- why show tty login prompt before runlevel 5 login?
Operating System - Linux
1754292
Members
3414
Online
108813
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2007 03:26 AM
тАО12-20-2007 03:26 AM
Hi All,
I am using RHEL5 and I am screwed about below-
1)why it shows tty login prompt before graphical login screen?
2)when I put date command like
# date 12202007
why command line jumped three line down?
Thanks in Advanced!
MKS
I am using RHEL5 and I am screwed about below-
1)why it shows tty login prompt before graphical login screen?
2)when I put date command like
# date 12202007
why command line jumped three line down?
Thanks in Advanced!
MKS
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2007 06:04 AM
тАО12-20-2007 06:04 AM
Solution
1)
Just like most Linux distributions, RedHat uses Linux virtual console system. The console display is actually split to multiple "virtual consoles". Only one virtual console is active at one time. This feature is not new: it was present in Linux distributions in year 1996.
You can switch from one virtual console to another by pressing Ctrl-Alt-Fx key combinations on the console keyboard: Ctrl-Alt-F1 for the first virtual console, Ctrl-Alt-F2 for the second and so on.
Another possibility is to use the "chvt" command to change the active virtual console. This is usually used in scripts only.
There is a standard convention of virtual console use: the first five or so consoles contain a tty login prompt. When the graphical login screen activates, it automatically switches to virtual console 7.
The tty login prompts and the graphical login screen are both started at the end of the system start-up. The tty login prompt is created by a process called "getty", which is very small and starts very fast. The graphical login screen is produced by the X Window System, which is very complex.
It's possible that the tty login process of virtual console 1 can complete its start-up before the X Window System startup reaches the point where it switches to virtual console 7 and takes control of the display. This will cause what you saw.
The virtual console switching can be very useful if your graphical session hangs: you can switch to tty login and use it to kill a misbehaving process or your entire graphical login session, so you don't need to reboot the entire system.
It's possible to disable the virtual console switching, but usually it is not needed: the console of a critical server should always be placed in a secure location. Virtual consoles won't change that requirement.
2)
Not enough information to find out why. But it does not seem to be very harmful.
Did you have a background job running? It might have output some blank lines.
Or did you recently change the size of your terminal window? In some situations, the shell may not receive the information that the window has shrunk. If a command then displays one (long) blank line, it may be automatically wrapped to several (short) lines.
MK
Just like most Linux distributions, RedHat uses Linux virtual console system. The console display is actually split to multiple "virtual consoles". Only one virtual console is active at one time. This feature is not new: it was present in Linux distributions in year 1996.
You can switch from one virtual console to another by pressing Ctrl-Alt-Fx key combinations on the console keyboard: Ctrl-Alt-F1 for the first virtual console, Ctrl-Alt-F2 for the second and so on.
Another possibility is to use the "chvt" command to change the active virtual console. This is usually used in scripts only.
There is a standard convention of virtual console use: the first five or so consoles contain a tty login prompt. When the graphical login screen activates, it automatically switches to virtual console 7.
The tty login prompts and the graphical login screen are both started at the end of the system start-up. The tty login prompt is created by a process called "getty", which is very small and starts very fast. The graphical login screen is produced by the X Window System, which is very complex.
It's possible that the tty login process of virtual console 1 can complete its start-up before the X Window System startup reaches the point where it switches to virtual console 7 and takes control of the display. This will cause what you saw.
The virtual console switching can be very useful if your graphical session hangs: you can switch to tty login and use it to kill a misbehaving process or your entire graphical login session, so you don't need to reboot the entire system.
It's possible to disable the virtual console switching, but usually it is not needed: the console of a critical server should always be placed in a secure location. Virtual consoles won't change that requirement.
2)
Not enough information to find out why. But it does not seem to be very harmful.
Did you have a background job running? It might have output some blank lines.
Or did you recently change the size of your terminal window? In some situations, the shell may not receive the information that the window has shrunk. If a command then displays one (long) blank line, it may be automatically wrapped to several (short) lines.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2007 06:22 AM
тАО12-20-2007 06:22 AM
Re: why show tty login prompt before runlevel 5 login?
Sometimes we just forget that we aliased a command, so you better check the output of:
`alias date`
`alias date`
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2007 12:14 AM
тАО12-21-2007 12:14 AM
Re: why show tty login prompt before runlevel 5 login?
i think vt switching was available since the first release of linux.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP