Created
July 11, 2019 04:42
-
-
Save mssun/402fe68fb8a1480faadabe06c0a0709b to your computer and use it in GitHub Desktop.
sgx-toolchain.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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