assuming PXE is up and running already
Debian/Ubuntu
apt install rpcbind nfs-kernel-server
Slackware
slackpkg install nfs-utils rpcbind libtirpc
As for NetBSD, it is there already.
mv /etc/exports /etc/exports.dist vi /etc/exports /tftpboot x.x.x.x/24(ro,no_root_squash,async,subtree_check) #/data x.x.x.x/24(rw,no_root_squash,async,subtree_check,mp)
Slackware
vi /etc/rc.d/rc.nfsd # Start 8 nfsd servers by default (an old Sun standard): if [ -x /usr/sbin/rpc.nfsd ]; then echo " /usr/sbin/rpc.nfsd --nfs-version 2,3 --no-nfs-version 4 8" /usr/sbin/rpc.nfsd --nfs-version 2,3 --no-nfs-version 4 8 fi if [ -x /usr/sbin/rpc.mountd ]; then echo " /usr/sbin/rpc.mountd --nfs-version 2,3 --no-nfs-version 4" /usr/sbin/rpc.mountd --nfs-version 2,3 --no-nfs-version 4 fi /etc/rc.d/rc.nfsd restart
Debian/Ubuntu
vi /etc/default/nfs-kernel-server RPCNFSDCOUNT="--nfs-version 2,3 --no-nfs-version 4 8" RPCMOUNTDOPTS="--manage-gids --nfs-version 2,3 --no-nfs-version 4" systemctl restart nfs-server
check
cat /proc/fs/nfsd/versions
systemctl restart rpcbind.target 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
remote node on the network
showmount -e INSTALLSRV-ADDRESS
Network File System https://en.wikipedia.org/wiki/Network_File_System
SettingUpNFSHowTo https://help.ubuntu.com/community/SettingUpNFSHowTo
DisklessUbuntuHowto https://help.ubuntu.com/community/DisklessUbuntuHowto
Network File System (NFS) https://ubuntu.com/server/docs/service-nfs
Chapter 29. Network services https://www.netbsd.org/docs/guide/en/chap-net-services.html
NetBSD5-Netzwerkinstallation http://wp.lando.cc/category/operation-systems/netbsd/
NetBSD Problem Report #54560 - Subject: PXE netboot regression https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=54560
Incrase pxeboot code size limit from 64k to 128k. Fixes PR kern/54560. http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/i386/stand/pxeboot/Makefile?rev=1.28&content-type=text/x-cvsweb-markup&only_with_tag=MAIN
NetBSD Problem Report #54561 - Subject: pxeboot TFTP block2+ acks broken https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=54561
NetBSD Problem Report #54562 - Subject: pxeboot NFS V2 READ Call into the void https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=54562
How can I make the nfs server support protocol version 2 in Ubuntu 17.10? https://askubuntu.com/questions/974696/how-can-i-make-the-nfs-server-support-protocol-version-2-in-ubuntu-17-10
Serve Either NFSv3 or NFSv4 From Ubuntu https://willhaley.com/blog/ubuntu-nfs-server/