> For the complete documentation index, see [llms.txt](https://services.aknodes.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://services.aknodes.com/other-projetcs/avail-mainnet/installation.md).

# Installation

### Install dependencies <a href="#install-dependencies" id="install-dependencies"></a>

```
sudo apt update
sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y
```

### **Install Rust**&#x20;

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

### Create avail file

```
mkdir avail
```

### Enter the file

```
cd avail
```

### **Download the binary**

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

### Extract the file

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

### Create the service file&#x20;

Replace YOURVALIDATORNAME with your moniker

```
sudo tee /etc/systemd/system/availd-mainnet.service > /dev/null <<EOF
[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 "YOURVALIDATORNAME" --port 30334 --rpc-port 9945
Restart=always
RestartSec=120
[Install]
WantedBy=multi-user.target
EOF
```

### Enable and start the service

```
sudo systemctl daemon-reload
sudo systemctl enable availd-mainnet.service
sudo systemctl restart availd-mainnet && sudo journalctl -u availd-mainnet -f
```
