Skip to content

Instantly share code, notes, and snippets.

@lucasprag
Forked from haggen/README.md
Last active August 29, 2015 14:22
Show Gist options
  • Save lucasprag/c45ce1ae738440c1a05f to your computer and use it in GitHub Desktop.
Save lucasprag/c45ce1ae738440c1a05f to your computer and use it in GitHub Desktop.

Revisions

  1. lucasprag revised this gist Jun 8, 2015. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,7 @@ nfs.server.mount.require_resv_port = 0
    **2)** Then, open `/etc/exports` and add this line, changing the values to match your case:

    ```
    /Users/<your username> -mapall=<your username>:staff <mac's ip address>
    /Users/lucasoliveira -mapall=lucasoliveira:staff 10.0.1.3
    ```

    **3)** With both files changed time to apply the new settings:
    @@ -31,9 +31,9 @@ sudo nfsd restart

    ```
    sudo umount /Users
    sudo mkdir /Users/<your username>
    sudo mkdir /Users/lucasoliveira
    sudo /usr/local/etc/init.d/nfs-client start
    sudo mount <mac's ip address>:/Users/<your username> /Users/<your username> -o async,noatime,actimeo=1,nolock,vers=3,udp
    sudo mount 10.0.1.3:/Users/lucasoliveira /Users/lucasoliveira -o async,noatime,actimeo=1,nolock,vers=3,udp
    ```

    You'll notice I'm mounting an especific user's directory instead of the `Users` directory itself, that's because of permissions, I couldn't share the `Users` directory on my behalf.
  2. @haggen haggen revised this gist May 18, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -33,7 +33,7 @@ sudo nfsd restart
    sudo umount /Users
    sudo mkdir /Users/<your username>
    sudo /usr/local/etc/init.d/nfs-client start
    sudo mount <mac's ip address>:/Users/<your username> /Users/<your username> -o rw,async,noatime
    sudo mount <mac's ip address>:/Users/<your username> /Users/<your username> -o async,noatime,actimeo=1,nolock,vers=3,udp
    ```

    You'll notice I'm mounting an especific user's directory instead of the `Users` directory itself, that's because of permissions, I couldn't share the `Users` directory on my behalf.
  3. @haggen haggen revised this gist May 17, 2015. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -9,25 +9,25 @@ Tested on:
    Git commit: cb2c3bc
    ```

    In your Mac, open the file `/etc/nfs.conf` and add this line:
    **1)** In your Mac, open the file `/etc/nfs.conf` and add this line:

    ```
    nfs.server.mount.require_resv_port = 0
    ```

    Then, open `/etc/exports` and add this line, changing the values to match your case:
    **2)** Then, open `/etc/exports` and add this line, changing the values to match your case:

    ```
    /Users/<your username> -mapall=<your username>:staff <mac's ip address>
    ```

    With both files changed time to apply the new settings:
    **3)** With both files changed time to apply the new settings:

    ```
    sudo nfsd restart
    ```

    Finally, ssh into your boot2docker machine and run:
    **4)** Finally, ssh into your boot2docker machine and run:

    ```
    sudo umount /Users
  4. @haggen haggen revised this gist May 17, 2015. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -3,8 +3,10 @@
    Tested on:

    ```
    Boot2Docker-cli version: v1.6.0
    Git commit: 9894ae9
    - Boot2Docker-cli version: v1.6.0
    Git commit: 9894ae9
    - Boot2Docker-cli version: v1.6.2
    Git commit: cb2c3bc
    ```

    In your Mac, open the file `/etc/nfs.conf` and add this line:
  5. @haggen haggen revised this gist Apr 29, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    > Get boot2docker working with nfs instead of vboxsf.
    boot2docker version:
    Tested on:

    ```
    Boot2Docker-cli version: v1.6.0
  6. @haggen haggen revised this gist Apr 29, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -34,6 +34,6 @@ sudo /usr/local/etc/init.d/nfs-client start
    sudo mount <mac's ip address>:/Users/<your username> /Users/<your username> -o rw,async,noatime
    ```

    You'll notice I'm mountinh an especific user's directory instead of the `Users` directory itself, that's because of permissions, I couldn't share the `Users` directory on my behalf.
    You'll notice I'm mounting an especific user's directory instead of the `Users` directory itself, that's because of permissions, I couldn't share the `Users` directory on my behalf.


  7. @haggen haggen revised this gist Apr 29, 2015. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,11 @@
    > Get boot2docker (cli version v1.6.0, commit 9894ae9) working with nfs instead of vboxsf.
    > Get boot2docker working with nfs instead of vboxsf.
    boot2docker version:

    ```
    Boot2Docker-cli version: v1.6.0
    Git commit: 9894ae9
    ```

    In your Mac, open the file `/etc/nfs.conf` and add this line:

  8. @haggen haggen revised this gist Apr 29, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    > Get boot2docker working with nfs instead of vboxsf.
    > Get boot2docker (cli version v1.6.0, commit 9894ae9) working with nfs instead of vboxsf.
    In your Mac, open the file `/etc/nfs.conf` and add this line:

  9. @haggen haggen created this gist Apr 29, 2015.
    32 changes: 32 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    > Get boot2docker working with nfs instead of vboxsf.
    In your Mac, open the file `/etc/nfs.conf` and add this line:

    ```
    nfs.server.mount.require_resv_port = 0
    ```

    Then, open `/etc/exports` and add this line, changing the values to match your case:

    ```
    /Users/<your username> -mapall=<your username>:staff <mac's ip address>
    ```

    With both files changed time to apply the new settings:

    ```
    sudo nfsd restart
    ```

    Finally, ssh into your boot2docker machine and run:

    ```
    sudo umount /Users
    sudo mkdir /Users/<your username>
    sudo /usr/local/etc/init.d/nfs-client start
    sudo mount <mac's ip address>:/Users/<your username> /Users/<your username> -o rw,async,noatime
    ```

    You'll notice I'm mountinh an especific user's directory instead of the `Users` directory itself, that's because of permissions, I couldn't share the `Users` directory on my behalf.