# Juneo Supernet

To set up and connect a Juneo node, follow these detailed instructions based on the available documentation:

### Prerequisites

Before proceeding, ensure that your machine meets the following hardware and software requirements:

* **CPU**: Equivalent of 4 AWS vCPU
* **RAM**: 8 GiB
* **Storage**: 500 GiB
* **OS**: Ubuntu 20.04/22.04 or macOS >= 12
* **Network**: Reliable IPv4 or IPv6 connection with an open public port

### Manual Setup Instructions

#### Step 1: Clone the Repository

Transfer the JuneoGo project files to your server using Git. Execute the following commands:

```bash
cd ~
git clone https://github.com/Juneo-io/juneogo-binaries
```

#### Step 2: Configure Binary Files

Navigate to the cloned directory and set execution permissions for the necessary binaries:

```bash
chmod +x ~/juneogo-binaries/juneogo
chmod +x ~/juneogo-binaries/plugins/jevm
chmod +x ~/juneogo-binaries/plugins/srEr2XGGtowDVNQ6YgXcdUb16FGknssLTGUFYg7iMqESJ4h8e
```

#### Step 3: Move Binaries to Correct Locations

Move the binaries to their appropriate directories:

```bash
mv ~/juneogo-binaries/juneogo ~
mkdir -p ~/.juneogo/plugins
mv ~/juneogo-binaries/plugins/jevm ~/.juneogo/plugins
mv ~/juneogo-binaries/plugins/srEr2XGGtowDVNQ6YgXcdUb16FGknssLTGUFYg7iMqESJ4h8e ~/.juneogo/plugins
```

Your home directory structure should look like this:

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

#### Step 4: Connect the Node to the Network

To connect your node to the Mainnet, run:

```bash
./juneogo
```

For connecting to the Socotra Testnet, use:

```bash
./juneogo --network-id="socotra"
```

#### Step 5: Check Node Status

After starting the node, you can check if it has bootstrapped by executing:

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

An example response indicating a successful bootstrap will be:

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

### Alternative Installation Using Scripts

For users less familiar with Linux, using installation scripts is recommended:

1. **Run Preparation Script**:

   ```bash
   bash <(wget -qO- https://raw.githubusercontent.com/Juneo-io/juneogo-binaries/main/preparation.sh)
   ```
2. **Log in as Juneo User**: After creating a new user named `juneogo`, log out and log back in as this user.
3. **Run Simple Setup Script**:

   ```bash
   bash <(wget -qO- https://raw.githubusercontent.com/Juneo-io/juneogo-binaries/main/simple_setup.sh)
   ```

###
