Scripted installation of Java on Ubuntu (with Bash or Puppet) 20 July 2011 - Dallas Every few months I need to script the installation of Java on Ubuntu, and I always seem to forget quite how to do it. I also seem to fail at finding anything useful on Google. Most of the posts either skip critical steps or involve manual steps. So I’m going to document this here for future reference. Bash version