Running Mina without Docker
Last updated
Last updated
We recommend using tmux
before starting to run multiple sessions in one terminal.
Open ports 22, 8302 and 8303 and activate the Firewall:
We check the status of open ports with the command:
If you do not have UFW installed on your server, install it using the command sudo apt install ufw
Need to install Homebrew.
Installing packages coda
.
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.
Ubuntu 18.04 / Debian 9
Let's create a folder .coda-config
:
Downloading package Mina
:
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
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.
Viewing logs:
Start an empty session in Tmux:
More about 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: