Installation
Install depedencies
sudo apt update && sudo apt upgrade -y
Install GO if needed
ver="1.22.3"
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile
source ~/.bash_profile
go version
Sett Vars
to make installation easy i suggest u use this
echo "export WALLET="wallet"" >> $HOME/.bash_profile
echo "export MONIKER="Moiker"" >> $HOME/.bash_profile
echo "export LUMERA_CHAIN_ID="lumera-testnet-1"" >> $HOME/.bash_profile
echo "export LUMERA_PORT="31"" >> $HOME/.bash_profile
source $HOME/.bash_profile
make sure you change "Wallet="with your own wallet name"" MONIKER="with your own name"" this indicate your node name LUMERA_PORT="with you want"" if your server is not have any node u can keep that at port 30 or sett to deffault port, the deffault port is 26.
Download & Install Binary
cd $HOME
curl -LO https://github.com/LumeraProtocol/lumera/releases/download/v0.4.1/lumera_v0.4.1_linux_amd64.tar.gz
tar -xvf lumera_v0.4.1_linux_amd64.tar.gz
rm lumera_v0.4.1_linux_amd64.tar.gz
rm install.sh
sudo mv libwasmvm.x86_64.so /usr/lib/
chmod +x lumerad
sudo mv lumerad $HOME/go/bin/
Verify installation
lumerad version
Configure and inittial app
lumerad config node tcp://localhost:${LUMERA_PORT}657
lumerad config keyring-backend os
lumerad config chain-id lumera-testnet-1
lumerad init "test" --chain-id lumera-testnet-1
Download Genesis and Addrbook
curl -Ls "https://snapshot.nodevism.com/testnet/lumera/genesis.json" > $HOME/.lumera/config/genesis.json
curl -Ls "https://snapshot.nodevism.com/testnet/lumera/addrbook.json" > $HOME/.lumera/config/addrbook.json
NEED CHANGE
Sett Seed and Peer
sed -i -e "s|^seeds =.|seeds = "74db5018248af4207209d8de6f2f68f44480688@193.34.212.38:31656"|" $HOME/.lumera/config/config.toml
Sett Custom Port at config.toml
sed -i.bak -e "s%:26658%:${LUMERA_PORT}658%g;
s%:26657%:${LUMERA_PORT}657%g;
s%:6060%:${LUMERA_PORT}060%g;
s%:26656%:${LUMERA_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${LUMERA_PORT}656\"%;
s%:26660%:${LUMERA_PORT}660%g" $HOME/.lumera/config/config.toml
Sett Custom Port at App.toml
sed -i.bak -e "s%:1317%:${LUMERA_PORT}317%g;
s%:8080%:${LUMERA_PORT}080%g;
s%:9090%:${LUMERA_PORT}090%g;
s%:9091%:${LUMERA_PORT}091%g;
s%:8545%:${LUMERA_PORT}545%g;
s%:8546%:${LUMERA_PORT}546%g;
s%:6065%:${LUMERA_PORT}065%g" $HOME/.lumera/config/app.toml
Configure Prunning
sed -i -e "s/^pruning =./pruning = "custom"/" $HOME/.lumera/config/app.toml
sed -i -e "s/^pruning-keep-recent =./pruning-keep-recent = "100"/" $HOME/.lumera/config/app.toml
sed -i -e "s/^pruning-interval =./pruning-interval = "20"/" $HOME/.lumera/config/app.toml
Sett Minimum Gas Prices & disable indexer
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0.025ulume"|g' $HOME/.lumera/config/app.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.lumera/config/config.toml
Create Service File
sudo tee /etc/systemd/system/lumerad.service > /dev/null <<EOF
[Unit]
Description=lumera
After=network-online.target
[Service]
User=$USER
ExecStart=$(which lumerad) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Download snapshot
curl "https://snapshot.nodevism.com/testnet/lumera/lumera-snapshot.tar.lz4" | lz4 -dc - | tar -xf - -C "$HOME/.lumera"
Enable And Start Service
sudo systemctl daemon-reload
sudo systemctl enable lumerad
sudo systemctl restart lumerad && sudo journalctl -u lumerad -f -o cat
Last updated