Install the tftpd-hpa package
Edit tftpd-hpa config file
Create TFTP folder.
Restart the tftpd-hpa service.
Verify that the tftpd-hpa service is running.
[root@glt ~]# sudo apt-get install tftpd-hpa
[root@glt ~]# sudo vi /etc/default/tftpd-hpa
# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-s -c -4"
-s Prevents the remote host from passing along the directory as part of the transfer.-c Allow new files to be created.
-4 Connect with IPv4 only.
[root@glt ~]# sudo mkdir /tftpboot [root@glt ~]# $ sudo chmod -R 777 /tftpboot [root@glt ~]# $ sudo chown -R nobody /tftpboot
[root@glt ~]# sudo service tftpd-hpa restart
[root@glt ~]# ps -ef | grep tftp
root 16177 1 0 20:42 ? 00:00:00 /usr/sbin/in.tftpd --listen --user tftp --address 0.0.0.0:69 -s -c -4 /tftpboot