Installing on Ubuntu

Installing on Ubuntu

Nodes have been verified on Ubuntu 18.04. Other Debian-based distros should work as well (use apt-get install rather than apt install).

Install using the Debian Package

Open a terminal and run the following commands.

sudo apt-get update
sudo apt-get install -y gnupg2 curl software-properties-common
curl -O
sudo apt-key add
sudo add-apt-repository "deb stable main"
sudo apt-get update
sudo apt-get install -y algorand
algod -v

These commands will install and configure algod as a service and place the algorand binaries in the /usr/bin directory. These binaries will be in the path so you can run algod and goal commands from anywhere. Additionally, every node has a data directory, in this case, it will be set to /var/lib/algorand

The algod process will start automatically and you can check the node's status by running the following command.

goal node status -d /var/lib/algorand

This install defaults to the Algorand MainNet network. See switching networks if you wish to install DevNet or TestNet and note that the genesis files are stored under /var/lib/algorand/genesis/ directory.

Because algod is running as a service, you should use systemctl instead of goal to start, stop, and restart it.

Updating the Node

The Deb package is configured to auto update and should require no manual intervention.

Syncing with the Network

Follow the steps here to get more information on how the node will sync with the network.