4-2-2. How to set up EMETH Node for Ubuntu users
Last updated
Last updated
This guide provides a comprehensive, step-by-step procedure for setting up an EMETH Node on a Ubuntu Linux OS.
Initial Environment Preparation
Operation with Node.js
Operation with EMETH NODE
(Optional) Persistence by Process-Manager
Preparation of initial environment Install Ubuntu, MetaMask, and create an account (wallet address) for Emeth Node.
Install Ubuntu, MetaMask, create account (wallet address) for Emeth Node
Procure MATIC tokens and put them in MetaMask.
How to buy Polygon MATIC tokens easy way.
Check installed node and npm versions
$ node -v v18.17.1 $ npm -v 9.6.7
Check installed Docker version
$ docker -v Docker version 24.0.6, build ed223bc
$ sudo groupadd -f docker $ sudo usermod -aG docker $USER $ newgrp docker
$ cp config/emeth-node.json.example config/emeth-node.json $ vi config/emeth-node.json
config/emeth-code.json:
Here are the list of items you don’t need to change from “Sample Value”. *You need to prepare and fill“endpoint” and “privateKey” by yourself.
・emethCoreContractAddress: 0x5aF9c255D6C965aAa8DB3e9C82276e59345186C8
・emethTokenContractAddress: 0xCB746131b75f30942de7C59a5Be1393Fca5Be05D
$ node bundle.js
If you want to process only one job for testing, the following options are available
$ node bundle.js — iterations 1
$ npm install -g pm2
$ pm2 start bundle.js — name emeth-node
$ pm2 list
or
$ pm2 monit
$ pm2 logs emeth-node
$ curl | bash $ source ~/.profile $ nvm install v18.17.1
$ sudo apt update $ sudo mkdir -p /etc/apt/keyrings $ curl -fsSL | sudo gpg — dearmor -o /etc/apt/keyrings/docker.gpg $ echo “deb [arch=$(dpkg — print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] $(lsb_release -cs) stable” | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null $ sudo apt update $ sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
$ mkdir emeth-node $ cd emeth-node $ wget $ unzip emeth-node $ rm emeth-node.zip
・cacheServerUrl
・storageApiUrl
If you encounter any errors or have any questions, please contact us in the Discord channel. Discord: