Social media


How to mine Ethereum on GPU for beginners - a step-by-step guide

Author: LB 2021-01-03 145

The price of both BTC and Ethereum are soaring, albeit with extreme volatility. This is no surprise, as they are cryptocurrencies and there is almost no regulation that could at least in some way bridle their uncontrolled behaviour. Therefore, whenever the demand grows for these assets, their price skyrockets and the same is true for the opposite direction. When prices are up, mining Ethereum can be very profitable and many, in possession of a GPU turn their PCs into mining machines. In the following guide, I am going to show you how to do that. Let's get started!


As I do not own a video card, I initialized a virtual machine in the cloud and I tried out cryptocurrency mining in this virtual environment. Everything went well, and eventually I was able to mine Ethereum with a stable hashrate. So first of all, I allocated 15 GB of memory and a NVIDIA Tesla P4 GPU.


How do you mine Ethereum in 2021?


Once the system was ready, I installed a Debian OS and I had to download CUDA from the official Nvidia site. This was fairly easy, I just had to execute the following commands:


$ wget https://developer.download.nvidia.com/compute/cuda/11.2.0/local_installers/cuda_11.2.0_460.27.04_linux.run


$ sudo sh cuda_11.2.0_460.27.04_linux.run



Once the CUDA package installs itself you have to link the executables to your path and you also have to tell the linker where the CUDA headers are located. I usually place this setting in my .bashrc file in the following way:


$ vim $HOME/.bashrc

And I just insert this code into the file:


if [ -d "/usr/local/cuda-11.2/bin/" ]; then
  export PATH=/usr/local/cuda-11.2/bin${PATH:+:${PATH}}
  export LD_LIBRARY_PATH=/usr/local/cuda-11.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
fi


In the next step, I am going to show you how to install the nanominer software. Let's download the precompiled binaries from Github.


$ wget https://github.com/nanopool/nanominer/releases/download/v3.1.4/nanominer-linux-3.1.4-cuda11.tar.gz


You have to untar the archive and create your own configuration file. This file will contain your Ethereum wallet's address and some pool server addresses:


wallet=[YOUR WALLET]
algorithm=Ethash
coin=ETH
rigName=RIG1
email=[YOUR EMAIL]
restarts=0
pool1 = eth-eu1.nanopool.org:9999
pool2 = eth-eu2.nanopool.org:9999
pool3 = eth-us-east1.nanopool.org:9999
pool4 = eth-us-west1.nanopool.org:9999
pool5 = eth-asia1.nanopool.org:9999


If you are done with this, you are ready to launch the miner in your command line:


$ ./nanominer


This is how the output of the miner looks. You can check my hashrate and the temperature of the GPU on the following image:



In a few minutes I was already able to check my Ethereum balance on nanopool:



Whether mining Ethereum is profitable or not you can check by visiting the following link:


https://www.cryptocompare.com/mining/calculator/eth?HashingPower=17&HashingUnit=MH%2Fs&PowerConsumption=58&CostPerkWh=0.11&MiningPoolFee=1


The profitability of Ethereum mining depends on the price of electricity in your area. Contact your electric power provider and consult with them about their fees.


If you followed the above steps, everything must be given to you to launch your Ethereum mining rig. With this simple setup, I was able to start mining Ethereum and my hashrate stabilized in a few minutes. The above images shows you the profitability using this NVIDIA Tesla P4 GPU considering today's Ethereum market price and the electricity price in my area. This card, with 17 MH/s would mine me $28.81 of Ethereum every month. When the miner is ready, you hardly have to touch it, but make sure it does not get overheated. This sounds like a good source of passive income, as long as the market price of Ethereum stays pretty much the same.


Good luck in the Ethereum ecosystem!


Interesting entries


14.01.2021

Some useful information for Ethereum miners

10.01.2021

How to make cryptocurrency networks more secure?

06.01.2021

Why is it so risky to invest my money into crypto?

03.01.2021

How to mine Ethereum on GPU for beginners - a step-by-step guide

14.09.2020

How to withdraw money from a Bitcoin ATM in Kraków, Poland

14.09.2020

Testing a Bitcoin ATM in Kraków, Poland

09.09.2020

Withdrawing cash from a Bitcoin ATM in Salzburg, Austria

09.09.2020

Purchasing Bitcoin in Salzburg, Austria without registering your phone number

01.09.2020

Chinese technology is taking over the telecommunication markets in Africa

29.08.2020

Bitcoin ATM in Košice, Slovakia

28.08.2020

Selling Bitcoin for cash in Bratislava

26.08.2020

How to purchase Bitcoin in Bratislava without registering your phone number

26.08.2020

The cost of withdrawing cash from a Bitcoin ATM in Budapest

26.08.2020

How much does it cost to use a cryptocurrency ATM in Hungary?

24.08.2020

Detailed comparison on Bitcoin ATMs across central Europe

24.08.2020

Withdrawing cash in Prague from a Bitcoin ATM

21.08.2020

Bitcoin ATM in Prague with no fixed transaction fee

22.08.2020

How to withdraw cash from a Bitcoin ATM in Prague without revealing your personal information?

22.08.2020

Buying Bitcoin in Prague

22.08.2020

How to purchase Bitcoin in Prague without revealing your personal information?

10.07.2020

How to buy cryptocurrency in Budapest

02.07.2020

Purchase cryptos at the best market price!

28.06.2020

The Japanese way of money from the Genji Era to the Mt. Gox scandal

24.06.2020

How to withdraw cash using a Bitcoin ATM in Vienna?

20.08.2020

Two-way Bitcoin ATM in Vienna, Austria

20.06.2020

Two-way bitcoin ATM in Budapest

19.06.2020

How to withdraw cash from a Bitcoin ATM in Budapest?

18.06.2020

Cryptocurrency ATM in Budapest

12.06.2020

Employee evaluation system based on blockchain technology from Japan

12.06.2020

Kazakhstan to ban transfer between anonymous electronic wallets

11.06.2020

Bitcoin mining is getting popular in Kazakhstan with Japanese investment

08.06.2020

Deceptive marketing schemes on video sharing platforms in China

04.06.2020

Revolutionary solutions in networking from Japan

15.05.2020

User data leakage from Russian financial institutions

22.12.2019

Where are the largest Bitcoin mines in the world?