Install SGX
If you're running a local machine and not a cloud-based VM -
- 1.Go to your BIOS menu
- 2.Enable SGX (Software controlled is not enough)
- 3.Disable Secure Boot
- 4.Disable Hyperthreading (recommended)
Note:
sgx_linux_x64_driver_2.11.0_2d2b795.bin
is the latest driver as of August 24th, 2021. Please check under https://download.01.org/intel-sgx/sgx-linux/ that this is still the case. If not, please send us a PR or notify us.If you are a node runner all you must do to install SGX is to save this as a script and run it.
- 1.Download the SGX install script.
wget https://raw.githubusercontent.com/SecretFoundation/docs/main/docs/node-guides/sgx
Execute the script.
sudo bash sgx
Copy of raw script.
sgx
#! /bin/bash
sudo apt-get update && sudo apt upgrade -y
sudo apt-get install make build-essential gcc git jq chrony -y
UBUNTUVERSION=$(lsb_release -r -s | cut -d '.' -f 1)
PSW_PACKAGES='libsgx-enclave-common libsgx-urts sgx-aesm-service libsgx-uae-service autoconf libtool make gcc'
if (($UBUNTUVERSION < 16)); then
echo "Your version of Ubuntu is not supported. Must have Ubuntu 16.04 and up. Aborting installation script..."
exit 1
elif (($UBUNTUVERSION == 16)); then
DISTRO='xenial'
OS='ubuntu16.04-server'
elif (($UBUNTUVERSION == 18)); then
DISTRO='bionic'
OS='ubuntu18.04-server'
elif (($UBUNTUVERSION == 20)); then
DISTRO='focal'
OS='ubuntu20.04-server'
fi