“It is not the strongest of the species that survive, nor the most intelligent, but the one most responsive to change.” — Charles Darwin

“DevOps is a set of practice that seeks to reduce the gap between software development and software operation.”

Use Cloud and DevOps to build immutable infrastructure by agile development using collaborative open source tools:
-Terraform or Cloud Formation for infrastructure provisioning and scaling.
-Packer for building server images or containers using:
-chef cookbooks, puppet modules or ansible playbooks to build servers.

EC2Dream Installation

Pre-Requisites - Install Ruby

Install Ruby 2.4 or higher for your operating system as per Set Up a Sane Ruby Cookbook Authoring Environment for Chef on Mac OS X, Linux and Windows
(For windows install Ruby and the Ruby Development kit i.e. command ridk install)


To use vagrant with Test Kitchen install:
Oracle Virtual Box


1. In a git for windows command line enter: gem install ec2dream

2. To run enter: ec2dream

Using EC2Dream with chef berkshelf

To work with chef repositories with a Berks file berkshelf needs to be able to run on your workstation.
1. To do this on windows first install the Ruby DevKit.
2. Install berkshelf: gem install berkshelf -v 2.0.17

Mac OSX Yosemite

1. Install Ruby 2.4
How to Install Ruby 2.4 on OSX Using RVM

2. Install
brew tap homebrew/x11
brew install fox
brew install libxml2 libxslt
gem install fxruby
gem install ec2dream

3. Run by entering:

Fedora 14 or newer

NOTE: The following was testing using vmware image from http://www.trendsigma.net/vmware/fedora14.html

1. Install packages
 sudo yum groupinfo "Development Tools"yum groupinfo "Development Tools"  sudo yum install -y libXrandr libXrandr-devel libXcursor-devel libpng-devel xterm

2. Add fox toolkit repository locations to yum if /etc/yum.repos.d//etc/yum.repos.d/ does not exist then:
 wget http://repos.fedorapeople.org/repos/gomix/fox/fedora-fox.repo
 edit fedora-fox.repo and change
 because as time of writing no fedora 14 location
 copy fedora-fox.repo to /etc/yum.repos.d/ directory

3. Install Fox toolkit
 yum install -y fox fox-devel

4. If running GNOME install the terminator extension
 yum install -y terminator

5. Make sure in Ruby 2.0 or higher
 chruby ruby-2.0
 ruby -v

6.Install fxruby
 gem install fxruby

7. Install ec2dream
 gem install ec2dream

8. Run by entering:

Ubuntu 12 or newer

NOTE: The following was testing using vmware image from http://www.trendsigma.net/vmware/ubuntu1204.html 

1. Install packages
 sudo apt-get install libXrandr-dev

2. Install fox toolkit.
 sudo apt-get install -y libfox-1.6-dev libfox-1.6-0

3. If running GNOME install the terminator extension
 sudo apt-get install -y terminator

4. Make sure in Ruby 2.0 or higher
 chruby ruby-2.0
 ruby -v

5. install fxruby
 gem install fxruby

6. Install ec2dream:
 gem install ec2dream

7. Run by entering:


Anonymous said...

I'm getting the following error on FC12 after following the Fedora instructions:

[matt@matt-linux ElastDream] $ sh run.sh
/home/matt.gem/ruby/1.8/gems/FXRuby-1.6.20-x86-mingw32/lib/fox16.so: /home/matt/.gem/ruby/1.8/gems/FXRuby-1.6.20-x86-mingw32/lib/fox16.so: invalid ELF header - /home/matt/.gem/ruby/1.8/gems/FXRuby-1.6.20-x86-mingw32/lib/fox16.so (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require`
from /home/matt/bin/ElastDream/system/EC2_Main.rb:4

Neill Turner said...
This comment has been removed by the author.
Neill Turner said...

Looks like a problem with the fox install. ELF header means fox16.so is corrupt or invalid.
On Fedora the Fox install is not in yum. Ubuntu is better as the fox install is in apt-get. To progress you need to say what Fox rpm you used. Did you install a 64 bit version on a 32 bit machine. To progress use issues http://code.google.com/p/ec2dream/issues/list rather than post in comments

Anonymous said...

Sorry, we're a 100% Fedora/CentOS shop, no Ubuntu. 32 bit desktop

Neill Turner said...

You could try using the fox install files from from http://sourceforge.net/projects/mingw-cross/files/

Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Neill said...

This means you have not install FXRuby

Rana said...

Please correct your Spet 7's command:
7. Finally install ec2dream gem:
sudo gem install ec2ream

It should be: sudo gem install ec2dream

Neill Turner said...

thanks it is corrected....

Post a Comment