#
# 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.1r0a-CD-1.
#
cdrom_insert	Debian-3.1r0a-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 "Detecting network hardware" ("No Ethernet card was detected.")
# Use preselected "no ethernet card".
#
# wait_asc	Detecting network hardware			6min
wait_asc	No Ethernet card was detected.			6min
type		"\0d"
#
# Wait for "Configure the network".
# Use "Continue".
#
wait_asc	Configure the network				1min
type		"\0d"
#
# 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"
#
# Some intermediate steps.
#
wait_asc	Detecting disks and all other hardware		2min
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			5min
wait_asc	Installation complete				5min
cdrom_remove
type		"\0d"
#
# Some intermediate steps.
#
wait_asc	Configuring the base system			10min
#
# Wait for "Debian base system configuration".
# Use preselected "Ok"
#
wait_asc	Debian base system configuration		6min
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				3min
type		"WeV0te4u!\0d"
#
# Wait for "Configuring passwd" ("Please enter the same root password...").
# Type "WeV0te4u!".
#
wait_asc	Please enter the same root password		3min
type		"WeV0te4u!\0d"
#
# Wait for "Configuring passwd" ("A user account will be created...").
# Type "demo".
#
wait_asc	A user account will be created			3min
type		"demo\0d"
#
# Wait for "Configuring passwd" ("Select a username for the new...").
# Use preselected "demo".
#
wait_asc	Select a username for the new			3min
type		"\0d"
#
# Wait for "Configuring passwd" ("A good password will contain...").
# Type "WeV0te4u!".
#
wait_asc	A good password will contain			3min
type		"WeV0te4u!\0d"
#
# Wait for "Configuring passwd" ("Please enter the same user...").
# Type "WeV0te4u!".
#
wait_asc	Please enter the same user			3min
type		"WeV0te4u!\0d"
#
# Wait for "Debian base system configuration".
# Use preselected "No".
#
wait_asc	Debian base system configuration		5min
type		"\0d"
#
# Wait for "Apt configuration".
# Insert CDROM.
# Use preselected "cdrom".
#
wait_asc	Apt configuration				3min
cdrom_insert	Debian-3.1r0a-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			3min
cdrom_remove
cdrom_insert	Debian-3.1r0a-CD-2
type		"\09"
type		"\0d"
wait_asc	Scanning CD					3min
wait_asc	If you have another Debian CD			3min
cdrom_remove
cdrom_insert	Debian-3.1r0a-CD-3
type		"\09"
type		"\0d"
wait_asc	Scanning CD					3min
wait_asc	If you have another Debian CD			3min
cdrom_remove
cdrom_insert	Debian-3.1r0a-CD-4
type		"\09"
type		"\0d"
wait_asc	Scanning CD					3min
wait_asc	If you have another Debian CD			3min
cdrom_remove
cdrom_insert	Debian-3.1r0a-CD-5
type		"\09"
type		"\0d"
wait_asc	Scanning CD					3min
wait_asc	If you have another Debian CD			3min
cdrom_remove
cdrom_insert	Debian-3.1r0a-CD-6
type		"\09"
type		"\0d"
wait_asc	Scanning CD					3min
wait_asc	If you have another Debian CD			3min
cdrom_remove
cdrom_insert	Debian-3.1r0a-CD-7
type		"\09"
type		"\0d"
wait_asc	Scanning CD					3min
wait_asc	If you have another Debian CD			3min
cdrom_remove
cdrom_insert	Debian-3.1r0a-CD-8
type		"\09"
type		"\0d"
wait_asc	If you have another Debian CD			3min
delay								30sec
cdrom_remove
type		"\0d"
#
# Wait for "Apt configuration" ("Cannot access security updates...").
# Use preselected "Ok".
#
wait_asc	Cannot access security updates			3min
type		"\0d"
#
# Wait for "The following NEW packages will be installed:".
# Insert CD.
# Type <return>.
#
wait_asc	The following NEW packages will be installed:	10min
cdrom_insert	Debian-3.1r0a-CD-1
type		"\0d"
#
# Wait for "Debian software selection".
# Use preselected list and use "Ok".
#
wait_asc	Debian software selection			10min
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 					3min
type		"\0d"
#
# Wait for "Debian base system configuration" ("Thank you for choosing...").
# Use preselected "Ok".
#
wait_asc	Thank you for choosing				10min
type		"\0d"
#
# Wait for "debian31 login:"
# Enter "root".
#
wait_asc	debian31 login:					5min
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					5min
power_off
delay								1sec
