October 23, 2018 · Server Linux Mac

Setup NFS between your Mac & Linux

On Linux

sudo apt-get install nfs-kernel-server
sudo vim /etc/exports
/home/dev/share 10.0.0.0/24(rw,async,no_subtree_check,insecure,anonuid=1000,anongid=1000,all_squash)
sudo service nfs-kernel-server restart

On Mac
you can't copy files directory by finder, you have to use cp
due to mac finder copy will create attributed files, which the nfs is not suppported.

sudo mount -t nfs -o resvport nfs.server.ip.here:/home/dev/share ./nfs
copy -X -r ./from ./nfs