ElementaryOS 0.4: Install tftpd-hpa for TFTP server


Table of Contents

1 Install tftpd-hpa

Install tftpd-hpa package. /var/lib/tftpboot is used for TFTP server directory.

$ sudo apt install -y tftpd-hpa$ sudo systemctl enable tftpd-hpa$ sudo systemctl restart tftpd-hpa

2 GET file with tftp

Install tftp-hpa package.

$ sudo apt install -y tftp-hpa

Put file to /var/lib/tftpboot.

$ echo “hello” | sudo tee /var/lib/tftpboot/hello.txt

Get file with tftp from TFTP server.

$ echo “get hello.txt” | tftp 127.0.0.1tftp> get hello.txttftp>$ cat hello.txthello

Android | Linux | SDL - Narrow Escape