OpenSUSE Leap 42: Install atftp for TFTP server


Table of Contents

1 Install atftp

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

$ sudo zypper -n in atftp$ sudo systemctl enable atftpd.socket

Open port for atftp.

$ for t in FW_CONFIGURATIONS_EXT FW_CONFIGURATIONS_DMZ FW_CONFIGURATIONS_INT; do sudo sed -e “s/^${t}=”(.*)”/${t}=”1 atftp”/g” -i /etc/sysconfig/SuSEfirewall2done$ sudo systemctl restart SuSEfirewall2

Reboot for atftpd.socket.

$ sudo reboot

2 GET file with atftp

Put file to /srv/tftpboot.

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

Get file with atftp from TFTP server.

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

Android | Linux | SDL - Narrow Escape