To start the Geth installation on Ethereum, we first need to call up a Windows or GNU / Linux console to start the installation process. If you are working on Windows, You need to go to the Start menu and type in “cmd”, There you will see the following picture:
Once there click on the cmd picture (black icon) and you can type it in:
Important: If you are using Windows Terminal or any other console in Windows, this is sufficient. In our case we also follow the examples using Windows Terminal.
If you are using GNU / Linux this is enough. If you are running the console of your desktop environment to be able to follow the steps outlined below.
Install Geth with Docker
In the console or in the terminal you need to enter the following command: nbsp;
Docker Pull Ethereum / Client-Go: stable
This command will start the geth installation process in addition to your current Docker installation. All of this after Process officially described by the geth developers. nbsp;
Important: Never install software from unofficial sources or execute commands that you do not know what they are doing as this could result in the theft of your cryptocurrencies or infection of your computer. Nbsp;
When you run the previous command, our console will show:
Wait for the process to complete before proceeding to the next step. Nbsp;
After the installation is complete, We will go to the Docker dashboardand we will see the following: nbsp;
As we can see, we have our geth installation installed on Docker. Now start our node nbsp;We need to sit on it and click on the “RUN” option that appears on the right side of the screen.
When you click on you will see the following screen:
In the area “container“The Docker dashboard shows:
Our geth node is running there. If we click on it, you can see everything that is going on in it.
All you see at this point is your personal geth node going through the syncing process. Default, When configuring this node, a full synchronization of the Ethereum blockchain is performed, which currently requires 5TB of storage. If you have the resources to manage a node with these characteristics, feel free to do so and help the Ethereum community with their decentralization. In this case, ideally, you should keep this node active at all times on a high-capacity server. nbsp;
However, since this is a lot of space for most people, The ideal is to run a lighter knot, and that’s what we’ll do next. That way, you can install a fully functional node that gives you a higher level of privacy and control over your operations. nbsp;
Setting the light node mode
The light mode configuration is slightly different, however. First, Go to the Docker Dashboard and remove your Geth installation. This will only remove the installation and not the required installation files (images) that we will need later. nbsp;
Deletion can be done by selecting the running image of Geth in the Docker dashboard and clicking the trash can icon that appears on it, as shown in the image below.
With the image removed, the next thing you should create a folder in your documents or on your desktop called “Geth-Docker”. or with the name of your choice. In this folder you save a document with the name “docker-compose.yml”. This document stores the information that is displayed in this link. You can also download the file from the link and save it in the folder that saves you work. Nbsp;
As far as you know, the commands in the file execute the following command string:
- You start a container named app-ethereum. This will be shown in the Docker dashboard once the Docker-Compose installation is complete. Nbsp;
- Install the stable version of Geth (Ethereum / Client-Go: Stable). This way we always have the most up-to-date stable version of Geth. Nbsp;
- Open ports 8545 for RPC system 30303 and 30303 / udp to connect other wallets and interact with our node. Nbsp;
- Using our hard drive, create information storage points for our node. So everything that happens in the node is always recorded. nbsp;
- Start Geth in light mode (section ldquo; Command rdquo;). Nbsp;
This way you know exactly what is happening with this Docker-Compose on your computer. Again, I invite you to be careful when performing this type of action from unknown or unreliable sources.
Important: The Docker-Compose configuration indicated is a personal use configuration and is not intended for mass production or public use. Be aware that if you want to provide a public node service for purposes other than collaborative, you must take other security measures.
Once you’ve downloaded the contents of the link and pasted them into the docker-compose.yml file, save your changes and go to the console or terminal. From there, the following will be: Using the console, navigate to your location said file. It’s easy to do, open File Explorer and go to the address where you are. the docker-compose.yml file once it’s there Copy the address shown in the bar as shown in this picture:
In this case the address is: ldquo;D: DOCKER GETH-ETHEREUM rdquo; but in your particular case you can just change it, make sure you copy the address and the following will go to the terminal and paste this command:
CD D: DOCKER GETH-ETHEREUM
This will change your working directory to the directory where you saved the docker-compose.yml file. Once there run the command nbsp; out
This starts the installation of the Docker-Compose that we did and starts our Geth node in light mode as indicated by us. Nbsp;
If we check the Docker dashboard at this point, our lightweight geth node will be working fine. Nbsp;
Test our knot
however How do we know Geth is really there? Working and all this is not just a joke? A quick and easy way is to configure a wallet like MetaMask to use our node to send and receive money from the network. It’s pretty easy to do. To do this, let’s open our favorite browser and go to the official MetaMask website.
There go to the “Downloads” or “Download” section and download the wallet for our browser. nbsp;
When installing, we have our wallet ready to be configured. Nbsp;
All you have to do is follow the configuration process. As soon as you have completed it, your MetaMask is installed in your browser and can be used. There we start with the configuration for using our local Geth node. Nbsp;
In this point, All you have to do is select the connection medium to be used for your MetaMask. It is very easy to do. Just click on the menu. Drop down menu in the top right and select “localhost: 8545”.
With that we have already connected our MetaMask wallet via our own Geth node. However, What what if we want to test our wallet in a DeFi app? If we go to Compound we can check that everything is working as it should.
When we enter the DApp we can interact with it with MetaMask, and that’s it too will send all the information on the network is used through our own node so that third parties cannot manage or forward it. In the figure below, we can see that Compound DApp is actually connected to our MetaMask and that our MetaMask is there. Use our local node to do all the work … decentralize to the max.
And since then without any loss of functionality We can easily send, receive and interact with DApps.