Index: basicnet/netprogs/netprogs.xml
===================================================================
--- basicnet/netprogs/netprogs.xml (revision 3024f58821ed86ecfc8488a93e42c9001c15afee)
+++ basicnet/netprogs/netprogs.xml (revision a945d40ec2728e3e6032e61583c0ec375f02a2c2)
@@ -16,5 +16,5 @@
&portmap;
&inetutils;
-
+&nfs-utils;
&ncpfs;
&ntp;
Index: basicnet/netprogs/nfs-utils.xml
===================================================================
--- basicnet/netprogs/nfs-utils.xml (revision 3024f58821ed86ecfc8488a93e42c9001c15afee)
+++ basicnet/netprogs/nfs-utils.xml (revision a945d40ec2728e3e6032e61583c0ec375f02a2c2)
@@ -3,13 +3,8 @@
NFS Utilities-&nfs-utils-version;
-TO BE DONE
-
-
Index: basicnet/netprogs/nfs-utils/nfs-utils-config.xml
===================================================================
--- basicnet/netprogs/nfs-utils/nfs-utils-config.xml (revision 3024f58821ed86ecfc8488a93e42c9001c15afee)
+++ basicnet/netprogs/nfs-utils/nfs-utils-config.xml (revision a945d40ec2728e3e6032e61583c0ec375f02a2c2)
@@ -2,12 +2,140 @@
Configuring nfs-utils
-Config files
-List of config files
+Server Configutation
+
+/etc/exports contains the exported directories on NFS servers.
+Refer to the exports manual page for the syntax of this file. Also refer to the
+NFS HowTo available at on how to
+configure the servers and clients in a secure manner. For example, for sharing the
+/home directory over the local network, the following line may
+be added:
+
+/home 192.168.0.0/255.255.0.0(rw)
+
+Create the nfs-server script to start the server at boot:
+
+cat > /etc/rc.d/init.d/nfs-server
+#!/bin/sh
+# Begin $rc_base/init.d/nfs-server
+
+# Based on sysklogd script from LFS-3.1 and earlier.
+# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
+
+. /etc/sysconfig/rc
+. $rc_functions
+
+case "$1" in
+ start)
+ echo "Starting NFS Server..."
+ loadproc /usr/sbin/rpc.mountd
+ loadproc /usr/sbin/rpc.nfsd 8
+ loadproc /usr/sbin/rpc.statd
+ ;;
+
+ stop)
+ echo "Stopping NFS Server..."
+ killproc /usr/sbin/rpc.nfsd
+ killproc /usr/sbin/rpc.mountd
+ ;;
+
+ reload)
+ echo "Reloading NFS Server..."
+ /usr/sbin/exportfs -ra
+ ;;
+
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+
+ status)
+ statusproc /usr/sbin/rpc.mountd
+ statusproc /usr/sbin/rpc.nfsd
+ ;;
+
+ *)
+ echo "Usage: $0 {start|stop|reload|restart|status}"
+ exit 1
+ ;;
+esac
+
+# End $rc_base/init.d/nfs-server
+EOF
+chmod 755 /etc/rc.d/init.d/nfs-server &&
+ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc0.d/K48nfs-server &&
+ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc1.d/K48nfs-server &&
+ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc2.d/K48nfs-server &&
+ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc3.d/S24nfs-server &&
+ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc4.d/S24nfs-server &&
+ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc5.d/S24nfs-server &&
+ln -s /etc/rc.d/init.d/nfs-server /etc/rc.d/rc6.d/K48nfs-server
+
-Configuration Information
+Client Configutation
-USERINPUT GOES HERE Blah blah blah about config.
-
+/etc/fstab contains the directories that are to be mounted
+on the client. Alternately the partitions can be mounted by using the
+mount command with the proper options. To mount the /home
+partition, add the following to the /etc/fstab:
+
+<server-name>:/home /home nfs rw 0 0
+
+Create the nfs-client script to mount the partitions at boot:
+
+cat > /etc/rc.d/init.d/nfs-client
+#!/bin/sh
+# Begin $rc_base/init.d/nfs-client
+
+# Based on sysklogd script from LFS-3.1 and earlier.
+# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
+
+. /etc/sysconfig/rc
+. $rc_functions
+
+case "$1" in
+ start)
+ echo "Mounting NFS Partitions..."
+ loadproc /usr/sbin/rpc.statd
+ loadproc /usr/sbin/rpc.lockd
+ mount -a -t nfs
+ ;;
+
+ stop)
+ echo "Unmounting NFS Partitions..."
+ umount -a -t nfs
+ killproc /usr/sbin/rpc.lockd
+ killproc /usr/sbin/rpc.statd
+ ;;
+
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+
+ status)
+ statusproc /usr/sbin/rpc.statd
+ statusproc /usr/sbin/rpc.lockd
+ ;;
+
+ *)
+ echo "Usage: $0 {start|stop|restart|status}"
+ exit 1
+ ;;
+esac
+
+# End $rc_base/init.d/nfs-client
+EOF
+chmod 755 /etc/rc.d/init.d/nfs-client &&
+ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc0.d/K48nfs-client &&
+ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc1.d/K48nfs-client &&
+ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc2.d/K48nfs-client &&
+ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc3.d/S24nfs-client &&
+ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc4.d/S24nfs-client &&
+ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc5.d/S24nfs-client &&
+ln -s /etc/rc.d/init.d/nfs-client /etc/rc.d/rc6.d/K48nfs-client
+
Index: basicnet/netprogs/nfs-utils/nfs-utils-desc.xml
===================================================================
--- basicnet/netprogs/nfs-utils/nfs-utils-desc.xml (revision 3024f58821ed86ecfc8488a93e42c9001c15afee)
+++ basicnet/netprogs/nfs-utils/nfs-utils-desc.xml (revision a945d40ec2728e3e6032e61583c0ec375f02a2c2)
@@ -2,5 +2,20 @@
Contents
-The nfs-utils package contains LISTOFFILES
+The nfs-utils package contains
+getiversion,
+getkversion,
+locktest,
+nlmtest,
+rpcdebug,
+rpcgen,
+exportfs,
+lockd,
+mountd,
+nfsd,
+nfsstat,
+nhfsstone,
+rquotad,
+showmount,
+statd
@@ -8,9 +23,38 @@
Description
-item1
-item1 does this
-
-item2
-item2 does that
+getiversiongetiversion
+tbd
+getkversiongetkversion
+tbd
+locktestlocktest
+tbd
+nlmtestnlmtest
+tbd
+rpcdebugrpcdebug
+tbd
+rpcgenrpcgen
+tbd
+exportfsexportfs
+Maintains a list of NFS exported directories.
+Works together with the kernel.
+lockdlockd
+The nfs lock manager
+mountdmountd
+The nfs mount daemon. Checks client-permissions.
+nfsdnfsd
+The user-level part of the NFS service. Main part of the work
+is done by the kernel.
+nfsstatnfsstat
+Print NFS statistics.
+nhfsstonenhfsstone
+NFS benchmark program
+rquotadrquotad
+The remote quota server. Works together with quota(1)
+
+showmountshowmount
+Shows mount information for an NFS server.
+statdstatd
+The NFS status monitor. Implements the NSM (Network Status Monitor) RPC protocol.
+
Index: basicnet/netprogs/nfs-utils/nfs-utils-inst.xml
===================================================================
--- basicnet/netprogs/nfs-utils/nfs-utils-inst.xml (revision 3024f58821ed86ecfc8488a93e42c9001c15afee)
+++ basicnet/netprogs/nfs-utils/nfs-utils-inst.xml (revision a945d40ec2728e3e6032e61583c0ec375f02a2c2)
@@ -1,2 +1,18 @@
+
+Kernel Configuration
+
+Enable the following options in the kernel configuration
+and recompile the kernel if neccessary:
+
+File systems:
+ Network File Systems:
+ NFS File System Support: M or Y
+ NFS Server Support: M or Y
+
+Select the appropriate sub-options that appear when the above options
+are selected.
+
+
+
Installation of nfs-utils
@@ -4,5 +20,12 @@
Install nfs-utils by running the following commands:
-./configure
+./configure --prefix=/usr --sysconfdir=/etc &&
+make &&
+make install
+
+If your /usr directory is NFS mounted,
+you should install the executables in /sbin by passing
+an additional parameter --sbindir=/sbin to the above
+./configure command.
Index: basicnet/netprogs/nfs-utils/nfs-utils-intro.xml
===================================================================
--- basicnet/netprogs/nfs-utils/nfs-utils-intro.xml (revision 3024f58821ed86ecfc8488a93e42c9001c15afee)
+++ basicnet/netprogs/nfs-utils/nfs-utils-intro.xml (revision a945d40ec2728e3e6032e61583c0ec375f02a2c2)
@@ -2,5 +2,7 @@
Introduction to nfs-utils
-The nfs-utils package contains... This is useful for...
+The nfs-utils package contains the userspace server and client
+tools necessary to use the kernel's nfs-abilities. NFS is a protocol that
+allows sharing disk partitions over the network.
Package information
@@ -19,7 +21,6 @@
nfs-utils dependencies
Required
-DEPENDENCE LIST
-Optional
-OPTIONAL LIST
+
+
Index: basicnet/netprogs/nfs-utils/nfs-utils.ent
===================================================================
--- basicnet/netprogs/nfs-utils/nfs-utils.ent (revision 3024f58821ed86ecfc8488a93e42c9001c15afee)
+++ basicnet/netprogs/nfs-utils/nfs-utils.ent (revision a945d40ec2728e3e6032e61583c0ec375f02a2c2)
@@ -5,8 +5,8 @@
-
-
+
+
-
-
+
+