Skip to content

Instantly share code, notes, and snippets.

@tisba
Created August 11, 2010 15:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tisba/519111 to your computer and use it in GitHub Desktop.
Save tisba/519111 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# add partner sources
echo -e "deb http://archive.canonical.com/ubuntu lucid partner \n\
deb-src http://archive.canonical.com/ubuntu lucid partner" >> /etc/apt/sources.list
# update package list
apt-get update
# read and accept the agreement
echo "sun-java6-jre shared/accepted-sun-dlj-v1-1 select true" | debconf-set-selections
# don't dare to ask for anything
apt-get install -y sun-java6-jre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment