Ubuntu 20.04.1 LTS

In this tutorial we will see how the MINA consensus protocol is installed in the most recent version of Ubuntu.

Remove previous mina versions:

sudo apt-get remove mina-testnet-postake-medium-curves

Add mina repository:

echo "deb [trusted=yes] http://packages.o1test.net release main" | sudo tee /etc/apt/sources.list.d/mina.list
sudo apt-get update

Try install Mina:

sudo apt-get install -y curl mina-testnet-postake-medium-curves=0.1.1-41db206 --allow-downgrades

Error output:

The following packages have unmet dependencies:
mina-testnet-postake-medium-curves : Depends: libffi6 but it is not installable
Depends: libjemalloc1 but it is not installable
Depends: libprocps6 but it is not installable

libffi6 libjemalloc1 libprocps6

These packages are installed by default in Ubuntu 18, but in Ubuntu 20 we only find their most recent versions. Therefore, we need to install the Ubuntu 18 packages.

Download & install libffi6:

wget http://mirrors.kernel.org/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb
sudo apt install ./libffi6_3.2.1-8_amd64.deb

Download & install libemalloc1:

wget https://repo.percona.com/apt/pool/main/j/jemalloc/libjemalloc1_3.6.0-2.focal_amd64.deb
sudo apt install ./libjemalloc1_3.6.0-2.focal_amd64.deb

Download & install libprocps6:

wget http://archive.ubuntu.com/ubuntu/pool/main/p/procps/libprocps6_3.3.12-3ubuntu1_amd64.deb
sudo apt install ./libprocps6_3.3.12-3ubuntu1_amd64.deb

Install Mina:

sudo apt-get install -y curl mina-testnet-postake-medium-curves=0.1.1-41db206 --allow-downgrades

Download the peers.json from the email received(if you were selected):

wget -O ~/peers.txt https://raw.githubusercontent.com/MinaProtocol/coda-automation/master/terraform/testnets/turbo-pickles/peers.txt
coda daemon \
-peer-list-file ~/peers.txt \
-block-producer-key <PUBLIC-ADDRESS> \
-block-producer-password "<PASSWORD>" \
-generate-genesis-proof true \
-log-level Info

Check if your node is running properly:

watch coda client status

Be patient, sometimes the GUI take time to show up. Between 15-30min, your node will be full synced.