# Install FirmaChain(임시)

## Specification

### Hardware requirements

Disk space depends on the [pruning strategy](https://hub.cosmos.network/main/gaia-tutorials/join-mainnet.html#pruning-of-state) of your choice.

There are four strategies for pruning state. These strategies apply only to state and do not apply to block storage. To set pruning, adjust the `pruning` parameter in the `~/.firmachain/config/app.toml` file. The following pruning state settings are available:

1. `everything`: Prune all saved states other than the current state.
2. `nothing`: Save all states and delete nothing.
3. `default`: Save the last 100 states and the state of every 10,000th block.
4. `custom`: Specify pruning settings with the `pruning-keep-recent`, `pruning-keep-every`, and `pruning-interval` parameters.

<table><thead><tr><th width="228.33333333333331">Pruning strategy	</th><th>Minimum disk space</th><th>Recommended disk space</th></tr></thead><tbody><tr><td>everything</td><td>20 GB</td><td>40 GB</td></tr><tr><td>default</td><td>80 GB</td><td>120 GB</td></tr><tr><td>nothing</td><td>120 GB</td><td>> 240 GB</td></tr></tbody></table>

By default, every node is in `default` mode which is the recommended setting for most environments.



Apart from disk space, the following requirements should be met.

| Minimum CPU cores | Recommended CPU cores |
| ----------------- | --------------------- |
| 2                 | 4                     |

| Minimum RAM | Recommended RAM |
| ----------- | --------------- |
| 4 GB        | 8 GB            |

### Service Ports

<table><thead><tr><th>Type</th><th width="178.37007626758634">Port number</th><th width="349.9763569256051">Description</th></tr></thead><tbody><tr><td>SSH</td><td>22</td><td>for connect ssh</td></tr><tr><td>API</td><td>1317</td><td>http api</td></tr><tr><td>P2P</td><td>26656</td><td>for peer communication</td></tr></tbody></table>

## Installation

### Ways 1. Install FirmaChain from pre-built binary by curl

You can easily download a pre-built binary for your operating system using the command below.

#### download binary

```shell
# On Bash
curl https://build.firmachain.org | bash

sudo mv ./firmachaind /usr/local/bin/firmachaind
```

#### check version & sha1sum

```
firmachaind version
0.3.3
```

```
firmachaind version --long
name: Firmachain
server_name: firmachaind
version: 0.3.3
commit: 9df9ce421987823a94259bee257e436ba4562c3b
...
cosmos_sdk_version: v0.44.5
```

```
sha1sum /usr/local/bin/firmachaind
14cfd7a09d4d53293f07c65fbf7b9032140a0da6  firmachaind
```

### Ways 2. Download from Github Release page

You can download a prebuilt binary from the link below. [https://github.com/FirmaChain/firmachain/releases/tag/v0.3.1](https://github.com/FirmaChain/firmachain/releases/tag/v0.3.1)​

![Screenshot from Github release page](https://firmachain.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MizWtAhqgIPKt343EjZ%2Fuploads%2Fi3jIsz9TLJOFKG8Rax6y%2Fstep2_download_image.png?alt=media\&token=dee95f51-021b-4c12-9318-c2e3c4247703)

Select, download and unzip a binary that suits your OS.\
Please confirm whether you’ve downloaded the correct version, using the method provided in Ways 1.
