Difference between revisions of "Setting Up A NFS Service"

From RidgeRun Developer Connection
Jump to: navigation, search
m (Added note about ubuntu package names being different (added dashes).)
m (Added notes about the directory to be exported.)
Line 1: Line 1:
Please install the following packages:
+
=== Please install the following packages: ===
 +
<pre>RR@RidgeRun:~$  sudo apt­get install nfs­-kernel­-server nfs­-common portmap
 +
</pre>
 +
=== Modify the /etc/exports file adding at the end of this file the following line:  ===
 +
<pre>/home/ *(rw,insecure,no_root_squash,no_subtree_check)
 +
</pre>
 +
For the above line, the directory /home will be exported (served by the NFS server).&nbsp; If you would like a different directory, substitute /home with your preferred directory.
  
<pre>
+
=== Restart the NFS server: ===
RR@RidgeRun:~$  sudo apt­get install nfs­kernel­server nfs­common portmap
+
<pre>RR@RidgeRun:~$ sudo /etc/init.d/nfs-­kernel­-server restart
 
 
For Ubuntu 9.10 and later (and perhaps earlier versions of Ubuntu) the package names are different:
 
RR@RidgeRun:~$  sudo apt­get install nfs­-kernel­-server nfs­-common portmap
 
</pre>
 
 
 
Modify the /etc/exports file adding at the end of this file the following line:
 
 
 
<pre>
 
/home/ *(rw,insecure,no_root_squash,no_subtree_check)
 
</pre>
 
 
 
Restart the NFS server:
 
 
 
<pre>
 
RR@RidgeRun:~$ sudo /etc/init.d/nfs­kernel­server restart
 
 
</pre>
 
</pre>

Revision as of 15:50, 23 November 2010

Please install the following packages:

RR@RidgeRun:~$  sudo apt­get install nfs­-kernel­-server nfs­-common portmap

Modify the /etc/exports file adding at the end of this file the following line:

/home/ *(rw,insecure,no_root_squash,no_subtree_check)

For the above line, the directory /home will be exported (served by the NFS server).  If you would like a different directory, substitute /home with your preferred directory.

Restart the NFS server:

RR@RidgeRun:~$ sudo /etc/init.d/nfs-­kernel­-server restart