# T3RN NODE

### Install [Kali linux](https://apps.microsoft.com/detail/9PKR34TNCV07?hl=en-us\&gl=US\&ocid=pdpshare) on Microsoft Store for Linux Shell

<figure><img src="https://1753696557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg2KP8Hry9Eag6gvUV7ir%2Fuploads%2F9ceREkEa94J6jdgr0b4j%2Fimage.png?alt=media&#x26;token=1bab491a-4d64-463a-8305-3c41afe1e721" alt=""><figcaption></figcaption></figure>

### t3rn/executor-release/releases/ | Install Latest Package Version

Link: <https://github.com/t3rn/executor-release/releases/>&#x20;

## How to Install Ubuntu?

Search on your PC [Micosoft Store](https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-6---install-your-linux-distribution-of-choice)&#x20;

<figure><img src="https://1753696557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg2KP8Hry9Eag6gvUV7ir%2Fuploads%2FamOPKiT50sQNxKXPhyQ3%2Fimage.png?alt=media&#x26;token=aaff0bff-1397-4c7a-b944-cd37c3837998" alt=""><figcaption></figcaption></figure>

Search **Ubuntu Install Ubuntu 22.04.5 LTS**

<figure><img src="https://1753696557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg2KP8Hry9Eag6gvUV7ir%2Fuploads%2F6tv0qxf1j0yyBPGz0v7k%2Fimage.png?alt=media&#x26;token=0dd89d2e-a68b-40fb-9102-a1fab33a7404" alt=""><figcaption></figcaption></figure>

Once you Installed&#x20;

## How to Enable WSL and Subsystem Linux

### Step 1 - Enable the Windows Subsystem for Linux <a href="#step-1---enable-the-windows-subsystem-for-linux" id="step-1---enable-the-windows-subsystem-for-linux"></a>

You must first enable the "**Windows Subsystem for Linux**" optional feature before installing any Linux distributions on Windows.

<figure><img src="https://1753696557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg2KP8Hry9Eag6gvUV7ir%2Fuploads%2FoyZFbfKRZXGeY9K7jJZt%2Fimage.png?alt=media&#x26;token=7b31d16e-0374-40b7-bd74-eed41982eab0" alt=""><figcaption></figcaption></figure>

* Enable Windows Subsystem Linux for Linux

<figure><img src="https://1753696557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg2KP8Hry9Eag6gvUV7ir%2Fuploads%2FUfz4PyWy3s7IRfotfghQ%2Fimage.png?alt=media&#x26;token=70aa83b4-92c3-4ec0-8f01-0bc847dc1b12" alt=""><figcaption></figcaption></figure>

Run Open PowerShell **as Administrator (Start menu > PowerShell > right-click > Run as Administrator)** and enter this command:

<figure><img src="https://1753696557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg2KP8Hry9Eag6gvUV7ir%2Fuploads%2FyutZ7yA7KA0oNDrRw7iD%2Fimage.png?alt=media&#x26;token=c1650030-7f5b-4f40-8337-22d30ca3e491" alt=""><figcaption></figcaption></figure>

Copy This Command

```
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
```

#### Download the latest package:

* [WSL2 Linux kernel update package for x64 machines](https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi)

1. Run the update package downloaded in the previous step. (Double-click to run - you will be prompted for elevated permissions, select ‘yes’ to approve this installation.)

### Set WSL 2 as your default version <a href="#step-5---set-wsl-2-as-your-default-version" id="step-5---set-wsl-2-as-your-default-version"></a>

Open PowerShell and run this command to set WSL 2 as the default version when installing a new Linux distribution:

```
wsl --set-default-version 2
```

## Setup Guide

Go to **executor**&#x20;

<figure><img src="https://1753696557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg2KP8Hry9Eag6gvUV7ir%2Fuploads%2FHihomXwhUHAfWVpseSZQ%2Fimage.png?alt=media&#x26;token=4859e45f-d372-448f-8636-edf3e8f3beb9" alt=""><figcaption></figcaption></figure>

**executor/executor**

<figure><img src="https://1753696557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg2KP8Hry9Eag6gvUV7ir%2Fuploads%2FPzmzOSemOGm9IFTh1RLv%2Fimage.png?alt=media&#x26;token=b6d0050c-df8f-49c8-85ef-61f318a5eccb" alt=""><figcaption></figcaption></figure>

**executor/executor/bin**

<figure><img src="https://1753696557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg2KP8Hry9Eag6gvUV7ir%2Fuploads%2FLXtOazoe9O9DkOfIx5kn%2Fimage.png?alt=media&#x26;token=693804f9-1bbd-454a-ad71-226f3a7d54cc" alt=""><figcaption></figcaption></figure>

**CRTL + SHIFT + RIGHT CLICK |**&#x20;

* **Ope Linux Shell here**

<figure><img src="https://1753696557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg2KP8Hry9Eag6gvUV7ir%2Fuploads%2FR0FZXh0rvXBN01lormTp%2Fimage.png?alt=media&#x26;token=88d2278b-61cd-47b4-bc94-f9cd67a3553a" alt=""><figcaption></figcaption></figure>

Copy this Code below:

```
export NODE_ENV=testnet
```

```
export LOG_LEVEL=debug
export LOG_PRETTY=false
```

```
export EXECUTOR_PROCESS_ORDERS=true
export EXECUTOR_PROCESS_CLAIMS=true
```

Set Your **`PRIVATE_KEY_LOCAL`** variable of your Executor, which is the private key of the wallet you will use. The example below is a fake generated key that should/cannot not be used:

```
export PRIVATE_KEY_LOCAL=
```

**Example:**&#x20;

```
export PRIVATE_KEY_LOCAL=dead93c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56dbeef
```

### How to find Your Private Key? | OKX WEB3 WALLET

<figure><img src="https://1753696557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg2KP8Hry9Eag6gvUV7ir%2Fuploads%2FxYRVQd3cJ4anhxDr60iA%2Fimage.png?alt=media&#x26;token=578911d3-5751-47c7-9977-37e576b47563" alt=""><figcaption></figcaption></figure>

Click Backup > Select your Wallet > Ethereum Network > Copy your Private Key

<figure><img src="https://1753696557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg2KP8Hry9Eag6gvUV7ir%2Fuploads%2F2z4asfpNGJb1vVzGsJ79%2Fimage.png?alt=media&#x26;token=e60405ce-d5c8-4db6-bc4a-1f8d09b7b68c" alt=""><figcaption></figcaption></figure>

Go back in Terminal

**Example Code: Hit Enter**

```
export PRIVATE_KEY_LOCAL= your Private Key
```

<figure><img src="https://1753696557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg2KP8Hry9Eag6gvUV7ir%2Fuploads%2FuQzFv3wFnbfDY0RhBVys%2Fimage.png?alt=media&#x26;token=f4574153-b857-48b8-8079-4f10b9a9402e" alt=""><figcaption></figcaption></figure>

```
export ENABLED_NETWORKS='arbitrum-sepolia,base-sepolia,optimism-sepolia,blast-sepolia,l1rn'
```

```
export EXECUTOR_PROCESS_PENDING_ORDERS_FROM_API=false
```

## Start

```
./executor
```
