LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-19-2007, 01:22 AM   #1
scbops
Member
 
Registered: Feb 2006
Posts: 97

Rep: Reputation: 15
Serial port connection


am trying to connect my laptop to RHEL WS4 box using serial console

I tried with minicom, the problem was I am not getting any login prompt from my laptop HyperTerminal
am not sure about the my HyperTerminal setting in my laptop witch is windows 95 workstation

the minicom settings I took from redhat site

HyperTerminal setting

bit per second 9600
date bit 8
parity none
stop bits 1
Flow control Hardware/none (tried both)
 
Old 04-19-2007, 02:58 AM   #2
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,839

Rep: Reputation: 48
Does /etc/inittab on the host have an entry like:
T0:2345:respawn:/sbin/getty -L ttyS0 38400 vt100
 
Old 04-19-2007, 07:44 AM   #3
scbops
Member
 
Registered: Feb 2006
Posts: 97

Original Poster
Rep: Reputation: 15
yes................
 
Old 04-19-2007, 03:26 PM   #4
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,839

Rep: Reputation: 48
The entry is pointing to the correct serial port and you are using a crossover cable?
Sorry if I am only asking what you already know. I understood your OP to say you were not connecting with either Minicom or Hyperteminal so I am starting from square one.

EDIT: You can also try the "screen" program to connect from Linux.
screen /dev/ttyS0 115200

Last edited by 2damncommon; 04-19-2007 at 03:41 PM.
 
Old 04-20-2007, 01:23 AM   #5
scbops
Member
 
Registered: Feb 2006
Posts: 97

Original Poster
Rep: Reputation: 15
I am sorry about my last reply entry is like this

7:2345:respawn:/sbin/mingetty ttyS0 38400 vt100

because I don't find any /sbin/getty in my box

I am using a 9 pin serial cable both ends are alike

note: sometimes I was able connect through minicom but no login prompt provided from hyper terminal can't see anything
but if I type something in the HyperTerminal it will appear in the minicom screen
 
Old 04-20-2007, 03:05 AM   #6
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,839

Rep: Reputation: 48
Take a look here.
Any entries about serial connections may be further down.
 
Old 04-20-2007, 06:42 AM   #7
scbops
Member
 
Registered: Feb 2006
Posts: 97

Original Poster
Rep: Reputation: 15
am going through your URL just tell me is this entry will work or not

T0:2345:respawn:/sbin/agetty -L ttyS0 38400 vt100
 
Old 04-20-2007, 10:41 AM   #8
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,839

Rep: Reputation: 48
Quote:
am going through your URL just tell me is this entry will work or not

T0:2345:respawn:/sbin/agetty -L ttyS0 38400 vt100
Looks like that or a variation should work.Sorry to redirect you to more articles.
Red Hat and agetty could be slightly different than the Debian and getty I am used to.
As you see there are slightly different suggestions in the different articles for agetty. There should be enough info to help you try a couple if one does not work.
Quote:
note: sometimes I was able connect through minicom but no login prompt provided from hyper terminal can't see anything
but if I type something in the HyperTerminal it will appear in the minicom screen
This makes me wonder about your setup.
For the serial connection the computer you are adding the getty line to will be the "server" and you do not open a terminal emulator on it. You do open the emulator on the computer you are using as a "client". It seems you are trying to have the two terminal emulators "talk to each other". AFAIK that is not correct.
If your laptop runs only Windows 95 you would use Hyperterminal or any prefered terminal emulator to connect to the Red Hat "serial server" when the login getty is working.
 
Old 04-23-2007, 05:47 AM   #9
scbops
Member
 
Registered: Feb 2006
Posts: 97

Original Poster
Rep: Reputation: 15
anyway I was able to connect to server from serial console through adding following entry in inittab

eg:- 7:2345:respawn:/sbin/mingetty ttyS0 38400 vt100

how can I save and exit from vi editor after used it ( getting ":" is a problem ) in serial console
 
  


Reply

Tags
networking, serial port


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:32 PM
Windows to Linux connection via Serial Port andrewm659 Linux - Networking 11 02-23-2006 04:57 PM
serial port network connection eantoranz Linux - Networking 2 10-31-2005 09:05 AM
How to probe if a serial port has a valid connection? RedDrake Linux - General 2 09-01-2005 08:05 PM
Detecting connection break on serial port listener on linux neelc20 Linux - Newbie 3 11-29-2003 04:29 PM


All times are GMT -5. The time now is 07:01 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration