Skip to content

Instantly share code, notes, and snippets.

@mssun
Created July 11, 2019 04:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mssun/402fe68fb8a1480faadabe06c0a0709b to your computer and use it in GitHub Desktop.
Save mssun/402fe68fb8a1480faadabe06c0a0709b to your computer and use it in GitHub Desktop.
sgx-toolchain.sh
#!/bin/bash
sudo apt-get install -q -y libssl-dev libcurl4-openssl-dev libprotobuf-dev
sudo apt-get install -q -y build-essential python
mkdir sgx-toolchain && pushd sgx-toolchain
wget https://download.01.org/intel-sgx/linux-2.5/ubuntu18.04-server/libsgx-enclave-common-dbgsym_2.5.101.50123-bionic1_amd64.ddeb
wget https://download.01.org/intel-sgx/linux-2.5/ubuntu18.04-server/libsgx-enclave-common-dev_2.5.101.50123-bionic1_amd64.deb
wget https://download.01.org/intel-sgx/linux-2.5/ubuntu18.04-server/libsgx-enclave-common_2.5.101.50123-bionic1_amd64.deb
wget https://download.01.org/intel-sgx/linux-2.5/ubuntu18.04-server/sgx_linux_x64_driver_f7dc97c.bin
wget https://download.01.org/intel-sgx/linux-2.5/ubuntu18.04-server/sgx_linux_x64_sdk_2.5.100.49891.bin
chmod u+x sgx_linux*
sudo ./sgx_linux_x64_driver_f7dc97c.bin
sudo ./sgx_linux_x64_sdk_2.5.100.49891.bin
sudo dpkg -i libsgx-enclave-common_2.5.101.50123-bionic1_amd64.deb
popd
rm -rf sgx-toolchain
ls /dev/isgx
systemctl status aesmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment