Code Monkey home page Code Monkey logo

aligned-layer-testnet's Introduction

# Aligned-Layer-Testnet Setup Guide

This guide provides detailed instructions for setting up an Aligned-Layer-Testnet node from scratch on a server.

Update Your System

First, ensure that your system's package index is updated and that all existing packages are upgraded to their latest versions:

sudo apt update && sudo apt upgrade -y
sudo apt install make curl git wget htop tmux build-essential jq make lz4 gcc unzip -y

Install Go

Install Go by specifying the version you wish to install. Replace ver with the desired version number:

ver="1.21.5" # replace with the desired version
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" >> \$HOME/.bash_profile
source \$HOME/.bash_profile
go version

Install Node

Clone the Aligned Layer Tendermint repository, build, and install:

cd \$HOME
rm -rf \$HOME/aligned_layer_tendermint
git clone --depth 1 --branch v0.0.2 https://github.com/yetanotherco/aligned_layer_tendermint
cd \$HOME/aligned_layer_tendermint/cmd/alignedlayerd
go build
chmod +x alignedlayerd
sudo mv alignedlayerd /usr/local/bin/
cd \$HOME
alignedlayerd version

Initialize Node

Initialize your node with a unique moniker:

alignedlayerd init NodeName --chain-id alignedlayer

Download Genesis & Addrbook

Fetch the genesis and addrbook files:

curl -Ls https://snap.nodex.one/alignedlayer-testnet/genesis.json > \$HOME/.alignedlayer/config/genesis.json
curl -Ls https://snap.nodex.one/alignedlayer-testnet/addrbook.json > \$HOME/.alignedlayer/config/addrbook.json

Configure Peers and Gas Prices

Update your node's configuration with the appropriate peers and gas prices. Replace PEERS and STAKETAB_PEER with actual peer addresses:

# Configure persistent peers
PEERS="peer_addresses_here"
STAKETAB_PEER="staketab_peer_address_here"
sed -i -e 's|^persistent_peers *=.*|persistent_peers = "'\$STAKETAB_PEER',\$PEERS'"|' \$HOME/.alignedlayer/config/config.toml

# Configure minimum gas prices
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.0001stake\"|" \$HOME/.alignedlayer/config/app.toml

Create Service

Create a systemd service to manage your node:

sudo tee /etc/systemd/system/alignedlayerd.service > /dev/null <<EOF
[Unit]
Description=alignedlayerd
After=network-online.target

[Service]
User=root
ExecStart=\$(which alignedlayerd) start
Restart=always
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF

Launch Node

Enable and start the node service:

sudo systemctl daemon-reload
sudo systemctl enable alignedlayerd
sudo systemctl restart alignedlayerd
sudo journalctl -u alignedlayerd -f -o cat

Please replace placeholders like NodeName, ver, PEERS, and STAKETAB_PEER with your actual data. Also, check the repository for any updates or changes to the installation process.


Ensure to replace placeholders such as `NodeName`, `ver`, `PEERS`, and `STAKETAB_PEER` with your actual values. Also, verify the repository for any updates or modifications in the installation steps.

aligned-layer-testnet's People

Contributors

qvkare avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.