Skip to content

Instantly share code, notes, and snippets.

@oreoluwa
Forked from joaomlneto/mac-client.sh
Created September 26, 2020 18:43
Show Gist options
  • Save oreoluwa/af93664ed83ce2c25e0c509742a17559 to your computer and use it in GitHub Desktop.
Save oreoluwa/af93664ed83ce2c25e0c509742a17559 to your computer and use it in GitHub Desktop.

Revisions

  1. @joaomlneto joaomlneto revised this gist Feb 28, 2019. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions ubuntu-server.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    # /etc/exports: the access control list for filesystems which may be exported
    # to NFS clients. See exports(5).
    #
    # Example for NFSv2 and NFSv3:
    # /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
    #
    # Example for NFSv4:
    # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
    # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
    #

    /home/joaomlneto 192.168.25.0/24(rw,sync,no_subtree_check,insecure,no_root_squash,all_squash,anonuid=1000)
  2. @joaomlneto joaomlneto revised this gist Feb 28, 2019. 2 changed files with 7 additions and 5 deletions.
    5 changes: 0 additions & 5 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,5 +0,0 @@
    #!/usr/bin/env bash
    sudo mkdir -p /Users/joaomlneto/nfs/linux-vm
    sudo mount -t nfs -o nolocks,locallocks,rw,soft,intr,rsize=8192,wsize=8192,timeo=900,retrans=3,proto=tcp \
    linux-vm:/home/joaomlneto \
    /Users/joaomlneto/nfs/linux-vm
    7 changes: 7 additions & 0 deletions mac-client.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/usr/bin/env bash

    # mount /home/joaomlneto @ linux-vm
    mkdir -p /Users/joaomlneto/nfs/linux-vm
    mount -t nfs -o nolocks,locallocks,rw,soft,intr,rsize=8192,wsize=8192,timeo=900,retrans=3,proto=tcp \
    linux-vm:/home/joaomlneto \
    /Users/joaomlneto/nfs/linux-vm
  3. @joaomlneto joaomlneto created this gist Feb 28, 2019.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/usr/bin/env bash
    sudo mkdir -p /Users/joaomlneto/nfs/linux-vm
    sudo mount -t nfs -o nolocks,locallocks,rw,soft,intr,rsize=8192,wsize=8192,timeo=900,retrans=3,proto=tcp \
    linux-vm:/home/joaomlneto \
    /Users/joaomlneto/nfs/linux-vm