sudo apt-get install nfs-common nfs-kernel-server portmap
sudo vim /etc/exports
/nfs *(rw,sync,no_root_squash)
sudo service portmap restart
sudo service nfs-kernel-server restart