Skip to content

Akash Seed Node Installation Guide

Paul Lovette edited this page Jul 15, 2020 · 1 revision

Install Akash Suite

We are going to use the binaries, install the latest version via godownloader with:

Maker you are in your home directory:

cd ~/

INSTALL TO. ‘/bin’ WITH:

curl -sSfL https://raw.githubusercontent.com/ovrclk/akash/master/godownloader.sh | sh -s -- v0.7.7

The final step is to make sure that the akash binaries are available in your shell PATH.

This page contains instructions for setting the PATH on Linux.

sudo nano ~/.bashrc

Go to the bottom of the file and add/edit (~/bin might already be there):

export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:~/bin"

Save the file and type:

source .bashrc

Initiate the Blockchain

akashd init <TEAM NAME> --chain-id <NAME OF THE CHAIN e.g. testnet-v3>

The above command will create the necessary configurations under ~/.akashd with the below structure:
├── config
│ ├── app.toml
│ ├── config.toml
│ ├── genesis.json
│ ├── node_key.json
│ └── priv_validator_key.json
└── data
└── priv_validator_state.json

Generate a key for validating:

Add a Key using the following. This will tie it to your

export TEAM=<TEAM NAME>  
akashctl keys add $TEAM   
-- keyring passphrase: **************

Important: Memorize your Keyring Passphrase and store it in a safe place should you forget it. **

The output of the above should look like this:

Enter keyring passphrase: **************

  • name:
    type: local
    address: akash*****************************************
    pubkey: akashpub1add***********************************************
    mnemonic: ""
    threshold: 0
    pubkeys: []

Important write this 24 WORD MNEMONIC phrase in a safe place.
It is the only way to recover your account if you ever forget your password.

<24 WORD MNEMONIC>

Configure the Node:

Download the Genesis and Sync with Seed Nodes

Fetch released Genesis into akaskd's config directory

curl -s curl https://raw.githubusercontent.com/ovrclk/net/master/latest/genesis.json > ~/.akashd/config/genesis.json

Add Akash Seed Nodes and configure this node as a Seed Node in config.toml

sudo nano ~/.akashd/config/config.toml

In the file you just opened, find the following section and add the seed and persistent peer nodes, the values should be separated by a comma (,) for each key:

seeds = "f880caddd030682756c6202fcd424ca7579f9c15@outpost-1.akashtest.net:26656,57d615d2d5e2045b70ab1f13039acb4184a0bb51@outpost-2.akashtest.net:26656,4b0615db2ccef17f4a8faf44ea5927c3ed9d5c07@outpost-3.akashtest.net:26656,6c70867055e50a50116d92e60fe3906f8c39b803@seed-1.akashtest.net:26656,5d8318e68e34d73722a186dea48cc32c1bcddca1@seed-2.akashtest.net:26656,f30d93281c550fb818fe49beed66814576fc914c@eastgate-1.akashtest.net:26656"
persistent_peers = ""
pex = true
seed_mode = true
# TCP or UNIX socket address for the RPC server to listen on
laddr = "<public_ip>:26657"

Start Your Seed Node

Our preferred method is to use a service to start the node

Fetch akashd location path and use it for 'WorkingDirectory' & 'ExecStart' in the next step

which ~/bin/akashd

The above command will output the following:

/home/<USER.NAME>/bin/akashd

Make akashd a system service

sudo nano /lib/systemd/system/akashd_seed.service

Paste the following into the above akashd_seed.service files:

[Unit]
Description=Akash Seed Daemon
After=network-online.target

StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
User=<USER.NAME>
TimeoutStopSec=90s

WorkingDirectory=/home/<USER.NAME>/bin/
ExecStart=/home/<USER.NAME>/bin/akashd start --pruning nothing>

[Install]
WantedBy=multi-user.target

Enable and start the system service using:

sudo systemctl enable akashd_seed.service  
sudo systemctl start akashd_seed.service

For a one-time start use:

akashd start --pruning nothing