I want to use autofs to automount NFS shares. One advantage to automounting is some network drives may not be available all of the time (e.g., Network Attached Storage over wireless) and can be problematic if added to /etc/fstab.
There is already a configured and working NFS server on your network. There are several tutorials for this and most NAS come pre-configured with NFS
1. Starting with a completely update to copy of PCLinuxOS, use synaptic to download the autofs package. This downloads the /etc/autofs/auto.master and associated files and setups up the autofs script in /etc/init.d/ and associated rc directories.
2. Using the PCLinuxOS Control Center -> Network & Internet -> Hosts Definition: Map the desired hostname to the IP address of the NFS server.
3. Using the PCLinuxOS Control Center -> System -> Manage system services: Enable at boot and start the following processes in this order rpcbind, nfs-common, netfs (nfs-common won't start unless rpcbind is already started). Autofs will already be enabled at boot because of step 1 but you'll need to start it if you don't won't to reboot before testing.
4. Test that autofs is working by navigating to /net/hostname-of-nfs-server/. You should see the paths that are being exported by your NFS server. There is an entry in the auto.master file that automatically mounts all nfs servers in your hosts list to the /net directory
5. (Optional) Modify auto.master to mount any number of subdirectories from your nfs server according to this How To