Before proceeding, ensure your system meets the minimum requirements:
Make sure your system has the necessary tools and dependencies installed.
# Update and install basic tools
sudo apt update && sudo apt upgrade -y
sudo apt install -y build-essential curl wget jq git
# Install Go (Golang)
GO_VERSION="1.21.1"
wget <https://go.dev/dl/go$GO_VERSION.linux-amd64.tar.gz>
sudo tar -C /usr/local -xzf go$GO_VERSION.linux-amd64.tar.gz
echo "export PATH=\\$PATH:/usr/local/go/bin:\\$HOME/go/bin" >> ~/.bashrc
source ~/.bashrc
# Verify Go installation
go version
Download the Rebus Chain source code and build the binary.
# Clone the Rebus Chain repository
git clone <https://github.com/rebuschain/rebus.core.git>
cd rebus.core
# Check out the latest stable release
git checkout v0.3.0
# Build the binary
make install
# Verify installation
rebusd version
Set up the Rebus Chain node configuration.
# Initialize the node with a moniker (replace <your-moniker> with your node name)
rebusd init <your-moniker> --chain-id reb_1111-1
# Fetch the genesis file
curl -o ~/.rebusd/config/genesis.json <https://raw.githubusercontent.com/rebuschain/rebus.core/main/genesis.json>
# Add persistent peers to the configuration
PEERS="peer1@ip1:26656,peer2@ip2:26656" # Replace with actual peers from the network
sed -i.bak "s/^persistent_peers *=.*/persistent_peers = \\"$PEERS\\"/" ~/.rebusd/config/config.toml
# Optional: Set minimum gas prices
sed -i.bak 's/^minimum-gas-prices *=.*/minimum-gas-prices = "0.025urebus"/' ~/.rebusd/config/app.toml