OpenSUSE Leap 42: Install tftp for TFTP server

Table of Contents

1 Install tftp

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

$ sudo zypper -n in tftp$ sudo systemctl enable tftp.socket

Open TFTP port.

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

Reboot for tftp.socket.

$ sudo reboot

2 GET file with tftp

Put file to /srv/tftpboot.

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

Get file with tftp from TFTP server.

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

Android | Linux | SDL - Narrow Escape