Created
December 30, 2011 01:06
-
-
Save nwjsmith/1537039 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 universe multiverse | |
deb-src http://mirror.csclub.uwaterloo.ca/ubuntu/ lucid main restricted universe multiverse | |
deb http://mirror.csclub.uwaterloo.ca/ubuntu/ lucid-updates main restricted universe multiverse | |
deb-src http://mirror.csclub.uwaterloo.ca/ubuntu/ lucid-updates main restricted universe multiverse | |
deb http://mirror.csclub.uwaterloo.ca/ubuntu/ lucid-security main restricted universe multiverse | |
deb-src http://mirror.csclub.uwaterloo.ca/ubuntu/ lucid-security main restricted universe multiverse | |
deb http://mirror.csclub.uwaterloo.ca/ubuntu/ lucid-backports main restricted universe multiverse | |
deb-src http://mirror.csclub.uwaterloo.ca/ubuntu/ lucid-backports main restricted universe multiverse | |
EOF | |
# Update | |
aptitude update | |
aptitude safe-upgrade -y | |
apt-get install --no-install-recommends open-vm-tools |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To enjoy:
wget -q -O - https://raw.github.com/gist/1537039 | sudo sh
It assumes you're running a Virtualbox with an extra, host-only, network adapter and Ubuntu Lucid Lynx 10.04