# 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="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FN4tvf972korjzKFVKnT1%2Fimage.png?alt=media&#x26;token=ec87e101-5af4-405f-874d-37711b98eee3" 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%2F6wlzyyOLADp1FfwOFP5n%2F%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20240410112842.png?alt=media&#x26;token=fac31930-c33c-4923-8d66-10bda5e427e6" alt=""><figcaption></figcaption></figure>

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

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

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FPhQfoiRlQB40AD5JL37T%2Fimage.png?alt=media&#x26;token=64d6ebb4-673d-4a41-986a-c02ffbe44a64" 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="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FJU9Z7k12oQn2A9qhrZpf%2Fimage.png?alt=media&#x26;token=703c7760-bbeb-43e1-b924-e6789316b7b4" alt=""><figcaption></figcaption></figure>

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FWxxLxGDm0zDDACqbH3d0%2Fimage.png?alt=media&#x26;token=4f7ec63b-03ad-44ed-a0c6-bed9802569a4" 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="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FfVjsat842D6s23pO6gEU%2Fimage.png?alt=media&#x26;token=65ed33fa-4dbb-4bb9-b2af-00981548e2eb" 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="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2Fq5t6EfKaawQamdKcQh0O%2Fimage.png?alt=media&#x26;token=3ba94587-ffbf-418f-aa8b-d6a76ae7e256" 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>
