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 09:53] marlonivostart:system:monero:mining [2025/01/06 11:29] (current) marlonivo
Line 1: Line 1:
-====== Mining ====== +====== Monero 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: +P2Pool is a decentralized service to mine Monero. It works by making users attach the p2pool software to their existing Monero nodes, and mining through the port provided by the p2pool daemon. 
-    * **Solo:** You can mine using your Monero walletNo 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 ====== ===== Configuring Monerod ======
Line 11: Line 9:
 <code> <code>
 # P2Pool config # P2Pool config
-zmq-pub=tcp://127.0.0.1:18083                <-- If this port is already being used, change it to a different port.+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 disable-dns-checkpoints=1
 enable-dns.blocklist=1 enable-dns.blocklist=1
Line 24: Line 22:
 ===== Installation ===== ===== 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):+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 [[start:system:monero:node|monero:node]] guide, we are going to install the latest p2pool binaries (you can copy/paste this into your terminal):
 <code> <code>
 baseurl="https://github.com/SChernykh/p2pool/releases" baseurl="https://github.com/SChernykh/p2pool/releases"
Line 55: Line 58:
 </code> </code>
  
-Give the Monero User the rights and execute:+Give the Monero User the rights and begin synchronizing the p2pool side-chain (needs a little less than half an hour):
 <code> <code>
 chown -R monero:monero /opt/p2pool chown -R monero:monero /opt/p2pool
Line 65: Line 68:
 ---- ----
 Create a new Service file ''%%/etc/init.d/p2pool%%'': Create a new Service file ''%%/etc/init.d/p2pool%%'':
-<code+<code>
 sudo nano /etc/init.d/p2pool sudo nano /etc/init.d/p2pool
 </code> </code>
Line 73: Line 76:
 #!/sbin/openrc-run #!/sbin/openrc-run
  
-UNIT +P2POOL SERVICE
-name="P2Pool" +
-description="P2Pool Daemon for Monero Mining" +
- +
-SERVICE+
 command="/opt/p2pool/p2pool" command="/opt/p2pool/p2pool"
-command_args="--loglevel 0 --host 127.0.0.1 --wallet 4AjfE9Dwhkj5GGfLv5UdBWgB24EfhNcAQc3AsMNiQ8W3PHKurJ2R27xY29Ei4jUMEHWkAfxbjuZyeAXSYszoe1sTLP9v2sR +command_args="--loglevel 0 --host 127.0.0.1 --wallet your_monero_wallet_address &"
-command_user="marlon"+
 pidfile="/run/p2pool.pid" pidfile="/run/p2pool.pid"
-directory="/opt/p2pool" 
  
-DEPENDENCYS +XMRIG SERVICE 
-depend() { +start_post() { 
-    need net+    nohup xmrig \ 
 +        -o 127.0.0.1:3333 \ 
 +        --donate-level=0 \ 
 +        --keepalive \ 
 +        --tls \ 
 +        --rig-id=your_xmrig_name
 } }
 +</code>
 +
 +
 +Add to runlevel:
 +<code>
 +rc-service add p2pool default
 </code> </code>
start/system/monero/mining.1736157210.txt.gz · Last modified: 2025/01/06 09:53 by marlonivo

Donate Marlon Ivo's Webpage