arch-wiki-md-repo
Version:
All arch-wiki articles in markdown format, updated every two days.
53 lines (31 loc) • 1.88 kB
Markdown
The [Trivial File Transfer Protocol](https://en.wikipedia.org/wiki/Trivial_File_Transfer_Protocol "wikipedia:Trivial File Transfer Protocol") (TFTP) provides a minimalistic means for transferring files. It is generally used as a part of [PXE](/index.php/PXE "PXE") booting or for updating configuration and firmware on devices which have limited memory such as routers, IP phones and printers.
## Contents
* [1 Server](#Server)
* [1.1 tftp-hpa](#tftp-hpa)
* [1.2 atftp](#atftp)
* [1.3 dnsmasq](#dnsmasq)
* [2 Client](#Client)
* [2.1 tftp-hpa](#tftp-hpa_2)
* [2.2 curl](#curl)
## Server
There are several TFTP server implementations, some are listed below and [iputils](https://www.archlinux.org/packages/?name=iputils) also includes a version of tftp.
**Note:** Make sure not to start different TFTP implementations at the same time. They will fail with an error `got more than one socket`, because only one may listen to the default TFTP port `69`.
### tftp-hpa
[Install](/index.php/Install "Install") [tftp-hpa](https://www.archlinux.org/packages/?name=tftp-hpa) and then [start](/index.php/Start "Start") `tftpd.service`.
To modify service parameters edit `/etc/conf.d/tftpd`.
### atftp
[Install](/index.php/Install "Install") [atftp](https://www.archlinux.org/packages/?name=atftp) and then [start](/index.php/Start "Start") `atftpd.service`.
To modify service parameters edit `/etc/conf.d/atftpd`.
### dnsmasq
See [dnsmasq#TFTP server](/index.php/Dnsmasq#TFTP_server "Dnsmasq").
## Client
### tftp-hpa
[Install](/index.php/Install "Install") [tftp-hpa](https://www.archlinux.org/packages/?name=tftp-hpa) and then tftp your day away!
```
$ tftp
```
### curl
Standard [curl](https://www.archlinux.org/packages/?name=curl) has an ability to connect to a TFTP server and put on a file via:
```
$ curl -T FILE tftp://HOST
```