Installation
Node
# Update the repositories
sudo apt update
# Install developer packages
sudo apt install curl make clang pkg-config libssl-dev build-essential git jq mc bc screen ufw -y
# Open port
sudo ufw allow 9033/tcp
# Install NodeJS
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
# Install Yarn
sudo npm install -g yarn
# Install Rust
sudo curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
# Install IronFish
sudo npm install -g ironfish
# Set the variables
IRONFISH_NODENAME=your graffiti,from registration
echo "export IRONFISH_WALLET="${IRONFISH_NODENAME}"" >> $HOME/.bash_profile
echo "export IRONFISH_NODENAME="${IRONFISH_NODENAME}"" >> $HOME/.bash_profile
source $HOME/.bash_profile
# Set name of node
ironfish config:set nodeName $IRONFISH_NODENAME
ironfish config:set blockGraffiti $IRONFISH_NODENAME
# Enable telemetry
ironfish config:set enableTelemetry true
# Create service file (One command)
sudo tee /etc/systemd/system/ironfishd.service > /dev/null <<EOF
[Unit]
Description=ironfishd node
After=network-online.target
[Service]
User=$USER
ExecStart=/usr/bin/ironfish start
Restart=always
RestartSec=600
RuntimeMaxSec=3600
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
# Start the node
sudo systemctl daemon-reload && \
sudo systemctl enable ironfishd && \
sudo systemctl restart ironfishd
# Check logs
sudo journalctl -f -u ironfishd
# Escape from logs ctrl+c
# Check status
ironfish status -f
Escape from logs ctrl+c
Wait for synchronization, should be like this:
Last updated
Was this helpful?