Social media

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

Author: LB 2021-01-03 2496

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

$ sudo sh

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}}

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

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]
email=[YOUR EMAIL]
pool1 =
pool2 =
pool3 =
pool4 =
pool5 =

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:

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


Best GPUs to mine ethereum in 2022


Dual mining ethereum and toncoin on RTX 3060Ti and RTX 3070Ti LHR


Profiling the RTX 3060 Ti and its memory transfer rate


Core clock settings for RTX 3060 Ti when mining Ethereum


Core clock settings for RTX 3070 Ti Founders Edition when mining ethereum