Setup nym-mixnode

These are steps to setup nym-mixnode using the new all in one binary.

# export node name
monikor=AnyNodes

# prepare workspace
mkidr -p ~/nym
cd nym

# download pre-compiled nym-node binary, not nym-mixnode
wget https://github.com/nymtech/nym/releases/download/nym-binaries-v2024.3-eclipse/nym-node
chmod +x nym-node
cp nym-node /usr/local/bin

# https://nymtech.net/operators/nodes/setup.html#mode-mixnode
# Init node
nym-node run --id $monikor --init-only --mode mixnode --verloc-bind-address 0.0.0.0:1790 --public-ips "$(curl -4 https://ifconfig.me)"

# After Init, some node information can be configured in these .toml files
nano ~/.nym/nym-nodes/$monikor/config/config.toml
nano ~/.nym/nym-nodes/$monikor/description.toml

# Try to run the node, if it can start well
nym-node run --id $monikor --deny-init --mode mixnode
# if it can start well, Ctrl+C to close it. We will run it as a Service

Step 2: Run nym-node as a service

# export node name
monikor=AnyNodes

# Create service file
sudo tee /etc/systemd/system/nym-node.service > /dev/null <<EOL
[Unit]
Description=Nym Node
StartLimitInterval=350
StartLimitBurst=10

[Service]
User=$USER
ExecStart=$HOME/nym/nym-node run --id $monikor --deny-init --mode mixnode
Restart=on-failure
RestartSec=30
LimitNOFILE=65535
KillSignal=SIGINT

[Install]
WantedBy=multi-user.target
EOL


systemctl daemon-reload
systemctl enable nym-node.service
service nym-node start

journalctl -u nym-node -f

Last updated