Operating System - Linux
1830366 Members
2230 Online
110001 Solutions
New Discussion

accees a Linux from com port

 
SOLVED
Go to solution
laaalitha
Advisor

accees a Linux from com port

i want to access a linux machine from the COM port by the hyperterminal from a another PC.
How to configure the Linux machine, for this ?
Need all the steps..and send me a URL link ?
4 REPLIES 4
Alexander Chuzhoy
Honored Contributor

Re: accees a Linux from com port

the utility is minicom.
You have to be root to be able to work with or to do some workaround (like chmod u+s, etc).
at first execute `minicom -s`
This will bring you the setup. From there- it's simply logical.

To bring the menu on the screen- use:
CTRL+A,X

laaalitha
Advisor

Re: accees a Linux from com port

i wannna access to a linux machine from wondows machine via the com ports of the machunes using the hyperterminal of the windows machine, how to configure the linux machine for this, by default cant access?
Alexander Chuzhoy
Honored Contributor

Re: accees a Linux from com port

1.make sure that you have a cross serial cable.
2. When you configure your minicom (In serial port setup) by default it uses /dev/ttyS1. Change it to /dev/ttyS0

Also make sure that the serial port is enabled in BIOS.
Stuart Browne
Honored Contributor
Solution

Re: accees a Linux from com port

Umm... '/etc/inittab'.

If you want to log in via the COM port on the Linux server from your Windows machine, you need to configure the serial port to have a 'getty' running.

You want a line similar to:

S0:2345:respawn:/sbin/mgetty -s 9600 /dev/ttyS0

See the man page for 'mgetty' for more details.

You can safely muck around with the speed and the gettydefs value if you need to.

Also note, you may need to use 'setserial' if you are using a high speed serial port.

From there, with a connected serial cable, you should be able to get a console on your Windows machine using Hyperterminal (or whatever).

If you want to see boot messages from the server, then you need to configure your boot-loader (grub) to have the 'console=ttyS0,9600' (or similar).

http://www.vanemery.com/Linux/Serial/serial-console.html
http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Serial-HOWTO.html

A few pretty decent references for all of this.
One long-haired git at your service...