Last active
June 27, 2024 16:45
-
-
Save KarthickNcog/f18cfc7e306ab4b2cbcf1bc2fd66ff14 to your computer and use it in GitHub Desktop.
Install Script for LiveNet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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