# Operation on Linux

{% hint style="danger" %}
**🚨Important Note🚨**

If you have participated in Herschel testnet earlier, you need to mannually clear previous node data. Otherwise the node will not be able to start. 🚨

**🔘** [Data Cleaning Guide](https://titannet.gitbook.io/titan-network-en/resource-network-test/operate-nodes/l2-edge-node/installation-and-earnings/clear-up-old-node-data/data-cleaning-on-linux)

*If you have never operated Titan node before, just follow the steps below.*
{% endhint %}

{% hint style="info" %}
The [Releases](https://github.com/Titannet-dao/titan-node/releases) section on our GitHub is the best place to get the latest binary releases and view the source code.
{% endhint %}

## Step 1: Download the CLI

{% embed url="<https://github.com/Titannet-dao/titan-node/releases/download/v0.1.20/titan-edge_v0.1.20_246b9dd_linux-amd64.tar.gz>" %}

## Step 2: Extract the downloaded package

Open Terminal, change the directory to the download folder, and execute the following command to extract:

```
tar -zxvf titan-edge_v0.1.20_246b9dd_linux-amd64.tar.gz
```

## Step 3: Enter the extracted folder

* Use the following command to enter the extracted folder

```
cd titan-edge_v0.1.20_246b9dd_linux-amd64
```

## Step 4: Install Titan Edge

* Copy `titan-edge` executable to the system directory `/usr/local/bin` , so that it can be executed at any location

```
sudo cp titan-edge /usr/local/bin
```

## Step 5: Install the library

* Copy th library (assuming its name is `libgoworkerd.so`) to the system directory `/usr/local/lib`

```
sudo cp libgoworkerd.so /usr/local/lib
```

## Step 2: Launch the CLI

```
export LD_LIBRARY_PATH=$LD_LIZBRARY_PATH:./libgoworkerd.so
titan-edge daemon start --init --url https://cassini-locator.titannet.io:5000/rpc/v0
```

## Step 3: 👉 [Apply for an identification code ](https://titannet.gitbook.io/titan-network-en/resource-network-test/bind-the-identity-code)👈

## Step 4: Bind the identification code

Replace <mark style="color:red;">your-hash-here</mark> with the obtained <mark style="color:red;">identification code</mark>

```
titan-edge bind --hash=your-hash-here https://api-test1.container1.titannet.io/api/v2/device/binding
```

## Step 5: Stop the node

```
titan-edge daemon stop
```


---

# 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://titannet.gitbook.io/titan-network-en/resource-network-test/operate-nodes/l2-edge-node/installation-and-earnings/operation-on-linux.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.
