How to build Xmrig miner with 0% dev fee on Ubuntu
1.5 هزار بار بازدید -
6 ماه پیش
-
THIS IS A STEP BY
THIS IS A STEP BY STEP GUIDE HOW TO COMPILE AND EDIT DONATION LEVEL TO ZERO FOR XMRIG
We will be using the following linux commands
sudo gives administrative privileges in a sense
cd change directory
ls show what’s inside the directory you’re in
nano edit a file
touch create a file
mv -v (file name) .. move a file up a folder
cat read a file
copy the following 3 lines together and paste them into the terminal window then hit enter
sudo apt-get install git build-essential cmake automake libtool autoconf
sudo git clone https://github.com/xmrig/xmrig.git
sudo mkdir xmrig/build && cd xmrig/scripts
(!!!!!!To edit donation level!!!!)
(!!!!!!!!!!This must be done between these steps before you build or cmake the file!!!!!!!!)
cd
cd xmrig/src
sudo nano donate.h
(Edit the following)
kDefaultDonateLevel 1 to 0
kMinimumDonateLevel from 1 to 0.
Crtl x
Y to save
Enter
cd
cd xmrig/scripts
sudo ./build_deps.sh && cd ../build
sudo cmake .. -DXMRIG_DEPS=scripts/deps
sudo make -j$(nproc)
(I use sudo to force it to create everything)
(https://xmrig.com/docs/miner/build/ub... source)
(Move xmrig up to base folder level)
sudo mv -v xmrig ..
(To create config.json)
(Make sure you're in xmrig folder)
cd
cd xmrig
sudo touch config.json
sudo nano config.json
Then paste the following into the 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,
"title": true,
"randomx": {
"init": -1,
"init-avx2": -1,
"mode": "auto",
"1gb-pages": true,
"rdmsr": true,
"wrmsr": true,
"cache_qos": false,
"numa": true,
"scratchpad_prefetch_mode": 1
},
"cpu": {
"enabled": true,
"huge-pages": true,
"huge-pages-jit": true,
"hw-aes": true,
"priority": null,
"memory-pool": false,
"yield": true,
"max-threads-hint": 100,
"asm": true,
"argon2-impl": null,
"cn/0": false,
"cn-lite/0": false
},
"opencl": {
"enabled": false,
"cache": true,
"loader": null,
"platform": "AMD",
"adl": true,
"cn/0": false,
"cn-lite/0": false
},
"cuda": {
"enabled": false,
"loader": null,
"nvml": true,
"cn/0": false,
"cn-lite/0": false
},
"donate-level": 0,
"donate-over-proxy": 0,
"log-file": null,
"pools": [
{
"algo": "ghostrider",
"coin": null,
"url": "stratum+tcp://na.raptorhash.net:6900",
"user": "rrrrrrrrrrrrrrrrrrrrrrrrrrrr",
"pass": "x",
"rig-id": "yourrig",
"nicehash": false,
"keepalive": false,
"enabled": true,
"tls": false,
"tls-fingerprint": null,
"daemon": false,
"socks5": null,
"self-select": null,
"submit-to-origin": false
}
],
"print-time": 60,
"health-print-time": 60,
"dmi": true,
"retries": 5,
"retry-pause": 5,
"syslog": false,
"tls": {
"enabled": false,
"protocols": null,
"cert": null,
"cert_key": null,
"ciphers": null,
"ciphersuites": null,
"dhparam": null
},
"dns": {
"ipv6": false,
"ttl": 30
},
"user-agent": null,
"verbose": 0,
"watch": true,
"pause-on-battery": false,
"pause-on-active": false
}
Add your desired pool, wallet and algo you want to mine
(This config has huge and 1g pages turned on)
(https://xmrig.com/docs/algorithms list of algos that you can use with xmrig)
Hit crtl x, then y, then enter
Now to run xmrig with zero fees and to your pool you set up
sudo ./xmrig
And you’ll be mining
If you’d like to run from the cli you can use parameters listed in this link
https://xmrig.com/docs/miner/command-...
Very generic setup would be
sudo ./xmrig -a (algo) -o (pool address) -u (wallet.user) -p (password) --huge-pages-jit --randomx-1gb-pages
We will be using the following linux commands
sudo gives administrative privileges in a sense
cd change directory
ls show what’s inside the directory you’re in
nano edit a file
touch create a file
mv -v (file name) .. move a file up a folder
cat read a file
copy the following 3 lines together and paste them into the terminal window then hit enter
sudo apt-get install git build-essential cmake automake libtool autoconf
sudo git clone https://github.com/xmrig/xmrig.git
sudo mkdir xmrig/build && cd xmrig/scripts
(!!!!!!To edit donation level!!!!)
(!!!!!!!!!!This must be done between these steps before you build or cmake the file!!!!!!!!)
cd
cd xmrig/src
sudo nano donate.h
(Edit the following)
kDefaultDonateLevel 1 to 0
kMinimumDonateLevel from 1 to 0.
Crtl x
Y to save
Enter
cd
cd xmrig/scripts
sudo ./build_deps.sh && cd ../build
sudo cmake .. -DXMRIG_DEPS=scripts/deps
sudo make -j$(nproc)
(I use sudo to force it to create everything)
(https://xmrig.com/docs/miner/build/ub... source)
(Move xmrig up to base folder level)
sudo mv -v xmrig ..
(To create config.json)
(Make sure you're in xmrig folder)
cd
cd xmrig
sudo touch config.json
sudo nano config.json
Then paste the following into the 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,
"title": true,
"randomx": {
"init": -1,
"init-avx2": -1,
"mode": "auto",
"1gb-pages": true,
"rdmsr": true,
"wrmsr": true,
"cache_qos": false,
"numa": true,
"scratchpad_prefetch_mode": 1
},
"cpu": {
"enabled": true,
"huge-pages": true,
"huge-pages-jit": true,
"hw-aes": true,
"priority": null,
"memory-pool": false,
"yield": true,
"max-threads-hint": 100,
"asm": true,
"argon2-impl": null,
"cn/0": false,
"cn-lite/0": false
},
"opencl": {
"enabled": false,
"cache": true,
"loader": null,
"platform": "AMD",
"adl": true,
"cn/0": false,
"cn-lite/0": false
},
"cuda": {
"enabled": false,
"loader": null,
"nvml": true,
"cn/0": false,
"cn-lite/0": false
},
"donate-level": 0,
"donate-over-proxy": 0,
"log-file": null,
"pools": [
{
"algo": "ghostrider",
"coin": null,
"url": "stratum+tcp://na.raptorhash.net:6900",
"user": "rrrrrrrrrrrrrrrrrrrrrrrrrrrr",
"pass": "x",
"rig-id": "yourrig",
"nicehash": false,
"keepalive": false,
"enabled": true,
"tls": false,
"tls-fingerprint": null,
"daemon": false,
"socks5": null,
"self-select": null,
"submit-to-origin": false
}
],
"print-time": 60,
"health-print-time": 60,
"dmi": true,
"retries": 5,
"retry-pause": 5,
"syslog": false,
"tls": {
"enabled": false,
"protocols": null,
"cert": null,
"cert_key": null,
"ciphers": null,
"ciphersuites": null,
"dhparam": null
},
"dns": {
"ipv6": false,
"ttl": 30
},
"user-agent": null,
"verbose": 0,
"watch": true,
"pause-on-battery": false,
"pause-on-active": false
}
Add your desired pool, wallet and algo you want to mine
(This config has huge and 1g pages turned on)
(https://xmrig.com/docs/algorithms list of algos that you can use with xmrig)
Hit crtl x, then y, then enter
Now to run xmrig with zero fees and to your pool you set up
sudo ./xmrig
And you’ll be mining
If you’d like to run from the cli you can use parameters listed in this link
https://xmrig.com/docs/miner/command-...
Very generic setup would be
sudo ./xmrig -a (algo) -o (pool address) -u (wallet.user) -p (password) --huge-pages-jit --randomx-1gb-pages
6 ماه پیش
در تاریخ 1402/10/08 منتشر شده
است.
1,592
بـار بازدید شده