Setting UP NFS
Tested On Debian 3.1 (Sarge)
This tutorial is aimed at setting up a NFS share and accessing it. Let get started with it right away.
Check whether you have the nfs-kernel-server installed by giving the following commmand.
# apt-cache search nfs-kernel
nfs-kernel-server - Kernel NFS server support
If you get the above output, all is well, else install the software by issuing the following command
# apt-get install nfs-kernel-server
Suppose you want to export the directory /testdir.
Begin by editing the /etc/exports file. Add the following line to allow everyone Read/Write access to exported directory.
/testdir *(rw,sync)
NOTE: Remember, there should be no space between the '*' and the left parentheses.
Restart the NFS daemon as
# /etc/init.d/nfs-kernel-server restart
Stopping NFS kernel daemon: mountd nfsd.
Unexporting directories for NFS kernel daemon...done.
Exporting directories for NFS kernel daemon...done.
Starting NFS kernel daemon: nfsd mountd.
That's it, you directories are ready to be shared via NFS. In the next part we will look at how to access the NFS share.
This tutorial is aimed at setting up a NFS share and accessing it. Let get started with it right away.
Check whether you have the nfs-kernel-server installed by giving the following commmand.
# apt-cache search nfs-kernel
nfs-kernel-server - Kernel NFS server support
If you get the above output, all is well, else install the software by issuing the following command
# apt-get install nfs-kernel-server
Suppose you want to export the directory /testdir.
Begin by editing the /etc/exports file. Add the following line to allow everyone Read/Write access to exported directory.
/testdir *(rw,sync)
NOTE: Remember, there should be no space between the '*' and the left parentheses.
Restart the NFS daemon as
# /etc/init.d/nfs-kernel-server restart
Stopping NFS kernel daemon: mountd nfsd.
Unexporting directories for NFS kernel daemon...done.
Exporting directories for NFS kernel daemon...done.
Starting NFS kernel daemon: nfsd mountd.
That's it, you directories are ready to be shared via NFS. In the next part we will look at how to access the NFS share.