Skip to content

Instantly share code, notes, and snippets.

@KarthickNcog
Last active June 27, 2024 16:45
Show Gist options
  • Select an option

  • Save KarthickNcog/f18cfc7e306ab4b2cbcf1bc2fd66ff14 to your computer and use it in GitHub Desktop.

Select an option

Save KarthickNcog/f18cfc7e306ab4b2cbcf1bc2fd66ff14 to your computer and use it in GitHub Desktop.
Install Script for LiveNet
apt update
apt upgrade -y
apt install -y software-properties-common
add-apt-repository -y ppa:longsleep/golang-backports
apt update
apt install golang-go -y
apt install zip unzip -y
apt install make -y
apt install -y git
apt autoremove -y
apt autoclean -y
cd
git clone https://github.com/Ncog-Earth-Chain/go-ncogearthchain
cd go-ncogearthchain
make ncogearthchain
cd build/
./ncogearthchain dumpconfig config.toml
wget https://github.com/Ncog-Earth-Chain/livenet/raw/main/mainnet.g
echo "[Unit]
Description=NCOG Earth Chain Blockchain
[Service]
Type=simple
ExecStart=/root/go-ncogearthchain/build/ncogearthchain --genesis /root/go-ncogearthchain/build/mainnet.g --config /root/go-ncogearthchain/build/config.toml --nat extip:{ip}
KillMode=process
KillSignal=SIGINT
TimeoutStopSec=90
Restart=on-failure
RestartSec=10
SyslogIdentifier=ncogearthchain-service
User=root
Group=root
[Install]
WantedBy=default.target" > /etc/systemd/system/ncogearthchain.service
systemctl enable ncogearthchain.service
systemctl restart systemd-journald.service
systemctl restart ncogearthchain.service
systemctl status ncogearthchain.service
journalctl -fu ncogearthchain.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment