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.

Revisions

  1. pecavalheiro revised this gist Jul 23, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -8,4 +8,4 @@ sudo chmod 777 /my/shared/dir

    sudo exportfs -a && sudo systemctl restart nfs-kernel-server

    # in mac, open Finder and press cmd + k. Type nfs://<host>/my/shared/dir/
    # in Mac, open Finder and press cmd + k. Type nfs://<host>/my/shared/dir/
  2. pecavalheiro revised this gist Jul 23, 2023. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -6,4 +6,6 @@ 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
    sudo exportfs -a && sudo systemctl restart nfs-kernel-server

    # in mac, open Finder and press cmd + k. Type nfs://<host>/my/shared/dir/
  3. pecavalheiro revised this gist Jul 23, 2023. No changes.
  4. pecavalheiro created this gist Jul 23, 2023.
    9 changes: 9 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # 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