referenced from: https://www.linuxidc.com/Linux/2016-07/133255.htminstalling TFTP in Ubuntu 16.041. Installation$ apt-get Install TFTP-HPA TFTPD-HPA2. Create a directory$ Mkdir/tftpboot # This is the set up TFTP transfer directory. $ sudo chmod 0777/tftpboot$ sudo touch test.txt # test.txt file Best input content to differentiate3. Configuration# vi/etc/default/tftpd-hpatftp_username= "tftp" tftp_directory= "/tftpboot" # here is your TFTPD-HPA service directory, this is where you want to build TFTP_ address= "0.0.0.0:69" tftp_options= "-l-c-S" # Here is the option,-C is the parameter that can upload the file,-S is the specified TFTPD-HPA service directory, the above has been specified4. Restart the service$ sudo service tftpd-hpa Restart # Boot services, here to be aware, adopt the standalone service form.5. Testing# cd/home# tftp localhost #localhost means native tftp>get test.txt//test.txt is a newly created file in/tftpboot directory Tftp>put test1.txt/ /test1.txt is the new file in the/home directory Tftp>q exit, there will be a test.txt file under the/home directory, test1.txt in the/tftpboot directory, indicating that the TFTP server installation was successful!
Installing TFTP in Ubuntu 16.04