LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 08-03-2004, 11:24 AM   #1
0perat0r
Member
 
Registered: Jul 2004
Location: New Jersey, US
Distribution: Red Hat Linux WS version 3
Posts: 126

Rep: Reputation: 15
direct connection to Linux through a serial cable


Hi,

I am attempting to make a connection to a Linux box via a serial cable. I understand this is odd, but this is the way it must be done. The Windows (2k) machine has made the connection, after I configured it in Network and Dial-up connections, and told it to use a SLIP: UNIX connection. How can I configure the Linux machine to accept the communication from the Windows machine?

thanks
 
Old 08-03-2004, 11:35 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
here's my two cents:

Quote:
the Linux kernel needs to be told to use a serial port for its console, which can be handled at compile time or by passing kernel command-line options from the bootloader configuration
http://www.linuxjournal.com/article.php?sid=7206
 
Old 08-03-2004, 12:19 PM   #3
johnp05
LQ Newbie
 
Registered: Sep 2003
Location: Clackamas
Distribution: Slackware 10
Posts: 8

Rep: Reputation: 0
Well I used to use a serial cable like you, but i recently upgraded to a real network.
But here's what I did on my linux box:
First off you want to make sure you have PPP installed, and then change the setting on your W2K box to PPP not SLIP... I don't know anything about Slip so no one bash me please. For me, my settings have always been at 115200 baud for my serial connection (it works). So I used pppd to initiate a connection.

You simply go to the Linux Terminal, go to super user mode, and type in:
pppd -detach crtscts lock 192.168.0.1:192.168.0.2 115200 (change the first IP to the IP you want your Linux box to be on, and the second IP will be your windows 2k box)

And then you should go to your windows 2000 machine and try to direct connect now using PPP. Try to ping the other one to see if it works.

This is how I've always done it (or used to), I hope it helps.
 
Old 08-03-2004, 01:29 PM   #4
0perat0r
Member
 
Registered: Jul 2004
Location: New Jersey, US
Distribution: Red Hat Linux WS version 3
Posts: 126

Original Poster
Rep: Reputation: 15
Thank you both for your replies. johnp05, I tried your command, but linux choked on it. I see where you are going with it, though. I can use the pppd command with different options, I think. Any other suggestions are welcome.

thanks
 
Old 08-03-2004, 01:59 PM   #5
johnp05
LQ Newbie
 
Registered: Sep 2003
Location: Clackamas
Distribution: Slackware 10
Posts: 8

Rep: Reputation: 0
Sorry about that operator! I forgot to mention the device in pppd. Forgive me for leaving out such an important command.
Say on your windows 2000 box you are connected at Com1, and you are probably on your only or Com1 port on your Linux box too.
In linux, it is /dev/ttyS0, so you need to add that to the pppd command, like so.

pppd -detach crtscts lock /dev/ttyS0 192.168.0.1:192.168.0.2 115200

And it should work, and if that doesnt work because you have multiple com ports, try changing ttyS0 to ttyS1 and so on. Hope it works for you, tell me how it goes.
 
Old 08-03-2004, 03:04 PM   #6
0perat0r
Member
 
Registered: Jul 2004
Location: New Jersey, US
Distribution: Red Hat Linux WS version 3
Posts: 126

Original Poster
Rep: Reputation: 15
I tried this, but it is prompting me for a username and password. Im not sure how the authenticaiton should be set or even how to go about it. It seems like it wants to connect, however.
 
  


Reply


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
Direct Cable Connection between Slack 10.0 and Windows XP Johnnyae17 Linux - Networking 1 12-22-2004 05:16 AM
TI-86 and Linux 2.6.8.1 with TI black link serial cable goofyheadedpunk Linux - General 1 11-03-2004 01:40 AM
Direct Cable Connection using LPT1 chem1 Linux - Hardware 1 03-10-2004 10:59 AM
Direct Cable Connection suchi Linux - Networking 4 11-23-2003 05:10 PM
connect windows and linux with serial cable adavila Linux - Networking 1 10-15-2003 07:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:37 AM.

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
Open Source Consulting | Domain Registration