Setup NFS - hqzhang/cloudtestbed GitHub Wiki
#How to setup NFS ON MAC vim /etc/exports and add /Users/hongqizhang -network 192.168.0.0 -mask 255.255.0.0 then sudo nfsd enable to test that the sharing is properly enabled.: showmount -e ON Client sudo mount -t nfs 192.168.0.19:/Users/hongqizhang /opt/Autodesk sudo umount /opt/Autodesk/ Perm: 192.168.0.19:/Users/hongqizhang /opt/Autodesk nfs rsize=8192,wsize=8192,timeo=14,intr Server side:
1)sudo apt install nfs-kernel-server
2)mkdir /ubuntu
chown nobody:nobody /ubuntu
3)configure file:
echo "/ubuntu *(ro,sync,no_root_squash)" >> /etc/exports
echo "/home *(rw,sync,no_root_squash)" >> /etc/exports
(use * anyhost or use 192.168.56.102 )
4)echo "Hello world" >/ubuntu/testfile
5)sudo systemctl start nfs-kernel-server.service
Client side:
1) sudo apt install nfs-common
2) temporarily: sudo mount -t nfs 192.168.56.101:/ubuntu /local/ubuntu
permanantly: echo "192.168.56.102:/ubuntu /local/ubuntu nfs rsize=8192,wsize=8192,timeo=14,intr" >>/etc/fstab
3) cat /local/ubuntu/testfile
hello world