ArchLinux 2017.10.01: Install tftp-hpa for TFTP server

This article will describe installing tftp-hpa for TFTP server.

1 Install tftp-hpa

Install tftp-hpa package. /srv/tftp is used for TFTP server directory.

$ sudo pacman -Sy --noconfirm tftp-hpa
$ sudo systemctl enable tftpd
$ sudo systemctl start tftpd

2 GET file with tftp

Put file to /srv/tftp.

$ echo "hello" | sudo tee /srv/tftp/hello.txt

Get file with tftp from TFTP server.

$ echo "get hello.txt" | tftp 127.0.0.1
tftp> get hello.txt
tftp>
$ cat hello.txt
hello