Ubuntu-fresh is a project mainly written in Shell, it's free.
Sets up a fresh install of Ubuntu 10.4 with the basics
exec 3<&1 && sh <&3 <(curl https://raw.github.com/recurser/ubuntu-fresh/master/bootstrap.sh)