Simple NFS configuration is a simple method for communication between two hosts. In the embedded Linux experiment, we configure NFS to implement
Simple NFS configuration
NFS is a simple method for communication between two machines. In the embedded Linux experiment, we configure NFS to implement access between the PC and the ARM-Linux platform in the experiment box. The principle is to enable the LFS service in PC Linux and set a shared directory (here/arm2410). all source code editing changes can be easily modified in PC, in the ARM-Linux experimental environment, remotely mount the/arm2410 directory of PC-Linux to the local machine to implement synchronous read/write access between the two machines, in this way, the program can easily run the test in ARM-Linux. Simply put, the purpose is to set up a shared directory, edit it in PC-Linux, and run debugging in ARM-Linux.
Configuration process: (NFS is installed by default, and the IP address of PC-Linux is 192.168.136.6)
1. # After ntsysv is run, Select
Nfs option. cancel the [] iptables option.
2. run the security level and firewall to set the security level. Firewall: Disable
3. run server settings-NFS to add NFS.
Directory:/arm2410;
Host: 192.168.136 .*;
Basic Permissions: read/write; ----- rw
General options: default (select Sync write request); ------- sync
User Access: The remote root directory User is selected as the local root directory User; -------- no_root_squash
Manual modification:
# Cat>/etc/exports <"EOF"
>/Arm2410 192.168.136. * (rw, sync, no_root_squash)
4. simple testing of NFS configuration
Mount/arm2410 of PC-Linux to the/mnt Directory through remote access, and check whether the/arm2410 content is in the/mnt Directory. If yes, the configuration is successful.
# Mount 192.168.136.6:/arm2410/mnt
# Ls/mnt
Note:You can also choose not to set the firewall level. in this article, it is set to reduce firewall blocking and Mount failure occurs.