Skip to content

Instantly share code, notes, and snippets.

@espinz
espinz / README.md
Last active June 8, 2025 03:59
Debian Headless install - simple-cdd

Description

The following will create an automated custom debian iso image using simple-cdd.
Copy the iso to the USB. Plug in the USB and press power; it will automatically restart with a fresh debian install. No prompts, or typing required. Barebone and vm tested.

Jump to Code
Anchor links do not work on github gists. please scroll down.

Install the required package

#include <Windows.h>
#include <time.h>
#include <iostream>
// defines whether the window is visible or not
// should be solved with makefile, not in this file
#define visible // (visible / invisible)
// variable to store the HANDLE to the hook. Don't declare it anywhere else then globally
// or you will get problems since every function uses this variable.