#
# Copyright (C) 2017 FAUmachine Team <info@faumachine.org>.
# This program is free software. You can redistribute it and/or modify it
# under the terms of the GNU General Public License, either version 2 of
# the License, or (at your option) any later version. See COPYING.
#

#
# Enter Debian-3.0r0-CD-1.
#
cdrom_insert	Debian-3.0r0-CD-1
#
# Power-on node.
#
power_on
#
# Wait for boot prompt.
#
wait_text	boot:						1min
type		"\0d"
#
# Wait for "Choose The Language".
# Use "Choose this and press Enter to proceed in English".
#
wait_text	Choose The Language				3min
type		"\1f"
type		"\1f"
type		"\1f"
type		"\1f"
type		"\1f"
type		"\1f"
type		"\0d"
#
# Wait for "Choose Language Variant".
# Use "English (United States)".
#
wait_text	Choose Language Variant				1min
type		"\0d"
#
# Wait for "Release Notes".
# Use only "<Continue>".
#
wait_text	Release Notes					1min
type		"\0d"
#
# Wait for "Debian GNU/Linux Installation Main Menu"
#	("Next      : Configure the Keyboard").
# Use preselected "Configure the Keyboard".
#
wait_text	Debian GNU/Linux Installation Main Menu		1min
wait_text	Configure the Keyboard				1min
type		"\0d"
#
# Wait for "Select a keyboard".
# Use preselected "qwerty/us...".
#
wait_text	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_text	Debian GNU/Linux Installation Main Menu		1min
wait_text	Partition a Hard Disk				1min
type		"\0d"
#
# Wait for "Select Disk Drive".
# Use only "/dev/hda".
#
wait_text	Select Disk Drive				1min
type		"\0d"
#
# Wait for "LILO Limitations".
# Use only "<Continue>".
#
wait_text	LILO Limitations				1min
wait_text	<Continue>					1min
type		"\0d"
#
# Wait for "No partition table or unknown signature on...".
# Use "y".
#
wait_text	No partition table or unknown			1min
type		"y"
#
# Wait for "cfdisk".
# Use "New" "Primary" "900" "Beginning" "Bootable"
#
wait_text	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_text	Debian GNU/Linux Installation Main Menu		1min
wait_text	Initialize and Activate a			1min
type		"\0d"
#
# Wait for "Scan for Bad Blocks?".
# Use preselected "<No>".
#
wait_text	Scan for Bad Blocks?				1min
type		"\0d"
#
# Wait for "Are You Sure?".
# Use preselected "<Yes>".
#
wait_text	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_text	Debian GNU/Linux Installation Main Menu		1min
wait_text	Initialize a Linux Partition			1min
type		"\0d"
#
# Wait for "Scan for Bad Blocks?".
# Use preselected "<No>".
#
wait_text	Scan for Bad Blocks?				1min
type		"\0d"
#
# Wait for "Are You Sure?".
# Use preselected "<Yes>".
#
wait_text	Are You Sure?					1min
type		"\0d"
#
# Wait for "Mount as the Root Filesystem?".
# Use preselected "<Yes>".
#
wait_text	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_text	Debian GNU/Linux Installation Main Menu		1min
wait_text	Install Kernel and Driver Modules		1min
type		"\0d"
#
# Wait for "Found a Debian CD-ROM".
# Use preselected "<Yes>".
#
wait_text	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_text	Debian GNU/Linux Installation Main Menu		1min
wait_text	Device Driver Modules				1min
type		"\0d"
#
# Wait for "Note about loaded drivers".
# Use only "<Continue>".
#
wait_text	Note about loaded drivers			1min
type		"\0d"
#
# Wait for "Select Category".
# Use preselected "Exit   Finished. Return to previous menu.".
#
wait_text	Select Category					1min
type		"\0d"
#
# Wait for "Debian GNU/Linux Installation Main Menu"
#	("Next      : Configure the hostname").
# Use preselected "Configure the hostname".
#
wait_text	Debian GNU/Linux Installation Main Menu		1min
wait_text	Configure the hostname				1min
type		"\0d"
#
# Wait for "Choose the Hostname"
# Delete preselected "debian".
# Enter "debian30".
#
wait_text	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_text	Debian GNU/Linux Installation Main Menu		1min
wait_text	Install the Base System				1min
type		"\0d"
#
# Wait for "Select Installation Medium".
# Use preselected "cdrom   : CD-ROM drive".
#
wait_text	Select Installation Medium			1min
type		"\0d"
#
# Wait for "Please insert the CD-ROM".
# Use only "<Continue>".
#
wait_text	Please insert the CD-ROM			1min
type		"\0d"
#
# Intermediate step.
#
wait_text	Please Wait					1min
#
# Wait for "Select Archive path".
# Use only "/instmnt".
#
wait_text	Select Archive path				1min
type		"\0d"
#
# Intermediate step.
#
wait_text	Installing Base System, please wait		1min
#
# Wait for "Debian GNU/Linux Installation Main Menu"
#	("Next      : Make System Bootable").
# Use preselected "Make System Bootable".
#
wait_text	Debian GNU/Linux Installation Main Menu		12min
wait_text	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_text	Where should the LILO boot loader be installed?	1min
type		"\0d"
#
# Wait for "Securing LILO".
# Use only "<Continue>".
#
wait_text	Securing LILO					1min
type		"\0d"
#
# Wait for "Debian GNU/Linux Installation Main Menu"
#	("Alternate: Reboot the System").
# Use "Reboot the System".
#
wait_text	Debian GNU/Linux Installation Main Menu		1min
wait_text	Alternate: Reboot the 				1min
type		"\1f"
type		"\0d"
#
# Wait for "Reboot the system?".
# Remove CDROM.
# Use preselected "<Yes>".
#
wait_text	Reboot the system				1min
cdrom_remove
type		"\0d"
#
# Intermediate step.
#
#wait_text	Configuring the base system...			3min
#
# Wait for "Debian System Configuration".
# Use only "<Ok>".
#
wait_text	Debian System Configuration			3min
type		"\0d"
#
# Wait for "Time Zone Configuration".
# Use preselected "<Yes>".
#
wait_text	Time Zone Configuration				1min
type		"\0d"
#
# Wait for "Time Zone Configuration" ("Pick the geographic area in which...").
# Use "Europe".
#
wait_text	Pick the geographic area in which		1min
type		"e"
type		"\0d"
#
# Wait for "Time Zone Configuration" ("Cities represent the time zone...").
# Use "Europe".
#
wait_text	Cities represent the time zone in which		1min
type		"b"
type		"\1f"
type		"\1f"
type		"\0d"
#
# Wait for "Password setup".
# Use preselected "<No>".
#
wait_text	Password setup					1min
type		"\0d"
#
# Wait for "Password setup" ("Shadow passwords make your system...").
# Use preselected "<Yes>".
#
wait_text	Shadow passwords make your system		1min
type		"\0d"
#
# Wait for "Password setup" ("Before proceeding, you need to set...").
# Enter "WeV0te4u!".
#
wait_text	you need to set a password			1min
type		"WeV0te4u!\0d"
#
# Wait for "Password setup" ("Please enter the same root password...").
# Enter "WeV0te4u!".
#
wait_text	Please enter the same root password		1min
type		"WeV0te4u!\0d"
#
# Wait for "Password setup" ("It's a bad idea to use the root account...").
# Use "<No>".
#
wait_text	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_text	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_text	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_text	Apt can access the Debian archive		1min
cdrom_insert	Debian-3.0r0-CD-1
type		"\0d"
#
# Intermediate step.
#
wait_text	Scanning CD					1min
#
# Wait for "Apt Configuration" ("If you have another Debian CD...").
# Use preselected "<No>".
#
wait_text	If you have another Debian CD			1min
type		"\0d"
#
# Wait for "Apt Configuration" ("Apt is now configured, and...").
# Use preselected "<No>".
#
wait_text	Apt is now configured				1min
type		"\0d"
#
# Wait for "Apt Configuration" ("Debian provides timely security...").
# Use "<No>".
#
wait_text	Debian provides timely security			1min
type		"\09"
type		"\0d"
#
# Wait for "Debian System Configuration" ("At this point, your Debian...").
# Use preselected "<Yes>".
#
wait_text	At this point					1min
wait_text	Run tasksel					1min
type		"\0d"
#
# Wait for "Select tasks to install"
# Use "<Finish>".
#
wait_text	Select tasks to install				1min
type		"\09"
type		"\0d"
#
# Wait for "Debian System Configuration" ("'dselect' is used to select...").
# Use preselected "<No>".
#
wait_text	'dselect' is used to select			1min
type		"\0d"
#
# Wait for "The following NEW packages will be installed:"
# Use "y".
#
wait_text	The following NEW packages will be installed	1min
type		"y\0d"
#
# Wait for "Media Change: Please insert the disc".
# Use <enter>.
#
wait_text	Media Change: Please insert the disc		1min
type		"\0d"
#
# Wait for "Configuring Binutils".
# Use only "<Ok>".
#

