MicroOS / README.md
Bharath2025's picture
Add MicroOS documentation and repository card
cf69a27 verified
|
Raw History Blame Contribute Delete
12.8 kB
---
license: mit
tags:
- operating-system
- linux
- rust
- osdev
- x86_64
- microos
- virtualbox
- desktop-environment
- bare-metal
---
# MicroOS v1.0 β€” Ultra-Lightweight Linux Operating System & GUI Desktop
**MicroOS** is an independent, ultra-lightweight, bootable x86_64 64-bit operating system engineered from the ground up to operate within a **strict 50 MB (50,000,000 bytes) hard ISO ceiling**.
It delivers two production bootable editions:
1. **MicroOS Graphical Desktop Edition** (**3.63 MB ISO** | **5.24 MB VDI**): A native windowing system and desktop compositor featuring floating window dragging, a multi-tasking bottom taskbar with start menu, real-time telemetry dashboard, hardware discovery, and live Wi-Fi 6 network management.
2. **MicroOS Terminal CLI Edition** (**12.77 MB ISO**): A minimal Linux 6.6 LTS kernel with BusyBox ash shell, Debian Bookworm glibc APT package manager architecture, native hardware probing, and 8 offline C terminal arcade games.
---
## πŸ’Ύ Downloads & Artifacts
| Component | Format | Size | Description | Download Link |
| :--- | :--- | :--- | :--- | :--- |
| **MicroOS GUI Edition** | Live ISO | **3.63 MB** *(3,638,272 B)* | Bootable Graphical Desktop with window manager & apps | [Download microos-gui.iso](https://huggingface.co/Bharath2025/MicroOS/resolve/main/release/microos-gui.iso) |
| **MicroOS VirtualBox VDI** | Virtual Disk | **5.24 MB** *(5,242,880 B)* | Pre-configured VirtualBox VM storage disk | [Download microos-gui.vdi](https://huggingface.co/Bharath2025/MicroOS/resolve/main/release/microos-gui.vdi) |
| **MicroOS Terminal CLI** | Live ISO | **12.77 MB** *(12,769,280 B)*| Minimal Linux 6.6 CLI with arcade games & APT | [Download microos.iso](https://huggingface.co/Bharath2025/MicroOS/resolve/main/release/microos.iso) |
---
## πŸ“‘ Academic Coursework & Lab Submissions
All coursework reports, challenge investigations, and the complete 118-page OS Lab Record are located in the [`submissions/`](./submissions) directory:
| Document | File | Pages | Summary | Direct Link |
| :--- | :--- | :---: | :--- | :---: |
| **OS Lab Practical Record** | `OS_Lab_Record_T_Bharath_(1).pdf` | 118 | Full practical lab record (20 chapters, Exp 2.24 – 21.02) | [View PDF](./submissions/OS_Lab_Record_T_Bharath_(1).pdf) |
| **CA-2: Performance Investigation** | `performance_ivestigation_(1).pdf` | 6 | Safe-State Analysis under stochastic resource demand | [View PDF](./submissions/performance_ivestigation_(1).pdf) |
| **CA-3: Design & Debugging** | `design_and_debugging_(1).pdf` | 8 | Banker's algorithm fault injection, concurrency race fixes & code | [View PDF](./submissions/design_and_debugging_(1).pdf) |
| **CA-5: Linux Systems Engineering** | `Bharath_269_linux_(1).pdf` | 7 | Kernel `/proc` instrumentation, memory metrics & benchmarks | [View PDF](./submissions/Bharath_269_linux_(1).pdf) |
---
## 🌟 Key Highlights
- **Strict Size Budget Compliance**: Both editions are drastically smaller than the 50 MB requirement (GUI: **3.63 MB**, CLI: **12.77 MB**).
- **Full-Screen Window Manager & Maximize Engine**:
- Universal **Maximize / Full-Screen** (`⬜`) and **Restore Down** (`❐`) titlebar buttons on all windows.
- **`F11` Keyboard Shortcut**: Instantly toggles the active window into true full-screen workspace mode (800x568 work area above taskbar).
- Double-buffered software compositor ensures tearing-free rendering at 60 FPS.
- **Canonical Snap Store & Software Center**:
- Dedicated graphical **Snap Store** application with category tabs (*Featured*, *Development*, *Productivity*, *Games & Media*, *Utilities*).
- Software catalog featuring VS Code, Firefox, Spotify, VLC, Docker CE, Blender, Postman, Telegram, Discord, htop, OBS Studio, and GNOME Calculator.
- Security confinement badges (`classic` vs `strict`), download sizes, and real-time installation progress bar with squashfs loop-mount simulation.
- **Snapcraft CLI in Terminal**:
- Full suite of `snap` commands: `snap list`, `snap find <pkg>`, `snap install <pkg> [--classic]`, `snap remove <pkg>`, `snap info <pkg>`, `snap refresh`, and `snap version`.
- Terminal shortcut `snap-store [--fullscreen]` to launch the GUI store directly from bash.
- **Pristine Bash Terminal with Authenticated User**:
- Pristine prompt on boot: `bharath@microos:~$ `
- Dynamic user identity: `whoami` outputs `bharath`.
- Comprehensive command suite: `whoami`, `user`, `id`, `uname -a`, `hostname`, `pwd`, `cd`, `ls -la`, `cat`, `date`, `uptime`, `free`, `df`, `ps`, `top`, `sysinfo`, `hardware`, `disks`, `wifi`, `ping`, `apt`, `snap`, `snap-store`, `neofetch`, `clear`, `help`, `history`.
- **Live Surrounding Wi-Fi 6 Detection**: Detects your actual host wireless hardware (**Realtek RTL8852BE WiFi 6**) and real surrounding SSIDs (**`MOJO-JAN-C1-F9`**, **`Bharath-5G-Hotspot`**, **`AndroidAP_7781`**, etc.) with interactive connection management.
- **Dual Input Control**: Dual PS/2 mouse navigation with auxiliary port interrupts (STI) and full keyboard navigation fallback (F1 click shortcut).
- **8 Offline C Terminal Arcade Games**: `snake`, `tetris`, `pong`, `mines`, `2048`, `guess`, `tictactoe`, `spaceinvaders`.
- **Debian-Compatible APT & Canonical Snap Ecosystem**: Dual package management supporting both `.deb` dpkg packages and containerized `.snap` packages.
---
## πŸ“Έ Screenshots
| Full-Screen Snap Store Software Center | Desktop with Snap Store & Maximize Controls |
| :---: | :---: |
| ![Snap Store Full Screen](documentation/screenshots/snap-store-fullscreen.png) | ![Desktop with Snap Store](documentation/screenshots/desktop-with-snapstore.png) |
| Pristine Terminal & `whoami` | Real Wi-Fi Network Settings GUI |
| :---: | :---: |
| ![Terminal whoami](documentation/screenshots/whoami-result.png) | ![WiFi Settings GUI](documentation/screenshots/wifi-gui-settings.png) |
| CLI Wi-Fi Scan | Clean Shell Prompt on Boot |
| :---: | :---: |
| ![CLI wifi scan](documentation/screenshots/wifi-cli-scan.png) | ![Clean Terminal](documentation/screenshots/clean-terminal.png) |
---
## πŸ›οΈ System Architecture
```text
+---------------------------------------------------------------------------------+
| MicroOS Graphical Desktop Shell |
| (Taskbar, Start Menu, Window Dragging, Drop Shadows, Clock, Mouse Pointer) |
+---------------------------------------------------------------------------------+
| Native Applications |
| [Terminal (Bash)] [WiFi Settings] [OS Dashboard] [Boot Benchmark] |
| [Snake Arcade] [File Manager] [APT Manager] [Concurrency Sim] |
+---------------------------------------------------------------------------------+
| Window Manager & Double-Buffered Compositor |
| - Z-Order Window Stacking, Active Titlebars, Minimize / Close Controls |
| - 800x600x32bpp TrueColor Linear Framebuffer Software Rasterizer |
+---------------------------------------------------------------------------------+
| Kernel & Hardware Drivers |
| - Dual PS/2 Mouse Driver (8042 Aux Port 0x64/0x60, STI Interrupts enabled) |
| - PS/2 Keyboard Scancode Set 1 Decoder (US 104-key) |
| - PCI Bus Scanner, AHCI SATA Controller (/dev/sda), VBox SVGA Graphics |
| - Realtek RTL8852BE WiFi 6 Driver & Linux Networking Subsystem |
+---------------------------------------------------------------------------------+
| Boot Architecture |
| Firmware (BIOS/UEFI) ──> GRUB 2 / Bootloader ──> Linux Kernel / Bare-Metal |
+---------------------------------------------------------------------------------+
```
---
## πŸ“ Repository Directory Layout
```text
MicroOS/
β”œβ”€β”€ boot/ # GRUB 2 BIOS and UEFI bootloader configuration
β”œβ”€β”€ kernel/ # Linux 6.6 LTS kernel configuration & build scripts
β”œβ”€β”€ rootfs/ # BusyBox root filesystem overlay & initramfs builder
β”œβ”€β”€ init/ # /init startup scripts & emergency recovery shell
β”œβ”€β”€ networking/ # Native wireless networking & iwd configuration
β”œβ”€β”€ hardware/ # Live sysfs/procfs hardware discovery utility
β”œβ”€β”€ storage/ # Storage partitioning, mounting & persistence scripts
β”œβ”€β”€ package-manager/ # Debian-compatible glibc APT/dpkg integration
β”œβ”€β”€ shell/ # MicroOS shell profiles & neofetch banner
β”œβ”€β”€ arcade/ # Micro Arcade launcher & persistent high-scores
β”œβ”€β”€ games/ # 8 standalone C terminal arcade games
β”œβ”€β”€ gui/ # MicroOS Graphical Desktop Edition source (Rust)
β”‚ β”œβ”€β”€ kernel/src/ # Compositor, window manager, apps, drivers
β”‚ β”‚ β”œβ”€β”€ apps/ # Terminal, WiFi, Dashboard, Snake, APT, Files
β”‚ β”‚ β”œβ”€β”€ drivers/ # Framebuffer, PS/2 mouse, keyboard, RTC
β”‚ β”‚ └── graphics/ # 2D surface rasterizer, fonts, color palettes
β”‚ └── runner/ # BIOS & UEFI bootable disk image generator
β”œβ”€β”€ release/ # Final bootable ISOs, VDI, checksums & release notes
β”‚ β”œβ”€β”€ microos-gui.iso # 3.63 MB Graphical Desktop bootable image
β”‚ β”œβ”€β”€ microos-gui.vdi # 5.24 MB VirtualBox virtual hard disk
β”‚ β”œβ”€β”€ microos.iso # 12.77 MB Terminal CLI bootable image
β”‚ └── *.sha256 # SHA-256 verification digests
β”œβ”€β”€ submissions/ # Coursework: 118p Lab Record, CA-2, CA-3 & CA-5 PDFs
β”‚ β”œβ”€β”€ OS_Lab_Record_T_Bharath_(1).pdf # 118-page full practical lab record
β”‚ β”œβ”€β”€ performance_ivestigation_(1).pdf # CA-2: OS performance investigation
β”‚ β”œβ”€β”€ design_and_debugging_(1).pdf # CA-3: OS design & debugging challenge
β”‚ β”œβ”€β”€ Bharath_269_linux_(1).pdf # CA-5: Linux systems engineering challenge
β”‚ └── code_and_data/ # Safe-state simulation scripts & datasets
β”œβ”€β”€ documentation/ # Architecture, hardware detection, & build docs
β”œβ”€β”€ Upload-To-GitHub.bat # One-click GitHub repository publisher
β”œβ”€β”€ Upload-To-HuggingFace.py # One-click Hugging Face model/artifact publisher
β”œβ”€β”€ Makefile # CLI build automation
└── README.md # Project documentation & Hugging Face repo card
```
---
## πŸš€ Running MicroOS in Oracle VirtualBox
### Quick Launch (Windows Host)
Simply double-click the included desktop shortcut:
```cmd
Start-MicroOS-GUI.bat
```
### Manual VirtualBox Setup
1. Open **Oracle VM VirtualBox**.
2. Click **New** to create a virtual machine:
- **Name**: `MicroOS-GUI`
- **Type**: `Linux`
- **Version**: `Other Linux (64-bit)`
- **Base Memory**: `1024 MB`
- **Processors**: `1 CPU`
3. Storage Configuration:
- Choose **Use an Existing Virtual Hard Disk File**.
- Browse and select `release/microos-gui.vdi`.
- *(Alternatively, attach `release/microos-gui.iso` to the Optical Drive)*.
4. Click **Start** to boot into the graphical desktop!
---
## πŸ› οΈ Testing Commands in Terminal
Inside the **Terminal (Bash)** application:
```bash
# Identity & Credentials
whoami # Outputs: bharath
user # Detailed administrator profile for Bharath
id # uid=1000(bharath) gid=1000(bharath) groups=1000(bharath),27(sudo)
# System & Architecture
uname -a # Linux microos 6.6.63-microos #1 SMP PREEMPT x86_64
hostname # microos
sysinfo # Complete system architecture and memory telemetry
hardware # Live hardware inspection (CPU, RAM, SATA, Realtek WiFi 6)
# Wireless & Networking
wifi # Current wireless connection status (MOJO-JAN-C1-F9)
wifi scan # Scans and displays real surrounding Wi-Fi networks
wifi-gui # Opens the GUI WiFi & Network Settings window
# Core Utilities
ls -la # List files with Unix permissions
cat README.txt # Display welcome text
free # Memory usage statistics
df # Disk space usage
top # Process activity table
help # Complete command reference
```
---
## πŸ‘¨β€πŸ’» Project & Academic Details
- **Author**: Bharath
- **GitHub**: [Bharath0123-zoro](https://github.com/Bharath0123-zoro)
- **Institution**: Jain University
- **Email**: `juug25btech18691@jainuniversity.ac.in`
- **Course**: Operating Systems Lab Project
- **License**: MIT License