- Check if your machine has Intel SGX (https://github.com/ayeks/SGX-hardware)
- Enable it in BIOS (On Ubuntu, restart and press F2)
- Install the SGX driver (https://github.com/01org/linux-sgx-driver), take care to switch to branch SGX2
- 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
- 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)
- If you make an SGX program, remember to always source environment!
That's it