> For the complete documentation index, see [llms.txt](https://apool.gitbook.io/help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apool.gitbook.io/help/xmr-pool-tutorial/xmr-windows-mining-tutorial.md).

# Xmr Windows Mining Tutorial

**1.  Acquire sub-account**

In order to earn xmr, one must mine to a sub-account. Head over to <https://www.apool.top> to finish email registration.&#x20;

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FBnj74si96n6ye7oaR6KH%2F%E5%9B%BE%E7%89%871.png?alt=media&amp;token=5490f99a-ff5b-42b4-a9a4-8aebf35963bf" alt=""><figcaption></figcaption></figure>

Apool will allocate a sub-account automatically under your name.  Check out your sub-account name in 'My miners' page.

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FnGe4IPQOFaY6GZmtpzyr%2Fimage.png?alt=media&amp;token=b48c7ed0-a6c9-4774-8e77-fcb3d57d1f95" alt=""><figcaption></figcaption></figure>

&#x20;**2. Download the mining software**

* download link：<https://github.com/apool-io/xmrminer/releases>

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2F7mRnwpVMF5KyNXML9cwn%2Fimage.png?alt=media&amp;token=de04d212-25f0-41d6-ab96-efc490884f1c" alt=""><figcaption></figcaption></figure>

3. **Open the file folder and get the following files**
4. **Right click on the "start" and edit the startup script.**

there are three mining mode to choose from: cpu, gpu, all（cpu+gpu）![](https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FPGFDV5I9WFXYwO1J27Oy%2Fimage.png?alt=media\&token=003da9af-0a1a-45d8-b091-6606dc9779b7)

**Configuration file example**

* Configuration files for mining with CPU only

  ```
  algo=mone
  account=CP_XXX
  pool=xmr.asia.apool.io:4334

  worker = my_worker
  #cpu-off = true
  #thread = 4
  gpu-off = true
  #gpu = 0,1,2
  #xmr-gpu-off = true
  ```

<table><thead><tr><th width="203">Param</th><th>Description</th></tr></thead><tbody><tr><td>algo=&#x3C;qubic/aleo></td><td>Specify algorithm, default configuration is qubic , <strong>Required</strong></td></tr><tr><td>account=&#x3C;string></td><td>Specify your sub-account(CP_xxx) in pool mining or Specify your wallet address in solo mining, <strong>Required</strong></td></tr><tr><td>pool=&#x3C;url:port></td><td>Specify the proxy address, <strong>Required in pool mining</strong></td></tr><tr><td>solo=&#x3C;url:port></td><td>Specify the proxy address, <strong>Required in solo mining</strong></td></tr><tr><td>worker=&#x3C;name></td><td>Specify the worker name. The name consists of numbers and letters and cannot exceed 15 characters in length</td></tr><tr><td>gpu=&#x3C;indexes></td><td>Specify the index of GPU. If you’re only running on specific GPUs, please spell out explicitly, example: gpu=0,1,2, If you run all GPUs, you don’t need to configure them.</td></tr><tr><td>thread=&#x3C;num></td><td>Specify the number of CPU thread [default: 0, use all threads]</td></tr><tr><td>cpu-off=&#x3C;true/false></td><td>If you don’t want to use CPU, please configure it to True.</td></tr><tr><td>gpu-off=&#x3C;true/false></td><td>If you don’t want to use GPU, please configure it to True.</td></tr><tr><td>xmr-gpu-off=&#x3C;true/false></td><td>If you don't want to use the GPU during XMR mining time, please set this option to True.</td></tr><tr><td>xmr-cpu-off=&#x3C;true/false></td><td>If you don't want to use the CPU during XMR mining time, please set this option to True.</td></tr><tr><td>xmr-thread=&#x3C;num></td><td>Number of CPU threads to use during XMR mining time</td></tr><tr><td>no-cpu-affinity = true</td><td>If the default configuration does not fully utilize the CPU for XMR mining, you can optimize performance by manually specifying the number of XMR threads.</td></tr></tbody></table>

<br>

5\. **Save the scripts after change，Double-click the mouse to start the script.**

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FiGGfTe6VsdXc2t2VPHDf%2Fimage.png?alt=media&amp;token=af0c2a6f-9a02-4686-9138-cadc9110cac7" alt=""><figcaption></figcaption></figure>

6.**The mining starts.**

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FdGsSm8RABJvqrgl8UeCD%2F8c9b20623255fcd24e09a535d310315.png?alt=media&amp;token=7549748e-6018-4cad-b1e5-0dc530173eb2" alt=""><figcaption></figcaption></figure>
