[Related information]
Os:linux version 3.14-kali1-686-pae
Why use NFS
When doing sama5d3 xplained development, each debug program must do two things, the first step: put the compiled program into the TFTP directory, the second step: in the Development Board
Side via Tftp-g-L program name 192.168.1.25来 download
And after the use of NFS, the Development Board side as long as the host's NFS directory mounted under the local/mnt, each compiled program directly dropped in the host's NFS directory, and the corresponding Development Board side can be/mnt under the latest program, efficiency has improved.
[Installation configuration for NFS Server]
Installation
sudo Install sudoinstall nfs-kernel-server Nfs-common
Configuration
sudo nano/etc/exports
Add in Exports
/var/nfs 192.168. 1. * (rw,sync, No_subtree_check)
192.168.1.x means all IP 192.168.1.2 to 192.168.1.254 can be accessed
RW indicates read and Write permissions
Sync indicates that the content in memory is synchronized with the contents of the hard drive when writing
No_subtree_check improve efficiency without detecting subdirectories
Related services Restart
sudo /etc/init.d/sudo /etc/init.d/nfs-kernel-server restart
[Test NFS Configuration]
$sudomount192.168. 1.25:/var/nfs/mnt/touch /var/nfs/ls /mnt/
Tt.c
The above verification indicates that the NFS server has been built.
Linux NFS File Server installation configuration