Last active
June 28, 2025 13:28
-
-
Save proudlygeek/5721498 to your computer and use it in GitHub Desktop.
Revisions
-
proudlygeek revised this gist
Jun 6, 2013 . 1 changed file with 28 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,25 +1,44 @@ ### 1. Install NFS on Server Install the required packages (Ubuntu 12.04): ```bash apt-get install nfs-kernel-server portmap ``` ### 2. Share NFS Folder Open the exports file: ```bash vim /etc/exports ``` Add the following line: ```bash /home/proudlygeek localhost(insecure,rw,sync,no_subtree_check) ``` Restart NFS Service: ```bash service nfs-kernel-server restart ``` or just export the FS: ```bash exportfs -a ``` ### 3. Install NFS Client Install the client: ```bash apt-get install nfs-common portmap ``` Make a mount folder: ```bash mkdir /mnt/nfs-share ``` Setup an SSH tunnel (local-to-remote port): ```bash ssh -fNv -L 3049:localhost:2049 user@hostname ``` Mount the folder: ```bash mount -t nfs -o port=3049 localhost:/home/proudlygeek /mnt/nfs-share ``` -
proudlygeek created this gist
Jun 6, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ ### 1. Install NFS on Server Install the required packages (Ubuntu 12.04): apt-get install nfs-kernel-server portmap ### 2. Share NFS Folder Open the exports file: vim /etc/exports Add the following line: /home/proudlygeek localhost(insecure,rw,sync,no_subtree_check) Restart NFS Service: service nfs-kernel-server restart or just export the FS: exportfs -a ### 3. Install NFS Client Install the client: apt-get install nfs-common portmap Make a mount folder: mkdir /mnt/nfs-share Setup an SSH tunnel (local-to-remote port): ssh -fNv -L 3049:localhost:2049 user@hostname Mount the folder: mount -t nfs -o port=3049 localhost:/home/proudlygeek /mnt/nfs-share