June 17, 2022

GnoLand — Node Installation.

In this article we will consider how to install a node and perform the first task, which will probably be rewarded.

Well, we’re excited to tell you that there is an ongoing task available on GNO.LAND for anyone to try out. The tricky part is that you have to participate using the CLI. We’ve created this guide for adventurous Gnomes who are willing to challenge themselves to complete the task for potential rewards.

1. Server requirements.

Runs on: 2vCPU/2 GB RAM/40 GB SSD (No official requirements.)

2. Server and software preparation.

sudo apt update && sudo apt upgrade -y
sudo apt install make clang pkg-config libssl-dev libclang-dev build-essential git curl ntp jq llvm tmux htop screen -y
wget https://golang.org/dl/go1.18.3.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.18.3.linux-amd64.tar.gz
# Anything below, copy and paste together.
export GOROOT=/usr/local/goexport GOPATH=$HOME/goexport GO111MODULE=onexport PATH=$PATH:/usr/local/go/bin:$HOME/go/binEOFsource ~/.profilego versionrm -rf go1.18.3.linux-amd64.tar.gz

3. Node installation.

git clone https://github.com/gnolang/gno/
cd gno
make
# Mnemonic generation.(Keep it in a safe place)

./build/gnokey generate
# Think of a password. Repeat your password. Enter your mnemonic.

./build/gnokey add account --recover
# Copy your address that begins with "g1qpyg1qpy5" and save it somewhere easily accessible.

./build/gnokey list

4. Getting tokens.

To start with, we need at least 2,200 tokens. 2,000 tokens will go to registration, 100 tokens to confirm the transaction. The remaining 100 tokens will remain to cover future commissions.

Run the script which will allow us to get at least 2200 tokens. If the script does not work, you can try this faucet. If this faucet doesn’t work you can go to Discord and ask there.

# 1. Replace ADDRESS with your address.
# 2. When you farm 2200 tokens, press "CTRL+C".

while true; do curl 'https://gno.land:5050/' --data-raw 'toaddr=ADDRESS'; ./build/gnokey query "bank/balances/ADDRESS" --remote gno.land:36657; sleep 2; done

5. Account registration.

# Replace ADDRESS with your address. You should get an output like in the picture below.

./build/gnokey query auth/accounts/ADDRESS --remote gno.land:36657

From this output you need to write “account_number” and “sequence”.

Create a file that will contain information about our registration.

# 1. Replace ADDRESS and USERNAME with your values.
# 2. USERNAME can only contain small letters and must be 6~17 characters.

./build/gnokey maketx call ADDRESS --pkgpath "gno.land/r/users" --func "Register" --gas-fee 1gnot --gas-wanted 3000000 --send "2000gnot" --args "" --args "USERNAME" --args "" > unsigned.tx

Create a transaction.

# Replace ADDRESS, ACCOUNTNUMBER and SEQUENCENUMBER with your values.
./build/gnokey sign ADDRESS --txpath unsigned.tx --chainid testchain --number ACCOUNTNUMBER --sequence SEQUENCENUMBER > signed.tx

Conduct the transaction.

./build/gnokey broadcast signed.tx --remote gno.land:36657

Check our username at this link. If it’s there, it’s done.

6. Let’s do the task.

To perform the task, you need to write a message about the Gno.Land project and run it through our terminal. This is done with the following command.

# Replace ADDRESS and URL with your values.

./build/gnokey maketx call ADDRESS --pkgpath "gno.land/r/boards" --func "CreateReply" --gas-fee 1gnot --gas-wanted 3000000 --send "" --broadcast true --chainid testchain --args "1" --args "8" --args "8" --args "URL" --remote gno.land:36657

Your work should appear on the site.

This completes the installation of the node and the first task.