# mining-scripts **Repository Path**: wekri/mining-scripts ## Basic Information - **Project Name**: mining-scripts - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-27 - **Last Updated**: 2024-03-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 1. 下载程序 点击“克隆/下载” ![boolscan-join-server](images/image.png) 点击“下载ZIP” ![boolscan-join-server](images/image-1.png) 然后解压 ## 2. SGX ### 2.1. 通过以下方式检查系统的 SGX 支持: 进入解压目录,打开终端 ![](images/image-2.png) 执行命令 ```shell ./sgx-detect ``` 如果有下面输出就是支持 ![](images/image-3.png) ### 2.2. 安装sgx驱动: 进入root账户 ```shell sudo -s ``` 执行更新软件: ```shell apt update apt install build-essential automake autoconf libtool wget python libssl-dev dkms ``` 执行安装驱动: ```shell chmod +x sgx_linux_x64_driver_1.41.bin bash sgx_linux_x64_driver_1.41.bin ``` 输出: ```text ✔ SGX instruction set ✔ CPU support ✔ CPU configuration ✔ Enclave attributes ✔ Enclave Page Cache SGX features ✘ SGX2 ✘ EXINFO ✘ ENCLV ✘ OVERSUB ✘ KSS Total EPC size: 56.0MiB ✔ Flexible launch control ✔ CPU support ? CPU configuration ✔ Able to launch production mode enclave ✔ SGX system software ✔ SGX kernel device (/dev/sgx/enclave) ✘ libsgx_enclave_common ✘ AESM service ✔ Able to launch enclaves ✔ Debug mode ✔ Production mode ✔ Production mode (Intel whitelisted) ``` ### 2.3. 启用SGX,并重启: 执行命令: ```shell chmod +x sgx_enable ./sgx_enable reboot ``` ## 3. 安装docker 打开终端,进入root账户 ```shell sudo -s ``` 执行命令: ```shell apt-get update apt-get install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" apt-get update apt-get install docker-ce docker ps ``` ## 4. 启动服务 运行以下命令: ```shell docker compose up ``` 如果软件运行正常,您将在终端中观察到类似以下的日志: ```text register sgx: "0x13bec2ac21b038d885d49d8100d307ce7761cf890bbdf25962a0eb2f2ac18101" ```