[ec2-beta] Setting Up Snapshotting - Java

James Mayes jmayes at youdata.com
Thu Apr 16 01:34:07 BST 2009


On Apr 15, 2009, at 7:24 PM, Micah Walter wrote:

> Hi,
> I'm trying to set up automatic snapshotting on my ubuntu ec2 instance.
> I have most of it set up correctly... I think..
>
> I installed the EC2 API tools in to a folder on my ubuntu account
> called /home/ubuntu/ec2/api-tools
>
> I also copied the binaries to /usr/local/bin
>
> I did the export EC2_HOME, and other exports, but I appears I need to
> install Java. I haven't been able to figure out how to do this
> properly. Everything points to adding the "multiverse" to my /etc/apt/
> sources.list file, but I'm not sure what to add for this AMI...
>
> Once I do that I just need to add the export JAVA_HOME line and it
> should work... I hope...
>
> anyway, any info on this would make my day!
>
> thanks,
> Micah
>
> --  
> Ec2-beta mailing list
> Ec2-beta at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ec2-beta


Hello Micah,

Here is the script that I use.  I obtained it from either this mailing  
list or the ec2ubuntu list.  My apologies (and thanks!) to whomever  
created it.  It is for unattended installation of the official Sun  
Java distribution (full SDK, not just the JRE).  Note that you can  
perform this interactively by just issuing "apt-get install sun-java6- 
jdk"   You can also install the OpenJDK (assuming everything that you  
need is implemented there as expected).  Google around if interested.

#!/bin/sh
echo "# ==========="
echo "# Sun Java 6"
echo "# ==========="
apt-get -y install debconf-utils
echo 'sun-java6-bin   shared/accepted-sun-dlj-v1-1    boolean true
sun-java6-jdk   shared/accepted-sun-dlj-v1-1    boolean true
sun-java6-jre   shared/accepted-sun-dlj-v1-1    boolean true
sun-java6-jre   sun-java6-jre/stopthread        boolean true
sun-java6-jre   sun-java6-jre/jcepolicy note
sun-java6-bin   shared/present-sun-dlj-v1-1     note
sun-java6-jdk   shared/present-sun-dlj-v1-1     note
sun-java6-jre   shared/present-sun-dlj-v1-1     note
'|debconf-set-selections
export DEBIAN_FRONTEND=noninteractive
apt-get -y install sun-java6-jdk







More information about the Ec2-beta mailing list