# HG changeset patch # User tomwalters # Date 1267022975 0 # Node ID d0c7bc9b1e2174209d65d2511a91ffb8ceb23680 # Parent 18300eab5c8a1c7ab5d312ec67285d6ddcaab4d6 -Script updates for EC2 diff -r 18300eab5c8a -r d0c7bc9b1e21 trunk/scripts/HTKAimfeat.sh --- a/trunk/scripts/HTKAimfeat.sh Wed Feb 24 14:07:01 2010 +0000 +++ b/trunk/scripts/HTKAimfeat.sh Wed Feb 24 14:49:35 2010 +0000 @@ -43,13 +43,13 @@ MFCC_FEATURES= # Source directory for all the sound files -SOUND_SOURCE="Sounds" +SOUND_SOURCE="/media/sound-database/cnbh-sounds" # Location of the AIMCopy binary if not in the path -AIMCOPY_PREFIX="/Users/Tom/Documents/Work/AIM/AIM-C/aimc/trunk/build/darwin-release/" +AIMCOPY_PREFIX="./aimc-read-only/build/posix-release/" # Location of HTK binaries if not in the path -HTK_PREFIX="" +HTK_PREFIX="/media/sound-database/htk/bin/" # Names of various internal files and directories. # Rename here if you don't like them for some reason. diff -r 18300eab5c8a -r d0c7bc9b1e21 trunk/scripts/aws_prepare.sh --- a/trunk/scripts/aws_prepare.sh Wed Feb 24 14:07:01 2010 +0000 +++ b/trunk/scripts/aws_prepare.sh Wed Feb 24 14:49:35 2010 +0000 @@ -1,10 +1,16 @@ #!/bin/bash # Run ami-2fc2e95b (32 bit) or ami-05c2e971 (64 bit) in eu-west zone -sudo apt-get update -sudo apt-get install subversion scons pkg-config libsndfile-dev build-essential +sudo apt-get -y update +sudo apt-get -y install subversion scons pkg-config libsndfile-dev build-essential sudo mkdir /media/sounds-database sudo mount /dev/sdf1 /media/sounds-database/ svn checkout http://aimc.googlecode.com/svn/trunk/ aimc-read-only cd aimc-read-only scons cd .. +mkdir experiments +cd experiments +cp ../aimc-read-only/scripts/HTKAimfeat.sh ./ +chmod u+x HTKAimfeat.sh +./HTKAimfeat.sh _ec2_first_try + diff -r 18300eab5c8a -r d0c7bc9b1e21 trunk/scripts/ec2_user_data.sh --- a/trunk/scripts/ec2_user_data.sh Wed Feb 24 14:07:01 2010 +0000 +++ b/trunk/scripts/ec2_user_data.sh Wed Feb 24 14:49:35 2010 +0000 @@ -1,4 +1,4 @@ #!/bin/bash wget -O- run.alestic.com/install/runurl | bash -runurl run.alestic.com/email/start youremail@example.com +runurl run.alestic.com/email/start tom@tomwalters.co.uk runurl http://aimc.googlecode.com/svn/trunk/scripts/aws_prepare.sh \ No newline at end of file diff -r 18300eab5c8a -r d0c7bc9b1e21 trunk/scripts/run_ami.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/trunk/scripts/run_ami.sh Wed Feb 24 14:49:35 2010 +0000 @@ -0,0 +1,11 @@ +#!/bin/bash +ec2-run-instances \ + --user-data-file ec2_user_data.sh \ + --key tom_eu_west \ + --instance-type m1.small \ + --instance-count 1 \ + --region eu-west-1 \ + --availability-zone eu-west-1b \ + ami-2fc2e95b + +ec2-attach-volume vol-d6fb18bf -i [INSTANCE_ID] -d /dev/sdf --region eu-west-1 \ No newline at end of file