Setup for NFS shares
Install the required packages:
apt-get install nfs-kernel-server nfs-common portmap
mkdir /home/nfs
No need to change the permissions
nano /etc/exports
/home/nfs 192.168.20.160(rw,no_root_squash,sync,no_subtree_check) # for a remote machine /home/nfs 192.168.20.150(rw,no_root_squash,sync,no_subtree_check) # for the localhost itself
/etc/init.d/nfs-kernel-server reload
and
service nfs-kernel-server status / stop / start
to control and check the server NFS.