# Setup

These instructions will help you set up a new Nomic Stakenet node from scratch. If you are already running an older Nomic node, follow the [upgrade instructions](https://docs.nomic.io/network/running-a-node/upgrading) instead.

### Requirements

* \>= 4GB RAM
* \>= 100GB of storage
* Linux or macOS

### 1. Build Nomic

Start by building Nomic.

1. Install rustup if you haven't already:

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

2. Install required dependencies:

**Ubuntu/Debian:**

```bash
sudo apt install build-essential libssl-dev pkg-config clang
```

**Fedora:**

```bash
sudo dnf install clang openssl-devel && sudo dnf group install "C Development Tools and Libraries"
```

3. Clone the repo and switch to the correct directory and branch:

```bash
git clone https://github.com/nomic-io/nomic.git
cd nomic
git checkout v9.0.0
```

4. Build and install. This adds a `nomic` command to your PATH:

```bash
cargo install --locked --path .
nomic --version
```

### 2. Run your node

Start your Nomic node:

```bash
nomic start
```

This will run the Nomic state machine and a CometBFT process. For new nodes, the state-sync process will run automatically to get the node up to speed with the current chain.
