[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Linux in General  |  Linux Tutorials & How To's  |  Topic: How to connect Linux and windows with a serial cable
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: How to connect Linux and windows with a serial cable  (Read 8556 times)
0 Members and 1 Guest are viewing this topic.
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2215


View Profile
« on: October 27, 2003, 11:06:00 AM »

This how to is aimed to get connected two pcs via serial cable running Linux and Windoz resp.

You need a "null modem cable" which is actually a serial cable. Now Connect both computer through this cable

Configuration

On LINUX BOX:
-------------
1. Create small chat script under /etc/ppp named connect.chat .So exact location will be /etc/ppp/connect.chat. Now put the following in this file.(This script is required as we are connecting to windoz machine.)
Code:

TIMEOUT 3600
CLIENT CLIENTSERVERc

2. Create a root owned file named /etc/ppp/options.ttyS0 (Here we are assuming that u have connected your cable to port ttyS0 (COM1 port). Now made the following entry in the file /etc/ppp/options.ttyS0
Code:
#/etc/ppp/options.ttyS0
lock               #It creates a lock file
noauth             #As this is with only two computer so authentication is disabled
asyncmap      0
crtscts   #Enable hardware flow control
local   #Tells the computer that this is not modem
silent   #Try for connection untill it is not connected

192.168.0.1:192.168.0.2    # Ip addresses of server/client
server:clients

115200             #Data transfer speed throught the null modem cable
connect 'chat -v -f /etc/ppp/connect.chat'

The work on linux box is finished.

On Windoz machine
-----------------
 As this forum is for Linux so I m giving only some indication that how to set connect via serial cable in Windows

 Prerequestic on windoz box:: In windows machine dialup networking should be already enabled.

1. We need a program called "Direct cable connection" in windoz. It can be found at Start>Programs>Accessories. If it is not there then install that from Control Panel>Add and Remove Programs.

2. Now start the program, it will give u a wizard, follow that and give access to "guest" computer and also tells that on which port you have connected ur cable (COM1 or COM2 port). When u finishes that wizard it will start connecting to linux box.

Now work is finished on windoz machine.

Last step:: Now you have to start pppd on Linux box. Start that by following.
Code:
pppd /dev/ttys0
Or if you want see that wht is happening when u start connection then start pppd by following.
Code:
pppd /dev/ttys0 nodetach

Now Finished......
you can take now full advantage of your Network,whether its internet sharing, file sharing and so on.
To check your connection use ping command.
Logged
richard
New Member

Offline Offline

Posts: 1


View Profile
« Reply #1 on: May 14, 2004, 11:02:31 AM »

Hi

I tried to connect my Windows PC to my Linux RedHat 8.0 ppp server, but when I'm executing these scripts I get the following error:

"pppd: unknown host: clients"

When I uncomment the "server:clients"-line I get the following on the console and in /var/logs/messages:

May 14 18:48:07 GiantDisc pppd[1011]: pppd 2.4.1 started by root, uid 0
May 14 18:48:07 GiantDisc pppd[1011]: tcsetattr: Invalid argument
May 14 18:48:07 GiantDisc pppd[1011]: Exit.

I also tried to delete the lowercase "c" at the end of CLIENTSERVER in the chat script as I thought this might be a mistake but it didn't help.

Any help appreciated

Richard
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2215


View Profile
« Reply #2 on: May 19, 2004, 02:55:31 AM »

Plz.. correct try now.. We had a error of formatting , now reactified .. Smiley
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2008, 06:49:18 PM

Login with username, password and session length
Navigation
Recent Discussions
[Today at 02:53:39 AM]

[Today at 02:45:38 AM]

[December 03, 2008, 10:18:57 AM]

[December 02, 2008, 11:32:02 AM]

[November 29, 2008, 02:23:49 PM]

[November 29, 2008, 02:14:14 PM]

[November 29, 2008, 04:00:36 AM]

[November 28, 2008, 07:05:28 AM]

[November 28, 2008, 07:04:39 AM]

[November 28, 2008, 06:58:16 AM]
Members
Total Members: 6262
Latest: abhijitabhijit
Stats
Total Posts: 8290
Total Topics: 2261
Online Today: 19
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 6
Total: 6
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc