forgetmy.blogg.se

Nfs the run for mac
Nfs the run for mac







nfs the run for mac nfs the run for mac

Refresh the automounts by running sudo automount -vc I've found myself having to go back to back to this answer once a year or so re-apply the changes. Note: It appears that some macOS software updates can overwrite this file and remove your changes. I got kernel panics on the Mac with this, so I went back to the default (NFSv3).

  • Note that we're not using nfsvers=4 here.
  • Note that setting it to 0 (or adding noac) causes Finder not to notice when a file is deleted on the server, so we can't use it.
  • actimeo=1 sets the attribute cache timeout as short as possible.
  • nfs the run for mac

    Without this, Finder becomes very slow and takes forever to show directories. locallocks creates locks on the client rather than on the server.On the macOS client, edit the /etc/auto_master file (documented in the auto_master man page): sudo nano /etc/auto_masterĪnd change the line starting with /net to the following (or add it if necessary): /net -hosts -nobrowse,nosuid,locallocks,nfc,actimeo=1 (I'm not sure if the -a option is necessary.) no_subtree_check is a performance thing.You need these options unless your Ubuntu server and Mac client use the same UID/GID for the main user. Run id on the server to find out your UID/GID. all_squash,anonuid=1000,anongid=1000 forces all reads and writes to be performed by the user/group with UID/GID 1000 (1000 is the default ubuntu user/group on my server).insecure means to accept connections from unprivileged (higher) port numbers.(But be careful not to make your NFS server available to the entire internet!) The Mac client's IP address should be in this range. 172.16.238.0/24 is the IP addresses to accept connections from./home/ubuntu is the directory to export.Now add a line similar to this: /home/ubuntu 172.16.238.0/24(insecure,rw,all_squash,anonuid=1000,anongid=1000,no_subtree_check) Install the NFS server as per the Ubuntu NFS guide: sudo apt install nfs-kernel-serverĮdit /etc/exports: sudo nano /etc/exports









    Nfs the run for mac