Phala Network Docs
  • Home
    • ๐Ÿ‘พPhala Network Docs
  • Overview
    • โš–๏ธPhala Network
      • ๐Ÿ’ŽPhala Cloud
      • ๐ŸฅทDstack
      • ๐Ÿ”GPU TEE
    • ๐Ÿ’ŽPHA Token
      • ๐Ÿช™Introduction
      • ๐Ÿ‘Delegation
        • Delegate to StakePool
        • What is Vault
        • What is Share
        • WrappedBalances & W-PHA
        • Examples of Delegation
        • Use Phala App to Delegate
        • Estimate Your Reward
      • ๐Ÿ—ณ๏ธGovernance
        • Governance Mechanism
        • Join the Council
        • Voting for Councillors
        • Apply for Project Funding
        • Phala Treasury
        • Phala Governance
        • Setting Up an Account Identity
  • Phala Cloud
    • ๐Ÿš€Getting Started
      • Sign-up for Cloud Account
      • Start from Cloud UI
      • Start from Cloud CLI
      • Start from Template
    • ๐ŸŸงLaunch an Eliza Agent
    • ๐Ÿ“ฆCreate CVM
      • Create CVM with Docker Compose
      • Create CVM with Private Docker Image
      • Set Secure Environment Variables
      • Access Your Applications
      • Setting Up Custom Domain
      • Debug Your Application
      • Deployment Cheat Sheet
    • โš™๏ธCVM Management
      • Upgrade Application
      • Resize Resources
      • Check Logs
      • Private Log Viewer
    • ๐Ÿ”„Deploy Docker App in TEE
      • Expose Service Port
      • Generate RA Report
      • Access Database
      • Create Crypto Wallet
    • ๐Ÿ›ณ๏ธSetup a CI/CD Pipeline
    • ๐Ÿ› ๏ธPhala Cloud CLI Reference
      • phala
        • auth
        • cvms
        • docker
        • simulator
    • Production Checklist
    • โ“FAQs
    • ๐Ÿ”Troubleshooting
    • ๐Ÿ“–Glossary
    • ๐Ÿ“‹References
    • ๐Ÿ”’Use Cases
      • TEE with AI
      • TEE with FHE and MPC
      • TEE with ZK and ZKrollup
  • Dstack
    • Overview
    • Getting Started
    • Hardware Requirements
    • Design Documents
      • Decentralized Root-of-Trust
      • Key Management Protocol
      • Zero Trust HTTPs (TLS)
    • Acknowledgement
  • LLM in GPU TEE
    • ๐Ÿ‘ฉโ€๐Ÿ’ปHost LLM in GPU TEE
    • ๐Ÿ”GPU TEE Inference API
    • ๐ŸŽ๏ธGPU TEE Benchmark
  • Tech Specs
    • โ›“๏ธBlockchain
      • Blockchain Entities
      • Cluster of Workers
      • Secret Key Hierarchy
  • References
    • ๐Ÿ”Setting Up a Wallet on Phala
      • Acquiring PHA
    • ๐ŸŒ‰SubBridge
      • Cross-chain Transfer
      • Supported Assets
      • Asset Integration Guide
      • Technical Details
    • ๐Ÿ‘ทCommunity Builders
    • ๐ŸคนHackathon Guides
      • ETHGlobal Singapore
      • ETHGlobal San Francisco
      • ETHGlobal Bangkok
    • ๐ŸคฏAdvanced Topics
      • Cross Chain Solutions
      • System Contract and Drivers
      • Run Local Testnet
      • SideVM
    • ๐Ÿ†˜Support
      • Available Phala Chains
      • Resource Limits
      • Transaction Costs
      • Compatibility Matrix
      • Block Explorers
      • Faucet
    • โ‰๏ธFAQ
  • Compute Providers
    • ๐Ÿ™ƒBasic Info
      • Introduction
      • Gemini Tokenomics (Worker Rewards)
      • Budget balancer
      • Staking Mechanism
      • Requirements in Phala
      • Confidence Level & SGX Function
      • Rent Hardware
      • Error Summary
    • ๐ŸฆฟRun Workers on Phala
      • Solo Worker Deployment
      • PRBv3 Deployment
      • Using PRBv3 UI
      • PRB Worker Deployment
      • Switch Workers from Solo to PRB Mode
      • Headers-cache deployment
      • Archive node deployment
    • ๐Ÿ›ก๏ธGatekeeper
      • Collator
      • Gatekeeper
  • Web Directory
    • Discord
    • GitHub
    • Twitter
    • YouTube
    • Forum
    • Medium
    • Telegram
  • Legacy
    • Information
    • โš’๏ธPhala SDK
    • ๐Ÿ‘จโ€๐Ÿš€Builders Program
    • ๐ŸฅทAI Agent Contract
      • WapoJS Functions
      • Phala Agent Gateway
  • AI Agent Contract (Legacy)
    • ๐Ÿ‘ฉโ€๐Ÿ’ปGetting Started
      • Build Your First AI Agent Contract
      • Build An Agent to Transact Onchain
      • Build Your AI Agent Contract with OpenAI
      • Build Your AI Agent Contract with LangChain
      • Integrate with 3rd Party API with HTTP Request
      • Run a Local Testnet With Docker
      • AI Agent Contract Templates
    • ๐Ÿง™โ€โ™‚๏ธExamples
      • Create a Weather Agent w/ Function Calling
    • โ›“๏ธSupported Chains
    • FAQ
  • Agent Wars (Legacy)
    • ๐Ÿ“œIntroduction
    • ๐Ÿ’ธTokenomics
    • โ–ถ๏ธGetting Started
      • Wallet Setup & Get PHA
      • Buy and Sell Keys
    • ๐Ÿง‘โ€๐ŸซTutorial
Powered by GitBook
LogoLogo

Participate

  • Compute Providers
  • Node
  • Community
  • About Us

Resources

  • Technical Whitepaper
  • Token Economics
  • Docs
  • GitHub

More

  • Testnet
  • Explorer
  • Careers
  • Responsible Disclosure

COPYRIGHT ยฉ 2024 PHALA.LTD ALL RIGHTS RESERVED. May Phala be with you!

On this page
  • Prerequisites
  • Download the Khala Scripts
  • Activate the Intelยฎ SGX Software
  • Install Phala Tools

Was this helpful?

Edit on GitHub
  1. Compute Providers
  2. Run Workers on Khala - Archived
  3. Solo Scripts Guidance - Archived

Installing Khala Solo Scripts - Archived

Last updated 2 months ago

Was this helpful?

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 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 . Skip and proceed to ๐Ÿ‘‰ 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.

๐Ÿƒโ€โ™€๏ธ
Phala Mining Script
previous section
Install Phala Tools