apt-get install nfs-kernel-server nfs-common
mkdir /directory/to/be/shared
chown root:root /directory/to/be/shared
chmod 755 /directory/to/be/shared
nano /etc/exports
/directory/to/be/shared 111.111.111.111(rw,sync,no_root_squash)
Change /directory/to/be/shared with your path and 111.111.111.111 with the client’s IP address