Configuring a FreeBSD "Kickstart" server
                        by Steven St.Laurent  - steven@403forbidden.net


Intro

Ducks
Ingredients
Security
Contributing

Files
Distro
Files
Files
Mfsroot
Patch
PXEBoot
Boot
Kernel

Services
INETD
DHCP
TFTP
NFS
FTP

Details
How it works
Loader.rc

Installing

Finishing


	NFS

	For sake of brevity I should note that NFS could and can take up books of
	material.  Instead I will give some simple pitfalls you may encounter. NFS
	in freebsd cannot export directories but instead file systems which contain directories.
	For example I want to export /opt/export/4.8 and /opt/export/tftpboot to my clients
	to install with. It is not currently possible to export these with different settings
	since they both reside on the same partition (or slice as its called in freebsd) /opt.
	For my needs the following line is sufficient in my /etc/exports file

                /opt            -alldirs -maproot=root -ro

	I could have just as easily defined it as /opt/export BUT its
	very easy to try to configure a second export, say /opt/export2 
	with different settings, for example:

                /opt/export     -alldirs -maproot=root -ro      *
                /opt/export2    -alldirs -maproot=nobody        *

	These settings conflict IF /opt/export and /opt/export2 reside
	on a single slice called /opt.

	If /opt/export is a slice and /opt/export2 is another then this
	configuration is fine.

	This is one of the biggest mistakes people make configuring NFS
	but its easy to resolve.

	Once you have configured your export either startup NFS or -HUP
	the mountd process.

 		startup on boot -> add NFS_SERVER_ENABLE=YES in /etc/rc.conf & reboot
		restart process -> as root: kill -HUP `cat /var/run/mountd.pid`




Copyright © 2003 - Steven St.Laurent - steven@403forbidden.net