Friday, 20 June 2014

Install TFTP Server in Ubuntu 14.04


1. Install the package.

$ sudo apt-get install tftpd-hpa

2. Edit config file as follows.

$ 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 -l"

Note: -l for listening all time this avoided the timeout issue, -c to create files in tftfp folder.

3. Create TFTP folder.

sudo mkdir /tftpboot
$ sudo chmod -R 777 /tftpboot
$ sudo chown -R nobody /tftpboot

4. Finally restart the app to apply new configuration. 

sudo service tftpd-hpa restart