Installation automation for both Ubuntu and OS X environments.

Please be consistent with tabs/spaces