Using Binary (Testnet)

1. Create a working directory and download the binary:

export WORKSPACE=pharos-testnet
mkdir -p /data/$WORKSPACE && cd /data/$WORKSPACE
wget $(curl -s https://api.github.com/repos/PharosNetwork/resources/releases/latest \
  | grep browser_download_url \
  | grep .tar.gz \
  | cut -d '"' -f 4)
FILENAME=$(curl -s https://api.github.com/repos/PharosNetwork/resources/releases/latest \
  | grep browser_download_url \
  | grep .tar.gz \
  | cut -d '"' -f 4 | xargs basename)
tar -zxvf "$FILENAME"

2. Download the genesis file

wget -O genesis.conf https://raw.githubusercontent.com/PharosNetwork/resources/refs/heads/main/testnet/genesis.conf

3. Install the Pharos CLI tool

cd /data/$WORKSPACE/scripts
chmod +x install_ops.sh ops_prepare.sh
./install_ops.sh

4. Set the public IP for the Pharos node

Obtain the public IP address of your current server and set it to the Pharos node:

PUBLIC_IP=$(curl -s ifconfig.me)
echo $PUBLIC_IP
pharos set-ip $PUBLIC_IP

5. Generate and deploy the nodes

pharos generate deploy.light.json
pharos deploy domain.json
pharos bootstrap domain.json

6. Start the Pharos node

pharos start domain.json

Last updated