OpenSUSE Leap 15: TFTPサーバのatftpをインストールする


Table of Contents

1 atftpをインストールする

atftpパッケージをインストールします。デフォルトで /srv/tftpbootがTFTPサーバのディレクトリとして使われます。

> sudo zypper -n in atftp> sudo systemctl enable atftpd.socket> sudo systemctl start atftpd.socket> sudo firewall-cmd –add-service=tftp –permanent> sudo firewall-cmd –reload

2 atftpでファイルをGETする

/srv/tftpbootにファイルを置きます。

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

TFTPクライアントのatftpでTFTPサーバからファイルをGETします。

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

Android | Linux | SDL - Narrow Escape