A Software which is available in
host1 called "SUNWman" is to be shared in network and
host2 machine on network want to auto mount
the "SUNWman" which is shared in host1 as a local file
resource.
When the user in host2
invoking the man command the man software shared in host1 will be
automatically mounted in host2 and the user can view the man pages in
host2.
IStep :
1
Share the "/usr/share/man" folder in
host1. Edit the file /etc/dfs/dfstab for permanent
sharing
share
-F nfs
/usr/share/man
Step : 2
Start the NFS Server daemons on NFS server (
host1)
# /etc/init.d/nfs.server
start
Step : 3
"Restart host1 (or) give shareall
command
# shareall
Step : 4
Create a Local mounting point in host2
.
# mv /usr/share/man
/usr/share/man.org
# mkdir
/usr/share/man
Step : 5
(on host2) Edit
the file /etc/auto_master and add the following line
/-
auto_direct
Step : 6
(on host2)
Edit the file /etc/auto_direct and add the following
line
/usr/share/man
host1:/usr/share/man
Step : 7
Run the automount command
# automount
-v
Step :
8
Issue a Man command in host2 and the man pages will be
listed
# man ls
Step :
9