Fetching latest version...
This setup is focused on Normal User with Sudo Privilages
sudo apt update && sudo apt upgrade -y
sudo apt install git curl wget tar lz4 unzip jq build-essential pkg-config clang bsdmainutils make ncdu -y
Install Go programming language, if installed successfully, it will show go version
cd
version="1.23.1"
wget "https://golang.org/dl/go$version.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$version.linux-amd64.tar.gz"
rm "go$version.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version
Git Clone Oraichain to Install and configure Oraichain
cd
git clone https://github.com/oraichain/orai orai
cd orai
git checkout v0.42.3
cd orai
go mod tidy
make install
Initialize Oraichain node and get the genesis file from the official Oraichain website
cd
oraid init itsYourNodeName --chain-id Oraichain
wget -O $HOME/.oraid/config/genesis.json "https://raw.githubusercontent.com/oraichain/oraichain-static-files/master/genesis.json"
Configure Oraichain seed node
SEEDS="e18f82a6da3a9842fa55769955d694f62f7f48bd@seed1.orai.zone:26656,893f246ffdffae0a9ef127941379303531f50d5c@seed2.orai.zone:26656,4fa7895fc43f618b53cd314585b421ee47b75639@seed3.orai.zone:26656,defeea41a01b5afdb79ef2af155866e122797a9c@seed4.orai.zone:26656"
sed -i -e "s|^seeds *=.*|seeds = \"$SEEDS\"|" $HOME/.oraid/config/config.toml
Setup systemd service for Oraichain:
sudo nano /etc/systemd/system/oraid.service
Paste following in oraid.service file, ensure to replace USER with your operating system's user name
[Unit]
Description=Oraid Daemon
#After=network.target
StartLimitInterval=350
StartLimitBurst=10
[Service]
Type=simple
User=USER
ExecStart=/home/USER/go/bin/oraid start --home /home/USER/.oraid
Restart=always
RestartSec=30
[Install]
WantedBy=multi-user.target
[Service]
LimitNOFILE=1048576
We will use official oraichain hourly snapshot to sync faster!
Loading snapshot command...
Start and Enable the service so that it always starts on boot & on failure
sudo systemctl daemon-reload
sudo systemctl restart systemd-journald
sudo systemctl start oraid
sudo systemctl enable oraid
journalctl -fu oraid
We prioritize blockchain above everything. Stake with us and get good passive income.