Changes

Jump to: navigation, search

Setting up tftp and nfs

4 bytes added, 13:33, 20 July 2012
How to configure a NFS Server
** download the nfs packages with the preferred method. For example, run sudo apt-get install nfs-kernel-server nfs-common portmap
** when configuring portmap, do not bind loopback. If loopback is bound, reconfigure portmap (sudo dpkg-reconfigure portmap), then restart it: sudo /etc/init.d/portmap restart
** NFS exports from a server are controlled by the file /etc/exports. So, to export the directory /home/user, edit the /etc/exports file adding the following line. This line exports the "/home/user" directory with read and write permissions to all hosts.<br><pre> /home/user *(rw,sync,no_root_squash)</pre><br>
** Save the file and restart the server: sudo /etc/init.d/nfs-kernel-server restart
 
For other distributions, the procedure will be very similar: the NFS configuration is always modified editing the /etc/exports file. The packages names, the method to install them and how to restart the servers may vary.

Navigation menu