apt install nfs-common

apt install nfs-kernel-server

NFS SERVER

vi /etc/exports

/home 192.168.0.0/24(rw,sync,no_root_squash)

/tmp *(ro)

systemctl start nfs-server

systemctl status nfs-server

showmount -e localhost

NFS CLIENT

ufw status verbose

showmount -e IPSERVER

mount IPSERVER:/ /mnt

vi /etc/fstab

IPSERVER:/ /mnt nfs _netdev 0 0

mount -a

mount -t nfs

mount