> For the complete documentation index, see [llms.txt](https://dev.solid-run.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.solid-run.com/other-articles/setting-tftp-server.md).

# Setting TFTP Server

### For Ubuntu

1. Install the TFTP Server

```
sudo apt update
sudo apt install tftpd-hpa
```

2. Configure the TFTP Server

`sudo nano /etc/default/tftpd-hpa`

```
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/tftpboot"
TFTP_ADDRESS=":69"
TFTP_OPTIONS="--secure"
```

Save and close the file.

3. Create and Set Permissions for the TFTP Root Directory

```
sudo mkdir /var/tftpboot
sudo chown tftp:tftp /var/tftpboot
sudo chmod -R 775 /var/tftpboot
```

4. Restart the TFTP Service

```
sudo systemctl restart tftpd-hpa
```

5. Check the Status of the TFTP Service

```
sudo systemctl status tftpd-hpa
```

### For any distro using the docker

1. Create and Set Permissions for the TFTP Root Directory if needed

```
sudo mkdir /var/tftpboot
sudo chmod -R 775 /var/tftpboot
```

2. Run the tftp docker container:

```
docker run -p 0.0.0.0:69:69/udp -v /var/tftpboot:/var/tftpboot -i -t pghalliday/tftp
```

### For Windows

1. [Download](https://bitbucket.org/phjounin/tftpd64/downloads/) and install tftpd64
2. Select the network and directory with the files you need to transfer

![image-20240513-101152.png](https://1160211108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCsmHoAD7oNPYQbYxSWHU%2Fuploads%2Fgit-blob-b4cb7b2f014816936b43e87d3bb309fb61d9ebd8%2Fimage-20240513-101152.png?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://dev.solid-run.com/other-articles/setting-tftp-server.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
