> For the complete documentation index, see [llms.txt](https://docs.logosnodos.online/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.logosnodos.online/mainnet-node/avail-network/installation.md).

# Installation

**Step 1: Update and install packages for compiling**

```
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
```

**Step 2: Install Rust**

```php
curl https://sh.rustup.rs -sSf | sh
```

Select 1 and enter

**Step 3: Go to home**

```php
source $HOME/.cargo/env
```

**Step 4: Update rust**

```php
rustup update nightly
```

**Step 5: Add tools**

```php
rustup target add wasm32-unknown-unknown --toolchain nightly
```

**Step 6: Access Avail folder**

```php
mkdir avail
cd avail
```

**Step 7: Download Binary**

```
wget https://github.com/availproject/avail/releases/download/v2.2.5.1/x86_64-ubuntu-2204-avail-node.tar.gz
```

**Step 8: Extract**

```
tar -xf x86_64-ubuntu-2204-avail-node.tar.gz
```

**Step 9: run node**

```php
./avail-node --chain mainnet --name "Validator Moniker" --validator -d ./node-data
```

CTRL + C to escape (You need to run validator to your system to make system running 24/7)

**Step 10: Edit service file**

```php
sudo nano /etc/systemd/system/availd.service
```

*Change your Validator Moniker*

```php
[Unit]
Description=Avail Validator
After=network.target
StartLimitIntervalSec=0
[Service]
User=root
ExecStart= /root/avail/avail-node -d /root/avail/node-data --chain mainnet --validator --name "Validator Moniker"
Restart=always
RestartSec=120
[Install]
WantedBy=multi-user.target
```

**Step 11: Enable the service file**

```php
sudo systemctl daemon-reload
sudo systemctl enable availd.service
```

**Step 12: Start service file**

```php
sudo systemctl start availd.service
```

**Step 13: Check status of service**

```php
sudo systemctl status availd.service
```

**Step 14: Check logs**

```php
journalctl -f -u availd
```

Thank's to ADAM\_VNBnode for the guide it's very clear and we reshare for our community \
Source : <https://github.com/vnbnode/VNBnode-Guides/blob/main/Mainnet/Avail/avail_mainnet.md>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.logosnodos.online/mainnet-node/avail-network/installation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
