Client Operating System - Thin

echo "Built: $OUTPUT" Save as kernel.config and use with make menuconfig to strip down kernel.

grub-mkrescue -o $OUTPUT iso/

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

EOF

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 echo "Built: $OUTPUT" Save as kernel

if == " main ": main() 2.4 build.sh – Full OS image builder #!/bin/bash set -e OUTPUT="thinclient.iso" OVERLAY="overlay" KERNEL_VERSION="5.15.0" # match your kernel build 1. Build kernel (skip here – assume you have bzImage in /boot) cp /boot/vmlinuz-$KERNEL_VERSION kernel 2. Create initramfs (CPIO + gzip) cd $OVERLAY find . -print0 | cpio --null -o --format=newc | gzip -9 > ../initramfs.cpio.gz cd .. 3. Create ISO using GRUB mkdir -p iso/boot/grub cp kernel iso/boot/ cp initramfs.cpio.gz iso/boot/ Reconnecting in 5 seconds

Anuncios