# Installation

### Firstly you need to add user <a href="#run-an-avalanche-node" id="run-an-avalanche-node"></a>

```
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 <a href="#run-an-avalanche-node" id="run-an-avalanche-node"></a>

For this step, you will have to download the binary files found [here](https://github.com/Juneo-io/juneogo-binaries). If you have [git](https://git-scm.com/) 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
```

{% hint style="info" %}
If these files are structured differenty than above, you will not be able to connect your node.
{% endhint %}

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

```
screen -S juneo
```

```
./juneogo
```

{% hint style="warning" %}
Press Ctrl + A + D ( to detach and make screen keep running)\
Please make sure this process keeps running in the background. If the execution of the juneogo executable stops, your node will be inactive.
{% endhint %}

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
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.logosnodos.online/testnet-node/juneo-network/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
