Ubuntu / Debian Linux: Install and Setup TFTPD Server

Ubuntu / Debian Linux: Install and Setup TFTPD Server

To install and set up a Trivial File Transfer Protocol (TFTP) server on Ubuntu or Debian Linux, follow these steps:

  1. Install the tftpd-hpa package using the package manager:
refer‮‬ to:lautturi.com
sudo apt update
sudo apt install tftpd-hpa
  1. The TFTP server daemon, tftpd-hpa, runs as the tftp user. Create a directory for the TFTP server to use as its root directory and set the ownership to the tftp user:
sudo mkdir /tftpboot
sudo chown tftp:tftp /tftpboot
  1. Edit the /etc/default/tftpd-hpa file and set the TFTP_DIRECTORY option to the path of the root directory you created in step 2:
TFTP_DIRECTORY="/tftpboot"
  1. Start the tftpd-hpa daemon:
sudo systemctl start tftpd-hpa
  1. To allow the TFTP server to bind to a non-loopback IP address, you will need to edit the /etc/default/tftpd-hpa file and set the TFTP_ADDRESS option to the desired IP address. For example:
TFTP_ADDRESS="192.168.1.10"
  1. Restart the tftpd-hpa daemon to apply the changes:
sudo systemctl restart tftpd-hpa

The TFTP server should now be running and available to clients. To transfer files to or from the TFTP server, you can use a client such as tftp.

Created Time:2017-10-30 14:27:28  Author:lautturi