Skip to content

Instantly share code, notes, and snippets.

@asiellb
Forked from betweenbrain/mac-linux-nfs.md
Created November 16, 2021 13:51
Show Gist options
  • Select an option

  • Save asiellb/9b3736e68f0b9a30e2d3cf4c8b363c91 to your computer and use it in GitHub Desktop.

Select an option

Save asiellb/9b3736e68f0b9a30e2d3cf4c8b363c91 to your computer and use it in GitHub Desktop.

Revisions

  1. @betweenbrain betweenbrain revised this gist Oct 8, 2019. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion mac-linux-nfs.md
    Original file line number Diff line number Diff line change
    @@ -22,4 +22,9 @@ $ sudo mount -t nfs -o resvport,rw 192.168.1.106:/mnt/nfs /private/nfs

    ```
    $ sudo tmutil setdestination /Volumes/MacBackup
    ```
    ```

    ### References
    * https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-18-04
    * https://www.cyberciti.biz/faq/apple-mac-osx-nfs-mount-command-tutorial/
    * https://vitux.com/install-nfs-server-and-client-on-ubuntu/
  2. @betweenbrain betweenbrain revised this gist Oct 8, 2019. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions mac-linux-nfs.md
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,10 @@ $ sudo nano /etc/exports
    ```
    * add something like `/mnt/nfs 192.168.1.101(rw,sync,no_root_check,no_subtree_check)`

    ```
    $ sudo systemctl restart nfs-kernel-server
    ```

    ## Client
    ```
    $ sudo mkdir /private/nfs
  3. @betweenbrain betweenbrain revised this gist Oct 8, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion mac-linux-nfs.md
    Original file line number Diff line number Diff line change
    @@ -5,8 +5,9 @@ $ sudo apt install nfs-kernel-server
    $ sudo mkdir /mnt/nfs -p
    $ sudo chown nobody:nogroup /mnt/nfs
    $ sudo chmod 777 /mnt/nfs
    $ sudo nano /etc/exports
    ```

    * add something like `/mnt/nfs 192.168.1.101(rw,sync,no_root_check,no_subtree_check)`

    ## Client
    ```
  4. @betweenbrain betweenbrain revised this gist Oct 8, 2019. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions mac-linux-nfs.md
    Original file line number Diff line number Diff line change
    @@ -12,5 +12,9 @@ $ sudo chmod 777 /mnt/nfs
    ```
    $ sudo mkdir /private/nfs
    $ sudo mount -t nfs -o resvport,rw 192.168.1.106:/mnt/nfs /private/nfs
    ```
    * Create disk image using Disk Utilities, mount it.

    ```
    $ sudo tmutil setdestination /Volumes/MacBackup
    ```
  5. @betweenbrain betweenbrain revised this gist Oct 8, 2019. 1 changed file with 7 additions and 5 deletions.
    12 changes: 7 additions & 5 deletions mac-linux-nfs.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,11 @@
    ## Host
    `$ sudo apt update`
    `$ sudo apt install nfs-kernel-server`
    `$ sudo mkdir /mnt/nfs -p`
    `$ sudo chown nobody:nogroup /mnt/nfs`
    `$ sudo chmod 777 /mnt/nfs`
    ```
    $ sudo apt update
    $ sudo apt install nfs-kernel-server
    $ sudo mkdir /mnt/nfs -p
    $ sudo chown nobody:nogroup /mnt/nfs
    $ sudo chmod 777 /mnt/nfs
    ```


    ## Client
  6. @betweenbrain betweenbrain revised this gist Oct 8, 2019. 1 changed file with 6 additions and 3 deletions.
    9 changes: 6 additions & 3 deletions mac-linux-nfs.md
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,14 @@
    ## Host
    `$ sudo apt update`
    `$ sudo apt update`
    `$ sudo apt install nfs-kernel-server`
    `$ sudo mkdir /mnt/nfs -p`
    `$ sudo chown nobody:nogroup /mnt/nfs`
    `$ sudo chmod 777 /mnt/nfs`


    ## Client
    `$ sudo mkdir /private/nfs`
    `$ sudo mount -t nfs -o resvport,rw 192.168.1.106:/mnt/nfs /private/nfs`
    ```
    $ sudo mkdir /private/nfs
    $ sudo mount -t nfs -o resvport,rw 192.168.1.106:/mnt/nfs /private/nfs
    $ sudo tmutil setdestination /Volumes/MacBackup
    ```
  7. @betweenbrain betweenbrain revised this gist Oct 8, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac-linux-nfs.md
    Original file line number Diff line number Diff line change
    @@ -8,4 +8,4 @@

    ## Client
    `$ sudo mkdir /private/nfs`
    `$ sudo mount -t nfs -o resvport,rw 192.168.1.106:/media/betweenbrain/wd500/nfs /private/nfs`
    `$ sudo mount -t nfs -o resvport,rw 192.168.1.106:/mnt/nfs /private/nfs`
  8. @betweenbrain betweenbrain created this gist Oct 8, 2019.
    11 changes: 11 additions & 0 deletions mac-linux-nfs.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    ## Host
    `$ sudo apt update`
    `$ sudo apt install nfs-kernel-server`
    `$ sudo mkdir /mnt/nfs -p`
    `$ sudo chown nobody:nogroup /mnt/nfs`
    `$ sudo chmod 777 /mnt/nfs`


    ## Client
    `$ sudo mkdir /private/nfs`
    `$ sudo mount -t nfs -o resvport,rw 192.168.1.106:/media/betweenbrain/wd500/nfs /private/nfs`