Skip to content

Instantly share code, notes, and snippets.

@daviddao
Created January 13, 2018 02:17
Show Gist options
  • Save daviddao/285193959dad6495d5188e2ff40fe7f1 to your computer and use it in GitHub Desktop.
Save daviddao/285193959dad6495d5188e2ff40fe7f1 to your computer and use it in GitHub Desktop.

How to install Intel SGX, big picture

  1. Check if your machine has Intel SGX (https://github.com/ayeks/SGX-hardware)
  2. Enable it in BIOS (On Ubuntu, restart and press F2)
  3. Install the SGX driver (https://github.com/01org/linux-sgx-driver), take care to switch to branch SGX2
  4. Install Intel SGX SDK (https://github.com/01org/linux-sgx/). This allows you to compile programs in Simulation mode with flag make SGX_MODE=SIM
  5. Install Intel SGX PSW. For that you need to download the capability licensing client from the Intel website! (https://software.intel.com/en-us/sgx-sdk/download)
  6. If you make an SGX program, remember to always source environment!

That's it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment