Skip to content
Kristaps Jahimovics edited this page Jan 9, 2022 · 1 revision

Create VPS on Hetzner

For kira you have to choose CX41 and add extra 500GB volume to it image

LOGIN as root

First of all you have to initialize new 500GB volume and make it primary data container for kira node

Replace HC_Volume_13371337 to your VOLUME_name

{ cd /var/lib && tar cf - . ; } | { cd /mnt/HC_Volume_13371337/ ; tar xvf -  ; echo EXIT=$? ; }

Edit /etc/fstab file. Replace /mnt/HC_Volume_13371337 to /var/lib

nano /etc/fstab

EXAMPLE how it should look:

/dev/disk/by-id/scsi-0HC_Volume_13371337 /mnt/HC_Volume_13371337 ext4 discard,nofail,defaults 0 0
>>>>>>
/dev/disk/by-id/scsi-0HC_Volume_13371337 /var/lib ext4 discard,nofail,defaults 0 0

After that press CTRL+O and ENTER to overwrite file contents

Then press CTRL+x to close the file

Move old lib folder and mount new lib to 500GB volume disk

mv /var/lib /var/lib-
mkdir /var/lib 
mount /var/lib

Install dependencies for kira server

sudo apt update && sudo apt -y upgrade
sudo apt-get install -y network-manager
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get -y install docker-ce docker-ce-cli containerd.io

Create kira user

sudo useradd kira -m -s /bin/bash
sudo passwd kira
sudo usermod -aG sudo kira

Login as kira user

sudo su - kira
sudo -s

Create mnemonic file and paste your mnemonic content there

cd /home/kira && mkdir ./.secrets && nano ./.secrets/mnemonics.env

After that press CTRL+O and ENTER to overwrite file contents

Then press CTRL+x to close the file

Run command

cd /tmp && read -p "Input branch name: " BRANCH && \
 wget https://raw.githubusercontent.com/KiraCore/kira/$BRANCH/workstation/init.sh -O ./i.sh && \
 chmod 555 -v ./i.sh && H=$(sha256sum ./i.sh | awk '{ print $1 }') && read -p "Is '$H' a [V]alid SHA256 ?: "$'\n' -n 1 V && \
 [ "${V,,}" != "v" ] && echo "INFO: Setup was cancelled by the user." || ./i.sh "$BRANCH"

Press ENTER

Type

testnet-9

image

Press V

image

Press any key

image

Open a new session amd copy your KEYS if you have passed KYC.

Press 1

image

Press J

image

Press S

image

Enter one of the following IPs:

`

18.135.115.225 3.11.224.235 52.56.117.134

https://testnet-rpc.kira.network/download/peers.txt

https://testnet-rpc.kira.network/api/pub_p2p_list?ip_only=true&connected=true

` image

Press C

image

Press C

image

Enter the link below and press ENTER

https://raw.githubusercontent.com/KiraCore/testnet/main/testnet-9/genesis.json image

Press ENTER

image

Press A

image

Press A

image

Press M

image

Press P

image

Press A

image

Enter ips from the list above or from RPC link and press NETER

image

Press Y

image

Press Y

image

Repeat

Press S

image

Press E

image

Press E

image

Server will be rebooted

Log in back.

sudo kira

Press V

image

Press Ctrl + C

image

Type

sudo kira

image