LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-01-2006, 02:23 PM   #1
Paralel
LQ Newbie
 
Registered: May 2006
Posts: 11

Rep: Reputation: 0
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.
 
Old 05-01-2006, 04:17 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
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

Last edited by Brian1; 05-01-2006 at 04:19 PM.
 
Old 05-01-2006, 09:45 PM   #3
muddywaters
Member
 
Registered: May 2005
Location: Winnipeg, Canada
Distribution: mostly mepis
Posts: 427

Rep: Reputation: 30
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 ?

Last edited by muddywaters; 05-01-2006 at 10:27 PM.
 
Old 05-02-2006, 12:50 AM   #4
Paralel
LQ Newbie
 
Registered: May 2006
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 05-02-2006, 06:25 AM   #5
muddywaters
Member
 
Registered: May 2005
Location: Winnipeg, Canada
Distribution: mostly mepis
Posts: 427

Rep: Reputation: 30
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.

Last edited by muddywaters; 05-02-2006 at 06:48 AM.
 
Old 05-02-2006, 04:35 PM   #6
pAn1k
Member
 
Registered: Jun 2004
Location: Cala city
Distribution: Suse 10.0; Debian 5.0 (Lenny) Fluxbox
Posts: 240

Rep: Reputation: 30
I would use scp I think that it is very easy to use and fast!! use 'man scp'
 
Old 05-03-2006, 12:27 AM   #7
muddywaters
Member
 
Registered: May 2005
Location: Winnipeg, Canada
Distribution: mostly mepis
Posts: 427

Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Configuration in Debian (laptop network card) legendaryhwk Linux - Networking 6 04-06-2006 03:59 AM
Network Install thru Network Card (laptop) legendaryhwk Linux - Networking 4 04-03-2006 04:37 PM
network between laptop and pc d1l2w3 Mandriva 6 11-08-2005 11:53 AM
A local wireless network for sharing files (linux desktop+linux laptop+mac laptop) whyatt Linux - Wireless Networking 1 11-01-2005 03:17 PM
network installation of RH7.3 on laptop with pcmcia network card. Smerk Linux - Distributions 1 10-31-2002 11:56 PM


All times are GMT -5. The time now is 12:55 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration