NFS Server
Install NFS server:
apt install nfs-kernel-server
Display current NFS shares on server:
exportfs
Edit server NFS configuration:
nano /etc/exports
Share example:
Read only access to an entire subnet:
/local.shared.dir 192.168.xx.0/24(ro,sync,no_subtree_check)
Read & write access to an entire subnet:
/local.shared.dir 192.168.xx.0/24(rw,sync,no_subtree_check)
Export “NFS table” (this is necessary after NFS edit) :
exportfs -a
Restarts NFS to apply changes:
systemctl restart nfs-kernel-server
NFS Client
Share mounting examples:
terminal:
mount ser.ver.ip.address:/remote_share_dir /local_share_dir
fstab:
ser.ver.ip.address:/server_dir /local_mounting_dir nfs defaults 0 0