1. Install the required software tftp
tftp-hpa: client software; sudo APT- GET install tftp- HPA the tftpd -hpa: a service program; sudo APT- GET install tftpd- HPA xinetd: a new generation of process daemon. APT sudo - GET install xinetd
2. Configure xinetd.conf profile
Into the / etc directory, the directory first to see there a xinetd.conf file, if not the new one any view its contents:
hyx@hyx:tftp$ cat xinetd.conf
See whether consistent with the following contents as follows:
If not consistent, run the following command to modify the same.
# Simple configuration file for xinetd # # Some defaults, and include /etc/xinetd.d/ defaults { # Please note that you need a log_type line to be able to use log_on_success # and log_on_failure. The default is the following : # log_type = SYSLOG daemon info } includedir /etc/xinetd.d
3. Configure tftpd-hpa profile
hyx@hyx:tftp$ sudo gedit /etc/default/tftpd-hpa
# /etc/default/tftpd-hpa TFTP_USERNAME="tftp" TFTP_DIRECTORY="/home/hyx/tftp" TFTP_ADDRESS="0.0.0.0:69" TFTP_OPTIONS="-l -c -s"
chmod 777 /home/hyxtftp/
4. Profile of the tftp
Enter / etc xinetd.d following folder to see if there is a tftp file, if not, create a new one and enter the following, if any, to see whether the content is consistent with the following inconsistency is modified as follows:
service tftp { disable = no socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /tftpboot -c per_source = 11 cps = 100 2 flags =IPv4 }
hyx@hyx:service tftpd-hpa restart hyx@hyx:/etc/init.d/xinetd reload hyx@hyx:/etc/init.d/xinetd restart