- Introduction
- Features
- Requirements
- Installation
- Set Up the Miner
- Usage
- Service Management
- Security
- Important Notes
- Troubleshooting
- License
- References
- Contributing
- Support
A comprehensive setup script for Monero P2Pool CPU mining on Ubuntu/Debian systems. This script automates the entire process of setting up a Monero full node, P2Pool mining node, and XMRig CPU miner.
- Full Monero node setup
- P2Pool mining node configuration
- XMRig CPU miner optimization
- Support for P2Pool Mini
- Systemd service integration
- Installation in system path for easy access
- Service management commands
- Mining statistics monitoring
- Monero Wallet Address
- Ubuntu/Debian based system
- Minimum 2GB RAM (4GB+ recommended)
- Multi-core CPU
- Sudo privileges
- Internet connection
To create a new Monero wallet, consult the Monero documentation:
# Download the script
wget https://raw.githubusercontent.com/Mik-TF/monerominer/main/monerominer.sh
# Install in system path
bash monerominer.sh install
# Clean Up
rm monerominer.sh# Build the miner setup
monerominer buildmonerominer [COMMAND]install- Install script system-wideuninstall- Remove script and clean upbuild- Run full installation and setupstart- Start all mining servicesstop- Stop all mining servicesrestart- Restart all mining servicesstatus- Show status of all servicesstats- Show mining statisticshelp- Show help message
# Check services status
monerominer status
# View mining statistics
monerominer statsThe script creates and manages three systemd services:
monerod.service- Monero blockchain daemonp2pool.service- P2Pool mining nodexmrig.service- CPU mining service
monerominer start # Start all services
monerominer stop # Stop all services
monerominer restart # Restart all services- Services run under user permissions
- Configuration files use appropriate permissions
- P2Pool connects to local node only
- XMRig mines to local P2Pool instance
- Ensure your wallet address is correct
- Consider using P2Pool Mini for hashrates < 50 kH/s
- Keep your system updated and secured
- Initial blockchain sync may take several days
- Mining rewards go directly to your wallet
- Use at your own risk
If you encounter issues:
- Check service status:
monerominer status - View service logs:
journalctl -u [service-name] - Ensure sufficient disk space for blockchain
- Verify CPU compatibility with RandomX
- Check mining statistics:
monerominer stats
This work is licensed under the Apache License 2.0.
For more information on Monero and P2Pool:
We are not endorsing Monero nor are a partner of Monero. This is for educational purpose only.
Contributions are welcome! Please feel free to submit a Pull Request.
For issues, questions, or contributions, please visit: GitHub Repository