Install

Install Dependencies

Update system package and install build tools
sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential fail2ban ufw
sudo apt -qy upgrade

Secure Setup

chevron-rightSetup ssh for user replace YOUR_PUBLIC_SSH_KEY with your own!hashtag
sudo adduser hedge --disabled-password -q
sudo usermod -aG sudo hedge
sudo -u hedge bash -c 'mkdir -p ~/.ssh && echo "YOUR_PUBLIC_SSH_KEY" >> ~/.ssh/authorized_keys && chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys'
chevron-rightGranting sudo privileges for alignedlayer userhashtag
echo "hedge ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers
chevron-rightDisable root login, password auth, and enforce SSH key authenticationhashtag
su - hedge -c 'sudo sed -i "s|^PermitRootLogin .*|PermitRootLogin no|" /etc/ssh/sshd_config'
su - hedge -c 'sudo sed -i "s|^ChallengeResponseAuthentication .*|ChallengeResponseAuthentication no|" /etc/ssh/sshd_config'
su - hedge -c 'sudo sed -i "s|^#PasswordAuthentication .*|PasswordAuthentication no|" /etc/ssh/sshd_config'
su - hedge -c 'sudo sed -i "s|^#PermitEmptyPasswords .*|PermitEmptyPasswords no|" /etc/ssh/sshd_config'
su - hedge -c 'sudo sed -i "s|^#PubkeyAuthentication .*|PubkeyAuthentication yes|" /etc/ssh/sshd_config'
sudo systemctl restart sshd
chevron-rightConfigure firewall settinghashtag
sudo apt install -y ufw
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow ssh
sudo ufw enable

Set Moniker

Build Binaries

Cosmovisor Setup

Create a systemd service

Initialize Node

Genesis & Addrbook

Configure Gas Prices

Pruning Setting

Custom Port (optional)

Start Service

Last updated