# VPS Servers

Setting up a Datagram node on a VPS is quick and straightforward. Follow the steps below to install, configure, and verify your node as a **Partner Substrate**, allowing you to contribute compute resources and earn rewards.

### Prerequisites

* A VPS server (Ubuntu or compatible Linux distribution)
* Root access or a user with **sudo** privileges
* Your VPS IP address
* A Datagram account

Let’s get started. 🚀

### Setup Instructions

**Step 1:** Open Your Local Terminal (macOS/Linux) or an SSH client like PuTTY (Windows) to begin the setup process.

**Step 2:** Run the following command in your terminal to connect to your VPS:

```
ssh root@<your-server-ip>
```

***Note:** Replace **\<your-server-ip>** with your actual VPS IP address. When prompted, enter your VPS root password.*

**Step 3:** Once you're logged into your VPS, run the command below to download and run the Datagram installer script:

```
wget -O datagram-installer.sh https://gist.githubusercontent.com/datagram-dev/8ef3d7678dc828e45a65a3e955327736/raw/datagram-installer.sh && chmod +x datagram-installer.sh && sudo bash datagram-installer.sh
```

This command will:

* Download the installer script
* Make it executable
* Run the installer with elevated privileges

**Step 4:** During the installation, you’ll be prompted to enter a **License Key**. Enter Your License Key.\
\
For more information on how to get your license key, refer to the section “[Obtain your License Key.](https://docs.google.com/document/d/11wLq0UmTFqpzvH_leSkyJRsywsH3GRgG7-FmVXfIiK8/edit?tab=t.0#heading=h.t3n81owlrg5o)”

**Step 5:** To check the current status of your Datagram node, run:

```
status-datagram
```

This will show whether your node is online, offline, or initializing.

**Step 6:** If the status shows offline, restart the Datagram service by running

```
restart-datagram
```

Then, check the status again by running

```
status-datagram
```

Repeat these commands as needed until the node status shows as online.

**Step 7:** Lastly, go back to the[ Dashboard ](https://dashboard.datagram.network/overview)and confirm that your node is showing as connected. Once connected, it will begin earning points automatically.

<figure><img src="/files/s7TNGBitDLSiL0Yw6FWo" alt=""><figcaption></figcaption></figure>

Your VPS server is now successfully set up as a Partner Substrate in the Datagram Network. It will contribute to the network’s compute capacity and begin earning rewards based on performance and uptime.

### How to Obtain Your License Key

Step 1: Open your browser and [log in/sign](https://staging.datagram.network/wallet?tab=licenses) up for a Datagram account if you haven’t already.\
\
**Step 2:** Navigate to the “**Wallet**” section from the left sidebar, then click on the “**Licenses**” tab at the top to manage your license settings.

<figure><img src="/files/uVxsYYwQaMQY2rZwxlqZ" alt=""><figcaption></figcaption></figure>

**Step 3:** Here, you can copy the License Key displayed on the page. Paste the License Key when prompted to enter a License Key, and press **Enter** to continue.<br>

<figure><img src="/files/P6tnuTjhMIKuECmIEBDP" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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://doc.datagram.network/setup-datagram/partner-substrate-setup/vps-servers.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.
