Setting Up A NFS Service: Difference between revisions

From RidgeRun Developer Wiki
No edit summary
mNo edit summary
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
=== Please install the following packages:  ===
=== Please install the following packages:  ===
<pre>
<pre>
sudo apt-­get install nfs­-kernel­-server nfs­-common portmap
sudo apt-get install nfs­-kernel­-server nfs­-common portmap
</pre>  
</pre>  


Line 10: Line 10:
</pre>  
</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.  
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:  ===
=== Restart the NFS server:  ===
Line 17: Line 17:
sudo /etc/init.d/nfs-­kernel­-server restart
sudo /etc/init.d/nfs-­kernel­-server restart
</pre>
</pre>
[[Category:HowTo]][[Category:Ubuntu]][[Category:Resolving Common Linux Problems]]

Revision as of 15:48, 17 March 2014

Please install the following packages:

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:

sudo /etc/init.d/nfs-­kernel­-server restart