nfs server | nfs client | version 2
apt install rpcbind nfs-kernel-server
slackpkg install nfs-utils rpcbind libtirpc
as for NetBSD, it is there already
mv -i /etc/exports /etc/exports.dist vi /etc/exports /data x.x.x.x/24(rw,no_root_squash,no_subtree_check) #/tftpboot x.x.x.x/24(ro,no_root_squash,no_subtree_check)
moar options
# async subtree_check
netbsd option only?
# mp
systemctl restart rpcbind.socket systemctl restart portmap systemctl restart nfs-server
start & enable
ls -lF /etc/rc.d/rc.nfsd /etc/rc.d/rc.rpc chmod +x /etc/rc.d/rc.nfsd /etc/rc.d/rc.rpc /etc/rc.d/rc.rpc start /etc/rc.d/rc.nfsd start
status
pgrep -a rpc pgrep -a mountd pgrep -a nfs rpcinfo
reload
exportfs -ra
stop
/etc/rc.d/rc.nfsd stop /etc/rc.d/rc.rpc stop
ready to proceed with the client
https://en.wikipedia.org/wiki/Network_File_System
https://help.ubuntu.com/community/SettingUpNFSHowTo
https://help.ubuntu.com/community/DisklessUbuntuHowto
https://ubuntu.com/server/docs/service-nfs
https://www.netbsd.org/docs/guide/en/chap-net-services.html
http://wp.lando.cc/category/operation-systems/netbsd/