Example of automatic mount a startup
The first one is mounted read-only whereas the second one is mounted read-write. If you have need “user name/password” to authenticate, then add in the “” column "username=your_user_name,password=your_password,ro,user".

I found using NFS just as easy if not easier than using Samba for sharing between a few of my Unix based systems. In order to share a folder it only required a single line in a configuration file under /etc/exports, and a single line under /etc/fstab on the client to mount the share on each client at boot.

Install NFS Server Support

sudo apt-get install nfs-kernel-server nfs-common portmap
When configuring portmap do =not= bind loopback. If you do you can either edit /etc/default/portmap by hand or run:

sudo dpkg-reconfigure portmap
sudo /etc/init.d/portmap restart

You want to start the idmapd daemon. It is NOT only needed for NFSv4./etc/default/nfs-common

NEED_IDMAPD=YES

Editing /etc/exports
the /etc/exports file is used for creating a share on the NFS server

invoke your favorite text editor orsudo nano /etc/exports

For Full Read Write Permissions allowing any computer from 192.168.1.1 through 192.168.1.255

Also aftter making changes to /etc/exports in a terminal you must typesudo exportfs -a

Install NFS client supportsudo apt-get install portmap nfs-common

Mounting manually
Example to mount server.mydomain.com:/files to /files. In this example server.mydomain.com is the name of the server containing the nfs share, and files is the name of the share on the nfs server

You could copy and paste my line, and change servername.mydomain.com:/files, and /files to match your server name share name, and the name of the mount point you created.
It is a good idea to test this before a reboot in case a mistake was made.
typemount /files
in a terminal, and the mount point /files will be mounted from the server.

And do not forget, the NFS mount is originated from the server hence the directory permissions on the server will be used for client. The mount points do not follow the local server’s permission as they are not local.