> For the complete documentation index, see [llms.txt](https://validators.spicenet.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://validators.spicenet.io/set-up-your-validator-node/publish-your-docs.md).

# 2.2 Setting Up Your Environment

### Operating System Setup

1. If you haven't already, install Ubuntu 20.04 LTS on your machine.
2. Update your system:

```bash
sudo apt update && sudo apt upgrade -y
```

### Installing Dependencies

1. Install necessary packages:

```bash
sudo apt install -y build-essential git curl
sudo apt install -y pkg-config libssl-dev clang postgresql
```

2. Install Rust:

```bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```

3. Add Rust to your path:

```bash
source $HOME/.cargo/env
```

#### Setting Up Firewall

If you're using UFW (Uncomplicated Firewall), allow SSH connections:

```bash
sudo ufw allow ssh
```

We'll open specific ports for Spicenet later in the configuration process.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://validators.spicenet.io/set-up-your-validator-node/publish-your-docs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
