Link to home
Start Free TrialLog in
Avatar of auther_bin
auther_bin

asked on

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

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.
Avatar of garboua
garboua

does Mr. Linux know?  did you build the kernel with support for console on serial port, it is under character devices.
Avatar of auther_bin

ASKER

Yes of course, I did, My kernel rebuild for serial port consle.
  In charactor part of the kernel:)
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
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.
agetty should work
But in RedHat 6.2 /sbin/ there has "mingetty","ungetty" and "getty" no agetty! Must I compile it?
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
But Can you tell me the inittab file lines by useing of "getty"?

Thanks.