DDSCAT on amazon EC2
Posted on Thu 03 September 2015 in Plasmonics
Amazon provides high performance computing capabilities through their EC2 service. You can find more information here
They provide a 750 hr free instance with their a free-tier program. If you want more resources, you can pay for it. See the pricing, pricing seem very reasonable.
I wanted to see how easy it was to install ddscat and run some examples files.
Amazon allows to create an instance through their very easy-to-use web interface. I chose to install ubuntu amazon machine image on the instance. While you are creating an instance you are allowed to create a key pair file and download it. You will need that to connect to amazon instance through ssh client with this key
Fire up terminal on a linux box and browse to the folder you have the key pair and issue these commands
1 | |
Make ssh connection with a command like this
1 | |
here "ec2-xx-xx-100-1.compute-1.amazonaws.com" is your public dns address
You should be able to log into the instance. If you get stuck, see detailed info at how to connect to the instance
Update the package list from different repos with
1 | |
install these packages
1 | |
Make a directory for ddscat
1 2 | |
Download the source files and examples
1 2 | |
Unzip them
1 2 3 4 5 | |
Go to the examples_exp folder
1 | |
To compile ddscat executable and run the examples:
1 | |
ddscat executabe file should be created in the src folder, which you can use for your own ddscat test cases.
To quit the ssh session, type
exit in the command prompt
So as you see, the process is very simple.