Marlon's Wiki

it's better when it's simpler

User Tools

Site Tools


start:system:monero:mining

This is an old revision of the document!


Mining

Mining is possible with any of your devices, so we will go trough both phone and computer. For your phone, you might wanna use the App Android XMRIG Miner For your Computer, there are many posibilities how to mine, you can choose between:

  • Solo: You can mine using your Monero wallet. No need for additional software, but takes more time, and is inperminent because your device obviously shutdowns sometimes.
  • Pool: Frequent payouts. You will receive XMR according to how much you are participating in the pool of your choice.
  • P2Pool: P2Pool is a sidechain to Monero, and P2Pool blocks are potentially Monero blocks. Each miner submits block templates that include payouts to all of the miners that are mining at the same time. High quality block templates are added to the P2Pool blockchain as blocks; these count as “shares” for the miner who found them.


Configuring Monerod


For this tutorial i chose P2Pool, because it has the most benefits to it. To run P2Pool, you need to already have your own Monero node. P2Pool requires the exposure of a ZMQ interface. Add the following to /etc/monerod.conf:

# P2Pool config
zmq-pub=tcp://127.0.0.1:18083                <-- If this port is already being used, change it to a different port.
disable-dns-checkpoints=1
enable-dns.blocklist=1

With /etc/monerod.conf edited correctly, simply restart the Monero daemon:

rc-service restart monerod


Installation


With the Monero User created in the monero:node guide, we are going to install the latest p2pool binaries:

1. Download p2pool (you can copy/paste this into your terminal):

baseurl="https://github.com/SChernykh/p2pool/releases"
ver=$(basename "$(curl -w "%{url_effective}\n" -I -L -s -S $baseurl/latest -o /dev/null)")

arch=$(uname -m)
case $arch in
    x86_64)
        arch="x64"
        ;;
    aarch64)
        arch="aarch64"
        ;;
    *)
        exit 1
        ;;
esac

curl -fLO "https://github.com/SChernykh/p2pool/releases/download/$ver/p2pool-$ver-linux-$arch.tar.gz"
tar xvf p2pool*

Create a directory for p2pool in /opt/ and place the binary in there:

mkdir -p /opt/p2pool
mv p2pool*/p2pool /opt/p2pool
cd /opt/p2pool

Give the Monero User the rights and execute:

chown -R monero:monero /opt/p2pool
/opt/p2pool/p2pool --host 127.0.0.1 --wallet your_monero_wallet_address


P2Pool als Service einrichten


start/system/monero/mining.1736156859.txt.gz · Last modified: 2025/01/06 09:47 by marlonivo

Donate Marlon Ivo's Webpage