The tiny6410 Development Environment officially recommended by FriendlyArm is Fedora9, and the related NFS configuration is also based on Fedora9. Although it is convenient to write NFS startup parameters to Nand through Superboot, it is not easy to understand NFS principles. But I still like Ubuntu. Take the latest Ubuntu11.04 as an example to configure the NFS connection of the Development Board. My Development Board IP address is 192.168.1.230ubuntu system IP address is 192.168.1.10
The tiny6410 Development Environment officially recommended by FriendlyArm is Fedora9, and the related NFS configuration is also based on Fedora9. Although it is convenient to write NFS startup parameters to Nand through Superboot, it is not easy to understand NFS principles. But I still like Ubuntu. Take the latest Ubuntu 11.04 as an example to configure the NFS connection of the Development Board.
My Development Board IP address is 192.168.1.230 ubuntu system IP address is 192.168.1.102, under the same switch. The NFS directory in ubuntu is/home/nfsdir.
[1] installing the NFS service in Ubuntu
For detailed installation steps for NFS services under ubuntu, see http://www.linuxidc.com/Linux/2010-05/26206.htm
Procedure:
Apt-get install nfs-kernel-server
Apt-get install nfs-commmon
// I am a root account. If not, add sudo.
[2] Configure NFS
Configure portmap
Method 1: edit/etc/default/portmap and comment out the last line.
Method 2: $ sudo dpkg-reconfigure portmap, shocould portmap be bound to the loopback address? Select N.
Configure/etc/hosts. deny
(Prohibit any host (host) from connecting to your NFS server), add:
### NFS DAEMONS
Portmap: ALL
Lockd: ALL
Mountd: ALL
Rquotad: ALL
Statd: ALL
Configuration/etc/hosts. allow
Allow hosts you want to establish connections with your NFS server. The following steps allow any host whose IP address starts with 192.168.1 (connected to the NFS server), or specify a specific IP address. See hosts_access (5) and hosts_options (5) on the man page ). Join:
### NFS DAEMONS
Portmap: 192.168.1.
Lockd: 192.168.1.
Rquotad: 192.168.1.
Mountd: 192.168.1.
Statd: 192.168.1.
Configure/etc/exports
The NFS mount directory and permissions are defined by the/etc/exports file.
For example, to share the IP address of 192.168.197. * In the/home/liliming/arm2410 directory in my home directory, add the following statement at the end of the file:
/Home/nfsdir 192.168.1. * (rw, sync, no_root_squash)
Or:/home/nfsdir 192.168.197.0/24 (rw, sync, no_root_squash)
Or simply allow access from all IP addresses. No security considerations are required.
/Home/nfsdir * (rw, sync, no_root_squash)
[4] restart the nfs service
See the http://www.linuxidc.com/Linux/2010-05/26206.htm practice, but the simpler way is to log out and log on again :)
[5] initiate an NFS connection from the Development Board
Go to the Development Board command line:
Mount-t nfs-o nolock 192.168.1.102:/home/nfsdir/mnt/remotdir
In this way, you can see the content under the nfs directory "/home/nfsdir" of the ubuntu host (under the Development Board/mnt/remotedir). to disconnect the NFS Directory, umount/mnt/remotedir