> 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.
