Related reading: Ubuntu 10.04 embedded development environment Configuration
1. install and configure to start the FTP service
Sudo apt-get install vsftpd
Modify the configuration file of vsftpd and remove "#" from the following lines.
# Local_enable = YES
# Write_enable = YES
2. install and configure to start the ssh service
Sudo apt-get install openssh-server
Default Configuration
3. install and configure to start the nfs service
Sudo apt-get install nfs-kernel-server portmap
Add the following content to its configuration file/etc/exports. For more information, see System Access/home/change/work/nfs_root.
/Home/change/work/nfs_root * (rw, sync, no_root_squash)
/Home/change/work/nfs_root/rootfs_dir * (rw, sync, no_root_squash)
After modification, run the following command to restart nfs:
Sudo/etc/init. d/nfs-kernel-server restart
Ls/mnt
Sudo mount-t nfs localhost:/home/change/work/nfs_root/mnt/
Ls/mnt
If no error message is displayed, you can view the content and
/Home/change/work/nfs_root is consistent
Nfs boot System
Set bootargs root =/dev/nfs nfsroot = 192.168.1.112:/home/change/work/nfs_root/fs_mini_mdev_new \
Nolock ip = 192.168.1.17: 192.168.1.112: 192.168.1.1: 255.255.255.0: eth0: off init =/linuxrc console = ttySAC0, 115200
4. install and configure to start the tftp service
(1) install the tftp server and the client
Sudo apt-get install tftp tftpd
// Sudo apt-get install tftpd-hpa installation enhanced version suddenly appears
// Sudo apt-get install tftp-hpa Error code 1: File not found
(2) install xinetd
Sudo apt-get install xinetd
// (3) Add the file tftpd under/etc/xinetd. d/. This step is ignored.
// Cd/etc/xinetd. d/
// Sudo touch tftpd
(4) create a configuration file,/etc/xinetd. d/tftp, and write the content
Service tftp
{
Socket_type = dgram
Protocol = udp
Wait = yes
User = root
Server =/usr/sbin/in. tftpd
Server_args =-s/home/change/work/tftpboot/
Disable = no
Per_source = 11
CPIs = 100 2
Flags = IPv4
}
The/home/change/work/tftpboot directory set by server_args is the directory of the tftp server, and the access permission is set to 777:
Sudo mkdir-pv/home/change/work/tftpboot/
Sudo chmod 777/home/change/work/tftpboot/
(5) Restart tftp
Sudo/etc/init. d/xinetd restart
(6) Local test. Create a ky file in the/tftpboot directory, start another terminal, and enter:
Tftp 127.0.0.1
Tftp> get ky // get the ky File
Tftp> q
Ls // it will show the just arrived ky