Click to See Complete Forum and Search --> : lan


sladiwala
01-20-2001, 10:51 PM
i have two pcs connected with each other via a lan cable. how do i setup a lan system in linux. my machine has linux and windows while the other has only windows 98. i do not want a client-server based system. i just want these two machine to be "lanned". does anyone know the url for a good documentation suited to my needs?

FoBoT
01-21-2001, 01:21 AM
this is one of the harder things to do as a linuxnewbie

you need to setup a samba server on the linux box
what distribution of linux are you using? red hat? mandrake?

first, do a forum search on "samba" and read all the previous threads about it, many a newbie has tried this and gotten frustrated

not to discourage you, you can do it!
after looking through the threads, re-post some specific questions when you are ready to start or as soon as you get stuck

good luck! http://www.linuxnewbie.org/ubb/smile.gif

idealego
01-21-2001, 04:56 AM
Setting up a share on a windows box and connecting to it in linux is pretty easy so I'll explain how.

On your windows box just right click on a folder or drive you want shared and give it a share name. If you put a $ at the end of the share name the share will be invisible, I have all mine invisible.

In linux make a directory where you might want the share mapped. say /smb/myshare for example.

then in linux you'd use a command like this:
smbmount //192.168.0.1/myshare /smb/myshare -o username=user,password=mypassword

So in this example the ip address of the windows box is 192.168.0.1, myshare is the share name, the windows user name is user and mypassword is of course the password.

You can put this command in your /etc/rc.d/rc.local file to have it automatically connect your share when you boot up. I also put a "umount /smb/myshare" line before it so if the connection stops working for some reason I just rerun rc.local

Setting up a share on your linux box takes a little more explaining, good luck.

Paul Weaver
01-21-2001, 11:11 AM
You might want to investigate LinNeighbourhod too. Probably not worth it with 2 computers, but its the Linux equivelent of Network Neighbourhood.


However before you think about that you need to install your network card in linux, set up an ip address, and subnet, do the same in windows on both computers, and make sure you can "ping" the other box.

Say where you are up to and where you are stuck