> 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/qubic-pool-tutorial/windows-automatic-update-tutorial.md).

# Windows Automatic Update Tutorial

## **1.  Acquire sub-account**

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

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

<figure><img src="/files/PabxR2Uf4lXPxc91dDm5" alt=""><figcaption></figcaption></figure>

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

* Download link：<https://github.com/apool-io/apoolminer/releases>

<figure><img src="/files/Rdw21M7PliNjmrZvIXVf" alt=""><figcaption></figcaption></figure>

## &#x20;**3. Modify the configuration file miner.conf and change the account to your own.**

<figure><img src="/files/BwnCXZyAItdqmCRdPRQW" alt=""><figcaption></figcaption></figure>

If you need to adjust other parameters, remove the # comment and modify the corresponding values according to the parameter description.

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

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

## **4.apoolminer miner.conf Parameter Description**

<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></tbody></table>

### **Configuration file example**

* Configuration files for mining with GPU and CPU (Recommended mining configuration for all resources)

  ```
  algo=qubic
  account=my_sub_account
  pool=qubic.asia.apool.io:4334
  ```
* Configuration files for mining with GPU only

  ```
  algo=qubic
  account=my_sub_account
  pool=qubic.asia.apool.io:4334
  cpu-off=true
  ```
* Configuration files for mining with CPU only

  ```
  algo=qubic
  account=my_sub_account
  pool=qubic.asia.apool.io:4334
  gpu-off=true
  ```
* Configuration files for mining with CPU and specify the number of CPU thread

  ```
  algo=qubic
  account=my_sub_account
  pool=qubic.asia.apool.io:4334
  gpu-off=true
  thread=8
  ```
* Connect using SSL/TLS encryption

  ```
  algo=qubic
  account=my_sub_account
  pool=qubic.asia.apool.io:4334
  gpu-off=true
  thread=8
  ```

### **Save the Configuration files after change**

## 5.Run&#x20;

* #### Select the execution script according to your needs

&#x20;      **Double click upgrade\_and\_run.bat to start running automatic upgrade script**

<figure><img src="/files/N1gErB9rbs8zIZKRrunY" alt=""><figcaption></figcaption></figure>

&#x20;

* [ ] &#x20;<mark style="color:red;">Manually operated Start command</mark>

<figure><img src="/files/VMgOIDYqdgwxfJwGYGwC" alt=""><figcaption></figcaption></figure>

* If you do not need to automatically upgrade apoolminer, you can execute the run.sh script

**Double-click run.bat to start running Non-automatic upgrade script**

<figure><img src="/files/tIDgz0Tic2etBIPBWzqz" alt=""><figcaption></figcaption></figure>

## **6. Watch the Statistics and earn QU's on Apool**

<https://www.apool.io/myMiner>
