# 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="state-sync" %}
[state-sync](https://docs.safeblock.space/mainnet-networks/planq/guides/state-sync)
{% endcontent-ref %}

{% content-ref url="snapshot" %}
[snapshot](https://docs.safeblock.space/mainnet-networks/planq/guides/snapshot)
{% 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 %}
