Quantcast

How to automate installs of Sun Java 6 on Ubuntu using cli

I couldn’t figure this out, so Andy had to help me.. Thanks Andy!

Hopefully in the future we can use open-source, gpl’ed java, but until then:

/bin/echo -e 'sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true\nsun-java6-jre shared/accepted-sun-dlj-v1-1 boolean true' | sudo debconf-set-selections
DEBIAN_FRONTEND=noninteractive apt-get --force-yes -qq install sun-java6-bin

No comments yet. Be the first.

Leave a reply