This is for those that are familiar with the software. For a more in-depth guide, continue onto the Setting Up a Validator Node page.
LOCATION=$(curl -s https://api.github.com/repos/pchain-org/pchain/releases/latest | grep "tag_name" | awk '{print "https://github.com/pchain-org/pchain/releases/download/" substr($2, 2, length($2)-3) "/pchain_mainnet_" substr($2, 2, length($2)-3) ".tar.gz"}') ; curl -L -o pchain_mainnet.tar.gz $LOCATION
mkdir -p pchain_main ; tar xzf pchain_mainnet.tar.gz --one-top-level=pchain_main --strip-components 1
mkdir -p pchain/log pchain/bin pchain/.pchain pchain/scripts
cp ~/pchain_main/pchain ~/pchain/bin/
cp ~/pchain_main/run.sh ~/pchain/
cd pchain
wget https://pchainblockdata.s3-us-west-2.amazonaws.com/blockDataWithChild.tar.gz
tar -xzf blockDataWithChild.tar.gz
~/pchain/run.sh
sudo apt-get install jq -y
cd ~
cp ~/pchain_main/pchain.cron ~/pchain/scripts/
cp ~/pchain_main/scripts/* ~/pchain/scripts/
sudo crontab ~/pchain/scripts/pchain.cron
crontab -l
~/pchain/bin/pchain attach ~/pchain/.pchain/pchain/pchain.ipc
~/pchain/bin/pchain --datadir ~/pchain/.pchain gen_priv_validator your_address
cp ~/pchain/.pchain/priv_validator.json ~/pchain/.pchain/pchain/
cp ~/pchain/.pchain/priv_validator.json ~/pchain/.pchain/child_0/
kill $(pidof pchain)
~/pchain/run.sh