After installing Ubuntu, we found that the installation of tftpserver is different from that of Ubuntu earlier. But the basic difference is not big. Step 1: Execute sudoapt-getinstallxinetd2. Execute sudoapt-getinstalltftp-hpa3. Execute vi/etc/default/tftpd-hpa modify tftpboot path for your own tftp
Install the new Ubuntu 11.04 version. It is different from the previous version of Ubuntu to install the tftp server. But the basic difference is not big.
The procedure is as follows:
1. Run sudo apt-get install xinetd.
2. Run sudo apt-get install tftp-hpa.
3. Run vi/etc/default/tftpd-hpa
Modify the tftpboot path for your own tftpboot path. I am in the root directory.
The modification is as follows:
1 #/etc/default/tftpd-hpa
2
3 TFTP_USERNAME = "tftp"
4 TFTP_DIRECTORY ="/Tftpboot"
5 TFTP_ADDRESS ="127.0.0.1: 69"
6 TFTP_OPTIONS = "-- secure"
4. Run sudo/etc/init. d/tftpd-hpa start
The following error is returned:
Rather than invoking init scripts through/etc/init. d, use the service (8)
Utility, e.g. service tftpd-hpa start
Since the script you are attempting to invoke has been converted to
Upstart job, you may also use the start (8) utility, e.g. start tftpd-hpa
In the old version, tftp server cannot be started in this way. The following command should be used for [Linux community www.linuxidc.com:
Service/etc/init. d/tftpd-hpa start
5. Run sudo service/etc/init. d/tftpd-hpa start
The following message is displayed:
Tftpd-hpa start/running, process 17318
Run successfully.
6. In the/tftpboot directory, create a file named test.
Execute tftp localhost
Tftp> get test
Tftp> q
Albert @ albert-virtual-machine :~ /Src/app_linux/pld_service $ ls
Test
Test successful!