|
Setting up the NFS serverDepending on the options chosen when installing the Linux distribution, the NFS server may already be installed and running. To check this, log onto the host PC and type:
Each of these three commands should print a line such as:
If the error message "
Once the RPMs have been installed, repeat the
When the services are running, the NFS server must be told which file systems to make available to other machines. To do this, edit the file
If the root file system has been copied elsewhere replace the name of the root directory with the root of the copied directory tree. The last thing to be checked is whether a firewall is running. Recent versions of many Linux distributions install a firewall by default, and most of these have a very conservative rule set. In general this is a good thing, as it helps to keep the host PC secure if it is connected to the Internet. However, this usually prevents the target connecting to the NFS server as, with the default configuration, NFS is not considered secure. Reconfiguring a firewall to permit the safe use of NFS is beyond the scope of these instructions. However, if additional security is in place (for example, a corporate firewall) it should be safe to disable the firewall on the host PC completely. Most Linux firewalls are based around ipchains or iptables. To check if either of these are in use, enter:
If a line is displayed listing this service as
Finally, reboot the PC to get the NFS services started.
|
|||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||