Hello and Welcome.
I've moved your post here for better exposure.
I suspect the answer is so obvious that I can't see it for looking, but I can't.
The daft thing is that that they can both see a windows box on the same network and I can set up a windows shared folder on the Linux box that they can all see.
I just can't see how to do it natively.
Are you trying to use nfs to network two or more Linux machines?
There are a lot of tutorials on the internet, you might be able to find one for your specific distribution.
Are they both Linux machines? Check out the link I posted. You might try googling set up nfs on Ubuntu or whatever operating system you are using to get something more specific.
If you are just trying to "swap" files between the two machines, something like rsync might be the only process you need.
NFS is called a file server for a reason. It is quite easy to setup, but made for Linux machines only. If you want to have a file server that is also accessible by MS, then you might want to look at SAMBA.
TL;DR: Just use "rsync" or "sftp" to copy files from one place to another. If you have Windows clients in the mix, you can install samba and use "smbclient". NFS is for servers, not really for simple file copying. "rsync" is the best, because it automatically figures out how to send directories across hosts, as well as individual files, and it does it with "SSH", so all you need is SSH access to a machine and "rsync" works perfectly. For example:will copy your awesome files from your host machine to a networked host at 192.168.0.100, as long as you have permission to access the "/home/my-user" directory on that machine.Code:
rsync ~/my-awesome-files/ 192.168.0.100:/home/my-user/
If you really want to use NFS...
NFS allows you to mount directories as though they were a seamless part of your own filesystem. Essentially, it lets you use the "mount" command on an IP address instead of a disk partition file in your "/dev" directory. Applications running on your computer will not be able to tell the difference between a networked host and an ordinary folder.
Here's a quick overview of what you need to do to set it up:
If you have two or more Linux machines that you don't plan to move around a lot, you can get them all talking by installing an NFS server on each of them. In debian, for example, that is as simple as "apt-get install nfs-kernel-server", which installs a kernel-level driver (as opposed to FUSE or user-space filesystem driver). Make sure all of your hosts have fixed IP addresses. Then edit your "/etc/exports" file, to indicate which directories you wish to share. Then edit your "/etc/fstab" file to indicate which hosts you would like to connect to at boot-time: mount every other NFS host that you want to share files with. You need to edit the "/etc/fstab" and "/etc/exports" files on every host machine.
Say, for example, host "home-a" and "home-b" are both static IP addressed and defined in each others "/etc/hosts" file, and both have NFS servers installed on them. Lets also say both hosts have a directory "/net/home". The "/etc/fstab" file for "home-a" might contain the entry:And "home-b" has a similar "/etc/fstab" file mounting "home-a:/home". The "/etc/exports" file on both "home-a" and "home-b" will need to look something like this:Code:
home-b:/home /net/home nfs defaults 0 2
This tells NFS to share the "/home" directory with the world. File permissions will protect your files from unwanted access.Code:
Now, you can easily copy files between the hosts using just the ordinary "cp" command, or your favorite file system browser, Gnome-Nautilus, KDE-Dolphin, or Xfce-Thunar. Of course, your operating system will respect permissions of the other host's filesystem. But if you have a user on each machine, and you want to copy files from "home-a:/home/my-user/my-awesome-files" to "home-b:/home/my-user/my-awesome-files", then this command will work:Of course, "rsync" can do that with just ordinary SSH networking, it doesn't need NFS or all the hassle of setting up NFS.Code:
cp -a ~/my-awesome-files /net/home/my-user'.
Pressing "submit reply", I got a blank page. I pressed the refresh button on my browser, then preseed "submit reply" again. The same reply was posted twice.