Device Connection: Crossover cable serial cable USB cable power line network settings: Notebook Ubuntu:wifi, set IPv4 set "local connection only", do not automatically, at this time WiFi is turned off ifconfig view PC Address inet/ip:169.254.9.78 Mask/mask;255.255.0.0 broadcast address: 169.254.255.255 Development Board Default: 192.168.1.230 set both in the same network segment: Modify the Board:/etc/ eth0-setting change its IP address to the ipip:169.254.9.100mask;255.255.0.0gateway:169.254.255.255dns:169.254.255.255mac you want to set; Hardware address Restart the Development Board, using the Ifconfig command, we found that the IP address has been modified. Ping through each other. Press CTRL + C to stop or PING-C 5 IP to specify the number of packets sent to build NFS:
Installation: sudo apt-get install nfs-kernel-server Nfs-common portmap
Configuration: Vim/etc/exports
/home/mrwang/nfs * (Rw,sync,no_subtree_check)
1.sudo/etc/init.d/rpcbind Restart Note: NFS is an RPC program that needs to map a good port before using it and set it through Portmap. This is rpcbind2. #sudo/etc/init.d/nfs-kernel-server Restart <---Restart NFS service 3. #showmount-E <---Show shared out directory native test: #sudo mount-t NFS localhost:/home/wang/nfs/mnt or: sudo mount 127.0.0.1:/home/wang/nfs/mntcd/m NTLS Note: localhost is the IP address of native Linux so the shared directory is attached to the/MNT directory, and the mount is canceled: #sudo umount/mnt Note: Due to the current operation in the MNT directory, Umount.nfs:/mnt: Device is busy only need to exit the MNT directory when executing the umount command. Mount the Development Board: if mounted on an embedded device, add the parameter-o nolock the Mount command I used on the Development Board: MOUNT-T Nfs-o nolock 169.254.9.78:/home/wang/nfs/mnt This mount is complete and can be viewed by itself.
CP File to/home
Open the RCS in the ETC/INIT.D.
Add a path at the end:
/home/hello
At this point, the implementation of its own written application code.
NFS Mount for tiny_4412