AeroOS: Modern 64-bit Desktop Operating System in Rust
AeroOS is a modern, lightweight, bootable desktop operating system engineered from scratch in 100% Rust (no_std). It blends the visual elegance and usability of Windows 11 (acrylic/mica materials, centered Start Menu, Task Manager) and macOS (frosted glass top menu bar, floating pill dock, traffic light window controls) into an independent, bare-metal desktop experience.
πΎ Download Bootable ISO
- Direct ISO Download: aero-os.iso (9.5 MB)
Zero Browser / Electron Dependencies: AeroOS renders its entire graphical user interface directly to a UEFI GOP linear framebuffer through a custom 32-bit software rasterizer and compositor. It includes a real TCP/IP network stack (
smoltcp) communicating over a virtualvirtio-netPCI adapter.
π System Architecture
+-----------------------------------------------------------------------+
| AeroAqua Desktop Compositor & Shell |
| (macOS Topbar, Win 11 Dock, Start Menu, Wallpapers, Mouse Cursor) |
+-----------------------------------------------------------------------+
| Native Applications Layer |
| [AeroShell] [Network Manager] [Task Manager] [Files] [Calc] |
+-----------------------------------------------------------------------+
| Window Manager & 2D Rasterizer |
| - Z-Order Stack, Window Dragging, Traffic Lights (Close/Min/Max) |
| - Alpha Blending, Rounded Rectangles, Drop Shadows, 8x16 Bitmap Font |
+-----------------------------------------------------------------------+
| Real TCP/IP Networking Stack |
| smoltcp 0.14: Ethernet II | ARP Cache | IPv4 (10.0.2.15) | ICMP Ping|
+-----------------------------------------------------------------------+
| Virtual File System (VFS / RamDisk) |
| Hierarchical paths: /system, /user, /docs (read/write/browse) |
+-----------------------------------------------------------------------+
| Hardware Abstraction Layer (HAL) |
| GDT & TSS IST | IDT & IRQs | 4-Level Paging | PIC 8259 Remap |
| PS/2 Mouse | PS/2 Keys | VirtIO-Net PCI | UEFI GOP Framebuf|
+-----------------------------------------------------------------------+
| Bootloader: bootloader_api v0.11 |
| Dual-Mode: UEFI GPT Disk Image & BIOS MBR Disk Image |
+-----------------------------------------------------------------------+
β¨ Features Breakdown
1. Visual Design (Windows 11 + macOS Hybrid)
- Top Menu Bar (macOS): 28px translucent frosted acrylic bar with system logo, active window title, dropdown menus, Wi-Fi status indicator, volume control, battery gauge, and real-time digital clock.
- Floating Dock (Windows 11 / macOS): Frosted pill dock centered at the bottom of the screen with drop shadows, icons, and active running indicator dots.
- Start Menu (Windows 11): Centered acrylic launcher with search bar, pinned application grid, user profile badge, and reboot/shutdown controls.
- Modern Wallpaper: Atmospheric deep-space gradient with royal blue and violet ambient glow bloom.
- Window Management: Smooth window title dragging, z-order focus switching, macOS traffic light buttons (Red: Close, Yellow: Minimize, Green: Maximize), and soft drop shadows.
2. Networking Capabilities (virtio-net + smoltcp)
- Real Ethernet packet transmission and reception via
virtio-net-pci. - Standard QEMU user-mode network integration:
- IPv4 Address:
10.0.2.15 / 24 - Gateway:
10.0.2.2 - DNS:
10.0.2.3
- IPv4 Address:
- Full ARP protocol handling and ICMP Echo Reply synthesis.
- Built-in Network Center desktop application with live packet counters and an interactive gateway ping tool.
- Interactive
pingandifconfigcommands in the terminal shell.
3. Native Desktop Applications
- AeroShell (Terminal): Command prompt with interactive keyboard input, command history, and utilities (
ping,ifconfig,ls,cat,neofetch,clear,reboot). - Network Center: Diagnostic dashboard showing adapter link status, IP/Gateway configuration, live packet throughput, and a one-click Ping test.
- Task Manager & SysInfo: Real-time CPU sparkline activity graph, memory usage bar (16 MiB heap), and kernel details.
- File Explorer: Dual-pane directory navigator with sidebar favorites (
/user,/system,/docs) and instant text preview. - Calculator: Interactive acrylic calculator with numeric keypad and math operators.
- Text Editor: Notepad for viewing and modifying text documents.
- System Settings: Theme status, display resolution (GOP), and hardware details.
π Repository Structure
rust-desktop-os/
βββ Cargo.toml # Cargo workspace definition
βββ Makefile # One-click make build and run targets
βββ README.md # System documentation
βββ scripts/
β βββ run_qemu.sh # UEFI / BIOS QEMU launch script with virtio-net
βββ runner/ # Host builder: generates bootable UEFI & BIOS disk images
β βββ Cargo.toml
β βββ src/main.rs
βββ kernel/ # Bare-metal x86_64 Rust Kernel (no_std)
βββ Cargo.toml
βββ .cargo/config.toml # x86_64-unknown-none target configuration
βββ src/
βββ main.rs # Kernel entry point & main compositor loop
βββ arch/ # GDT, TSS, IDT, PIC 8259, CPU interrupts
βββ memory/ # 4-level paging & 16 MiB LinkedListHeap allocator
βββ drivers/ # Serial COM1, Framebuffer, PS/2 Mouse, PS/2 Keyboard, VirtIO-Net
βββ graphics/ # Color blending, 2D rasterizer, 8x16 font, icons, wallpaper
βββ fs/ # Virtual File System (RamDisk VFS)
βββ net/ # smoltcp stack & virtio-net device adapter
βββ window_manager/ # Window abstractions, z-order compositor, mouse dragging
βββ desktop/ # Topbar, dock, start menu, desktop shortcuts
βββ apps/ # Terminal, Network Manager, Task Manager, File Explorer, Calc, Editor
π Building and Running
Prerequisites
- Rust Nightly Toolchain with
x86_64-unknown-nonetarget:rustup target add x86_64-unknown-none - QEMU x86_64 emulator (for running the virtual machine):
- macOS:
brew install qemu - Linux:
sudo apt install qemu-system-x86
- macOS:
1. Build the Kernel & Disk Images
make build
This automatically compiles the bare-metal kernel and generates:
- UEFI GPT Disk Image:
target/x86_64-unknown-none/debug/aero-kernel.uefi.img - BIOS MBR Disk Image:
target/x86_64-unknown-none/debug/aero-kernel.bios.img
2. Boot in QEMU
make run
Or run QEMU directly:
qemu-system-x86_64 \
-drive format=raw,file=target/x86_64-unknown-none/debug/aero-kernel.bios.img \
-serial stdio \
-m 512M \
-vga std \
-device usb-mouse \
-netdev user,id=net0,hostfwd=tcp::8080-:80 \
-device virtio-net-pci,netdev=net0