Skip to content

Instantly share code, notes, and snippets.

@nwjsmith
Created December 29, 2011 19:44
Show Gist options
  • Save nwjsmith/1535880 to your computer and use it in GitHub Desktop.
Save nwjsmith/1535880 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
# Add host-only network
cat <<-EOF > /etc/network/interfaces
# Loopback
auto lo
iface lo inet loopback
# Primary
auto eth0
iface eth0 inet dhcp
# Host-only
auto eth1
iface eth1 inet dhcp
EOF
# Use fast mirrors
cat <<-EOF > /etc/apt/sources.list
deb http://mirror.csclub.uwaterloo.ca/ubuntu/ lucid main restricted
deb-src http://mirror.csclub.uwaterloo.ca/ubuntu/ lucid main restricted
deb http://mirror.csclub.uwaterloo.ca/ubuntu/ lucid-updates main restricted
deb-src http://mirror.csclub.uwaterloo.ca/ubuntu/ lucid-updates main restricted
deb http://mirror.csclub.uwaterloo.ca/ubuntu/ lucid universe
deb-src http://mirror.csclub.uwaterloo.ca/ubuntu/ lucid universe
deb http://mirror.csclub.uwaterloo.ca/ubuntu/ lucid multiverse
deb-src http://mirror.csclub.uwaterloo.ca/ubuntu/ lucid multiverse
EOF
# Update
aptitude update
aptitude safe-upgrade -y
aptitude install -y virtualbox-guest-additions
# Add mathiaz's puppet ppas
aptitude install -y python-software-properties
add-apt-repository ppa:mathiaz/puppet-backports
aptitude update
# Install some goodies
aptitude install -y git-core ruby libshadow-ruby1.8 openssh-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment