NOTE: These instructions assume a Debian-based OS is used (Ubuntu, Debian, etc.). They have been tested against Ubuntu 20.04 in most cases.
Install dependencies and pre-requesites
sudo apt update
sudo apt install make curl build-essential gcc git jq -y
sudo snap install lz4 -y
sudo rm -rf /usr/local/go
sudo curl -Ls https://golang.org/dl/go1.19.5.linux-amd64.tar.gz | sudo tar -C /usr/local -xz
tee -a $HOME/.profile > /dev/null << EOF
#Add Go to PATH
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
#Add Go variables
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
EOF
source $HOME/.profile
Download The Precompiled Binary Release
wget https://github.com/quasar-finance/binary-release/raw/main/v0.0.2-alpha-11/quasarnoded-linux-amd64 -O /usr/local/bin/quasarnoded
# Install Cosmovisor
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@1.4.0
# Create service
sudo tee /etc/systemd/system/cosmovisor.service > /dev/null << EOF
[Unit]
Description=Cosmovisor service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=always
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_NAME=quasarnoded"
Environment="DAEMON_HOME=$HOME/.quasarnode"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="UNSAFE_SKIP_BACKUP=true"
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable cosmovisor
# Create cosmovisor directory structure
mkdir -p $HOME/.quasarnode/cosmovisor/genesis/bin
cp $(which quasarnoded) $HOME/.quasarnode/cosmovisor/genesis/bin/
# Create application symlinks
ln -s $HOME/.quasarnode/cosmovisor/genesis $HOME/.quasarnode/cosmovisor/current
sudo ln -s $HOME/.quasarnode/cosmovisor/current/bin/quasarnoded /usr/local/bin/quasarnoded
NOTE: Replace CryptoChemistrySetup
in this code snippet to change your node's moniker
MONIKER="CryptoChemistrySetup" && quasarnoded init $MONIKER --chain-id qsr-questnet-04
quasarnoded config chain-id qsr-questnet-04
# Download Genesis Files
curl -Ls https://raw.githubusercontent.com/quasar-finance/questnet/main/v04/definitive-genesis.json > $HOME/.quasarnode/config/genesis.json