apt-get install portmap nfs-common nfs-kernel-server

edit /etc/exports with something like (for lets say a public share):


After saving, import the shares using:

exportfs -a


/etc/init.d/nfs-kernel-server restart


Mario Loria is a builder of diverse infrastructure with modern workloads on both bare-metal and cloud platforms. He's traversed roles in system administration, network engineering, and DevOps. You can learn more about him here.