#
# $Id: 01generate,v 1.1 2009-02-16 12:41:44 potyra Exp $
#
#
# Power-on
#
power_switch_on
#
# Wait for "Choose The Language".
# Use "Choose this and press Enter to proceed in English".
#
# wait_asc	Choose The Language				3min
# type		"\1b[B"
# type		"\1b[B"
# type		"\1b[B"
# type		"\1b[B"
# type		"\1b[B"
# type		"\1b[B"
# type		"\0d"
#
# Wait for "Choose Language Variant".
# Use "English (United States)".
#
# wait_asc	Choose Language Variant				1min
# type		"\0d"
#
# Wait for "Release Notes".
# Use only "<Continue>".
#
wait_asc	Release Notes					1min
type		"\0d"
#
# Wait for "Debian GNU/Linux Installation Main Menu"
#	("Next      : Configure the Keyboard").
# Use preselected "Configure the Keyboard".
#
# wait_asc	Debian GNU/Linux Installation Main Menu		1min
# wait_asc	Next      : Configure the Keyboard		1min
# type		"\0d"
#
# Wait for "Select a keyboard".
# Use preselected "qwerty/us...".
#
# wait_asc	Select a keyboard				1min
# type		"\0d"
#
# Wait for "Debian GNU/Linux Installation Main Menu"
#	("Next      : Partition a Hard Disk").
# Use preselected "Partition a Hard Disk".
#
wait_asc	Debian GNU/Linux Installation Main Menu		1min
wait_asc	Next      : Partition a Hard Disk		1min
type		"\0d"
#
# Wait for "Select Disk Drive".
# Use only "/dev/hda".
#
wait_asc	Select Disk Drive				1min
type		"\0d"
#
# Wait for "LILO Limitations".
# Use only "<Continue>".
#
wait_asc	LILO Limitations				1min
wait_asc	<Continue>					1min
type		"\0d"
#
# Wait for "No partition table or unknown signature on...".
# Use "y".
#
wait_asc	No partition table or unknown			1min
type		"y"
#
# Wait for "cfdisk".
# Use "New" "Primary" "900" "Beginning" "Bootable"
#
wait_asc	cfdisk						1min
type		"n"
type		"p"
type		"900\0d"
type		"b"
type		"b"
# Use "Free Space"
type		"\1f"
# Use "New" "Primary" preselected "100+" "Type" preselected 82
type		"n"
type		"p"
type		"\0d"
type		"t\0d\0d"
# Use "Write" "yes"
type		"\1c"
type		"\0d"
type		"yes\0d"
# Use "Quit"
type		"q"
#
# Wait for "Debian GNU/Linux Installation Main Menu"
#	("Next      : Initialize and Activate a Swap Partition").
# Use preselected "Initialize and Activate a Swap Partition".
#
wait_asc	Debian GNU/Linux Installation Main Menu		5min
wait_asc	Next      : Initialize and Activate a Swap	1min
type		"\0d"
#
# Wait for "Scan for Bad Blocks?".
# Use preselected "<No>".
#
wait_asc	Scan for Bad Blocks?				1min
type		"\0d"
#
# Wait for "Are You Sure?".
# Use preselected "<Yes>".
#
wait_asc	Are You Sure?					1min
type		"\0d"
#
# Wait for "Debian GNU/Linux Installation Main Menu"
#	("Next      : Initialize a Linux Partition").
# Use preselected "Initialize a Linux Partition".
#
wait_asc	Debian GNU/Linux Installation Main Menu		1min
wait_asc	Next     : Initialize a Linux Partition		1min
type		"\0d"
#
# Wait for "Scan for Bad Blocks?".
# Use preselected "<No>".
#
wait_asc	Scan for Bad Blocks?				1min
type		"\0d"
#
# Wait for "Are You Sure?".
# Use preselected "<Yes>".
#
wait_asc	Are You Sure?					1min
type		"\0d"
#
# Wait for "Mount as the Root Filesystem?".
# Use preselected "<Yes>".
#
wait_asc	Mount as the Root Filesystem?			3min
type		"\0d"
#
# Wait for "Debian GNU/Linux Installation Main Menu"
#	("Next      : Install Kernel and Driver Modules").
# Use preselected "Install Kernel and Driver Modules".
#
wait_asc	Debian GNU/Linux Installation Main Menu		1min
wait_asc	Next      : Install Kernel and Driver Modules	1min
type		"\0d"
#
# Wait for "Found a Debian CD-ROM".
# Use preselected "<Yes>".
#
wait_asc	Found a Debian CD-ROM				1min
type		"\0d"
#
# Wait for "Debian GNU/Linux Installation Main Menu"
#	("Next      : Configure Device Driver Modules").
# Use preselected "Configure Device Driver Modules".
#
wait_asc	Debian GNU/Linux Installation Main Menu		1min
wait_asc	Next      : Configure Device Driver Modules	1min
type		"\0d"
#
# Wait for "Note about loaded drivers".
# Use only "<Continue>".
#
wait_asc	Note about loaded drivers			1min
type		"\0d"
#
# Wait for "Select Category".
# Use preselected "Exit   Finished. Return to previous menu.".
#
wait_asc	Select Category					1min
type		"\0d"
#
# Wait for "Debian GNU/Linux Installation Main Menu"
#	("Next      : Configure the hostname").
# Use preselected "Configure the hostname".
#
wait_asc	Debian GNU/Linux Installation Main Menu		1min
wait_asc	Next      : Configure the hostname		1min
type		"\0d"
#
# Wait for "Choose the Hostname"
# Delete preselected "debian".
# Enter "debian30".
#
wait_asc	Choose the Hostname				1min
type		"\08\08\08\08\08\08"
type		"debian30\0d"
#
# Wait for "Debian GNU/Linux Installation Main Menu"
#	("Next     : Install the Base System").
# Use preselected "Install the Base System".
#
wait_asc	Debian GNU/Linux Installation Main Menu		1min
wait_asc	Next     : Install the Base System		1min
type		"\0d"
#
# Wait for "Select Installation Medium".
# Use preselected "cdrom   : CD-ROM drive".
#
wait_asc	Select Installation Medium			1min
type		"\0d"
#
# Wait for "Please insert the CD-ROM".
# Use only "<Continue>".
#
wait_asc	Please insert the CD-ROM			1min
type		"\0d"
#
# Intermediate step.
#
wait_asc	Please Wait					1min
#
# Wait for "Select Archive path".
# Use only "/instmnt".
#
wait_asc	Select Archive path				1min
type		"\0d"
#
# Intermediate step.
#
# wait_asc	Installing Base System, please wait		1min
#
# Wait for "Debian GNU/Linux Installation Main Menu"
#	("Next      : Make System Bootable").
# Use preselected "Make System Bootable".
#
wait_asc	Debian GNU/Linux Installation Main Menu		1hr
wait_asc	Next      : Make System Bootable		1min
type		"\0d"
#
# Wait for "Where should the LILO boot loader be installed?".
# Use preselected "/dev/hda : Install LILO in the MBR...".
#
wait_asc	Where should the LILO boot loader be installed?	1min
type		"\0d"
#
# Wait for "Securing LILO".
# Use only "<Continue>".
#
wait_asc	Securing LILO					1min
type		"\0d"
#
# Wait for "Debian GNU/Linux Installation Main Menu"
#	("Alternate: Reboot the System").
# Use "Reboot the System".
#
wait_asc	Debian GNU/Linux Installation Main Menu		1min
wait_asc	Alternate: Reboot the System			1min
type		"\1f"
type		"\0d"
#
# Wait for "Reboot the system?".
# Remove CDROM.
# Use preselected "<Yes>".
#
wait_asc	Reboot the system?				1min
cdrom_remove
type		"\0d"
#
# Intermediate step.
#
# wait_asc	Configuring the base system...			3min
#
# Wait for "Debian System Configuration".
# Use only "<Ok>".
#
wait_asc	Debian System Configuration			4min
type		"\0d"
#
# Wait for "Time Zone Configuration".
# Use preselected "<Yes>".
#
wait_asc	Time Zone Configuration				1min
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		"\0d"
#
# Wait for "Time Zone Configuration" ("Cities represent the time zone...").
# Use "Europe".
#
wait_asc	Cities represent the time zone in which		1min
type		"b"
type		"\1f"
type		"\1f"
type		"\0d"
#
# Wait for "Password setup".
# Use preselected "<No>".
#
wait_asc	Password setup					1min
type		"\0d"
#
# Wait for "Password setup" ("Shadow passwords make your system...").
# Use preselected "<Yes>".
#
wait_asc	Shadow passwords make your system		1min
type		"\0d"
#
# Wait for "Password setup" ("Before proceeding, you need to set...").
# Use preselected "<Ok>".
#
wait_asc	Before proceeding, you need to set		1min
type		"\0d"
#
# Wait for "Password setup" ("Enter a password for root:").
# Enter "UMLinux".
#
wait_asc	Enter a password for root:			1min
type		"UMLinux\0d"
#
# Wait for "Password setup" ("Please enter the same root password...").
# Enter "UMLinux".
#
wait_asc	Please enter the same root password		1min
type		"UMLinux\0d"
#
# Wait for "Password setup" ("It's a bad idea to use the root account...").
# Use "<No>".
#
wait_asc	It's a bad idea to use the root account		1min
type		"\1f"
type		"\0d"
#
# Wait for "It seems your system doesn't need PCMCIA.".
# Use preselected "<Yes>".
#
wait_asc	It seems your system doesn't need PCMCIA.	1min
type		"\0d"
#
# Wait for "If you have an account on an ISP, ...".
# Use preselected "<No>".
#
wait_asc	If you have an account on an ISP,		1min
type		"\0d"
#
# Wait for "Apt Configuration" ("Apt can access the Debian archive...").
# Insert CDROM.
# Use preselected "cdrom".
#
wait_asc	Apt can access the Debian archive		1min
cdrom_insert	Debian-3.0r0-CD-1
type		"\0d"
#
# Intermediate step.
#
wait_asc	Scanning CD, this will take a minute		1min
#
# Wait for "Apt Configuration" ("If you have another Debian CD...").
# Use preselected "<No>".
#
wait_asc	If you have another Debian CD			1min
type		"\0d"
#
# Wait for "Apt Configuration" ("Apt is now configured, and...").
# Use preselected "<No>".
#
wait_asc	Apt is now configured, and			1min
type		"\0d"
#
# Wait for "Apt Configuration" ("Debian provides timely security...").
# Use "<No>".
#
wait_asc	Debian provides timely security			1min
type		"\09"
type		"\0d"
#
# Wait for "Debian System Configuration" ("At this point, your Debian...").
# Use preselected "<Yes>".
#
wait_asc	At this point, your Debian system		1min
type		"\0d"
#
# Wait for "Select tasks to install"
# Use "<Finish>".
#
wait_asc	Select tasks to install				1min
type		"\09"
type		"\0d"
#
# Wait for "Debian System Configuration" ("'dselect' is used to select...").
# Use preselected "<No>".
#
wait_asc	'dselect' is used to select			1min
type		"\0d"
#
# Wait for "The following NEW packages will be installed:"
# Use "y".
#
wait_asc	The following NEW packages will be installed	1min
type		"y\0d"
#
# Wait for "Media Change: Please insert the disc".
# Use <enter>.
#
wait_asc	Media Change: Please insert the disc		1min
type		"\0d"
#
# Wait for "Configuring Binutils".
# Use only "<Ok>".
#
wait_asc	Configuring Binutils				1min
type		"\0d"
#
# Wait for "Configuring Less".
# Use preselected "<No>".
#
wait_asc	Configuring Less				1min
type		"\0d"
#
# Wait for "Configuring Locales".
# Use "<Ok>".
#
wait_asc	Configuring Locales				1min
type		"\09"
type		"\0d"
#
# Wait for "Configuring Locales" ("Many packages in Debian use locales...").
# Use preselected "<Leave alone>".
#
wait_asc	Many packages in Debian use locales		1min
type		"\09"
type		"\0d"
#
# Wait for "Configuring Nfs-common".
# Use only "<Ok>".
#
wait_asc	Configuring Nfs-common				1min
type		"\0d"
#
# Wait for "Configuring Ssh".
# Use preselected "<Yes>".
#
wait_asc	Configuring Ssh					1min
type		"\0d"
#
# Wait for "Configuring Ssh" ("Privilege separation").
# Use only "<Ok>".
#
wait_asc	Privilege separation				1min
type		"\0d"
#
# Wait for "Configuring Ssh" ("You have the option of installing the...").
# Use preselected "<Yes>".
#
wait_asc	You have the option of installing the		1min
type		"\0d"
#
# Wait for "Configuring Ssh" ("This package contains both the ssh client,...").
# Use preselected "<Yes>".
#
wait_asc	This package contains both the ssh client,	1min
type		"\0d"
#
# Wait for "Setting up ibritish" ("Select the number of the default...").
# Use preselected "[1] american".
#
wait_asc	Select the number of the default dictionary	30min
type		"\0d"
#
# Wait for "Do you want to erase any previously downloaded .deb files?".
# Use "y".
#
wait_asc	Do you want to erase any previously		10min
type		"y\0d"
#
# Wait for "Press enter to continue.".
# Type <enter>.
#
wait_asc	Press enter to continue.			1min
type		"\0d"
#
# Wait for "I can do some automatic configuration of your mail system, ...".
# Type <enter>.
#
wait_asc	I can do some automatic configuration		1min
type		"\0d"
#
# Wait for "4) Local delivery only: ...".
# Use "4) Local delivery only".
#
wait_asc	Local delivery only				1min
type		"4\0d"
#
# Wait for "Which user account(s) should system ...".
# Use "none".
#
wait_asc	Which user account(s) should system		1min
type		"none\0d"
#
# Wait for "Is this OK ?".
# Use "Y".
#
wait_asc	Is this OK ?					1min
type		"y\0d"
#
# Wait for "Debian System Configuration" ("Have fun!").
# Use only "<Ok>".
#
wait_asc	Have fun!					1min
type		"\0d"
#
# Wait for "debian30 login: ".
# Type "root".
# Wait for "Password: ".
# Type "UMLinux".
#
wait_asc	debian30 login:					1min
type		"root\0d"
wait_asc	Password:					1min
type		"UMLinux\0d"
#
# Wait for "debian30:~#"
# Type "halt".
#
wait_asc	debian30:~#					1min
type		"halt\0d"
#
# Power-off
#
power_switch_off
