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

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

Set Moniker

Install Go (check version)

Build Binaries

Cosmovisor Setup

Create a systemd service

Initialize Node

Genesis & Addrbook

Configure Gas Prices

Pruning Setting

Custom Port (optional)

Start Service

Last updated