Created
September 18, 2020 17:57
-
-
Save hrishioa/aced5068fe2c6cb42a02f910e7c5cd38 to your computer and use it in GitHub Desktop.
Quick script to set up and run a nym node
This file contains 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
## Creator: Hrishi | |
## At: Sep 19 2020 | |
sudo apt-get update && sudo apt-get install -y --no-install-recommends bash ca-certificates pkg-config build-essential libssl-dev && \ | |
sudo useradd -U -m -s /sbin/nologin nym && \ | |
curl -s https://api.github.com/repos/nymtech/nym/releases/latest | grep "nym-mixnode_linux_x86_64" | cut -d : -f 2,3 | tr -d \" | wget -qi -; \ | |
chmod +x nym-mixnode_linux_x86_64 && \ | |
ipaddr=$(curl -sS v4.icanhazip.com) && \ | |
./nym-mixnode_linux_x86_64 init --id $1 --layer 3 --location 'sg' --host 0.0.0.0 --announce-host $ipaddr && \ | |
./nym-mixnode_linux_x86_64 run --id $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment