The only guide you need for crypto mining on Ubuntu 2022
First, Medium is removing accounts from the Partner program if they do not have enough followers. Please follow my account to support my article.
Many people do machine learning on Ubuntu and want to min cryptos when they are not using the gpus. They are not professional miners but it will be great to earn some passive incomes given the graphic cards are so expensive today. In the tutorial, I will go through all the steps to earn your crypto passive income.
I assume you have your nvidia drivers and gpus installed. We are going to mine ethereum because it’s now the most profitable crypto in mining today.

If you do not have an eth wallet address, sign up on FTX or Binance.
Miners
Mining is simple. You just need to enter one command in the terminal. There are many miners in the market, the most popular one is https://github.com/ethereum-mining/ethminer. We are going to use nsfminer because of no stinkin’ fees. Download the file and unzip it. If you are using 30x graphic cards, you probably fail to run the program because it’s not compiled for CUDA 11.2. Download the program here https://github.com/no-fee-ethereum-mining/nsfminer/releases.
Pool
We use a pool for mining. I personally use 2Miners because of its many advantages. One is 1% low fees. Another one is you can withdraw Eth in Btc( lower fees).
Command
Go to the target folder and type:
./nsfminer -P stratum1+tcp://YOUR-ADDRESS.pc@2MINERS-SERVER.
That’s it. Simple.
Optimization
To max out your return/cost, overclock it with
sudo nvidia-settings
Usually, I set the clock to -200 and memory to 1200. There is no single solution and you need to test it yourself.
Use
sudo nvidia-smi -i 0 -pl POWER
to limit the power usage. Usually 80% of the maximum power.
Limit the fan to 50% so you don’t break the fan very quickly. Control the temperature.
Conclusion
That’s it. Simple. If everything goes well, we can still mine some eth before the eth2 is completely online. Thanks for reading. I have to write more articles to not kicked out of the Partner program. What you guys wanna read?






