Summarised [from this netapp.com article](https://bluexp.netapp.com/blog/azure-anf-blg-linux-nfs-server-how-to-set-up-server-and-client) ## Install ```bash apt-get install nfs-kernel-server mkdir /mnt/mysharedir chown nobody:nogroup /mnt/mysharedir chmod 777 /mnt/mysharedir ``` Then the `/etc/exports` file ``` # To enable access to a single client /mnt/myshareddir {clientIP}(rw,sync,no_subtree_check) # To enable access to several clients /mnt/myshareddir {clientIP-1}(rw,sync,no_subtree_check){clientIP-2}(...){clientIP-3}(...) # To enable access to an entire subnet /mnt/myshareddir {subnetIP}/{subnetMask}(rw,sync,no_subtree_check) ``` example ``` /tumbler *(rw,sync,no_subtree_check) /mnt/t420b_hdd1 *(rw,sync,no_subtree_check,nohide,crossmnt) /mnt/t420b_hdd2 *(rw,sync,no_subtree_check,nohide,crossmnt) /mnt/t420b_hdd3 *(rw,sync,no_subtree_check,nohide,crossmnt) /home *(rw,sync,no_subtree_check) ``` then **to enable the mounts** ```bash sudo exportfs -a sudo systemctl reload nfs-kernel-server ``` ## client ```bash sudo mount -t nfs t420b:/mnt/hdd1 /path/to/hdd1 ``` or in fstab ``` t420b:/mnt/hdd3 /t420b/hdd3 nfs defaults,user,noauto 0 0 ``` ### Timeout Personally, I would like my {LAN} {NFS} connections to timeout after about a second or two — that is plenty on a home {LAN}. It annoyingly causes things to hang for ages no matter what `timeo=30` option I give the mount.