After learning embedded for so long, I finally started debugging the board. When debugging and referencing a program, I needed Network File System nfs, in this way, you do not need to download the program to the Board every time you compile it. You can download the program directly through the network, which is very convenient. However, my memory is really poor, so I recorded the nfs configuration process for future reference. Configuration process of nfs servers in Ubuntu 1. Install nfs servers and clients sudoapt-getinstallnfs-kernel-servern
After learning embedded for so long, I finally started debugging the board. When debugging and referencing a program, I needed Network File System nfs, in this way, you do not need to download the program to the Board every time you compile it. You can download the program directly through the network, which is very convenient.
However, my memory is really poor, so I recorded the nfs configuration process for future reference.
Configuration process of nfs server in Ubuntu
1. Install the nfs server and client
Sudo apt-get install nfs-kernel-server nfs-common portmap
2. Configure portmap either.
(1) Remove sudo vim/etc/default/portmap-I 127.0.0.1
(2) Select "no" for sudo dpkg-reconfigure portmap"
3. Configure the Mount directory and permissions
Vim/etc/exports
Add/nfsroot * (rw, sync) # nfsroot as the root directory of the nfs server.
4. Update the exports file
Sudo exportfs-r
Errors may occur in steps 2 and 4. Ignore them.
5. Restart the nfs service.
Sudo/etc/init. d/portmap start
Sudo/etc/init. d/nfs-kernel-server
Just restart it.
In this way, the nfs server has been installed. Next we can test sudo mount 127.0.0.1:/nfsroot/mnt.
Related reading:
Build nfs server http://www.linuxidc.com/Linux/2012-10/71930.htm in Ubuntu
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2