# Installation

{% tabs %}
{% tab title="Step 1" %}
{% code title="Install Pre Requisites" fullWidth="true" %}

```
sudo apt update
sudo apt install git build-essential curl jq lz4 --yes

wget https://go.dev/dl/go1.20.2.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.20.2.linux-amd64.tar.gz
rm go1.20.2.linux-amd64.tar.gz

export PATH=$PATH:/usr/local/go/bin
cat <<EOF >> ~/.profile  
export GOPATH=$HOME/go  
export GO111MODULE=on  
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin  
EOF

source ~/.profile

go version

# OUTPUT
# go version go1.20.2 linux/amd64
```

{% endcode %}
{% endtab %}

{% tab title="Step 2" %}
{% code title="Install Planq Node" fullWidth="true" %}

```
git clone https://github.com/planq-network/planq.git
cd planq
git checkout v1.1.1
make install
planqd version

# OUTPUT
# 1.1.1
```

{% endcode %}
{% endtab %}

{% tab title="Step 3" %}
{% code title="Create Background Service" fullWidth="true" %}

```
sudo tee /etc/systemd/system/planqd.service > /dev/null << EOF

[Unit]
Description=Planq Network
After=network-online.target

[Service]
User=$USER
ExecStart=/home/$USER/go/bin/planqd start
Restart=always
RestartSec=3
LimitNOFILE=10000

[Install]
WantedBy=multi-user.target
EOF
```

{% endcode %}

{% code title="Enable Planq Node In Background" fullWidth="true" %}

```
sudo systemctl enable planqd
```

{% endcode %}
{% endtab %}

{% tab title="Step 4" %}
{% code title="Initialize Planq Node" fullWidth="true" %}

```
planqd config chain-id planq_7070-2
planqd init "your node name" --chain-id planq_7070-2
```

{% endcode %}

{% code title="Set Gas Price" fullWidth="true" %}

```
sed -i 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.0026aplq"|g' $HOME/.planqd/config/app.toml
```

{% endcode %}

{% code title="Get Genesis" fullWidth="true" %}

```
 wget https://snapshot.safeblock.space/planq/genesis.json -P $HOME/.planqd/config 
```

{% endcode %}
{% endtab %}

{% tab title="Step 5" %}
Start by StateSync or Snapshot

{% content-ref url="/pages/uPEcylsLTbNEN7uPc52V" %}
[State Sync](/mainnet-networks/planq/guides/state-sync.md)
{% endcontent-ref %}

{% content-ref url="/pages/rMBrgfiGI87hzaUgk3dO" %}
[Snapshot](/mainnet-networks/planq/guides/snapshot.md)
{% endcontent-ref %}
{% endtab %}

{% tab title="Step 6" %}
{% code title="Start Planq Node" fullWidth="true" %}

```
sudo systemctl start planqd && sudo journalctl -fu planqd -o cat
```

{% endcode %}
{% endtab %}
{% endtabs %}


---

# 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://docs.safeblock.space/mainnet-networks/planq/guides/installation.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.
