Browse by type
A minimal 32-bit operating system kernel written in Rust, featuring a command-line interface, file system, text editor, Snake game, and ASCII video player.
# Build the OS
make
# Build and run in QEMU
make run
# Clean build artifacts
make clean
# Rebuild from scratch
make rebuild
# Create bin directory
mkdir -p bin
# Assemble boot code
as --32 src/boot.asm -o bin/boot.o
# Compile Rust kernel
rustc --target i686-unknown-linux-gnu --crate-type staticlib \
-C opt-level=2 -C panic=abort -C relocation-model=static \
-C target-feature=-sse,-sse2,+soft-float \
-o bin/kernel.o src/kernel.rs
# Link everything
ld -m elf_i386 -T src/linker.ld -o bin/myos.bin bin/boot.o bin/kernel.o
# Run in QEMU
qemu-system-i386 -kernel bin/myos.bin
# Make iso
make iso
Once HexiumOS boots, you'll see the HexiumOS prompt. Type help to see available commands:
help - Display help informationclear - Clear the screenhello - Print a greeting messageinfo - Display system informationecho <text> - Echo text back to the terminalsnake - Launch the Snake gameplay <video> - Play an ASCII videoplay badapple - Play Bad Apple videoplay rahh - Play RAHH videols - List files and directories in current directorycd <dir> - Change to specified directorypwd - Print working directorymkdir <dir> - Create a new directoryrmdir <dir> - Remove an empty directorytouch <file> - Create an empty filecat <file> - Display file contentsedit <file> - Open file in text editorwrite <file> - Write text to a filerm <file> - Delete a fileBackspace - Delete characterESC - Save and exit editorHexiumOS includes a Python script to convert videos into ASCII art format:
python convert_video.py <video_file> [options]
Options:
--width WIDTH ASCII width (default: 80)
--height HEIGHT ASCII height (default: 24)
--fps FPS Target FPS (default: 15)
--output OUTPUT Output Rust file (default: src/bad_apple_data.rs)
--invert Invert colors (white on black)
# Convert a video to ASCII
python convert_video.py badapple.mp4 --width 80 --height 24 --fps 15 --output src/bad_apple_data.rs
# Rebuild the OS with the new video
make rebuild
# Run and play the video
make run
# Then type: play badapple
#![no_std] - Bare metal development#![no_main] - Custom entry point↑ Arrow Up - Move up↓ Arrow Down - Move down← Arrow Left - Move left→ Arrow Right - Move rightESC - Exit gameESC - Stop playback and return to CLIBackspace - Delete characterESC - Save and exitContributions are welcome! Feel free to submit issues or pull requests.
This project is open source and available under the MIT License.
$ claude mcp add HexiumOS \
-- python -m otcore.mcp_server <graph>