Posts

Showing posts from February, 2014

Python on the Cloud for Gaming!

This is to show how Python was used on the cloud IDE called http://www.codeskulptor.org/ This game was not only a test of my programming concepts in Python but also a great learning in Physics, how things works in zero gravity, damping, angular velocity, and its damping..... You can play this game here !  It was honoured to have been played at the office wide annual event of India and Brazil Away Day of 2013. And was a massive crowd puller. (I was told that people begged to play this game and there was so much of crowd around the stalls that the GMs had to intervene and disperse the crowds!) Below are some pics trying to capture the audience response to this game

Getting the Chef to cook for us!

Image
We have three things here, in the earlier post , we saw how chef was installed on the workstation. 1. Enterprise Chef Server - Which is the main server which will be orchestrating the entire process. 2. Node -  this is the Virtual machine which will be hosting our app the one which will be carrying our payload. It will have the chef-client installed on it, which will be communicating with the Enterprise Chef server and controlling the configuration of the node or the VM. 3. Workstation - your laptop, that is the machine used to configure the Enterprise server and control the nodes. This is where we had installed chef in our earlier exercise . Before we get started we would need to get a login name and the starter kit from the Chef Enterprise Server. Go to this link  and register. Remember that you will be using the organisation name, as we will be using it. Once registered, signed in! Download the Starter Kit. Unzip the kit, this is the knife tool rename the folder to

Installing Guest Additions for VirtualBox on a Ubuntu node

When working with VirutalBox it is quite helpful to have the VirtualBox guest additions installed. The main reason for us to have this would be to blow up the VM we are working on to full screen. Assuming that you have already launched the VirtualBox and firedup the VM we going to work on 1. Open a terminal on the VM. 2. Just so that everything is uptodate sudo apt-get update 3. Followed by sudo apt-get install build-essential module-assistant 4. To Configure the system for building kernel modules  sudo m-a prepare 5. On the VirutalBox menu Click on  Devices  >>  Install Guest Additions which is at the bottom of the menu. 6. We switch over to the CD. cd /media 7. Using "ls" find the contents of the CD and swtich to it. cd VOBXADDITIONS_4.3.6... 8. finally running  sudo ./VBoxLinuxAdditions.run You would need to restart the VM to get these changes effective sometimes.  shutdown -r now And now we can see that on Full

Chef Advanced - Setup and Installation

Image
There was an earlier  post  in which we were able to install chef in no time, but now we will dig deeper and understand what exactly happens so that we have more control over this process.  Firstly we will start off by installing VirtualBox, Vagrant, Git and Ruby on a linux machine, I am using Ubuntu today to demonstrate this.  Installing VirtualBox and getting Ubuntu ready to receive it. I have tried to do this in two ways, one of easiest way of doing this by going to the terminal and entering sudo apt-get install virtualbox The more detailed Version is as below, which will give us more control so that we could be as precise as possible with versions and dependencies.  Lets confirm our Ubuntu version before we install the VirtualBox using the below lsb_relase -a We go to this  download page for VirtualBox  to get the link for the virtualBox that we would like to have installed. Before we run the single line command to install VirtualBox, lets just ensure that th

Vagrant - Creating our own Box File from ISO.

Image
Install VirtualBox I assume that you've already got the VirutalBox installed. Else its very simple, just have it installed Install Vagrant  Then refer the previous post on Vagrant to have it installed.  Creating a CentOS VM Download the CentOS 6.5 x86_64 DVD . Launch VirtualBox and do the following by click on the "New" on the left hand upper corner This is like the hardware has been built,  Now installing the OS on this machine, before we do that we tell it, where to pick up the ISO file from and disable unnecessary stuff.  Now while our VM is highlighted click on the Start  And this will load the lovely centos onto our VM! In case it reboots, just log in and shutdown the VM using "shutdown -h now" and making the VirtualBox image a little clean we do the following.  Configuring the VM to be in action when need! Configuring the network on this device.  Now you should be