After Ubuntu is upgraded to version 10.04, the original TFTP configuration is no longer applicable, and the TFTP server of this version has become more powerful. The specific features are not described here. For more information, see related documents. Here we mainly record how to configure TFTP in 10.04. The detailed process is as follows:
1 install TFTP-HPA and tftpd-HPA
Sudo apt-Get install TFTP-HPA tftpd-HPA
2. Configure the tftpd-HPA configuration file
After installing the above two files, you must modify the tftpd-HPA configuration file. The configuration file is/etc/default/tftpd-hPa.
Open the configuration file: sudo Vim/etc/default/tftpd-HPA
Modify to the following:
#/Etc/default/tftpd-HPA
Tftp_username = "TFTP"
Tftp_directory = "/home/CPC/tftpboot" // here is your tftpd-HPA service directory. I create tftpboot as the server directory under the user's CPC directory
Tftp_address = "0.0.0.0: 69"
Tftp_options = "-l-C-s" // here is the option
3. Start the TFTP service
Run sudo service tftpd-HPA restart
4. test whether the TFTP configuration is successful or not.
CD/home/CPC/tftpboot
Touch aa.txt bb.txt // put two files on the server
CD/home
TFTP localhost // enter the FTP server
Get aa.txt bb.txt // download the file from ftp
View the files aa.txt bb.txt in the/homedirectory. If yes, the files will succeed. Or you can perform the following test:
Write a file hello. c In the/home directory first.
Log on to the TFTP server (according to the above method), and then set hello. c upload, that is, put hello. c. Go to the home directory/home/CPC/tftpboot where TFTP is located and check whether the file hello is available. c exists. If yes, the operation is successful.