Skip to content

Instantly share code, notes, and snippets.

@darkspadez
Created November 21, 2011 19:51
Show Gist options
  • Save darkspadez/1383720 to your computer and use it in GitHub Desktop.
Save darkspadez/1383720 to your computer and use it in GitHub Desktop.
#!/bin/bash
# wget https://gist.github.com/raw/707468/cm-ec2-init.sh && . cm-ec2-init.sh
# Epic CM-on-EC2 Init Script for ami-4a0df923
# Preemptively agree to the JDK license
echo "sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true" | sudo debconf-set-selections
# Get required packages
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo aptitude update
sudo apt-get --yes install \
git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev \
squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev \
sun-java6-jdk pngcrush g++-multilib lib32z1-dev lib32ncurses5-dev \
lib32readline5-dev gcc-4.3-multilib g++-4.3-multilib schedtool ack-grep
# Get repo
mkdir -p ~/bin
curl curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
# Let new path settings take effect
exec bash -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment