DEV Community

ishwar
ishwar

Posted on

1 1

How To Run Ethereum Node?

How To Run Ethereum Node

Running Ethereum node on ubuntu server is quite easier.

This post provides step by step instructions on how to install a quick Ethereum network on Ubuntu 16.04 LTS.

geth:

 Our main Ethereum CLI client. It is the entry point into the Ethereum network (main-, test- or private net), capable of running as a full node (default), archive node (retaining all historical state) or a light node (retrieving data live). It can be used by other processes as a gateway into the Ethereum network via JSON RPC endpoints exposed on top of HTTP, WebSocket and/or IPC transports. geth --helpand the CLI Wiki page for command line options.

Ethereum:

Ethereum is a decentralized platform that runs smart contracts, applications that run exactly as programmed without possibility of downtime, censorship, fraud or third party interference.

According to my experience:

  • Minimum hardware requirements (for initial sync): 4 CPU, 8 GB RAM, 100 GB disk 
  • Minimum hardware requirements (for normal operations): 2 CPU, 4 GB RAM, 300 GB disk

Hosting a website and creating ethereum node on the same server is NOT a good idea.

Install the latest Ethereum software.

Installing from PPA

  1. install software-properties-common(add-apt-repository command is under the package software-properties-common and you need to install this package in order to install add-apt-repository).

  2. add the ppa:ethereum/ethereum repository using the add-apt-repository command.
    Now you want to check your /sources.list.d/. For example if you are adding Launchpad to your wheezy /sources.list.d/

  3. updated versions of packages are available is obtained by running sudo apt-get update (or sudo aptitude update ), it is advisable to run this before installing any package

  4. Installing Go Ethereum. Install from a package manager. Install on macOS via Homebrew. Install on Ubuntu via PPAs. Install on Windows via Chocolatey. Download standalone bundle. Run inside docker container. Build it from source code

If you want to stay on the bleeding edge, install the ethereum-unstable package instead.
After installing, run geth account new to create an account on your node.
You should now be able to run geth and connect to the network.
Make sure to check the different options and commands with geth - help

Start up Geth
Start up a light geth node in one tmux pane.

geth - light
or
geth

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (1)

Collapse
 
quiknode profile image
QuikNode

Thanks, Ishwar!

For those not familiar with Linux or the command-line (CLI), but still want to run their own ETH blockchain node for their #web3 #dApp, check out QuikNode.io ...

One can launch an Ethereum node in the cloud (8 global locations), on MainNet, Ropsten, Rinkeby, Kovan (even Morden & Classic ETC), on Geth or Parity client, and have a synced Full Node in minutes.

Full https:// (httpProvider) and wss:// (websockets) API support, including event subscriptions.

No maintenance required; everything (including updates and chain forks) is handled for you, behind the scenes.

All you have to do is focus on the #BUIDL!

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more