#
# $Id: generate,v 1.1 2009-02-17 10:46:37 potyra Exp $
#
#
cdrom_insert	ubuntu-8.04.1-i386-CD
#
# Power-on node.
#
power_on
#
# Wait for language selection (boot prompt) and press enter.
#
wait_ppm	01-language_english.png				5min
type		"\0d"
#
# Wait for "install ubuntu" menu option. Press down then enter.
#
wait_ppm	01b-install_ubuntu.png				1min
type		"\1f\0d"
#
# wait for step 1 screen
#
wait_ppm	04-step_1.png					60min
#
# wait for forward icon and click on it.
#
wait_ppm	05-forward_button.png				20min
mouse_click	05-forward_button.png
#
# wait for step 2 screen
#
wait_ppm	06-step_2.png					40min
mouse_move	06-step_2.png
#
# wait for forward icon and click on it.
#
wait_ppm	05-forward_button.png				20min
mouse_click	05-forward_button.png
#
# wait for step 3 screen.
#
wait_ppm	07-step_3.png					40min
mouse_move	07-step_3.png
#
# wait for forward icon and click on it.
#
wait_ppm	05-forward_button.png				20min
mouse_click	05-forward_button.png
#
# wait for step 4 screen 
#
wait_ppm	08-step_4.png					40min
mouse_move	08-step_4.png
#
# wait for forward icon and click on it.
#
wait_ppm	05-forward_button.png				20min
mouse_click	05-forward_button.png
#
# Wait for name text box, click on it and enter "FAUmachine User"
#
wait_ppm	10-textbox_name.png				40min
mouse_click	10-textbox_name.png
type		"FAUmachine User\0d"
#
# click on left password box, enter "geheim"
#
mouse_click	11-textbox_pw_left.png
type		"geheim\0d"
#
# click on right password box, enter "geheim" again. Step 8 should be loading.
#
mouse_click	12-textbox_pw_right.png
type		"geheim\0d"
#
# wait for "install" button
#
wait_ppm	14-install_button.png				20min
mouse_click	14-install_button.png
#
# wait for "installing system" to give some progress indication.
#
# wait_ppm	15-installing_system.png			20min
#
# wait for "installation complete" message
#
wait_ppm	19-installation_complete.png			240min
#
# there should be a "restart now" button. click it.
#
wait_ppm	20-restart_now.png				5min
mouse_click	20-restart_now.png
#
# shutdown will ask to remove the disk, wait for it
#
wait_ppm	21-remove_disc.png				20min
#
# remove the cd
#
cdrom_remove
#
# press enter
#
type	"\0d"
#
# wait for username (that's when gdm is up)
#
wait_ppm	23-username_gdm.png				40min
#
# seems like it's not 100% up yet, wait for another 30 sec before typing.
#
delay								30sec
#
# type faumachine + enter
#
type	"faumachine\0d"
#
# type geheim + enter as password 
#
type	"geheim\0d"
#
# nm should be the last thingy to come up, wait for it's icon.
#
wait_ppm	24-nm.png					20min
#
# wait for the shutdown icon (which should be already there), click on it
#
wait_ppm	25-shutdown_icon.png				10min
mouse_click	25-shutdown_icon.png
#
# wait for big version of the shutdown icon, click on it.
#
wait_ppm	26-shutdown_icon_big.png			10min
mouse_click	26-shutdown_icon_big.png
#
# wait for usplash completed progress bar (faumachine mb has problems with
# powering off)
#
wait_ppm	27-usplash_down.png				15min
#
# to be safe, wait for another 2 minutes
#
delay								2min
#
# power off faumachine.
#
power_off
delay								1sec
