Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
67 lines (50 sloc) 2.98 KB
add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ maverick universe"
add-apt-repository "deb-src http://us.archive.ubuntu.com/ubuntu/ maverick universe"
add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates universe"
add-apt-repository "deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates universe"
add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ maverick multiverse"
add-apt-repository "deb-src http://us.archive.ubuntu.com/ubuntu/ maverick multiverse"
add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates multiverse"
add-apt-repository "deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates multiverse"
add-apt-repository "deb http://archive.canonical.com/ maverick partner"
add-apt-repository "deb-src http://archive.canonical.com/ maverick partner"
add-apt-repository "deb http://archive.canonical.com/ maverick-updates partner"
add-apt-repository "deb-src http://archive.canonical.com/ maverick-updates partner"
aptitude update
echo "export HISTSIZE=999999999; export HISTFILESIZE=999999999" >> ~/.bashrc
read -p 'hostname? '
echo $REPLY > /etc/hostname
hostname $REPLY
echo "127.0.0.1 $REPLY" >> /etc/hosts
mkdir /root/Projects
echo grub-pc grub2/linux_cmdline string | sudo debconf-set-selections
echo grub-pc grub-pc/install_devices_empty boolean true | sudo debconf-set-selections
aptitude -y update
aptitude -y safe-upgrade
aptitude -y install build-essentials binutils-doc debian-keyring debian-maintainers g++-multilib g++-4.4-multilib gcc-4.4-doc libstdc++6-4.4-dbg gcc-multilib autoconf automake1.9 libtool flex bison gdb gcc-doc gcc-4.4-multilib libmudflap0-4.4-dev gcc-4.4-locales libgcc1-dbg libgomp1-dbg libmudflap0-dbg libcloog-ppl0 libppl-c2 libppl7 glibc-doc libstdc++6-4.4-doc python-dev ant sun-java6-jdk sun-java6-jre sun-java6-bin git-core python-virtualenv tmux vim-nox ec2-api-tools
pip install virtualenvwrapper
update-alternatives --set editor /usr/bin/vim.nox
read -p 'time to install ec2 certs'
A=`echo /root/certs/pk-*.pem`
echo "export EC2_PRIVATE_KEY=$A" >> /root/.bashrc
A=`echo /root/certs/cert-*.pem`
echo "export EC2_CERT=$A" >> /root/.bashrc
git config --global user.name "Paul Bohm"
git config --global user.email enki@bbq.io
cd /root/Projects
for x in git@github.com:enki/bbq.git git@github.com:enki/cassandra.git git@github.com:enki/enkihelpers.git git@github.com:enki/python-gearman.git git@github.com:enki/tornado.git; do git clone $x; done
git clone -b newindex git@github.com:enki/tragedy.git
echo "mkdir -p /root/virtualenvs" >> ~/.bashrc
echo "export WORKON_HOME=/root/virtualenvs" >> ~/.bashrc
echo ". /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
export WORKON_HOME=/root/virtualenvs
. /usr/local/bin/virtualenvwrapper.sh
mkvirtualenv bbq
workon bbq
add2virtualenv /root/Projects/tornado
add2virtualenv /root/Projects/bbq
add2virtualenv /root/Projects/enkihelpers
add2virtualenv /root/Projects/python-gearman
add2virtualenv /root/Projects/tragedy
pip install thrift
pip install poster