Wallet
Before starting, you already need to have a wallet configured andworking. The pool needs to know your wallet address to be able to sendpayments there. See the Accepting Monero guide for more information.
Profitability
Before mining, you should decide if it is worth it or not for you. Youhave to decide this for yourself, based on your power costs and thehardware that you have available. There are many sites, such asCryptoComparethat allow you to enter your miner's speed and power draw, and it willshow you the profit (or loss) per week/month.
Download Miner
The first step is to download mining software onto your computer.
Windows
The XMRig developer provides pre-built binaries for Windowsusers. They are available on the GitHub releasepage.
Scroll down until you see xmrig-VERSION-msvc-win64.zip
. Downloadthis file and extract the archive somewhere memorable, like your desktop.
Ubuntu Linux
The XMRig developer provides pre-built binaries for Ubuntu Bionic (18.04) and Focal (20.04). They may work on other Ubuntu versions, and on otherdistributions, but this is not guaranteed.
These binaries are available on the GitHub releasepage.
Scroll down to 'Assets' until you see the correct version for your system. Downloadthis file, extract the archive somewhere memorable, like your desktop.
Other distributions and operating systems
Binaries are available for various distributions and operating systems, but you can also build the miner by yourself. Take a look at XMrig's docs
Selecting a pool
There are lots of pools to choose from. You can find a list atminingpoolstats.stream/monero.
Choosing a larger pool means that you will see more frequent (butsmaller) payouts, but choosing a smaller pools helps keep the networkdecentralised. Miners will not lose any revenue by mining on asmaller pool.
Configuring the miner
See the official docs, for instructions and suggestions.
Starting the miner
Windows users can double click on xmrig.exe. Users of other operatingsystems should cd
into the directory that contains XMRig and thentype ./xmrig
and press return.
If you see green messages saying that shares have been accepted,congratulations, everything is working!
Troubleshooting
Anti-virus keeps removing XMRig
Some anti-viruses flag XMRig as malware because it is often deployedto infected computers to mine without the owner's consent. As it isyour computer and you are configuring the miner to mine for you, it issafe to add XMRig to your anti-virus whitelist.
Cannot read/set MSR
On some CPUs, XMRig tries to increase performance by disabling certainfeatures like your CPU's instruction prefetcher. These operationsrequire root/administrator, so try right clicking xmrig.exe andrunning it as administrator, or running sudo ./xmrig
on othersystems.
Algo not known
Find the line in config.json that says algo: null
and change it toalgo: "rx/0"
. By default, XMRig expects the pool to tell it whichhashing algorithm to use.
Huge Pages 0%
Allowing large pages on Windows
Taken from the MSDN:
- On the Start menu, click Run. In the Open box, type gpedit.msc.
- On the Local Group Policy Editor console, expand Computer Configuration, and then expand Windows Settings.
- Expand Security Settings, and then expand Local Policies.
- Select the User Rights Assignment folder.
- The policies will be displayed in the details pane.
- In the pane, double-click Lock pages in memory.
- In the Local Security Setting – Lock pages in memory dialog box, click Add User or Group.
- In the Select Users, Service Accounts, or Groups dialog box, add an account that you will run the miner on
- Reboot for change to take effect.
You may also need to launch the miner as administrator.
Allowing large pages on Linux
Firstly stop the miner (if it's running), run the following commands to enablelarge pages and then start the miner as root:
sudo sysctl -w vm.nr_hugepages=1168sudo ./xmrig
You may have to increase 1168 depending on how many NUMA nodes yourCPU(s) have.
Allowing large pages on macOS
Huge pages are not supported on macOS.
Balance Not Increasing
Most pools are PPLNS pools,which means that you only get paid when a miner on the pool finds ablock. If the pool you are mining on is small, this can take a fewdays to weeks.
Additionally, any blocks found must mature before they can be paidout. This takes 60 blocks (approx. 2 hours).
Getting Help
An active Monero mining community on Reddit is/r/MoneroSupport. You canalso join #monero-pools onLibera or Matrix (#monero-pools:monero.social).
Going Futher
- Consider using a subaddress just for mining, to prevent your addressbeing linked to different services.
- Consider using Tor to connect to thepool (or to a hidden service poollike HashVault, RespectXMR and MoneroOcean). This hides miningactivity from your ISP, and prevents the pool from knowing who youare.
« Back to the list