LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Laptop + PC network question (https://www.linuxquestions.org/questions/linux-networking-3/laptop-pc-network-question-440621/)

Paralel 05-01-2006 02:23 PM

Laptop + PC network question
 
I'd like to know how to connect my laptop and home PC into a network to exchange some files. I'm using an ethernet cable as a medium but I don't know how to set everything up. Most of the online guides about setting up a network confuse me so I'd politely ask a simple, easy to understand answer if at all possible. I'd also like to know how to exchange files once the connection is set.

Thank you for your time.

EDIT: Forgot to note, the PC is running Knoppix while the laptop is on Slackware.

Brian1 05-01-2006 04:17 PM

If all you want to do is to connect to pc's together and nothing else then you can use a cross-over ethernet cable. It does not matter which one you choose to start with but on the first machine define an IP of 192.168.1.1, Subnet 255.255.255.0, and a Gateway of 192.168.1.1. On the other define and IP of 192.168.1.2, Subnet 255.255.255.0 and a Gateway of 192.168.1.1. Startup the interfaces and from first pc ping with command ' ping 192.168.1.2 ' and from the second ' ping 192.168.1.1 '. Now if that works fine you need to setup samba on the linux machine and the other if linux setup samba there or if windows setup network neighborhood for workgroups. Lots info here on a simply samba setup. If both are linux then you can use NFS server setup on each. Also make sure you disable any firewall or firewall utilities on each as well.

Edit: Didn't see both were linux distros. I would setup nfs shares and gofrom there.

Second idea for a future thought.
A cheap way is to get a store bought router firewall and define the lan side of 192.168.1.1 and subnet 255.255.255.0. Then IP's on the others will be 192.168.1.2, 192.168.1.3 or setup the DHCP server on the router and then let the PCs get thier own IP's. You only need to conect the machines on the lan side ethernet ports. No connection to the wan side is needed. Maybe you may get high speed internet then all you have to do is define the wan side of the router and you are off an running in about 3 minutes for all machines.

Brian1

muddywaters 05-01-2006 09:45 PM

nfs isn't very hard to set-up with the help of a good tutorial. I have one of those "linux bibles" which was a great help, but there should be some decent online tutorials.

My clients/servers are Mepis/Slackware much the same as yours. The hardest part is probably trying to share with nfs through firewalls. Still working on that part. If you use a router as Brian1 suggests the software firewalls can be shut down while doing tranfers. Or you could disconnect from the WAN during transfers.

I bought one of the cheap d-links last year. A fun and handy toy for the price.

edit: As to an easy to follow answer, this post would get a little long. Do you need to tranfer files in both directions ?

Paralel 05-02-2006 12:50 AM

Yes, I believe transferring data in both directions would be mandatory. Right now I'm just trying to establish a connection between the two computers but I was also hoping to connect them via hub with an uplink (am I correct in assuming that the uplink is for internet access) since I only have one ethernet port and the external modem also requires a ethernet port.

muddywaters 05-02-2006 06:25 AM

I'm on ADSL and use the type of setup descibed as "b" in this link;
http://www.pctechnicians.ca/help/netsetup.htm
Would this work for you? Routers capable of this can be found at very reasonable prices. An added benefit of this setup is being able to use the routers firewall.

pAn1k 05-02-2006 04:35 PM

I would use scp I think that it is very easy to use and fast!! use 'man scp'

muddywaters 05-03-2006 12:27 AM

Quote:

Originally Posted by pAn1k
I would use scp I think that it is very easy to use and fast!! use 'man scp'

Good one. I just setup nfs recently so must of still had it on the brain. Another cool thing is fish as mentioned in this thread http://www.linuxquestions.org/questi...highlight=fish


All times are GMT -5. The time now is 04:13 AM.