Skip to content

Instantly share code, notes, and snippets.

@nwjsmith
Created December 30, 2011 01:06
Show Gist options
  • Save nwjsmith/1537039 to your computer and use it in GitHub Desktop.
Save nwjsmith/1537039 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 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
@nwjsmith
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment