ArchLinux 2017.10.01: Install atftp for TFTP server

This article will describe installing atftp for TFTP server.

1 Install atftp

Install atftp package. /srv/atftp is used for TFTP server directory.

$ sudo pacman -Sy --noconfirm atftp
$ sudo systemctl enable atftpd
$ sudo systemctl restart atftpd

2 GET file with atftp

Put file to /srv/atftp.

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

Get file with atftp from TFTP server.

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