EOF
def main(): print("Thin Client OS started. Connecting to remote desktop...") while True: ret = launch_rdp() print(f"RDP exited with code ret. Reconnecting in 5 seconds...") time.sleep(5) thin client operating system
cat > iso/boot/grub/grub.cfg <<EOF set timeout=0 set default=0 menuentry "Thin Client OS" linux /boot/kernel quiet console=tty0 console=ttyS0,115200 initrd /boot/initramfs.cpio.gz EOF def main(): print("Thin Client OS started
grub-mkrescue -o $OUTPUT iso/
echo "Built: $OUTPUT" Save as kernel.config and use with make menuconfig to strip down kernel. thin client operating system