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 configuration file

Download the genesis.conf file as well as the configuration file corresponding to the current specifications (such as 64c512g):

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

wget -O conf/compute.conf https://raw.githubusercontent.com/PharosNetwork/resources/refs/heads/main/testnet/64c512g/conf/compute.conf
wget -O conf/controller.conf https://raw.githubusercontent.com/PharosNetwork/resources/refs/heads/main/testnet/64c512g/conf/controller.conf
wget -O conf/cubenet.conf https://raw.githubusercontent.com/PharosNetwork/resources/refs/heads/main/testnet/64c512g/conf/cubenet.conf
wget -O conf/dog.conf https://raw.githubusercontent.com/PharosNetwork/resources/refs/heads/main/testnet/64c512g/conf/dog.conf
wget -O conf/global.conf https://raw.githubusercontent.com/PharosNetwork/resources/refs/heads/main/testnet/64c512g/conf/global.conf
wget -O conf/mygrid.conf.json https://raw.githubusercontent.com/PharosNetwork/resources/refs/heads/main/testnet/64c512g/conf/mygrid.conf.json
wget -O conf/portal.conf https://raw.githubusercontent.com/PharosNetwork/resources/refs/heads/main/testnet/64c512g/conf/portal.conf
wget -O conf/txpool.conf https://raw.githubusercontent.com/PharosNetwork/resources/refs/heads/main/testnet/64c512g/conf/txpool.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 domain0.json
pharos bootstrap domain0.json

6. Start the Pharos node

pharos start domain0.json

Last updated