Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've been messing around with CentOS5 recently. I've made a piece of software that runs when the server boots and does what I need it to do. Since the software is network/web related, I don't need interactive login to the local terminal of the server.

I want to setup an "info" screen on the local terminal that shows you the current ip address of the server as well as other stats. I don't want you to have to log in to the local terminal to see the info screen. I just want it to be displayed on the local VGA output once the server is booted.

I'm talking about something like this screen:

screen shot of vmware vcenter server appliance startup screen with ip addresses

Any thoughts? I'm not sure I understand the flow of the local terminal. How one would get it to switch from showing the login prompt to something like this? Are their any open source software projects that already do something like this?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You need to replace the getty that runs on the the first terminal with an application which does what you have in the screenshot. You'll need a solid understanding of how something like getty works and the security implications of writing something to replace it with. I would suggest by virtue of the fact that you're asking this question, that you are likely unequipped to solve the problem without some manner of 3rd party intervention. Alternatively, if security is not a serious consideration, you could opt for an auto-login solution and an application that runs after or instead of the user's shell.

Edit: Looking at the information you need to display, perhaps /etc/issue will suffice.

share|improve this answer
    
/etc/issue is exactly what I was looking for. Thanks! –  jstevens13 Apr 13 '13 at 21:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.