NOTE: Tested on Ubuntu Server 22.04 LTS
NOTE: Minimum requirements are 4CPU+8GB RAM. However, it might run with 2CPU. Just try.
If you don't want a seperate user for ironfish, you can skip this step.
sudo adduser iron
sudo usermod -aG sudo iron
su - ironsudo apt update && sudo apt upgrade -ysudo apt install build-essentialThis is required to install ironfish easily.
wget wget https://nodejs.org/dist/v18.13.0/node-v18.13.0-linux-x64.tar.gz
tar -xzvf node-v18.13.0-linux-x64.tar.gzOpen .profile file by nano .profile command and add the following line.
export PATH="$HOME/node-v18.13.0-linux-x64/bin:$PATH"and source the .profile by source ~/.profile command.
After this step which npm command should show a similar result as follows:
/home/iron2/node-v18.13.0-linux-x64/bin/npm
Run the command below to install ironfish
npm install -g ironfishIf you installed ironfish succesfully, which ironfish command should give the following result:
/home/iron2/node-v18.13.0-linux-x64/bin/ironfish
If you need to update ironfish in the future, use the command below:
npm update -g ironfishTo make it easier to catch up the current height, we can download the chain data from a snapshot by the command below. This is a long-running process. You may want to run this command in a screen session.
ironfish chain:downloadYou can simply run ironfish testnet command to set your graffiti and telemetry or run the commands below. You have to register yourself to set a graffiti/username. Register here https://testnet.ironfish.network/signup
ironfish config:set blockGraffiti YOUR_GRAFFITI_NAME
ironfish config:set enableTelemetry trueAlso you can set some other settings:
ironfish config:set logPrefix "[%time%] [%level%] [%tag%]"
ironfish config:set enableLogFile true
ironfish config:set logLevel "*:info"nohup ironfish start --workers=-1 </dev/null >/dev/null 2>&1 &
disownIf you prefer to use screen, create a screen session by screen -S iron and type
ironfish startand exit from session by CTRL+A+D key combinations.
- View the logs:
tail -f .ironfish/ironfish.log - Follow ironfish status
ironfish status -f - See public key of default account:
ironfish accounts:publickey - stop ironfish
ironfish stop