# Run full node in Linux

{% hint style="info" %}

## Why run a full node? <a href="#ca1c" id="ca1c"></a>

A fully set up node keeps track of the blockchain while the miners validate the blocks. This is required in order for the network to sync and run.

By running a **full node**, you are helping to secure the network. Best of all, running a node requires minimal hardware and can run on most modern computers/miners. Doing this, enables the wallets to sync up faster with the network itself.
{% endhint %}

{% hint style="info" %}

### First we need to install the Waller / Daemon / Core Client

{% endhint %}

{% hint style="info" %}
**The following steps are:**

### 1) Download and install the **"Satocoin Core Wallet"** for Linux.

<https://github.com/satoverse/satoxcoin/releases/>

You can download the "**precompiled"** release or "**compile it yourself".**
{% endhint %}

> If you don't have "dnf" install on Ubuntu, follow this guide:\
> <https://installati.one/ubuntu/21.10/dnf/>\
> \
> You will also need to install "aptitude", folllow this guide:\
> <https://installati.one/ubuntu/21.10/aptitude/>

{% hint style="info" %}

### Dependency Build Instructions:

Build requirements:
{% endhint %}

```
sudo dnf install gcc-c++ libtool make autoconf automake openssl-devel libevent-devel boost-devel libdb4-devel libdb4-cxx-devel python3
```

<pre><code><strong>sudo dnf install qrencode-devel
</strong></code></pre>

{% hint style="info" %}
libqrencode (optional) can be installed with:
{% endhint %}

```
sudo dnf install qt5-qttools-devel qt5-qtbase-devel protobuf-devel
```

To build with Qt 5 (recommended) you need the following:

```
sudo dnf install miniupnpc-devel
```

Optional:

```
sudo dnf install gcc-c++ libtool make autoconf automake openssl-devel libevent-devel boost-devel libdb4-devel libdb4-cxx-devel python3
```

{% hint style="info" %}

## Precompiled release:

#### Once you have downloaded the .rar file, you will need to extract it out of the folder.

{% endhint %}

{% hint style="info" %}
If you do not have WinRAR installed, please do the following:
{% endhint %}

```
sudo apt update -y
```

```
sudo apt install unrar
```

```
unrar satoxcoin-version.rar
```

```
cd satoxcoin-version/
```

{% hint style="info" %}

#### In order to execute the file:

{% endhint %}

```
chmod +x satox*
```

{% hint style="info" %}

### Linux

1. Download and extract binaries to your desired path/location:

2. Install distribution-specific dependencies listed below.

3. Start the GUI wallet or the SatoXcoin Core daemon.
   {% endhint %}

4.

<pre><code><strong>a. SatoXcoin (QT) GUI Wallet:
</strong>./satoxcoin-qt
b. Satoxcoin Daemon:
./satoxcoind -daemon
</code></pre>

{% hint style="info" %}
**Follow up with this:**
{% endhint %}

```
c.Satoxcoin Client
```

```
./satoxcoin-cli
```

{% hint style="info" %}
**Do you want to move the wallet / daemon to a different location/path?**

Navigate to satoXcoin folder:
{% endhint %}

```
sudo cp satoxcoin* /bin/
```

{% hint style="info" %}

### >> [For support for other Linux distros, please click here](https://github.com/satoverse/satoxcoin/blob/main/doc/build-unix.md) <<

##

## You can also compile the wallet yourself.

{% endhint %}

You can also compile the wallet yourself.

{% hint style="info" %}
**Clone the repository:**
{% endhint %}

```
git clone https://github.com/satoverse/satoxcoin.git
```

```
cd satoxcoin/
```

```
sudo chmod +x autogen.sh ./share/genbuild.sh
```

{% hint style="info" %}

## Ubuntu 18.04

{% endhint %}

```
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 

```

{% hint style="info" %}

### Set PATH:

{% endhint %}

```
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
```

{% hint style="info" %}

## Permissions

{% endhint %}

```
cd depends
chmod 764 config.guess config.sub
```

{% hint style="info" %}

## build for linux 64-bit

{% endhint %}

If you want to compile for diffrent os [click here...](https://github.com/satoverse/satoxcoin/blob/main/depends/README.md)

```
make HOST=x86_64-pc-linux-gnu
cd ..
```

{% hint style="info" %}

## Configure

{% endhint %}

```
./autogen.sh
./configure --enable-cxx --disable-shared --with-pic --prefix=$BDB_PREFIX CXXFLAGS="-fPIC" CPPFLAGS="-fPIC"

```

{% hint style="info" %}

## Compile

{% endhint %}

```
sudo make clean
make
sudo make install

```

{% hint style="info" %}

## Run SATOX Core Wallet

{% endhint %}

**(daemon)**

satoxcoind

Typ: **satoxcoind -h** for help

**(client)**

satoxcoin-cli

Typ: **satoxcoin-cli -h** for help

**(QT wallet with GUI for Desktop users)**

satoxcoin-qt&#x20;

{% hint style="info" %}
**Configure your node:**
{% endhint %}

```
nano ~/.satoxcoin/satoxcoin.conf
```

```
txindex=1
```

```
server=1
```

{% hint style="info" %}
**Ctrl + X > select "Y"**
{% endhint %}

```
Start GUI wallet ./satoxcoin-qt
```

```
Start Daemon ./satoxcoind
```

{% hint style="info" %}

### Open Ports

Lastly, you will need to open up certain ports within your router's internal web GUI for the most optimal connections.

Ports are listed on this website: <https://www.satoverse.io/whitepaper/>
{% endhint %}


---

# 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.satoverse.io/docs/support-satox/run-full-node-in-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.
