The program used for this is the one in the files picture is based on this. And with few modifications was stored here
The secuence of commands used is in the Ubuntu Commands in the files picture
http://garagelab.com/profiles/blogs/tutorial-how-to-upload-c-code-to-an-atmega