Lumen | Install Mainnet
System Specs
Section titled “System Specs”| Hardware | Requirement |
|---|---|
| CPU | 4 Cores |
| RAM | 16 GB |
| Disk | 500 GB |
Install Lumen Mainnet Validator
Section titled “Install Lumen Mainnet Validator”1. System Preparation
Section titled “1. System Preparation”sudo apt updatesudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y
#Install Gocd $HOMEGO_VERSION="1.25.5"wget "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz"sudo rm -rf /usr/local/gosudo tar -C /usr/local -xzf "go${GO_VERSION}.linux-amd64.tar.gz"rm "go${GO_VERSION}.linux-amd64.tar.gz"[ ! -f ~/.bash_profile ] && touch ~/.bash_profileecho "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bash_profilesource $HOME/.bash_profile[ ! -d ~/go/bin ] && mkdir -p ~/go/bin2. Install Binary
Section titled “2. Install Binary”cd $HOMEgit clone https://github.com/network-lumen/blockchain lumencd lumengit checkout v1.4.0cd cmd/lumendgo build -o $HOME/go/bin/lumend -ldflags="-s -w"
mkdir -p $HOME/go/binexport PATH=$PATH:$HOME/go/binecho 'export PATH=$PATH:$HOME/go/bin' >> ~/.bash_profilesource ~/.bash_profile
lumend version3. Init Node
Section titled “3. Init Node”lumend init yourmoniker --chain-id lumen4. Download Genesis
Section titled “4. Download Genesis”wget -O $HOME/.lumen/config/genesis.json https://raw.githubusercontent.com/network-lumen/validator-kit/master/config/genesis.json5. Set peer & gas prices
Section titled “5. Set peer & gas prices”PEERS="0a4bbe418246ca2b9d1dec063ea1cb8898c01763@77.42.72.251:26656,1a5cbd9d580f502f5af5ecc5762553da7a7c6584@65.21.253.43:26656,825673007163d80295eefc5c00ff54aee7b33a67@seed.blocksync.me:34656"sed -i -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.lumen/config/config.tomlsed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0ulmn\"/" $HOME/.lumen/config/app.tomlsed -i -e "s/prometheus = false/prometheus = true/" $HOME/.lumen/config/config.toml6. Custom config & port (optional, if needed)
Section titled “6. Custom config & port (optional, if needed)”PORT=346sed -i -e "s%:26657%:${PORT}57%" $HOME/.lumen/config/client.tomlsed -i -e "s%:26658%:${PORT}58%; s%:26657%:${PORT}57%; s%:6060%:${PORT}60%; s%:26656%:${PORT}56%; s%:26660%:${PORT}61%" $HOME/.lumen/config/config.tomlsed -i -e "s%:1317%:${PORT}17%; s%:9090%:${PORT}90%" $HOME/.lumen/config/app.toml
sed -i \-e 's|^pruning *=.*|pruning = "custom"|' \-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \-e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \-e 's|^pruning-interval *=.*|pruning-interval = "10"|' \$HOME/.lumen/config/app.toml
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.lumen/config/config.toml7. Create systemd
Section titled “7. Create systemd”sudo tee /etc/systemd/system/lumen.service > /dev/null <<EOF[Unit]Description=Lumen NodeAfter=network-online.target
[Service]User=$USERExecStart=$HOME/go/bin/lumend start --home $HOME/.lumenRestart=on-failureRestartSec=3LimitNOFILE=65535
[Install]WantedBy=multi-user.targetEOF
sudo systemctl daemon-reloadsudo systemctl enable lumen8. Download & Install snapshot
Section titled “8. Download & Install snapshot”curl -L "https://hub.maouam.xyz/hub/mainnet/lumen/snapshot/lumen_snapshot-latest.tar.lz4" | lz4 -dc - | tar -xf - -C $HOME/.lumen/9. Start Node
Section titled “9. Start Node”sudo systemctl start lumensudo journalctl -u lumen -fCreate Wallet & Validator
Section titled “Create Wallet & Validator”10. Create wallet
Section titled “10. Create wallet”lumend keys add wallet --keyring-backend test11. Generate a PQC key named validator-pqc
Section titled “11. Generate a PQC key named validator-pqc”lumend keys pqc-generate \ --name validator-pqc \ --home ~/.lumen \ --keyring-backend test12. Get wallet address
Section titled “12. Get wallet address”WALLET_ADDR=$(lumend keys show wallet -a --home ~/.lumen --keyring-backend test)13. Get PQC public key
Section titled “13. Get PQC public key”PQC_PUBKEY=$(lumend keys pqc-show validator-pqc \ --home ~/.lumen \ --keyring-backend test \ | awk '/PubKey/ && /hex/ {print $NF; exit}')14. Link PQC on-chain
Section titled “14. Link PQC on-chain”lumend tx pqc link-account \ --from wallet \ --pubkey "$PQC_PUBKEY" \ --scheme dilithium3 \ --chain-id lumen \ --home ~/.lumen \ --keyring-backend test \ --node http://localhost:34657/ \ --gas auto \ --gas-adjustment 1.5 \ --fees 0ulmn \ --yes \ --broadcast-mode sync15. Check PQC key is linked
Section titled “15. Check PQC key is linked”lumend query pqc account "$WALLET_ADDR" \ --node http://localhost:34657/ \ --home ~/.lumen16. Create validator.json file (fill your info)
Section titled “16. Create validator.json file (fill your info)”cat > $HOME/.lumen/validator.json <<EOF{ "pubkey": $CONSENSUS_PUBKEY, "amount": "1000000ulmn", "moniker": "your_moniker", "identity": "your_keybase", "website": "your_web", "details": "your_detail", "security": "your_email", "commission-rate": "0.1", "commission-max-rate": "0.2", "commission-max-change-rate": "0.05", "min-self-delegation": "1"}EOF17. Get Consensus Pubkey
Section titled “17. Get Consensus Pubkey”CONSENSUS_PUBKEY=$(lumend comet show-validator)18. Create Validator
Section titled “18. Create Validator”lumend tx staking create-validator $HOME/.lumen/validator.json \ --from wallet \ --chain-id lumen \ --keyring-backend test \ --home ~/.lumen \ --pqc-key validator-pqc \ --pqc-from "$WALLET_ADDR" \ --pqc-scheme dilithium3 \ --gas auto \ --gas-adjustment 1.5 \ --fees 0ulmnBackup Important Data
Section titled “Backup Important Data”19. Backup your key
Section titled “19. Backup your key”cat $HOME/.lumen/config/node_key.jsoncat $HOME/.lumen/config/priv_validator_key.jsoncat $HOME/.lumen/pqc_keys/keys.json