| |
a simple example to build nfs from the bare linux between debain and arm target board.
#aptitude install nfs-common or #apt-get install nfs-common nfs-kernel-server portmap
#aptitude install nfs-kernel-server portmap or #apt-get install nfs-kernel-server portmap
#su
#cd /etc/init.d/
#./ nfs-kernel-server start
easy to setting just modify the export and do not care /etc/host
#vim /etc/exports
you need to add your nfs folder in this files:
/YouHost/nfs_serverfolder *(rw,no_all_squash,no_root_squash,sync,nohide) -> [hsy75] this settings give the folder the most easy access but less safty
for more safty you need modify the /etc/host
maybe you can use
#chmod o + rwx /your_nfs_folder
in debain your folder will change to green color sometime after your settings finished.
you can nfs mount your host files for test nfs start is ok or not
#mount -t nfs yourhostip:/nfstestfoler /mnt
and then you can check your mounted nfs folder in /mnt
after test use unmount to cut the nfs share
this chapter is written by huang.makin@gmail.com 2012-09