Skip to content

Installing Khala Solo Scripts

Prerequisites

Before you go further, please ensure that your have correct setup your hardware, BIOS and operating system according to the previous section.

Download the Khala Scripts

The Khala Solo Scripts are available on our Phala Mining Script repository on GitHub, it can be downloaded with wget by executing the following commands in the terminal:

sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y
sudo apt install wget unzip
cd ~
wget https://github.com/Phala-Network/solo-mining-scripts/archive/refs/heads/main.zip
unzip main.zip

Activate the Intelยฎ SGX Software

โ„น You may have already enabled the Intelยฎ SGX Extensions during your hardware setup in the previous section. Skip and proceed to ๐Ÿ‘‰Install Phala Tools if already activated.

Execute the following commands in the terminal, the computer should reboot after execution.

cd ~/solo-mining-scripts-main/tools
sudo ./sgx_enable
sudo reboot

Install Phala Tools

Execute the following commands in your terminal:

cd ~/solo-mining-scripts-main
sudo ./phala.sh install

This will install the Phala CLI


๐ŸŽ‰ Congratulations! You have successfully installed the required Phala tools.