[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

Communicating linux with win95

I have a 3com etherlink 3c509b network interface card in the computer running linux.  I have another computer hooked up to it with a crossover cable.  How do I get the two computers to communicate with each other witht the linux computer being the main server?  Is there a special program I need?  If so, where could I get it?
0
mattman
Asked:
mattman
1 Solution
 
biardCommented:
The program is called SAMBA.  It comes with most Linux distributions, and is usually installed by default.  If not, go to http://www.samba.org to download it.  Documentation is also available there.  
0
 
trentpackCommented:
You'll want to make sure that both 95 and linux box are using IP to communicate. (type winipcfg for win95 and ifconfig for linux.)  You should be able to use the command "ping" and then the IP address of the two boxes.  If you're getting a reply, then you can configure SAMBA to act as a NT file server.  You'll want to visit http://www.linuxdoc.org/HOWTO/SMB-HOWTO.html to learn how to setup a SAMBA server.  Also, a really quick way to access that are on you 95 box from your linux box is to use the command prompt command "smbclient". (You need samba installed to use this.)  Smbclient is a FTP like inter face you can use to D/L file from your 95 box.  (I used this to D/L win95 cab file to my laptop)
0
 
biardCommented:
After if is configured correctly, you may want to use a gui frontend to smbclient as well.  There are several available.  Just search the linux area at download.com for samba.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
NoaaahCommented:
You'll also have to edit the smb.conf file in /etc.
I have done this plenty of times and with success. If you need help, use the manual. (man smb.conf) or you can use netconf to configure samba. If samba is not installed, you cant configure it. You'll have to load the cdrom and install the rpm for samba, then configure it.

Also after its configured and loaded, use smb start to start the smbd and nmbd daemons.

Assign your server an address thats not used by any other computers, and also an user name thats also not assigned.

And last thing to keep in mind, passwords and userlist for samba are by default different and seperated from the passwd and linux password/userlist file. So you'll have to use a samba command to add a new user to samba. Look at the manual entry (man samba OR man smbd) for help.

-Noah
0
 
karim1Commented:
Hi,

here are other programs that may also help you in networking your computer, and that I personally think that is easier to run in aprivate network, where you do not need to establish to many options as with Samba. Last night I did this myself after having so many problems with the configuration of Samba.

The links that i provide you with: the first one is a client for a NFS (network File System) and the second one is the NFS client and a server so you can share your Windows Harddrives and printers with your linux box.

Here are the things that you need to do:

1.- setup your two boxes with the privates IP's such as 192.168.0.1 and 192.168.0.2

2.- setup the routing tables in your linux box:
route add -net 192.168.0.0 netmask 255.255.255.0 dev eth0

3.- test your network:
from the windows box try to ping the linux box "ping 192.168.0.1"
if you receive an answer from the linux box it means that you have your routing tables ok.

4.- setup the /etc/hosts file in the linux box:
"vi /etc/hosts" and add the windows box "192.168.0.2        windows"
and then instead of calling the windows box trough the IP number you can do it from the name "windows" or any other you may want to use.

5.- Install the NFS-server package if you do not have it already.

6.- edit your /etc/exports file and add the directories you want your windows machine to see.
"vi /etc/exports" and add "/home     192.168.0.2(rw)" save the file by pressing escape and the ":w" and enter. exit by pressing escape ":q"

7.-restart the NFS-server or the linux box.

8.- go to your windows box and install the NFS-client of the first link I gave you and it has pretty good wizards that will help you map the HardDrive in the linux as if they where drives of the windows box.

9.- for the authentication I first used network and then in the second window i choose GID UID. you can see these numbers in the /etc/passwd file "more /etc/passwd" is a format like the following:
username:encryptedpassword:GID:UID
or
username:encryptedpassword:UID:GID
I do not remember exactly.

10.- you can also share your windows harddrives and printers with you linux box if you install the NFS-Server for windows.


These will help you get all done. But if you want to have a connection to the internet from the two boxes you can do what I did last week:

after you setup the router and you make sure is working do the following:
 Setup the IP Masq
so all the computers can communicate to the Internet. this included recompiling the kernel and a small shell
script to load the ip masq every time i reboot.
check out this site for the ip-masquerade HowTo:
http://howto.tucows.com/ptHOWTO/


NFS-Client for Windows
http://download.cnet.com/downloads/0-10101-108-32252.html?st.dl.tdtl.desc.g32252

NFS-Client and NFS-Server for Windows
http://download.cnet.com/downloads/0-10069-100-903872.html?tag=st.dl.10001_103_1.lst.titledetail


Hope this information can help you , and if you have more questions about this post a comment.
0
 
mattmanAuthor Commented:
Karim1,
 
Thanks for all the info, but I can't get past the 3rd step.  I did the route thing, and it didn't say there was anything wrong.  I know my connections are fine because the network works perfectly when running windows on the same machine.  I know the ethernet card in the linux box and the windows boxes are fine because they can both ping themselves at assigned ip addresses and can ping each other when both are running windows.  But, I still can't get an answer when trying to ping each other with linux.  Can you help?  

Thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now