Marlon's Wiki

it's better when it's simpler

User Tools

Site Tools


start:system:monero:mining

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
start:system:monero:mining [2025/01/06 10:11] – [P2Pool als Service einrichten] marlonivostart:system:monero:mining [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== 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 [[https://f-droid.org/packages/org.elijaxapps.androidxmrigminer/|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: 
-<code> 
-# 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 
-</code> 
- 
-With ''%%/etc/monerod.conf%%'' edited correctly, simply restart the Monero daemon: 
-<code> 
-rc-service restart monerod 
-</code> 
- 
-\\ 
-===== Installation ===== 
----- 
- 
-Open necessary ports: 
-<code> 
-ufw allow 3333           <-- Stratum-Port für Miner 
-ufw allow 37889          <-- Hauptport für P2Pool 
-</code> 
- 
-With the Monero User created in the ''%%monero:node%%'' guide, we are going to install the latest p2pool binaries (you can copy/paste this into your terminal): 
-<code> 
-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* 
-</code> 
- 
-Create a directory for p2pool in ''%%/opt/%%'' and place the binary in there: 
-<code> 
-mkdir -p /opt/p2pool 
-mv p2pool*/p2pool /opt/p2pool 
-cd /opt/p2pool 
-</code> 
- 
-Give the Monero User the rights and execute: 
-<code> 
-chown -R monero:monero /opt/p2pool 
-/opt/p2pool/p2pool --host 127.0.0.1 --wallet your_monero_wallet_address 
-</code> 
- 
-\\ 
-===== P2Pool als Service einrichten ====== 
----- 
-Create a new Service file ''%%/etc/init.d/p2pool%%'': 
-<code> 
-sudo nano /etc/init.d/p2pool 
-</code> 
- 
-Put this in, or structure it yourself: 
-<code> 
-#!/sbin/openrc-run 
- 
-# UNIT 
-name="P2Pool" 
-description="P2Pool Daemon for Monero Mining" 
- 
-# SERVICE 
-command="/opt/p2pool/p2pool" 
-command_args="--loglevel 0 --host 127.0.0.1 --wallet your_monero_wallet_address 
-pidfile="/run/p2pool.pid" 
-directory="/opt/p2pool" 
-</code> 
start/system/monero/mining.1736158281.txt.gz · Last modified: by marlonivo