Install instruction

Run Cardano on a phone

This was done on Samsung Galaxy Note 9 (no root mods). Delegate to our pool if you want to see us test on more phones.

Check if your phone meets the hardware requirement.

Minimum System Requirements

  • A processor with two or more cores, at 1.6GHz or faster (2GHz or faster for a stake pool or relay)
  • 4GB of RAM (8GB for a relay or stake pool)
  • 10GB of free storage (20GB for a stake pool)
  • Phone dedicated to node operation with minimal app usage.
  • You will need to be well versed in keeping apps in the phone awake and prevent system curtailing apps
  • Currently only tested in Android. Support our pool to see other platform.

Install Ubuntu

  • Create username and password
  • Login
 

Install dependencies

 

sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -y && sudo apt autoclean -y
sudo apt install automake build-essential pkg-config libffi-dev libgmp-dev libssl-dev libtinfo-dev libsystemd-dev zlib1g-dev make g++ tmux git jq wget libncursesw5 libtool autoconf libsodium-dev llvm-6.0 curl nano openresolv -y

Download, unpack, install and update Cabal

wget http://home.smart-cactus.org/~ben/ghc/cabal-install-3.2.0.0-aarch64-debian9-linux.tar.xz
tar -xf cabal-install-3.2.0.0-aarch64-debian9-linux.tar.xz
rm cabal-install-3.2.0.0-aarch64-debian9-linux.tar.xz
mkdir -p ~/.cabal/bin
mv cabal ~/.cabal/bin/
source bashrc
echo "export PATH=~/.cabal/bin:$PATH" >> ~/.bashrc
source ~/.bashrc
echo $PATH
Update cabal
cabal update
Confirm that you installed cabal version 3.2.0.0
cabal --version

Download and install GHC:

wget https://downloads.haskell.org/~ghc/8.6.5/ghc-8.6.5-aarch64-ubuntu18.04-linux.tar.xz
tar -xf ghc-8.6.5-aarch64-ubuntu18.04-linux.tar.xz
rm ghc-8.6.5-aarch64-ubuntu18.04-linux.tar.xz
cd ghc-8.6.5
./configure
sudo make install
cd ..
ghc --version

Download the source code for cardano-node

mkdir git && cd git
git clone https://github.com/input-output-hk/cardano-node
cd cardano-node
git fetch --tags --all
git pull
git checkout tags/1.20.0
echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" > cabal.project.local

Build and install the node

Build and install the node with cabal

cabal clean
cabal update
cabal build all

Copy the executables files to the .cabal/bin directory. 

sudo cp $(find $HOME/git/cardano-node/dist-newstyle/build -type f -name "cardano-cli") ~/.cabal/bin/cardano-cli
sudo cp $(find $HOME/git/cardano-node/dist-newstyle/build -type f -name "cardano-node") ~/.cabal/bin/cardano-node

Check the version installed:

cardano-cli --version
cardano-node --version

Whats next?

Customize the node to your preference.

Questions?