changeset 302:d0c7bc9b1e21

-Script updates for EC2
author tomwalters
date Wed, 24 Feb 2010 14:49:35 +0000
parents 18300eab5c8a
children 403763a98382
files trunk/scripts/HTKAimfeat.sh trunk/scripts/aws_prepare.sh trunk/scripts/ec2_user_data.sh trunk/scripts/run_ami.sh
diffstat 4 files changed, 23 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- 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
+
--- 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
--- /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