Mining XDAG with ‘x4x’ on HiveOS

FSOL
3 min readApr 10, 2023

--

Here is the update of the article previously dedicated to the fork of XMRig by the XDAG team to mine under HiveOS. The method proposed here allows to inject ‘x4x’ (XMRig-4-XDAG miner) in HiveOS instead of the “classic” XMRig 6.19.2.

Note : We assume in this tutorial that we will install the latest version of ‘x4x’ which is currently 6.19.2. If a new version is released in the meantime, you will replace in the following commands ‘6.19.2’ with the number of the new version. This should be easy :)

Here is how to install it.

1°/ Create a flysheet

Create a flysheet with the following information:

  • Indicate your wallet, your pool, and the worker name as password.
  • Activate “CPU on”.
  • For the miner, choose “XMRig-new” and as fork “XMRig” (not XMRig-CC)

2°/ Inside HiveOS

  • Open a terminal window and type the following commands to retrieve the miner file:
cd tmp
wget https://github.com/FSOL-XDAG/xmrig-4-xdag/releases/download/v6.19.2/x4x-6.19.2-hive-ubuntu_18.04-x64.tar.gz
tar -xvf x4x-6.19.2-hive-ubuntu_18.04-x64.tar.gz
  • Stop the miners :
miner stop
  • Copy the miner to the good place in HiveOS :
cp xmrig-4-xdag/xmrig-4-xdag /hive/miners/xmrig-new/xmrig/6.19.2/xmrig
  • Edit the following 2 files to set the fees to zero, which will avoid regular disconnections from the pool and thus stabilize the mining :
nano /run/hive/miners/xmrig-new/config.json
nano /hive/miners/xmrig-new/xmrig/6.19.2/config_global.json

Note : it is important to also make the “config-global.json” file because its parameters are systematically taken over when the miner is started.

  • We restart the miners :
miner start

That’s it, it’s finished, and thanks to the “motd watch” command you can make sure that ‘x4x’ miner is running.

  • In the RED box, you see the miner as seen by HiveOS, i.e. xmrig-new in version 6.19.2
  • In the YELLOW boxed area, you see ‘x4’!
  • And in the green boxed area, you can see that you have 0 fees.

I hope this tutorial will be useful to you. If you enjoy this article, don’t forget to give me a tip by sending me some XDAG : 53r2nH7y81CePxqe73mpoZdEjs66j178K

See you soon!

--

--