LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-26-2006, 01:21 PM   #1
TotalDefiance
Member
 
Registered: Jan 2004
Distribution: Slackware, RH, WBEL
Posts: 65

Rep: Reputation: 15
Configure serial console on LIVE linux box?


Is there -any- way to enable serial console access while a linux system is live, or without requiring a reboot to take bootloader arguments into effect? I have seen no indication of being able to do this, but it would be very helpful...

I have to configure nic bonding with several virtual interfaces during off hours, and was hoping to enable the serial console as a backup mechanism so I wouldn't have to physically be at the server just in case something goes wrong. A reboot is pretty much out of the question.

Thanks.
 
Old 04-27-2006, 06:50 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it's fairly simple to get getty running to listen for a connection on the serial port
we have a line in our /etc/inittab that says:
Code:
co:2345:respawn:/sbin/agetty -L ttyS0 19200 vt100
so on each normal runlevel we listen on ttyS0 (COM1) at 19200 baud using vt100 terminal emulation. you can just run the command directly - i.e. "/sbin/agetty -L ..." but each disconnection will terminate the process. so by having the inittab entry it will reconnect. and of course as this is linux, you don't need to reboot for this at all. you will however need to reread the inittab file to make the settings take effect - just run "init q" according to the manpage for init. before you do that though, ensure that the getty command is more than happy to run as you want as you could come unstuck if you break inittab. alternatively you could use a cruder cop-out and add a cronjob to start getty if it's not already running. bit shabby but potentially safer.
 
Old 05-01-2006, 12:11 PM   #3
TotalDefiance
Member
 
Registered: Jan 2004
Distribution: Slackware, RH, WBEL
Posts: 65

Original Poster
Rep: Reputation: 15
this worked perfectly. thank you.
 
  


Reply



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
linux serial port to router console port connection? frankie_fix Linux - General 3 02-26-2007 09:32 PM
Console linux (live and install) blackman890 Linux - Distributions 1 07-11-2005 01:56 PM
How to join live presentations on Internet with Linux box satimis Linux - Software 0 06-07-2005 07:06 AM
configure a linux box to ADSL Speedstream Modem pacwarebrz Linux - Networking 2 09-18-2003 04:38 PM
How to configure another pop3 service in linux box venugopalmk Linux - Networking 3 04-17-2003 07:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration