A workbench template for creating Debian Preseeds.
-
Open any file manager of your choice.
-
Navigate to the home directory of your current user.
-
Right-click in the directory area and select "Run terminal here" (or similar).
-
Update the system with the following commands:
apt -y update apt -y upgrade
-
Download the Git repository with the following commands:
apt -y install git git clone https://github.com/michel-abele/debian-preseed-workbench.git ~/preseed
You may need root privileges to execute the commands, use the commands
su
orsudo
. -
If you need files to be copied into the ISO file, copy them into the directory:
~/preseed/files
. All files in this folder will automatically be copied to the ISO file and will be located under :/cdrom/files
, available during installation. -
Download the latest ISO file from the Debian website and save it as
debian.iso
, in the directory~/preseed
.-
Complete ISO file:
apt -y install wget wget -O ./debian.iso https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/debian-12.5.0-amd64-DVD-1.iso
You may need root privileges to execute the commands, use the commands
su
orsudo
.or
-
minimal ISO file (Net-install):
apt -y install wget wget -O ./debian.iso https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.5.0-amd64-netinst.iso
You may need root privileges to execute the commands, use the commands
su
orsudo
.
-
-
Now you can customize the file
preseed.cfg
according to your needs. -
If you have completed all the previous steps, you can now make the file
preseed.sh
executable and run it.chmod +x ./preseed.sh ./preseed.sh
You may need root privileges to execute the commands, use the commands
su
orsudo
. -
If you do not need the ISO file for a VM, you still need to create a bootable installation medium.
dd if=./preseed-debian.iso of=/dev/sdX bs=4M status=progress && sync
You must replace the drive directory
sdX
with the corresponding device directory. You may need root privileges to execute the commands, use the commandssu
orsudo
.