ArchLinux 2018.10.01: TFTPサーバのtftp-hpaをインストールする


Table of Contents

1 tftp-hpaをインストールする

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

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

2 tftpでファイルをGETする

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

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

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

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

Android | Linux | SDL - Narrow Escape