▶️Installation

There are 3 Options to install the Node by Manual, Script and Docker.

Firstly you need to add user

adduser xxx

using your user

sudo su - xxx

or

su - xxx

Install screen for running in background

sudo apt install screen

Setup and Connect a node to the Socotra Testnet v1

For this step, you will have to download the binary files found here. If you have git installed on your system, please execute the following in your command line:

git clone https://github.com/Juneo-io/juneogo-binaries

Your binaries will be found in the juneogo-binaries folder on your system.

Configuring the initial binary files

The first step is to transfer the required binaries to the home directory of the server on which you wish to run your node. These binaries are:

  1. juneogo

  2. jevm

  3. srEr2XGGtowDVNQ6YgXcdUb16FGknssLTGUFYg7iMqESJ4h8e

After moving these binaries to the server, we next step is to allow execution permissions for them with the following commands:

chmod +x juneogo
chmod +x jevm
chmod +x srEr2XGGtowDVNQ6YgXcdUb16FGknssLTGUFYg7iMqESJ4h8e

Next, the directory .juneogo/plugins should be created in the home directory of our server, and the jevm binary should be placed there:

mkdir -p .juneogo/plugins
mv jevm .juneogo/plugins
mv srEr2XGGtowDVNQ6YgXcdUb16FGknssLTGUFYg7iMqESJ4h8e .juneogo/plugins

The structure of your home directory should resemble the following:

├── juneogo
├── .juneogo/
│   ├── plugins/
│   │   └── jevm
│   │   └── srEr2XGGtowDVNQ6YgXcdUb16FGknssLTGUFYg7iMqESJ4h8e

If these files are structured differenty than above, you will not be able to connect your node.

You may now connect the node to the Socotra network by executing the juneogo binary with the following command:

screen -S juneo
./juneogo

You may check if the node has boostrapped with the following call:

curl -X POST --data '{
    "jsonrpc":"2.0",
    "id"     :1,
    "method" :"info.isBootstrapped",
    "params": {
        "chain":"JUNE"
    }
}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/info

Example response:

{
  "jsonrpc": "2.0",
  "result": {
    "isBootstrapped": true
  },
  "id": 1
}

Last updated

Was this helpful?