Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
07-17-2004, 08:41 PM
|
#1
|
LQ Newbie
Registered: May 2004
Distribution: Red Hat 9
Posts: 20
Rep:
|
Connect to a machine via a serial connection
Hi everyone,
I came over an old Sun server which is connected to my Linux box via a serial cable. The serial settings on the Sun machine are:
9600 baud
8 bit w/o parity and 1 stop bit
On my Linux box, the serial port is set to /dev/ttyS5.
How do I connect to the machine via this serial connection?
I don't have 'kermit' and I tired with 'agetty 9600 /dev/ttyS5' w/o any success.
I would greatly appreciate any help or suggestions,
Toshi
|
|
|
07-17-2004, 09:29 PM
|
#2
|
Member
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519
Rep:
|
Are you using a modem or an standard serial port?
|
|
|
07-18-2004, 01:07 AM
|
#3
|
LQ Newbie
Registered: May 2004
Distribution: Red Hat 9
Posts: 20
Original Poster
Rep:
|
It's a standard serial port or more precise - a 16550 UART serial COM port.
Thanks,
Toshi
|
|
|
07-18-2004, 07:06 PM
|
#4
|
Member
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519
Rep:
|
Well,
I don't know what are you trying to. Lets start by the first things first.
You have to connect your machines with a null modem cable. Basically, you need three wires in this cable: logical ground connecting both pins 7 of db25, pin 2 of one side connecting pin 3 of the other side and pin 3 of one side connecting pin 2 of the other side. All this description is for 25 pin connector. You may google with "null modem" between quotes. After having a cable be sure you have the you Sun port enabled for login and use minicom on the linux side to configure the port and open a session in the Sun. When you get this, you know that all the physical configuration is ok.
After this, I need to know if you want to just open a session in linux from the Sun, or want to establish a network connection. All this is possible, depending on the system software you have on the Sun machine.
|
|
|
07-18-2004, 09:22 PM
|
#5
|
Member
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288
Rep:
|
There is a pretty good "Howto" on this at the LDP site. It's titled the "Serial Laplink" howto as I recall.
|
|
|
07-18-2004, 10:17 PM
|
#6
|
LQ Newbie
Registered: May 2004
Distribution: Red Hat 9
Posts: 20
Original Poster
Rep:
|
Thanks for your replies!
I attached a DB25->RJ45 adapter to the Sun machine and a DB9->RJ45 adapter to one of the COM ports on the Linux box. Finally, I connected the two machine with a RJ45 cable.
I tried minicom, but I wasn't able to get it to connect.
I installed kermit, but it still doesn't connect:
(/root/) C-Kermit>set line /dev/ttyS5
(/root/) C-Kermit>set speed 9600
/dev/ttyS5, 9600 bps
(/root/) C-Kermit>set parity none
(/root/) C-Kermit>set stop-bits 1
(/root/) C-Kermit>set carrier-watch off
(/root/) C-Kermit>connect
Connecting to /dev/ttyS5, speed 9600
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
nothing happens after this - the connection is never established...
Is there something I'm missing? or is it some hardware/driver issue?
Toshi
|
|
|
07-18-2004, 10:19 PM
|
#7
|
LQ Newbie
Registered: May 2004
Distribution: Red Hat 9
Posts: 20
Original Poster
Rep:
|
By the way, I want to bring up the Sun machine's console (doesn't have local graphical console).
Toshi
|
|
|
07-19-2004, 02:16 AM
|
#8
|
Member
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519
Rep:
|
It's your physical connection. Both the machines may have transmit connected to th transmit of the other and receive connected to receive of the other. Look for "null cable".
|
|
|
07-19-2004, 03:53 PM
|
#9
|
LQ Newbie
Registered: May 2004
Distribution: Red Hat 9
Posts: 20
Original Poster
Rep:
|
Ok, I see. So I need somekind of cross-over cable? or can set some parameter in Kermit?
Thanks,
Toshi
|
|
|
07-19-2004, 04:04 PM
|
#10
|
Member
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519
Rep:
|
Yes, Mr. this is another name the "null-modem" cable is known.
|
|
|
07-19-2004, 04:47 PM
|
#11
|
LQ Newbie
Registered: May 2004
Distribution: Red Hat 9
Posts: 20
Original Poster
Rep:
|
Thanks.
I am using null-modem cable. I tried with a standard cable and a null-modem cable, but neither worked. I also tried to connect to another device I have w/o success (I know I was able to connect to it using Windows' hyper terminal before). Any ideas?
I would appreciate any suggestion, advice, ideas...
Toshi
|
|
|
07-19-2004, 05:31 PM
|
#12
|
Member
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288
Rep:
|
Here's a link to the howto I posted about earlier. It's all about exactly what you're attempting.
http://tldp.org/HOWTO/Serial-Laplink-HOWTO/
|
|
|
07-19-2004, 05:51 PM
|
#13
|
LQ Newbie
Registered: May 2004
Distribution: Red Hat 9
Posts: 20
Original Poster
Rep:
|
Thanks,
That link is for setting up a PPP connection between a Windows box and a Linux box. I want to set-up a ASCII terminal and bring up the Sun machine's console.
Toshi
|
|
|
07-19-2004, 07:07 PM
|
#14
|
LQ Newbie
Registered: May 2004
Distribution: Red Hat 9
Posts: 20
Original Poster
Rep:
|
I tried Windows' hyper terminal and it worked w/o any problems...?!? Perhaps I need to set some parameter in Kermit which Windows sets automatically...? In windows I just set the baud rate, parity, data bits and stop-bits, and pressed 'ok'...
Maybe it's a driver issue in Linux even though 'setserial -a' produce a nice output...
Toshi
|
|
|
07-19-2004, 07:40 PM
|
#15
|
Member
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519
Rep:
|
You have to set some parameters. Your serial is waiting for modem signaling. Try
Code:
stty clocal </dev/ttyS5
This command will tell the serial driver this is a local port.
|
|
|
All times are GMT -5. The time now is 09:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|