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.
|
|
08-03-2004, 11:24 AM
|
#1
|
Member
Registered: Jul 2004
Location: New Jersey, US
Distribution: Red Hat Linux WS version 3
Posts: 126
Rep:
|
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
|
|
|
08-03-2004, 11:35 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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
|
|
|
08-03-2004, 12:19 PM
|
#3
|
LQ Newbie
Registered: Sep 2003
Location: Clackamas
Distribution: Slackware 10
Posts: 8
Rep:
|
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.
|
|
|
08-03-2004, 01:29 PM
|
#4
|
Member
Registered: Jul 2004
Location: New Jersey, US
Distribution: Red Hat Linux WS version 3
Posts: 126
Original Poster
Rep:
|
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
|
|
|
08-03-2004, 01:59 PM
|
#5
|
LQ Newbie
Registered: Sep 2003
Location: Clackamas
Distribution: Slackware 10
Posts: 8
Rep:
|
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.
|
|
|
08-03-2004, 03:04 PM
|
#6
|
Member
Registered: Jul 2004
Location: New Jersey, US
Distribution: Red Hat Linux WS version 3
Posts: 126
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:37 AM.
|
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
|
|