AI • Science • Technology • Future

Side Projects

Linux History in Browser: Building a Time Machine for Early Linux Kernels

Image from the original article
Featured image: original publisher image. Via original publisher.

Hamdy Abou El Anein, a senior Linux systems engineer with over 15 years of experience, has built Linux Time Machine—an interactive browser-based project that explores the evolution of Linux from its earliest releases to modern systems. Source: dev.to.

Why Linux Time Machine Was Built

Over a decade of working with Linux, Hamdy observed how the ecosystem evolved—from system administration to cloud infrastructure and containerization. Yet, he remained curious about its origins.

What did early Linux look like in 1991? How did Slackware or Red Hat shape the early distribution landscape? Could those environments be accessible in a modern browser?

These questions led to Linux Time Machine—an open-source project that allows users to explore Linux history through interactive, browser-based environments.

Key Historical Milestones in the Project

The project covers several key eras in Linux history, each with distinct technical characteristics:

  • 1991: Linux 0.01—Released by Linus Torvalds in September 1991, this was an experimental kernel targeting Intel 386 hardware. It lacked modern features like desktop environments or standard file systems. The kernel focused on core process scheduling and system call handling, using a MINIX-compatible filesystem and operating in a memory-constrained environment on early 32-bit x86 machines.
  • 1993: Slackware 1.01—By this time, distributions like Slackware had begun assembling kernels, utilities, and installation tools into usable systems. This version marked a shift from a bare kernel to a complete, installable distribution. It included a bootable floppy, essential tools, and a basic file system structure, enabling real hardware installation.
  • 1998: Red Hat 5.2—A more mature distribution with a full disk image and improved system tools. It introduced robust package management, better hardware support, and a structured approach to system configuration.
  • 2004: Ubuntu-era environment—A recreation of early Ubuntu, not an original Ubuntu 4.10 installation. This reflects the transition from Unix-like systems to user-friendly desktop Linux. It includes a graphical interface, package manager, and modern boot processes, with support for ext3 and improved user authentication.

Each environment reflects different assumptions about memory, storage, boot processes, and hardware. These changes show how Linux evolved from a simple kernel to a full-featured, accessible operating system.

How the Project Works: From Emulation to Browser

Linux Time Machine uses the v86 emulator—an open-source x86 emulator that runs inside a web browser using WebAssembly.

The architecture follows this flow:

  1. Browser interface
  2. Loads v86 JavaScript runtime and WebAssembly binary
  3. Emulates x86 hardware
  4. Loads historical boot media and disk images
  5. Runs the original Linux kernel and userspace

This setup lets the browser act as both interface and host, eliminating the need for users to install standalone virtualization software. The v86 emulator replicates early PC hardware behavior—like BIOS, interrupt handling, and device drivers—critical for booting original kernels.

The browser interface uses JavaScript to manage the virtual machine lifecycle. It configures hardware, loads boot media, and handles user input such as keyboard commands and mouse actions. Terminal output appears in real time, rendered directly in the browser.

Technical Challenges in Booting Early Kernels

Early Linux kernels weren’t designed for modern boot protocols. The Linux 0.01 image, for example, is not a standard bzImage and lacks compatibility with modern bootloaders. It assumed specific memory layouts, disk geometry, and interrupt vectors that no longer exist.

Image from the original article
original publisher image. Via original publisher. · Source

For instance, the original kernel relied on hardware interrupts to manage system events. In a modern virtualized environment, these assumptions fail—leading to boot failures or hangs without proper configuration.

To make it work, the project uses a boot floppy, an IDE root disk, and a placeholder IDE master device. This placeholder exposes the historical disk on the expected IDE channel. The boot floppy contains a minimal loader that initializes hardware and loads the kernel from disk, mimicking 1991-era boot processes.

These configurations require deep knowledge of both historical hardware and modern emulation. The emulator must simulate not just CPU and memory, but also timing and interrupt behavior—fundamentally different from modern systems.

Hosting and File Size Limitations

The website is hosted on Cloudflare Pages, which limits individual static assets. This is especially challenging because some historical disk images exceed the size limit.

