> 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/idle-time-mining-tutorial/linux-qubic+quai-idle-mining-tutorial.md).

# Linux Qubic+Quai Idle Mining Tutorial

**1.  Acquire sub-account**

In order to earn quai, one must mine to a sub-account. Head over to [https://www.apool.io ](https://www.apool.io/)to finish email registration.&#x20;

<figure><img src="/files/qC1HGdp4AmwaYtFXhtlQ" 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="/files/PabxR2Uf4lXPxc91dDm5" alt=""><figcaption></figcaption></figure>

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

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

<figure><img src="/files/2elXSAZrQl5uFZNdbqGc" alt=""><figcaption></figcaption></figure>

* Extract the file with the comand：

```
tar zxf apoolminer_linux_qubic_quai_idle_mining_v3.5.0

.tar.gz
```

**4. Modify the configuration file miner.conf and change the account to your own.**

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

<figure><img src="/files/QKB96wb48AToVIibLKNn" 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_quai
account=CP_XXX
pool=qubic.asia.apool.io:4334
pool-quai=quai.hk.apool.io:3335

worker = my_worker
#cpu-off = true
#thread = 1
#gpu-off = true
```

**6.Run and shutdown**

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

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

<figure><img src="/files/8r7e8iBdmBcI7brJ2HI3" alt=""><figcaption></figcaption></figure>

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

```
bash run.sh
```

**7.** View miner log

```
tail -f qubic_quai.log
```

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

**8.**&#x73;hutdown miner command

```
pkill apoolminer
```

**9. Watch the Statistics and earn Qubic+Quai on Apool**

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://apool.gitbook.io/help/idle-time-mining-tutorial/linux-qubic+quai-idle-mining-tutorial.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
