Solved

How to Setup a console (terminal) by comx port from serial line?

Posted on 2001-06-29
8
246 Views
Last Modified: 2013-12-15
I want to make my linux box been managed only bye serial port (COMx), I changed like this on my Redhat6.2 system:

1. vi /etc/lilo.conf. Add two line like:
   serial = 1,9660n8
   append = "console=ttyS0,9660 console=tty0"
2. vi /etc/inittab. Add line like:
   s1:12345:respawn:/sbin/uugetty ttyS0 9660 vt100

  And then connet the box's com1 port to my PC com1 with serial line which pin2 and pin3 exchanged. After this, Reboot system. When the system boot (btw, my box stail installed a vido card) I can see all the system boot message from my PC's connecter(super teminal/Win2K), but, after the system boot up(login message displayed on the box's monitor) my PC's teminal have only no the login message. I think, Here should be something wrong with the box's inittab file, which can't tell system that the COM1 port act as an teminal.
  How can I setup it correctly.

Thanks all friends.
0
Comment
Question by:auther_bin
  • 4
  • 3
8 Comments
 
LVL 5

Expert Comment

by:garboua
Comment Utility
does Mr. Linux know?  did you build the kernel with support for console on serial port, it is under character devices.
0
 
LVL 1

Author Comment

by:auther_bin
Comment Utility
Yes of course, I did, My kernel rebuild for serial port consle.
  In charactor part of the kernel:)
0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
Usually /etc/inittab only contains programs which listen on the ttys using mingetty.
Add a line like:

SO:123:respawn:/sbin/agetty -L 9600 ttyS0

see man-pages if you need agetty, mingetty or some other
0
 
LVL 1

Author Comment

by:auther_bin
Comment Utility
I use the "mingetty" instead of "ungetty" IT WORKED! But in RedHat manuals "man mingetty", it say:

Unlike agetty(8), mingetty  is  not  suitable  for  serial lines.  I recommend using mgetty(8) for this purpose.

But I look the details in RedHat.com I find the use of uugetty to finish this work. So I tried by it and in the last, failed.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
agetty should work
0
 
LVL 1

Author Comment

by:auther_bin
Comment Utility
But in RedHat 6.2 /sbin/ there has "mingetty","ungetty" and "getty" no agetty! Must I compile it?
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
Comment Utility
should be on the RedHat distribution (CD or whatever).
getty should also work (check man-page).
0
 
LVL 1

Author Comment

by:auther_bin
Comment Utility
But Can you tell me the inittab file lines by useing of "getty"?

Thanks.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now