# in my desktopmkdir~/Desktop/nfs-share#change permissionsudochownnobody:nogroup~/Desktop/nfs-share#add world writable permissionsudochmod777~/Desktop/nfs-share### enable shareedit/etc/exports```bash#added this line# this is for network CIDR/home/anir0y/Desktop/nfs{IP}/{subnet}(rw,sync,no_subtree_check)# example:/home/anir0y/Desktop/nfs192.168.29.0/24(rw,sync,no_subtree_check)
restart NFS
# enable sharessudoexportfs# restart the servicesudosystemctlrestartnfs-kernel-server.service
add NFS share as client
install nfs client
sudoaptupdatesudoaptinstallnfs-common-y
mount share
# make a mounting dirmkdir~/nfsclientsudomount-tnfs{IP}:{folder}{local_path}#e.g.sudomount-tnfs192.168.29.83:/home/anir0y/Desktop/nfs~/nfsclient