summaryrefslogtreecommitdiff
path: root/wheezy/base.sh
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-10-30 15:13:11 -0400
committerMicah Anderson <micah@riseup.net>2012-10-30 15:13:11 -0400
commit7c3a43f7a48f26ba1995936f83bf59e6bf57a2fa (patch)
tree194a05a48a569461b4dc58ecbdf7bc1b7223419f /wheezy/base.sh
Add README.md and minimal wheezy definition
Diffstat (limited to 'wheezy/base.sh')
-rw-r--r--wheezy/base.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/wheezy/base.sh b/wheezy/base.sh
new file mode 100644
index 0000000..f7d646e
--- /dev/null
+++ b/wheezy/base.sh
@@ -0,0 +1,28 @@
+# Update the box
+apt-get -y update
+apt-get -y install linux-headers-$(uname -r) build-essential
+apt-get -y install zlib1g-dev libssl-dev libreadline5-dev
+apt-get -y install curl unzip
+apt-get -y dist-upgrade
+apt-get clean
+
+# Set up sudo
+cp /etc/sudoers /etc/sudoers.orig
+sed -i -e 's/%sudo.*ALL=(ALL:ALL) ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers
+
+# Tweak sshd to prevent DNS resolution (speed up logins)
+echo 'UseDNS no' >> /etc/ssh/sshd_config
+
+# Remove 5s grub timeout to speed up booting
+echo <<EOF > /etc/default/grub
+# If you change this file, run 'update-grub' afterwards to update
+# /boot/grub/grub.cfg.
+
+GRUB_DEFAULT=0
+GRUB_TIMEOUT=0
+GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
+GRUB_CMDLINE_LINUX_DEFAULT="quiet"
+GRUB_CMDLINE_LINUX="debian-installer=en_US"
+EOF
+
+update-grub