#
# $Id: generate,v 1.1 2009-02-16 10:46:56 potyra Exp $
#
#
# Enter Debian-3.1r0a-CD-1.
#
cdrom_insert	Debian-3.1r0a-amd64-CD-1
#
# Power-on node.
#
power_on
#
# Wait for boot prompt.
#
wait_asc	boot:						1min
type		"\0d"
#
# Wait for "Choose language".
# Use preselected "English".
# Press return.
#
wait_asc	Choose language					3min
type		"\0d"
#
# Wait for "Choose country or region".
# Use preselected "United States".
# Press return.
#
wait_asc	Choose country or region			1min
type		"\0d"
#
# Wait for "Select a keyboard layout".
# Use preselected "Amarican English".
# Press return.
#
wait_asc	Select a keyboard layout			1min
type		"\0d"
#
# Some intermediate steps.
#
wait_asc	Detecting hardware to find CD-ROM drives	1min
wait_asc	Scanning CD-ROM					6min
wait_asc	Loading components of the Debian installer	1min
wait_asc	Detecting network hardware			6min
#
# Wait for "Configure the network" ("Please enter the hostname...").
# Clear "debian".
# Type "debian31".
#
# wait_asc	Configure the network				1min
wait_asc	Please enter the hostname			1min
type		"\08\08\08\08\08\08"
type		"debian31\0d"
#
# Wait for "Configure the network" ("Domain name:").
# Type "faumachine.org".
#
wait_asc	Domain name:					1min
type		"faumachine.org\0d"
#
# Some intermediate steps.
#
wait_asc	Detecting disks and all other hardware		1min
wait_asc	Starting up the partitioner			2min
#
# Wait for "Partition disks"
# Use preselected "Erase entire disk: IDE1 master (hda)..."
#
wait_asc	Partition disks					1min
type		"\0d"
#
# Some intermediate steps.
#
wait_asc	Starting up the partitioner			2min
#
# Wait for "Partition disks" ("The disk can be partitioned using...")
# Use preselected "All files in one partition...".
#
wait_asc	The disk can be partitioned using		1min
type		"\0d"
#
# Some intermediate steps.
#
wait_asc	Starting up the partitioner			2min
wait_asc	Guided partitioning				1min
#
# Wait for "Partition disks" ("This is an overview of your currently...").
# Use preselected "Finish partitioning and write changes to disk".
#
wait_asc	This is an overview of your currently		2min
type		"\0d"
#
# Wait for "Partition disks" ("If you continue, the changes...")
# Use "Yes".
#
wait_asc	If you continue, the changes			1min
type		"\09"
type		"\09"
type		"\0d"
#
# Some intermediate steps.
#
wait_asc	Creating ext3 file system			1min
wait_asc	Installing the Debian base system		6min
#
# Wait for "Install the GRUB boot loader on a hard disk"
# Use preselected "Yes"
#
wait_asc	Install the GRUB boot loader on a hard disk	3hr
type		"\0d"
#
# Wait for "Finishing the installation" ("Installation complete").
# Remove CDROM.
# Use preselected "Continue"
#
wait_asc	Finishing the installation			3min
wait_asc	Installation complete				3min
cdrom_remove
type		"\0d"
#
# Some intermediate steps.
#
wait_asc	Configuring the base system			6min
#
# Wait for "Debian base system configuration".
# Use preselected "Ok"
#
wait_asc	Debian base system configuration		3min
type		"\0d"
#
# Wait for "Time zone configuration".
# Use "Yes"
#
wait_asc	Time zone configuration				1min
type		"\09"
type		"\0d"
#
# Wait for "Time zone configuration" ("The following are common time zones...").
# Use "other"
#
wait_asc	The following are common time zones		1min
type		"o"
type		"\09"
type		"\0d"
#
# Wait for "Time zone configuration" ("Pick the geographic area in which...").
# Use "Europe"
#
wait_asc	Pick the geographic area in which		1min
type		"E"
type		"\09"
type		"\0d"
#
# Wait for "Time zone configuration" ("Cities represent the time zone...").
# Use "Berlin"
#
wait_asc	Cities represent the time zone			1min
type		"B"
type		"\1f"
type		"\1f"
type		"\09"
type		"\0d"
#
# Wait for "Configuring passwd".
# Type "WeV0te4u!".
#
wait_asc	Configuring passwd				1min
type		"WeV0te4u!\0d"
#
# Wait for "Configuring passwd" ("Please enter the same root password...").
# Type "WeV0te4u!".
#
wait_asc	Please enter the same root password		1min
type		"WeV0te4u!\0d"
#
# Wait for "Configuring passwd" ("A user account will be created...").
# Type "demo".
#
wait_asc	A user account will be created			1min
type		"demo\0d"
#
# Wait for "Configuring passwd" ("Select a username for the new...").
# Use preselected "demo".
#
wait_asc	Select a username for the new			1min
type		"\0d"
#
# Wait for "Configuring passwd" ("A good password will contain...").
# Type "WeV0te4u!".
#
wait_asc	A good password will contain			1min
type		"WeV0te4u!\0d"
#
# Wait for "Configuring passwd" ("Please enter the same user...").
# Type "WeV0te4u!".
#
wait_asc	Please enter the same user			1min
type		"WeV0te4u!\0d"
#
# Wait for "Apt configuration".
# Insert CDROM.
# Use preselected "cdrom".
#
wait_asc	Apt configuration				1min
cdrom_insert	Debian-3.1r0a-amd64-CD-1
type		"\0d"
#
# Wait for "Apt configuration" ("If you have another Debian CD...").
# Insert CDROM-2/3/4/...
# Select "Yes".
# Type <Return>.
# After last CD use preselected "No".
#
wait_asc	If you have another Debian CD			1min
cdrom_remove
cdrom_insert	Debian-3.1r0a-amd64-CD-2
type		"\09"
type		"\0d"
wait_asc	Scanning CD					1min
wait_asc	If you have another Debian CD			1min
cdrom_remove
type		"\0d"
#
# Wait for "Apt configuration" ("Cannot access security updates...").
# Use preselected "Ok".
#
wait_asc	Cannot access security updates			1min
type		"\0d"
#
# Wait for "The following NEW packages will be installed:".
# Insert CD.
# Type <return>.
#
wait_asc	The following NEW packages will be installed:	5min
cdrom_insert	Debian-3.1r0a-amd64-CD-1
type		"\0d"
#
# Wait for "Debian software selection".
# Use preselected list and use "Ok".
#
wait_asc	Debian software selection			4min
type		"\09"
type		"\0d"
#
# Wait for "Configuring Exim v4...".
# Use preselected "local delivery only..." and use "Ok".
#
wait_asc	Configuring Exim v4				1hr
type		"\09"
type		"\0d"
#
# Wait for "Configuring Exim v4..." ("Mail for the "postmaster", ...").
# Use preselected "demo" and use "Ok".
#
wait_asc	Mail for the 					1min
type		"\0d"
#
# Wait for "Debian base system configuration" ("Thank you for choosing...").
# Use preselected "Ok".
#
wait_asc	Thank you for choosing				5min
type		"\0d"
#
# Wait for "debian31 login:"
# Enter "root".
#
wait_asc	debian31 login:					1min
type		"root\0d"
#
# Wait for "Password:"
# Enter "WeV0te4u!".
#
wait_asc	Password:					1min
type		"WeV0te4u!\0d"
#
# Wait for "~#"
# Enter "halt".
#
wait_asc	~#						1min
cdrom_remove
type		"halt\0d"
#
# Wait for "Power down"
#
wait_asc	Power down					1min
power_off
delay								1sec
