Debiane
Debian - To act as an NFS client, the nfs-common and portmap packages are required;
for an NFS server, the nfs-kernel-server package must be added. The following
apt-get command line (if you are connected to the Internet) installs them all. Then, after you add
an exported file system to the /etc/exports file (as described later), you can start the
nfs-common and nfs-kernel-server scripts, as shown here:
# apt-get install nfs-common portmap nfs-kernel-server
# /etc/init.d/nfs-kernel-server start
# /etc/init.d/nfs-common start
Gentoo - With Gentoo, NFS file system and NFS server support must be configured into
the kernel to use NFS server features. Installing the nfs-utils package (emerge nfs-utils)
should get the required packages. To start the service, run rc-update and start the
service immediately:
# emerge nfs-utils
# rc-update add portmap default
# rc-update add nfs default
# /etc/init.d/nfs start
The commands (mount,exportfs, and so on) and files (/etc/exports,/etc/fstab, and so on) for actually configuring NFS are the same on every Linux system I've encountered. So once you have NFS installed and running, just follow the instructions in this chapter to start using NFS.
Sharing NFS File Systems
To share an NFS file system from your Linux system, you need to export it from the server system.
Exporting is done in Linux by adding entries into the /etc/exports
file. Each entry identifies a directory in your local file system that you want to share with other computers. The entry also
identifies the other computers that can share the resource (or opens it to all computers) and
includes other options that reflect permissions associated with the directory.
The continuation/full version of this article read on site - www.podgrid.org - Linux Bible