Running Mina without Docker

Setting up TMUX

1. Firewall configuration

Open ports 22, 8302 and 8303 and activate the Firewall:

sudo ufw allow 22 \
&& sudo ufw allow 8302 \
&& sudo ufw allow 8303 \
&& yes | sudo ufw enable

We check the status of open ports with the command:

sudo ufw status

If you do not have UFW installed on your server, install it using the command sudo apt install ufw

2. Installation for macOS

Need to install Homebrew.

brew install wget

Installing packages coda.

brew install minaprotocol/mina/mina

Running a node:

If you already have the mina package installed, you need to update it with the command below. If you have not previously installed mina, then you can skip this command.

3. Installation for Ubuntu 18.04 / Debian 9

Let's create a folder .coda-config:

Downloading package Mina:

4. Launch options

4.1 Launch in Service

Setting up the mina-env file:

We copy and paste the variables into the file after entering your password from the key instead of YOUR PASS FOR KEYS and KEYPATH:

Save ans exit: CTRL+S and CTRL+X

4.1.1 Adding Snark Worker flags (if needed)

Add to file .mina-env Snark worker flags with your key and fee:

By default, the -work-selection for a snark worker is random rand. You can change this by adding the -work-selection seq flag to the command, which will work on jobs in the order required to be included from the scan state and will likely result in your snarks being included without a potentially lengthy delay.

4.1.2 Start the service

Viewing logs:

4.2 Running a node in TMUX

Start an empty session in Tmux:

More about TMUX:

Setting up TMUX

And launch in session with the command:

Before starting the block producer, you need to import and unlock the keys:

Run Block Producer:

Run Snark Worker:

Here you can set the Worker commission coda client set-snark-work-fee 0.25, or leave it as it is.

Next, go to the next section and start with Point 2:

CLI. Key import, sending tokens

Last updated

Was this helpful?