sudo apt update
sudo apt install nfs-kernel-server nfs-common
sudo mkdir /data/nfs-mount
sudo chown username:groupname /data/nfs-mount
sudo chmod 755 /data/nfs-mount
sudo vim /etc/exports
# Add below line in /etc/exports
/data/nfs-mount 10.12.189.23(rw,sync,fsid=0,crossmnt,no_subtree_check,no_root_squash)
sudo apt update
sudo apt install nfs-common
sudo mount -t nfs 10.12.189.23:/data/nfs-mount /data/nfs-dir
Setting up an NFS Server and Client on Debian 9 https://linuxconfig.org/how-to-set-up-a-nfs-server-on-debian-10-buster https://wiki.debian.org/NFSServerSetup
Thanks for this super quick set up! Just a note: on the server side, I had to run
sudo exportfs -a
to update the exports.