1. Install
Sudo apt-Get install tftpd-hpa tftp-HPA
2. Configuration
Sudo gedit/etc/default/tftpd-HPA
#/Etc/default/tftpd-HPA
Tftp_username = "TFTP"
Tftp_directory = "/opt/tftpboot" // enter your TFTP service directory
Tftp_address = "0.0.0.0: 69"
Tftp_options = "-l-C-s"
Option reference
Options
-L
Run the server in standalone (Listen) mode, rather than run from inetd. in listen mode, the-T option is ignored, and the-A option can be used to specify a specific local address or port to listen.
-A [address] [: Port]
Specify a specific address and port to listen to when called with the-L option. the default is to listen to the TFTP port specified in/etc/services on all local addresses. IP address and port of listen
-C
Allow new files to be created. by default, tftpd will only allow upload of files that already exist. files are created with default permissions allowing anyone to read or write them, unless the-P or-u options are specified.
-S
(Decide the tftp root directory) Change root directory on startup. this means the remote host does not need to pass along the directory as part of the transfer, and may add security. when-S is specified, exactly one directory shocould be specified on the command line. the use of this option is recommended for security as well as compatibility with some boot ROMs which cannot be easily made to include a directory name in its request.
Restart OK
Note: For versions earlier than 10.04, use the following Configuration:
Run_daemon = "yes"
Options = "-l-C-S/tftpboot"
3. Start the service
Sudo service tftpd-HPA restart
4. Test
CD/opt/tftpboot
Touch tftp_down.txt
Echo I am an TFTP download test Doc! > Tftp_down.txt
Cd ~ /
TFTP localhost
Get test.txt
Likewise! Put a tftp_up file to test.