Learn how to mine Monero, run a node, and contribute to the decentralized network
Complete beginner's guide to mining XMR with XMRig and P2Pool
Beginner MiningWhy P2Pool is better than traditional pools and how to connect
Intermediate P2PoolSet up a Monero full node to support the network
Advanced NodeSecure wallet setup for receiving mining payouts
Beginner WalletHuge pages, CPU affinity, and advanced XMRig tuning
Advanced PerformanceKeep your wallet and mining operation secure
Important SecurityMonero (XMR) uses the RandomX algorithm, which is optimized for CPU mining. Unlike Bitcoin, you don't need expensive specialized hardware - a regular computer can mine Monero effectively.
Download the official Monero GUI wallet from getmonero.org or use a mobile wallet like Cake Wallet.
Download XMRig from the official GitHub repository:
wget https://github.com/xmrig/xmrig/releases/latest/download/xmrig-6.21.0-linux-x64.tar.gz
tar -xvf xmrig-6.21.0-linux-x64.tar.gz
cd xmrig-6.21.0
Run XMRig with your wallet address:
./xmrig -o xmrpool.tech4ai.net:3333 -u YOUR_WALLET_ADDRESS -p x
P2Pool is a decentralized mining pool that operates as a sidechain to Monero. Unlike traditional pools, there's no central operator - you get paid directly from the blockchain!
Main: For miners with >100 kH/s hashrate. Higher difficulty but more frequent shares.
Mini: For miners with <100 kH/s hashrate. Lower difficulty, ideal for CPU miners.
# Mini sidechain (recommended for most users)
./xmrig -o xmrpool.tech4ai.net:3333 -u YOUR_WALLET_ADDRESS
# Use TLS for secure connection
./xmrig -o xmrpool.tech4ai.net:3333 --tls -u YOUR_WALLET_ADDRESS
Use a P2Pool observer to track your shares and payouts:
Running your own node helps decentralize the Monero network and gives you full control over your transactions.
# Download Monero CLI
wget https://downloads.getmonero.org/cli/linux64
tar -xvf linux64
cd monero-x86_64-linux-gnu-*
# Start the daemon
./monerod --detach
Initial sync takes 12-48 hours depending on your hardware. You can check progress:
./monerod status
Your primary address starts with "4" and is 95 characters long. This is what you use for mining payouts.
Huge pages significantly improve RandomX performance (up to 20% boost):
# Enable huge pages (requires root)
sudo sysctl -w vm.nr_hugepages=1280
# Make permanent (add to /etc/sysctl.conf)
echo "vm.nr_hugepages=1280" | sudo tee -a /etc/sysctl.conf
# Run XMRig with elevated permissions
sudo ./xmrig -o xmrpool.tech4ai.net:3333 -u YOUR_WALLET
Reserve some cores for the system to prevent freezing:
# Use specific threads (leave 1-2 for system)
./xmrig --threads=6 -o xmrpool.tech4ai.net:3333 -u YOUR_WALLET
Create config.json for persistent settings:
{
"pools": [{
"url": "xmrpool.tech4ai.net:3333",
"user": "YOUR_WALLET_ADDRESS",
"keepalive": true,
"tls": true
}],
"cpu": {
"enabled": true,
"huge-pages": true,
"hw-aes": true
}
}