From af9caf4d59934f752a2665a2c77104f197880fa9 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 12 Sep 2012 18:56:54 -0400 Subject: [PATCH] setup.bash: more tweaks. (imported from commit 459b5d6174831d4526c25de8ed66ad62a63775b8) --- servers/humbug-dev/setup.bash | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/servers/humbug-dev/setup.bash b/servers/humbug-dev/setup.bash index 59584dead8..e6851d00ca 100755 --- a/servers/humbug-dev/setup.bash +++ b/servers/humbug-dev/setup.bash @@ -1,5 +1,14 @@ #!/bin/bash -xe +# Setup that needs to be done before this is run: +# +# (1) create the instance using the EC2 management console -- you want +# to use the squeeze image that doesn't have "beta" in its name +# +# (2) Login to the new machine using "ssh -i humbug.pem", change the +# root password to something random (we'll use SSH keys to get +# access), and add our normal keys to /root/.ssh/authorized_keys + # Run the script from the directory where it lives, so we can # easily access config files etc. cd "$(dirname "$(readlink -f $0)")" @@ -36,10 +45,10 @@ deb http://backports.debian.org/debian-backports squeeze-backports main deb-src http://backports.debian.org/debian-backports squeeze-backports main EOF apt-get update -apt-get upgrade -apt-get install sudo emacs vim screen git python-tz sqlite3 apache2 gitit python-tornado \ +yes '' | apt-get upgrade +yes '' | apt-get install sudo emacs vim screen git python-tz sqlite3 apache2 gitit python-tornado \ python-pip -apt-get install -t squeeze-backports python-django +yes '' | apt-get install -t squeeze-backports python-django # Configure Apache a2enmod proxy proxy_http rewrite auth_digest ssl