situation: I have a PC that I cannot connect a screen to. I know that the PC automatically boots any bootable media that is connected to a certain USB port. The PC has only this one USB port.
requirement: I'd like to have a running debian installation on the PC that I can connect to using SSH.
theory: My idea is that I could create a bootable USB stick that contains a small intermediate OS and the debian installer which are both copied into memory automatically upon boot. The intermediate OS should automatically configure the network with DHCP and start SSH so that I am able to connect to the machine and run the debian installer which I then use to install debian to the USB stick itself (the stick has SLC memory so installing an OS on it shouldn't be an issue).
So much for the theory... Unfortunately I am not sure where to start to get this process going. Did anyone do something similar before or could provide me with some hints how to get started?