Skip to content
adgaudio edited this page Jul 20, 2011 · 2 revisions

In Case we decide to use an EC2 dev server, here are some notes that may or may not be helpful to us:

Two options I know of with EC2: Create ec2 instance (not ebs) and mount a Volume to it, use an ebs. This example creates an instance and mounts a previously created volume...

Default ubuntu images: http://uec-images.ubuntu.com/releases/11.04/release/ Ubuntu ami-68ad5201

Create instance from ami using dev security Associate IP (for dns) Attach Volume (previously created in your amazon account)

sudo tasksel #you can install lamp server from here, otherwise this also works:
    sudo apt-get install apache2
    sudo apt-get install mysql-server
    sudo apt-get install php5
    sudo apt-get install php5-mysql

sudo adduser hunchworks #(for example...)
passwd some_password11

To list partitions

cat /proc/partitions #the attached volume will be one of these

Mount amazon volume on dev server

mount /dev/xvdf /mnt/hunchworks_dev 

Add mount to fstab (so it starts up automatically on reboot)

echo "/dev/xvdf /mnt/hunchworks_dev none bind" | sudo tee -a /etc/fstab

Restart mysql and apache

sudo /etc/init.d/mysql restart
sudo /etc/init.d/apache2 restart

Done

Clone this wiki locally