HOW TO CPU MINE IN LINUX

HOW TO CPU MINE IN LINUX

By Wolf2015 | My Crypto Info | 3 May 2021


It is well known that using Windows takes up far too many resources in the background that hinders the mining of cryptocurrency. The solution is easy. We will cover three articles on the best way to use Linux to CPU mine and get a far more efficient rate than windows.

 

INSTALLING LINUX

 

There are many lightweight Linux Distributions available, I use Lumbuntu 20.04 (Groovie Gorilla) for my lightweight Linux distribution. I will not use this article to provide how to install the OS, but you can burn a DVD or use a USB the way is up to you.

 

INSTALLING AND USING THE MINER SOFTWARE.

 

The first thing you should do, after you have completely updated and upgraded your computer is to install the mining software. I have done this step and all the other mining software work just as good. Let us install XMRIG mining software to mine monero.

 

STEP 1

 

511ea967a42cab622af492330b18f4f394d8c843ce0cf9a2fb1ac4ef5e54fffc.png

 

Open a terminal, in Lumbuntu 20.04 it may be the Q TERMINAL. Then type this exactly:

 

sudo apt-get install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev

 

This will install the necessary libraries you will need to run the mining software.

 

STEP 2

 

Now, after the libraries are completed, we will download the XMRIG mining software for Linux by using the Terminal. Type this command exactly.

 

Git clone https://github.com/xmrig/xmrig.git

 

This will start downloading xmrig to your drive.

 

STEP 3

 

This step will make a directory build.

 

Type command:

mkdir xmrig/build

 

 

 

 

 

STEP 4

 

 

Now we need to change to our build directory. For this just type in the Terminal: cd xmrig/build

 

then you should see the prompt showing that directory.

 

STEP 5

 

Now we will build, and or compile the program in order to work. Now in your terminal just type this command: cmake ..

 

This will start the file building the resources it needs.

 

STEP 6

 

This will be the final preparation step before we get to running the miner. Type this command exactly as written: make -j$(nproc)

 

Now that you have completed this step What I did was copy the application XMRIG using my file manager from xmrig/build folder to the xmrig folder I will let you know why after.

 

STEP 7

 

What you need now is a config.json file. You can copy the file I have below, all you will have to do is replace the pool address, your wallet address, and the password. This file should run fine.

 

SAMPLE CONFIG.JSON FILE

{
"api": {
"id": null,
"worker-id": null
},
"http": {
"enabled": false,
"host": "127.0.0.1",
"port": 0,
"access-token": null,
"restricted": true
},
"autosave": true,
"background": false,
"colors": true,
"randomx": {
"init": -1,
"numa": true
},
"cpu": {
"enabled": true,
"huge-pages": true,
"hw-aes": null,
"priority": null,
"memory-pool": false,
"asm": true,
"argon2-impl": null,
"argon2": [0, 1],
"cn": [
[1, 0],
[1, 1]
],
"cn-heavy": [
[1, 0]
],
"cn-lite": [
[1, 0],
[1, 1]
],
"cn-pico": [
[2, 0],
[2, 1]
],
"cn/gpu": [0, 1],
"rx": [0, 1],
"rx/wow": [0, 1],
"cn/0": false,
"cn-lite/0": false,
"rx/arq": "rx/wow"
},
"opencl": {
"enabled": false,
"cache": true,
"loader": null,
"platform": "AMD"
},
"cuda": {
"enabled": false,
"loader": null,
"nvml": true
},
"donate-level": 5,
"donate-over-proxy": 0,
"log-file": null,
"pools": [
{
"algo": null,
"coin": null,
"url": "stratum+tcp://miningpool:3333",
"user": "YOUR WALLET ADDRESS",
"pass": "X",
"rig-id": null,
"nicehash": false,
"keepalive": false,
"enabled": true,
"tls": false,
"tls-fingerprint": null,
"daemon": false,
"self-select": null
},
{
"algo": null,
"coin": null,
"url": "stratum+tcp://miningpool:3333",
"user": "YOUR WALLET ADDRESS",
"pass": "X",
"rig-id": null,
"nicehash": false,
"keepalive": false,
"enabled": true,
"tls": false,
"tls-fingerprint": null,
"daemon": false,
"self-select": null
}
],
"print-time": 60,
"health-print-time": 60,
"retries": 5,
"retry-pause": 5,
"syslog": false,
"user-agent": null,
"watch": true
}

__________________________________________________________________________

STEP 8

 

If you have not already done so, close the Terminal, and then open up another terminal. Just type these two commands in order:

 

1. cd xmrig

 

2. ./ xmrig

This was why the XMRIG was copied from the xmrig/build to the xmrig directory. The command ./xmrig is basically telling the computer in this directory run xmrig.

You should see the miner running. That is all there is to this. Now with this al set up I will show you in the next article how to use other mining software in Linux for CPU mining.

 

824bb2c9191c493fb1bb5c7572878ac7224689ce78ac5ea8cfa7f3e3f5fe4467.jpg


Wolf2015
Wolf2015

Author, Veteran, Journalist, Investigator, Patriot. Determined to staying Curious as My teacher, who passed, always told me to do. Believe no one, Listen to everyone, but only trust what you yourself can verify with your own research. Never believe anyone


My Crypto Info
My Crypto Info

Education of cryptocurrency from a person who actually lives off of mining and how to understand the many ways you can earn. Must research all for yourself, because results can vary depending on your miner and internet connection

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.