Install nfs-kernel-server
mkdir ~/Public
Export the rootfs folder
Add the following entry to /etc/exports
:
/home/rishav/Public *(rw,async,nohide,insecure,no_root_squash,no_subtree_check)
Update the NFS server’s exports
sudo exportfs -arv
Make the NFS server serve over UDP
Add the following to /etc/nfs.conf
[nfsd]
udp=y
vers2=y
Restart the NFS server
systemctl restart nfs-server.service