# Blockcast Beacon

Register Dashboard

Make sure to register your [Blockcast](https://app.blockcast.network/?referral-code=ESuQld) account first before getting started.

## Update System <a href="#install-dependencies" id="install-dependencies"></a>

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

## Install Prerequisites & Docker

```
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" && sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y
```

## Verify Docker Installation <a href="#download-binary--copy-to-usrbin" id="download-binary--copy-to-usrbin"></a>

```
docker --version
```

{% hint style="info" %}
You should see output like `Docker version 27.1.2, build d01f264`
{% endhint %}

## Install the Blockcast Beacon Docker

```
git clone https://github.com/Blockcast/beacon-docker-compose.git
cd beacon-docker-compose
```

## Run the Blockcast Beacon container

```
docker compose up -d
```

{% hint style="info" %}
Before starting the node, ensure port 8080 is free. If it's in use, edit the configuration file using `nano docker-compose.yml` and change the port mapping from `8080:8080` to `8081:8080`
{% endhint %}

<div align="left"><figure><img src="https://4054216995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FE3O9MktNnMt52XOkMNvH%2Fuploads%2FNn3zfbb2VXblwkIdDGKw%2Fimage.png?alt=media&#x26;token=682de819-fb79-440d-826b-41052e925ae8" alt=""><figcaption></figcaption></figure></div>

## Check Beacon containers

```
docker compose ps -a
```

{% hint style="info" %}
Make sure all containers are running
{% endhint %}

<figure><img src="https://4054216995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FE3O9MktNnMt52XOkMNvH%2Fuploads%2FATGjdtoeDikTxFN9V92b%2Fimage.png?alt=media&#x26;token=aa1c80ba-f693-4ca6-bd02-ea0368f17f65" alt=""><figcaption></figcaption></figure>

## Locate your Node Location

```
curl -s https://ipinfo.io | jq '.city, .region, .country, .loc'
```

## **Generate Hardware ID and Challenge Key**

```
docker compose exec blockcastd blockcastd init
```

1. Copy the Registration URL from the terminal and paste it into your browser to open the Dashboard
2. Your Hardware ID and Challenge Key will be pre-filled. Enter your location from the previous command, then register your Node.

<figure><img src="https://4054216995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FE3O9MktNnMt52XOkMNvH%2Fuploads%2FWnAdSEmSkk3FcJ1aDNYY%2Fimage.png?alt=media&#x26;token=65d7daf1-4a9d-432a-a050-c92ba9a2e846" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
**Backup your private key** (in `~/.blockcast/certs/gw_challenge.key`) and keep it safe with the hardware ID, otherwise you will lose the ability to prove ownership of this device
{% endhint %}

<figure><img src="https://4054216995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FE3O9MktNnMt52XOkMNvH%2Fuploads%2FzWdzvxey70DXirfTtx0v%2Fimage.png?alt=media&#x26;token=5ace8ab1-b70e-48a2-a214-3d095144b3e7" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You need to wait a few minutes before your node turns Online. The nodes need to be online for 6 hours in order for the first connectivity test to run. The first batch of rewards does not kick in until 24 hours of being continuously online.
{% endhint %}

<div data-full-width="true"><figure><img src="https://4054216995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FE3O9MktNnMt52XOkMNvH%2Fuploads%2FP6za2YEotS2Wypu8RrV7%2FHCA%20logo.jpg?alt=media&#x26;token=c75b0cf5-870c-4113-bd4d-f358b45476c7" alt="" width="160"><figcaption><p>Happy Cuan Airdrop</p></figcaption></figure></div>

{% embed url="<https://t.me/HappyCuanAirdrop>" %}
Join our Telegram group for the latest updates and discussions!
{% endembed %}
