Linux 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.io to finish email registration.

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

2. Download the mining software

  • Extract the file with the comand:

tar zxf apoolminer_linux_autoupdate_v1.9.0.tar.gz

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

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

algo=qubic
account=my_sub_account
pool=qubic1.hk.apool.io:3334

#worker=my_worker
#cpu-off=false
#thread=4
#gpu-off=false
#gpu=0,1,2
#mode=1

4.apoolminer miner.conf Parameter Description

ParamDescription

algo=<qubic/aleo>

Specify algorithm, default configuration is qubic , Required

account=<string>

Specify your sub-account(CP_xxx) in pool mining or Specify your wallet address in solo mining, Required

pool=<url:port>

Specify the proxy address, Required in pool mining

solo=<url:port>

Specify the proxy address, Required in solo mining

worker=<name>

Specify the worker name. The name consists of numbers and letters and cannot exceed 15 characters in length

gpu=<indexes>

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.

thread=<num>

Specify the number of CPU thread [default: 0, use all threads]

cpu-off=<true/false>

If you don’t want to use CPU, please configure it to True.

gpu-off=<true/false>

If you don’t want to use GPU, please configure it to True.

mode=<0/1>

Mining mode, 0 is normal mode, 1 is hybrid mode [default: 0],please make sure that the system has enough memory configuration in mode 1.

Configuration file example

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

    algo=qubic
    account=my_sub_account
    pool=qubic1.hk.apool.io:3334
  • Configuration files for mining with GPU only

    algo=qubic
    account=my_sub_account
    pool=qubic1.hk.apool.io:3334
    cpu-off=true
  • Configuration files for mining with CPU only

    algo=qubic
    account=my_sub_account
    pool=qubic1.hk.apool.io:3334
    gpu-off=true
  • Configuration files for mining with GPU and open hybrid mode

    algo=qubic
    account=my_sub_account
    pool=qubic1.hk.apool.io:3334
    cpu-off=true
    mode=1
  • Configuration files for mining with CPU and specify the number of CPU thread

    algo=qubic
    account=my_sub_account
    pool=qubic1.hk.apool.io:3334
    gpu-off=true
    thread=8
  • Configuration files for Qubic mining idle mode, switch to user-defined third-party mining

    1. You need to download the third-party executable program yourself and put it in the same directory as the configuration file.

    2. The third_cmd parameter must be a mining startup command and cannot be written as a startup script

    3. If the third-party program also runs the apoolminer program, you need to copy apoolminer and rename it to another program name.

    algo=qubic
    account=my_sub_account
    pool=qubic1.hk.apool.io:3334
    third_miner = "lolMiner"
    third_cmd = "./lolMiner --algo PYRIN --pool pyrin.e4pool.com:12100 --user pyrin:qq92h3nryfwq0gkh73cwvjh9hhqlq2mank9sfxtgc99hqwn2ec6u2gszphr0u"
  • Need to copy a file named 'apoolminer' in the same folder and rename it to 'oreminer'

algo=qubic
account=my_sub_account
pool=qubic1.hk.apool.io:3334
third_miner = "oreminer"
third_cmd = "./oreminer -A ore --solo 192.168.0.191:3080 --account AbcsaX71223k777777777777779j999999999999946d --gpu-off"

5.Run and shutdown

  • Select the execution script according to your needs

  • If you want to run an automatic upgrade of apoolminer, you can execute the upgrade_and_run.sh script

sudo nohup bash upgrade_and_run.sh 2>&1 &

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

sudo bash run.sh

6. View apoolminer log

sudo tail -f qubic.log

7.shutdown apoolminer command

sudo killall -9 apoolminer

8.shutdown autoupgrade script

If you are running an automatic upgrade script, use the following command to shutdown and it will no longer be upgraded.

for i in $(ps aux|grep "upgrade_and_run"|grep -v grep |awk '{print $2}'); do sudo kill -9 $i; done

9. Watch the Statistics and earn QU's on Apool

https://www.apool.io/myMiner

Last updated