NFS DAEMON & CLIENT

DAEMON // NETBSD

DAEMON // SLACKWARE

slackware

slackpkg update
slackpkg install nfs-utils rpcbind libtirpc
chmod +x /etc/rc.d/rc.nfsd /etc/rc.d/rc.rpc
mv -i /etc/exports /etc/exports.dist
vi /etc/exports

#/data      x.x.x.x/24(mp,rw,no_root_squash,async,subtree_check)
#/data/tftpboot x.x.x.x/24(ro,root_squash,async,subtree_check)
#/data/tftpboot x.x.x.x/24(ro,root_squash,async,subtree_check)
/lala       x.x.x.x/24(ro,no_root_squash,async,subtree_check)

mkdir /lala
echo ok > /lala/check

#START-NFS
/etc/rc.d/rc.rpc start
/etc/rc.d/rc.nfsd start

#STATUS
pgrep -a mountd

#STOP-NFS
/etc/rc.d/rc.nfsd stop
/etc/rc.d/rc.rpc stop 

DAEMON // Debian / Ubuntu Server

apt install rpcbind nfs-kernel-server
vi /etc/exports

/data           *(rw,async,no_subtree_check,no_root_squash)

exportfs -ra

check,

exportfs
showmount -e localhost

https://help.ubuntu.com/community/SettingUpNFSHowTo

CLIENT // Debian / Ubuntu Server

install nfs client to mount nfs shares,

    apt install nfs-common

setup some mount point,

showmount -e x.x.x.x
cp -pi /etc/fstab /etc/fstab.dist
mkdir -p /data/
touch /data/NOT_MOUNTED
vi /etc/fstab

x.x.x.x:/data /data nfs auto 0 0
#x.x.x.x:/data /data nfs _netdev,rw 0 0

mount /data

RESOURCES


Nethence | Doc | Pub | Lab | Pbraun | SNE Russia | xhtml