PDA

View Full Version : NFS shares and samba together


scotta3234
14th September 2006, 11:31 PM
Hello all,

So I finally got my main linux box up and running in addition to my fedora laptop and I now want to network everything together in perfect harmony. I do have a few questions though as to the best way to go about it for my specific environment.

Environment: 2 linux computers. One desktop that I want to act as a server and one linux laptop. I want the two linux boxes to be able to share files between each other. This is really the part I haven't got working at the moment. I am guessing i should set up NFS shares between the two computers with the laptop acting as a client to the nfs server desktop. Is this correct? I also have several XP boxes in the house (roomates computers) who I want to be able to access the main desktop and read files. I also want the ability for my other laptop (linux) to be able to view the roomates XP files. This is the samba part, and is corrently working.

A few problems: 1. I don't have/want static IPs for any of the computers. If i can do this that would be great.
2. Can I specify a range of IPs so that my linux laptop can send and receive files from the NFS desktop no matter what ip i keep getting?

Essentially I just want to be able to send/receive files between the two linux computers but also be able to send and receive the smb shares to the XP boxes. I also want the XP boxes to be able to send/receive files to the one linux desktop. Any thoughts on the best way to go about this would be great as I haven't gotten everything to work.

Brian1
14th September 2006, 11:53 PM
If working with straight linux then NFS is fine. If you wish windows involved then just setup samba for all.
To view roommates XP then check ount mount with -t smbfs or the smbmount command. Also might check out SMB4K gui tool.
Know of no way to do networking without static IP for NFS. Setup samba and use SMB4K or Linneighborhood to browse for network shares much like Windows Network Neighborhood browser.
If setup a limited range of IP's for the laptop might as well set it as static to start with.
Now to the end of your post, to do networking between both OSes then samba is what you want to do.
Note if firewall is active on any of the machines then you need to disable it or open the needed ports for samb or nfs to pass through.

Brian1

scotta3234
15th September 2006, 04:32 AM

Curious... So i can just do samba for all??

sej7278
15th September 2006, 11:14 AM
yeah you could use samba for the linux boxes too, but nfs is so much nicer.

and why not use static ip's? dhcp is such a pain and a little pointless unless you're constantly changing networks.

scotta3234
16th September 2006, 10:44 PM
Alright so i got everything configured minus my linux-to-linux sharing. I can view the servers shares but am having trouble with the login. I think it's becuase the server is identifying my laptop as a guest (ex. guest@blackbox/Scott's music) and therefore wont login, it just gives me the cant be found stuff.

scotta3234
16th September 2006, 11:27 PM
This is actually my exact problem: http://www.fedoraforum.org/forum/showthread.php?t=124130&highlight=samba