> ## Documentation Index
> Fetch the complete documentation index at: https://docs.peaq.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Setup a Node

## Recommended Hardware Requirements

* **OS**: Ubuntu 20.04
* **CPU**: 3.3 GHz AMD EPYC 7002
* **Storage**: 1TB SSD
* **Memory**: 8GB RAM

For example, the `c5ad.xlarge` machine from AWS suffices these requirements.

The above specifications have been **tested** and **proven** by peaq's engineering team to produce reliable results over time.
While these are recommended, you can experiment with other configurations to **optimize** for cost and performance.

## Set up a Node

1. Stop your docker container if running an older version (remember to keep the docker volume).
2. Copy the docker image from below.
3. Remove `-unsafe-rpc-external` and `-rpc-methods=unsafe` from your node (if you already generated session keys previously).
4. Run your updated image again.
5. Install Docker on your VM ([how to install Docker on Ubuntu](https://docs.docker.com/engine/install/ubuntu/)).
6. Create and run the container from **the validator node** image using the following command.

```bash theme={"theme":{"light":"github-light-default","dark":"github-dark"}}
sudo docker run -d -v peaq-storage:/chain-data -p 9944:9944 peaq/parachain:peaq-v0.0.110 \
--collator \
--parachain-id 3338 \
--chain ./node/src/chain-specs/peaq-raw.json \
--base-path chain-data \
--port 30333 \
--rpc-port 9944 \
--rpc-methods=unsafe \
--unsafe-rpc-external \
--runtime-cache-size 64 \
--rpc-cors=all \
--execution=wasm \
--out-peers 50 \
--in-peers 50 \
-- \
--execution wasm \
--port 30343 \
--sync fast \
--rpc-port 9977
```

7. Wait until your validator node **syncs** with the blockchain (both Polkadot
   Relay Chain and peaq parachain block history). It may take a **few hours**
   and will depend on your connection speed. A fully synced node will look
   like this:

<img src="https://mintcdn.com/peaq/2Vy2W4qW7FfmdArp/assets/img/validator-2.png?fit=max&auto=format&n=2Vy2W4qW7FfmdArp&q=85&s=6aee1f92610d05c614d3ea119c40a0ff" alt="validator-2" width="2117" height="66" data-path="assets/img/validator-2.png" />
