# Linux Qubic+Xmr 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.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%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：<mark style="color:red;"><https://github.com/apool-io/apoolminer/releases/download/v3.5.0/apoolminer\\_linux\\_qubic\\_autoupdate\\_v3.5.0.tar.gz></mark>

<figure><img src="https://173695165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcaIJhxZbNgQ58zWSXWs%2Fuploads%2FubU0lE4tb95I8aJpd17j%2Fimage.png?alt=media&#x26;token=054d907a-0184-41ea-8f1a-9a8ec56ed46c" alt=""><figcaption></figcaption></figure>

* Extract the file with the comand：

```
tar zxf apoolminer_linux_qubic_autoupdate_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%2FIgSmHVVBDFF6Isr93k4p%2F2f6f65c7179331be3cc9edbd603a792.png?alt=media&#x26;token=416929c2-d82f-4f00-93cb-3a11427d5a91" 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_xmr
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-1gb-pages = true
#no-cpu-affinity = 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_xmr.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>
