tftpd server - ArchWiki

# tftpd server

This article is a stub.

Notes: please use the first argument of the template to provide more detailed indications. (Discuss)

The Trivial File Transfer Protocol (TFTP) provides a minimalistic means for transferring files. It is generally used as a part of PXE booting or for updating configuration and firmware on devices which have limited memory such as routers and printers.

This article describes how to set up a tftpd server under Arch Linux using the tftp-hpa package.

## Installation

Install the package tftp-hpa which can be found in the official repositories.

## Configuration

Create a copy of the `tftpd.service` unit, and modify `ExecStart` with the appropriate directory to use as the tftp root.

    /etc/systemd/system/tftpd.service

    [Unit]
    Description=hpa's original TFTP daemon

    [Service]
    ExecStart=/usr/bin/in.tftpd -s /srv/tftp/
    StandardInput=socket
    StandardOutput=inherit
    StandardError=journal

Systemd#Editing_provided_unit_files talks in more detail about customizing unit files.

## Run

Start and enable `tftpd.socket`.

Category:

- File Transfer Protocol