> 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>
