Skip to content

Instantly share code, notes, and snippets.

@pecavalheiro
Last active July 23, 2023 17:42
Show Gist options
  • Select an option

  • Save pecavalheiro/44e5823e36c9785770ae7ffb45fb5d96 to your computer and use it in GitHub Desktop.

Select an option

Save pecavalheiro/44e5823e36c9785770ae7ffb45fb5d96 to your computer and use it in GitHub Desktop.
Set up NFS in Linux -> Mac
# some tips: https://wiki.archlinux.org/title/NFS/Troubleshooting#Unable_to_connect_from_OS_X_clients
sudo apt install nfs-kernel-server
sudo chmod 777 /my/shared/dir
# edit /etc/exports and add:
/my/shared/dir <client ip address>(rw,sync,all_squash,subtree_check,insecure,anonuid=0,anongid=100,crossmnt,fsid=0)
sudo exportfs -a && sudo systemctl restart nfs-kernel-server
# in Mac, open Finder and press cmd + k. Type nfs://<host>/my/shared/dir/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment