ON server side install NFS server apt-get install nfs-kernel-server
Create file with NFS shares folderstouch /etc/exports
Add folder you want to share in it/var/nfs-export *(rw,sync,no_subtree_check,no_root_squash)
Apply changesexportfs -a
On client sideapt-get install nfs-common
Create folder where remote folder will be mountedmkdir NFS-shares
Mount folder# mount -t nfs YOUR-NFS-SERVER-IP:/var/nfs-export /mnt/NFS-shares/
Permanent mount on boot add to /etc/fstabYOUR-NFS-SERVER-IP:/var/nfs-export /mnt/nfs/ nfs
Permissions troubles:
Check permission export options/proc/fs/nfs/exports
you can set options in /etc/exports files, for a particular userall_squash,anonuid=1000,anongid=1000