Last active
November 27, 2018 22:51
-
-
Save travisdowns/af6b8e8a73ba9faa3c672032c44a9031 to your computer and use it in GitHub Desktop.
setup EC2 for development
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
git clone https://github.com/Keith-S-Thompson/dhrystone | |
cd dhrystone/v2.2 | |
CFLAGS=-O3 sh dry.c | |
./dry2 |
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 | |
# run it in one shot with: | |
# curl -s 'https://gist.githubusercontent.com/travisdowns/af6b8e8a73ba9faa3c672032c44a9031/raw/ubuntu-setup.sh?cache=no' | sudo /bin/bash | |
set -e | |
if [ "$EUID" -ne 0 ]; then | |
echo "Please run as root" && false | |
fi | |
apt-get update | |
apt-get install -y build-essential msr-tools linux-tools-$(uname -r) | |
modprobe msr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment