Skip to content

Instantly share code, notes, and snippets.

@travisdowns
Last active November 27, 2018 22:51
Show Gist options
  • Save travisdowns/af6b8e8a73ba9faa3c672032c44a9031 to your computer and use it in GitHub Desktop.
Save travisdowns/af6b8e8a73ba9faa3c672032c44a9031 to your computer and use it in GitHub Desktop.
setup EC2 for development
git clone https://github.com/Keith-S-Thompson/dhrystone
cd dhrystone/v2.2
CFLAGS=-O3 sh dry.c
./dry2
#!/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