Generate customized Debian ISO images for automatic deployments.
Run build.sh
to generate a hands-free iso image.
./build.sh [-u username] [-p password] [-n hostname] [-d domain] [-a package] [-i iso_url] [-s sign_key] [-o path] [-v] [-h]
The following command installs all requirements on a Debian based system:
sudo apt update
sudo apt install curl git gnupg pwgen whois xorriso
git clone https://github.com/nothub/debian-autoinstall.git
cd debian-autoinstall
# customize authorized ssh keys
curl -sSLo configs/authorized_keys https://github.com/nothub.keys
# set hostname and domain
./build.sh -n 'calculon' -d 'home.arpa'
# include additional apt packages
./build.sh -a 'strace' -a 'unattended-upgrades'
-u <username> Admin username
-p <password> Admin password
-n <hostname> Machine hostname
-d <domain> Machine domain
-a <package> Additional apt package
-i <iso_url> ISO download URL
-s <sign_key> ISO pgp sign key
-o <out_file> ISO output file
-v Enable verbose mode
-h Display this help message
If the -p
flag is not set, a random admin password will be generated.
While running the installer, press ctrl
+alt
+f4
to show the installers log output.
To switch back to the installers graphical interface, press ctrl
+alt
+f1
.
Switch to any other TTY for an interactive shell.