Difference between revisions of "Setting Up A NFS Service"
m (Added note about ubuntu package names being different (added dashes).) |
|||
(10 intermediate revisions by 3 users 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 | |
− | + | </pre> | |
− | |||
− | |||
− | </pre> | ||
− | Modify the /etc/exports file adding at the end of this file the following line: | + | === Modify the /etc/exports file adding at the end of this file the following line: === |
<pre> | <pre> | ||
/home/ *(rw,insecure,no_root_squash,no_subtree_check) | /home/ *(rw,insecure,no_root_squash,no_subtree_check) | ||
− | </pre> | + | </pre> |
+ | |||
+ | 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: === |
<pre> | <pre> | ||
− | + | sudo /etc/init.d/nfs-kernel-server restart | |
</pre> | </pre> | ||
+ | |||
+ | [[Category:HowTo]][[Category:DM36x]][[Category:DM8168]] |
Latest revision as of 17:48, 16 November 2018
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