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 file systems over the network.
Download (HTTP): http://ftp.kernel.org/pub/linux/utils/nfs/nfs-utils-1.0.6.tar.gz
Download (FTP): ftp://ftp.kernel.org/pub/linux/utils/nfs/nfs-utils-1.0.6.tar.gz
Download MD5 sum: f17e9983457e1cf61c37f0be4493fce6
Download size: 260 KB
Estimated disk space required: 4.1 MB
Estimated build time: 0.9 SBU
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.
Before you compile the program, you need to be sure the "nobody" user and "nogroup" group are available. You can add these with the following commands:
groupadd -g 65534 nogroup &&
useradd -c nobody -d /home -g nogroup -s /bin/bash -u 65534 nobody
Install nfs-utils by running the following commands:
./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.
/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 http://nfs.sourceforge.net/nfs-howto/ 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)
Install the /etc/rc.d/init.d/nfs-server init script included in the blfs-bootscripts-6.0 package to start the server at boot.
make install-nfs-server
Now create the /etc/sysconfig/nfs-server configuration file:
cat > /etc/sysconfig/nfs-server << "EOF" PORT="2049" PROCESSES="8" QUOTAS="no" KILLDELAY="10" EOF
/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
Install the /etc/rc.d/init.d/nfs-client init script included in the blfs-bootscripts-6.0 package to start the client services at boot.
make install-nfs-client
The nfs-utils package contains getiversion, getkversion, locktest, nlmtest, rpcdebug, rpcgen, exportfs, lockd, mountd, nfsd, nfsstat, nhfsstone, rquotad, showmount, statd
Last updated on 2005-02-11 08:57:40 -0700