Environment: Ubuntu10.04 step: 1. sudoapt-getinstallportmap2.sudoapt-getinstallnfs-kernel-server Note: Step 1 I failed to install, after changing the source is still so, finally I search for nfs-kernel-server in the new, installed successfully 3. create a shared directory in the directory: mkdir/forlinux4.gedit/etc/exp
Environment: Ubuntu 10.04
Steps:
1. sudo apt-get install portmap
2. sudo apt-get install nfs-kernel-server
Note: in step 2, I failed to install the nfs-kernel-server, which is still the case after the source change. Finally, I searched for nfs-kernel-server in the new version. The installation was successful.
3. Create a shared directory in the directory: mkdir/forlinux
4. gedit/etc/exprots, add/forlinux 192.168.0. * (rw, sync, no_root_squash)
5. Disable the firewall: sudo iptables-F
6. Start nfs:
/Etc/init. d/portmap restart
/Etc/init. d/nfs-kernel-server restart
Done.
Next, use local mounting to test whether the connection is successful.
Sudo mount 192.168.0.239:/forlinux/mnt
If it fails, try the following command:
Sudo mount-o nolock 192.168.0.239:/forlinux/mnt
In the/mnt directory, you can see the content in the/forlinux folder.
Stop mounting:
Sudo umount/mnt
TIPS:
Nfs has been installed under Fedora 12. Open it in service options.