#-------------------

wait_text	Configuring Binutils				1min
type		"\0d"
#
# Wait for "Configuring Less".
# Use preselected "<No>".
#
wait_text	Configuring Less				1min
type		"\0d"
#
# Wait for "Configuring Locales".
# Use "<Ok>".
#
wait_text	Configuring Locales				1min
type		"\09"
type		"\0d"
#
# Wait for "Configuring Locales" ("Many packages in Debian use locales...").
# Use preselected "<Leave alone>".
#
wait_text	Many packages in Debian use locales		1min
type		"\09"
type		"\0d"
#
# Wait for "Configuring Nfs-common".
# Use only "<Ok>".
#
wait_text	Configuring Nfs-common				1min
type		"\0d"
#
# Wait for "Configuring Ssh".
# Use preselected "<Yes>".
#
wait_text	Configuring Ssh					1min
type		"\0d"
#
# Wait for "Configuring Ssh" ("Privilege separation").
# Use only "<Ok>".
#
wait_text	Privilege separation				1min
type		"\0d"
#
# Wait for "Configuring Ssh" ("You have the option of installing the...").
# Use preselected "<Yes>".
#
wait_text	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_text	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_text	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_text	Do you want to erase any previously		10min
type		"y\0d"
#
# Wait for "Press enter to continue.".
# Type <enter>.
#
wait_text	Press enter to continue.			1min
type		"\0d"
#
# Wait for "I can do some automatic configuration of your mail system, ...".
# Type <enter>.
#
wait_text	I can do some automatic configuration		1min
type		"\0d"
#
# Wait for "4) Local delivery only: ...".
# Use "4) Local delivery only".
#
wait_text	Local delivery only				1min
type		"4\0d"
#
# Wait for "Which user account(s) should system ...".
# Use "none".
#
wait_text	Which user account(s) should system		1min
type		"none\0d"
#
# Wait for "Is this OK ?".
# Use "Y".
#
wait_text	Is this OK ?					1min
type		"y\0d"
#
# Wait for "Debian System Configuration" ("Have fun!").
# Use only "<Ok>".
#
wait_text	Have fun!					1min
type		"\0d"
#
# Wait for "debian30 login: ".
# Type "root".
# Wait for "Password: ".
# Type "WeV0te4u!".
#
wait_text	debian30 login:					1min
type		"root\0d"
wait_text	Password:					1min
type		"WeV0te4u!\0d"
#
# Wait for "debian30:~#"
# Type "halt".
#
wait_text	debian30:~#					1min
type		"halt\0d"
#
# Wait for "Power down."
#
wait_text	Power down.					1min
power_off
delay								1sec
