-
Notifications
You must be signed in to change notification settings - Fork 6
Akash Seed Node Installation Guide
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
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
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>
curl -s curl https://raw.githubusercontent.com/ovrclk/net/master/latest/genesis.json > ~/.akashd/config/genesis.json
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"
Fetch akashd location path and use it for 'WorkingDirectory' & 'ExecStart' in the next step
which ~/bin/akashd
/home/<USER.NAME>/bin/akashd
sudo nano /lib/systemd/system/akashd_seed.service
[Unit]
Description=Akash Seed Daemon
After=network-online.targetStartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
User=<USER.NAME>
TimeoutStopSec=90sWorkingDirectory=/home/<USER.NAME>/bin/
ExecStart=/home/<USER.NAME>/bin/akashd start --pruning nothing>[Install]
WantedBy=multi-user.target
sudo systemctl enable akashd_seed.service
sudo systemctl start akashd_seed.service
akashd start --pruning nothing