Manual Instalation
Install dependencies
1sudo apt update && sudo apt upgrade -y2sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
Setup GO
1cd $HOME2VER="1.22.6"3wget "https://golang.org/dl/go$VER.linux-amd64.tar.gz"4sudo rm -rf /usr/local/go5sudo tar -C /usr/local -xzf "go$VER.linux-amd64.tar.gz"6rm "go$VER.linux-amd64.tar.gz"7[ ! -f ~/.bash_profile ] && touch ~/.bash_profile8echo "export PATH=\"\$PATH:/usr/local/go/bin:~/go/bin\"" >> ~/.bash_profile9source $HOME/.bash_profile10[ ! -d ~/go/bin ] && mkdir -p ~/go/bin
Setup variables
1MONIKER=mynode2CHAIN_ID=stride-13BASE_PORT=14
Download latest binary
1# build binary2git clone https://github.com/Stride-Labs/stride.git stride3cd stride4git checkout v24.0.05make install
Init Chain
1strided init mynode --chain-id $CHAIN_ID2STRIDE_HOME=$HOME/.stride3cd $STRIDE_HOME/config4rm addrbook.json genesis.json56# download addrbook & genesis7wget https://blockhunters.dev/snapshots/stride/addrbook.json8wget https://blockhunters.dev/snapshots/stride/genesis.json
Config Chain
Set min gas price
1MIN_PRICE="0.0005ustrd,0.001stuosmo,0.0001stuatom,20000000000staevmos,500000000stinj,0.01stutia,15000000000stadydx,15000000000stadym,0.01stusaga,0.001ibc/D24B4564BCD51D3D02D9987D92571EAC5915676A9BD6D9B0C1D0254CB8A5EA34,0.0001ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2,0.01ibc/BF3B4F53F3694B66E13C23107C84B6485BD2B96296BB7EC680EA77BBA75B4801,20000000000ibc/4B322204B4F59D770680FE4D7A565DDC3F37BFF035474B717476C66A4F83DD72,500000000ibc/A7454562FF29FE068F42F9DE4805ABEF54F599D1720B345D6518D9B5C64EA6D2,15000000000ibc/561C70B20188A047BFDE6F9946BDDC5D8AC172B9BE04FF868DFABF819E5A9CCE,15000000000ibc/E1C22332C083574F3418481359733BA8887D171E76C80AD9237422AEABB66018,0.01ibc/520D9C4509027DE66C737A1D6A6021915A3071E30DBA8F758B46532B060D7AA5"2sed -i -e "s#^minimum-gas-prices = .*#minimum-gas-prices = \"$MIN_PRICE\"#" $STRIDE_HOME/config/app.toml
Set seed
1SEEDS="[email protected]:32656"2sed -i -e "s#seeds = .*#seeds = \"$SEEDS\"#" $STRIDE_HOME/config/config.toml
Set custom ports in app.toml
1sed -i.bak -e "s%:1317%:${BASE_PORT}317%g;2s%:8080%:${BASE_PORT}080%g;3s%:9090%:${BASE_PORT}090%g;4s%:9091%:${BASE_PORT}091%g;5s%:8545%:${BASE_PORT}545%g;6s%:8546%:${BASE_PORT}546%g;7s%:6065%:${BASE_PORT}065%g" $STRIDE_HOME/config/app.toml
Set custom ports in config.toml file
1sed -i.bak -e "s%:26658%:${BASE_PORT}658%g;2s%:26657%:${BASE_PORT}657%g;3s%:6060%:${BASE_PORT}060%g;4s%:26656%:${BASE_PORT}656%g;5s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${BASE_PORT}656\"%;6s%:26660%:${BASE_PORT}660%g" $STRIDE_HOME/config/config.toml
Set custom client port in client.toml file
1sed -i.bak -e "s%:26657%:${BASE_PORT}657%g" $STRIDE_HOME/config/client.toml
Config pruning
1sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $STRIDE_HOME/config/app.toml2sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $STRIDE_HOME/config/app.toml3sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"11\"/" $STRIDE_HOME/config/app.toml
Disable indexing
1sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $STRIDE_HOME/config/config.toml
Install & configure cosmovisor
1go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/[email protected]23# Create Cosmovisor Folders4mkdir -p $STRIDE_HOME/cosmovisor/genesis/bin5mkdir -p $STRIDE_HOME/cosmovisor/upgrades67# Load Node Binary into Cosmovisor Folder8cp ~/go/bin/strided $STRIDE_HOME/cosmovisor/genesis/bin
Create service file
1sudo tee /etc/systemd/system/strided.service > /dev/null <<EOF2[Unit]3Description=Stride Node4After=network-online.target5[Service]6User=$USER7WorkingDirectory=$STRIDE_HOME8ExecStart=$(which cosmovisor) start --home $STRIDE_HOME9Restart=on-failure10RestartSec=511LimitNOFILE=6553512Environment="DAEMON_NAME=strided"13Environment="DAEMON_HOME=$STRIDE_HOME"14Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"15Environment="DAEMON_RESTART_AFTER_UPGRADE=true"16Environment="UNSAFE_SKIP_BACKUP=true"17[Install]18WantedBy=multi-user.target19EOF
Enable and start service
1sudo systemctl daemon-reload2sudo systemctl enable strided --now3sudo journalctl -u strided -f