Validator Guide | How To 2 of 3 - lightiv/SkyNet GitHub Wiki
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 https://raw.githubusercontent.com/ovrclk/akash/v0.7.8-rc3/godownloader.sh | sh
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
To(If) UPGRADE(ING) (current installed version to new release):
curl -sSfL https://raw.githubusercontent.com/ovrclk/akash/master/godownloader.sh | sh -s -- <CURRENT VERSION> to <NEW VERSION>
akashd init <TEAM NAME> --chain-id <NAME OF THE CHAIN e.g. centauri>
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
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 = "[email protected]:26656"
persistent_peers = "[email protected]:26656,[email protected]:26656"
The above configuration will sync your node with below set of seeds nodes and persistent peers:
Seed nodes:
β’ [email protected]:26656
Persistent peers:
β’ [email protected]:26656
β’ [email protected]:26656
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.service
[Unit]
Description=Akash 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.service
sudo systemctl start akashd.service
`akashd start --pruning nothing