To solve this, Hamdy developed a packaging process that:

  • Uses QEMU to prepare the disk image
  • Converts it to a raw image when needed
  • Compresses it with gzip
  • Divides it into smaller static files
  • Publishes each chunk as a separate static file
  • Allows the browser to download and reassemble the image using the DecompressionStream API

For the 2004 Ubuntu-era environment, a remote virtual disk endpoint is used instead. This avoids packaging the entire disk and enables scalable access. The endpoint serves the image over HTTP with asynchronous streaming, loading only required portions as needed.

These solutions are invisible to users but essential for functionality. Without them, large disk images would fail to load or degrade performance.

Historical Emulation vs. Educational Recreation

Hamdy avoids presenting modern simulations as if they were original systems. This is a commitment to technical accuracy and historical integrity.

For early milestones (1991–1993), the project runs actual historical kernels and boot media—using compatibility-patched versions of Linux 0.01 and 0.99.12. These patches are carefully documented and applied only to enable bootability. The project clearly labels them as ‘compatibility-patched’ to distinguish them from original, unmodified kernels.

For later milestones, the project offers interactive terminal and desktop recreations. These are educational interfaces, not original operating systems running their original kernels. A displayed kernel version or a simulated uname response does not prove a genuine kernel is running. This distinction preserves technical accuracy and prevents misleading users.

Image from the original article
original publisher image. Via original publisher. · Source

Interface Design and Accessibility

The interface uses a minimal stack: HTML5, CSS3, vanilla JavaScript, and WebAssembly via v86. This ensures the project is lightweight, fast, and accessible across devices and browsers.

It includes:

  • An interactive timeline
  • A terminal interface
  • Historical context and explanations
  • A retro-futuristic design that reflects the era

On mobile devices, where full x86 emulation may not work due to limited resources, the project offers a simplified command experience. This reduces complexity and load times, making the experience accessible to a broader audience. The mobile interface focuses on key commands and historical facts.

Key Lessons from the Project

Hamdy identified several important insights:

  • Old software reveals assumptions we no longer consider—like disk geometry, boot protocols, and hardware interfaces. Early kernels assumed fixed track and sector sizes, now obsolete in modern storage.
  • Emulation doesn’t solve compatibility issues. Even in a virtualized environment, the kernel must work with emulated devices and boot configurations. Without proper emulation, the kernel may fail to initialize or loop.
  • Hosting constraints are part of systems engineering. File size, compression, disk streaming, and memory usage affect whether a browser-based virtual machine works. These choices directly impact user experience.
  • Historical accuracy requires transparency. Compatibility patches must be documented, and recreations must be labeled as such. Users should know when they’re interacting with a simulation.
  • Interactive access to old technology can be a powerful educational tool. Allowing users to see and interact with early Linux environments helps bridge the gap between modern systems and their origins.

Open Source and Future Development

Linux Time Machine is open-source under the MIT license. Third-party software and disk images retain their original licenses. The public GitHub repository contains the website source, emulator integration, and technical documentation.

Cloning the repository does not reproduce all deployed virtual machines—large disk images and emulator binaries are packaged separately. This keeps the project maintainable and scalable without requiring large downloads.

Hamdy plans to improve the project by:

  • Creating more reproducible boot environments with detailed documentation on how each kernel is patched and configured.
  • Improving integration between the timeline and the emulator for smoother navigation between eras.
  • Expanding coverage to include other early Linux distributions.
  • Enhancing educational explanations of kernel evolution—such as changes in memory management, process scheduling, and file systems.
  • Testing and documenting across different browsers to ensure consistent performance.

He welcomes feedback from developers, kernel enthusiasts, and retro-computing communities. Specifically, he is interested in input on which Linux release or distribution would be most valuable to explore in a modern browser.

Which Linux release or distribution would you like to revisit in a modern browser?

Try Linux Time Machine today. The project is available at GitHub. A video walkthrough is available at YouTube.

For technical details on boot configurations, see the real kernel boot documentation.

Sources & further reading

Featured image: original publisher image. Via original publisher. Image source