LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-21-2009, 10:23 PM   #1
noelc
Member
 
Registered: Apr 2009
Location: Sydney
Distribution: Ubuntu
Posts: 103

Rep: Reputation: Disabled
Help setting up my home network


Hi,

I have two desktop PC,s. Both are running Ubuntu 9.02 and both are connected to the web via the same router (wired). I,d like to set these PC,s up as a home network so I can share files between them. Can anyone help me to achieve this?

Thanks
 
Old 08-21-2009, 11:34 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The wired connections are to your NAT routers switch, so you already have a LAN. You can use NFS or Samba to share files.
You also need to open the needed ports in the computers' firewall. Ubuntu may have a configuration for both, to help you configure them.
For samba, install the "samba" and "samba-client" packages. I would also recommend installing the "samba-doc" package if you have it. the "Samba 3 by Example" book supplied is excellent. It has examples you might want to use.

Another way to configure samba is to use samba swat. It is samba's web configuration interface that is installed with samba. You need to enable it. You can do this by either deleting the "disable = yes" line from the "/etc/xinetd.d/swat" file, or by running "sudo chkconfig swat on". Then point your web browser to: "http://localhost:931".

Here are the firewall ports you may need opened. 2049 is for NFS. The others are for samba. They might be opened for you when you install the "samba-server" package. Note that some are tcp port and other are udp ports. Forgetting to enable the udp ports can cause browsing problems.

Code:
> nmap hpmedia
PORT     STATE SERVICE
139/tcp  open  netbios-ssn
445/tcp  open  microsoft-ds
2049/tcp open  nfs
137/udp open|filtered netbios-ns
138/udp open|filtered netbios-dgm
139/udp closed        netbios-ssn
Good Luck!
 
Old 08-22-2009, 03:29 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
NFS might be a better choice than samba, given there are no Windows machines on the network. Samba emulates Windows file system sharing in a *n*x environment which requires some compromises because Windows file system sharing (was called SMB, now called CIFS) differs in many ways from *n*x file system sharing, especially around permissions/security.
 
Old 08-22-2009, 07:53 PM   #4
noelc
Member
 
Registered: Apr 2009
Location: Sydney
Distribution: Ubuntu
Posts: 103

Original Poster
Rep: Reputation: Disabled
Ok Thanks can you advise best way of setting up NFS
 
Old 08-23-2009, 08:42 AM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
can you advise best way of setting up NFS
You can easily google this yourself
But here's just one example: http://kimbriggs.com/computers/compu...tup-guide.file
 
  


Reply



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
Help setting up home network noelc Linux - Networking 3 06-12-2009 01:15 PM
Setting up a home network reverse Linux - Networking 2 07-14-2007 11:53 PM
Help setting up a home network bobwidget Linux - Networking 7 07-18-2006 09:09 PM
Setting up a home network mrh7184 Linux - Wireless Networking 5 11-23-2005 11:59 AM
Need help setting up a home network. joe83 Linux - Networking 7 08-09-2004 02:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:05 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration