Skip to content

nostalgia

๐Ÿ‘พ GRUB Invaders: Because Bootloaders Deserve to Have Fun Too

You know how you can make your bootloader sing a little tune?
Wellโ€ฆ what if instead of music, you could make it play Space Invaders?

Yes, thatโ€™s a real thing.
Itโ€™s called GRUB Invaders, and it runs before your operating system even wakes up.
Because who needs Linux when you can blast aliens straight from your BIOS screen? ๐Ÿš€


๐ŸŽถ From Tunes to Lasers

In a previous post โ€” โ€œResurrecting My Windows Partition After 4 Years ๐Ÿ–ฅ๏ธ๐ŸŽฎโ€ โ€”
I fell down a delightful rabbit hole while editing my GRUB configuration.
Thatโ€™s where I discovered GRUB_INIT_TUNE, spent hours turning my PC speaker into an 80s arcade machine, and learned far more about bootloader acoustics than anyone should. ๐Ÿ˜…

So naturally, the next logical step was obvious:
if GRUB can play music, surely it can play games too.
Enter: GRUB Invaders. ๐Ÿ‘พ๐Ÿ’ฅ


๐Ÿงฉ What the Heck Is GRUB Invaders?

grub-invaders is a multiboot-compliant kernel game โ€” basically, a program that GRUB can launch like itโ€™s an OS.
Except itโ€™s not Linux, not BSD, not anything remotely usefulโ€ฆ
itโ€™s a tiny Space Invaders clone that runs on bare metal.

To install it (on Ubuntu or Debian derivatives):

sudo apt install grub-invaders

Then, in GRUBโ€™s boot menu, itโ€™ll show up as GRUB Invaders.
Pick it, hit Enter, and bam! โ€” no kernel, no systemd, just pew-pew-pew.
Your CPU becomes a glorified arcade cabinet. ๐Ÿ•น๏ธ

Image: https://libregamewiki.org/GRUB_Invaders

๐Ÿ› ๏ธ How It Works

Under the hood, GRUB Invaders is a multiboot kernel image (yep, same format as Linux).
That means GRUB can load it into memory, set up registers, and jump straight into its entry point.

Thereโ€™s no OS, no drivers โ€” just BIOS interrupts, VGA mode, and a lot of clever 8-bit trickery.
Basically: the game runs in real mode, paints directly to video memory, and uses the keyboard interrupt for controls.
Itโ€™s a beautiful reminder that once upon a time, you could build a whole game in a few kilobytes.


๐Ÿงฎ Technical Nostalgia

Installed size?

Installed-Size: 30
Size: 8726 bytes

Yes, you read that right: under 9 KB.
Thatโ€™s less than one PNG icon on your desktop.
Yet itโ€™s fully playable โ€” proof that programmers in the โ€™80s had sorcery weโ€™ve since forgotten. ๐Ÿง™โ€โ™‚๏ธ

The package is ancient but still maintained enough to live in the Ubuntu repositories:

Homepage: http://www.erikyyy.de/invaders/
Maintainer: Debian Games Team
Enhances: grub2-common

So you can still apt install it in 2025, and it just works.


๐Ÿง  Why Bother?

Because you can.

Because sometimes itโ€™s nice to remember that your bootloader isnโ€™t just a boring chunk of C code parsing configs.
Itโ€™s a tiny virtual machine, capable of loading kernels, playing music, and โ€” if youโ€™re feeling chaotic โ€” defending the Earth from pixelated aliens before breakfast. โ˜•

Itโ€™s also a wonderful conversation starter at tech meetups:

โ€œOh, my GRUB doesnโ€™t just boot Linux. It plays Space Invaders. What does yours do?โ€


โš™๏ธ A Note on Shenanigans

Donโ€™t worry โ€” GRUB Invaders doesnโ€™t modify your boot process or mess with your partitions.
Itโ€™s launched manually, like any other GRUB entry.
When youโ€™re done, reboot, and youโ€™re back to your normal OS.
Totally safe. (Mostly. Unless you lose track of time blasting aliens.)


๐Ÿ TL;DR

  • grub-invaders lets you play Space Invaders in GRUB.
  • Itโ€™s under 9 KB, runs without an OS, and is somehow still in Ubuntu repos.
  • Totally useless. Totally delightful.
  • Perfect for when you want to flex your inner 8-bit gremlin.