Install tftpd-hpa server on Ubuntu 14.04
$ apt-get install tftpd-hpa
The TFTP server can be started by one of two ways:
In the first case, running as daemon, the line starting with tftp in /etc/inetd.conf has to be commented (described here for openbsd-inetd or compatible):
#tftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpboot
and it has to be enabled in the init script's configuration /etc/default/tftpd-hpa:
# /etc/default/tftpd-hpa
RUN_DAEMON="yes"
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_ADDRESS="[::]:69"
TFTP_OPTIONS="--secure"
In the second case, running via inetd, the line starting with tftp in /etc/inetd.conf has to be uncommented (for Debian's default inet daemon openbsd-inetd):
tftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpboot
And it has to be disabled in the init script's configuration /etc/default/tftpd-hpa:
RUN_DAEMON="no"
The root directory from where files can be downloaded by a client defaults to /var/lib/tftpboot. It can be changed to, e.g., to /new/tftp/root, if required.
Finally, restart the service tftpd-hpa:
#
service tftpd-hpa restart