1. System Preparation

Make sure your system is updated and that you have the required dependencies:

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y build-essential curl wget jq
sudo su -c "echo 'fs.file-max = 65536' >> /etc/sysctl.conf"
sudo sysctl -p

2. Install Go

Remove any existing Go installation and install the latest version:

sudo rm -rf /usr/local/go
curl -O <https://dl.google.com/go/go1.19.2.linux-amd64.tar.gz>
sudo tar -C /usr/local -xzf go1.19.2.linux-amd64.tar.gz

Set Go environment variables:

cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version  # This should output your Go version

3. Install Stride Binary

Clone the Stride repository, build the binary, and configure it:

git clone <https://github.com/Stride-Labs/stride.git>
cd stride
make install

4. Node Initialization

Initialize the node with your custom name:

strided init <your_node_name> --chain-id stride-1

Download the genesis.json:

curl -O <https://raw.githubusercontent.com/Stride-Labs/mainnet/main/mainnet/genesis.json>
mv genesis.json ~/.stride/config/

Edit your config.toml to set peers and seeds:

nano ~/.stride/config/config.toml

Add appropriate seeds from the Stride seed list.

5. Set Minimum Gas Prices and Pruning