Skip to main content
This guide provides comprehensive installation instructions for setting up the Redox OS build environment on various platforms.

System Requirements

Disk Space

At least 10-20 GB free for build artifacts

RAM

Minimum 4 GB, 8 GB+ recommended

CPU

Multi-core processor recommended for faster builds

Network

Stable internet for downloading sources

Supported Platforms

Redox can be built on:
  • Linux: Arch, Ubuntu, Debian, Fedora, openSUSE, Gentoo, Solus
  • BSD: FreeBSD, macOS (Homebrew or MacPorts)
  • Experimental: Redox OS itself (bootstrapping)
macOS Users: Native builds require kernel extensions (FUSE). The Podman build method is strongly recommended for macOS.

Installation Methods

Build System Architecture Selection

Use build.sh for architecture-specific builds:

Configuration Profiles

  • desktop: Full desktop environment with COSMIC apps
  • server: Server configuration, minimal GUI
  • demo: Demonstration configuration
Custom configs are in config/<ARCH>/<CONFIG>.toml

Makefile Targets Reference

Configuration Variables

Edit .config or set as environment variables:

Troubleshooting

If you encounter build errors on non-SELinux systems:
Or add to .config:
Manual Rustup installation:
Linux: Ensure FUSE 3 is installed
FreeBSD: Load kernel module
Add user to Podman group (Linux):
Clean build artifacts:
Remove all downloaded sources:
Native macOS builds are not recommended. The toolchain requires FUSE kernel extensions.Solution: Use Podman build instead:

Development Best Practices

Keep Build System Updated

Log Build Errors

Local Recipe Changes

Disable auto-updates for modified recipes:See Configuration Settings

Update initfs

After modifying drivers or system components:See Coding and Building

Debugging the Build

GDB Integration

Debug the kernel:
The debugger connects to localhost:1234 and loads symbols from:
Set RUST_GDB=gdb-multiarch when debugging for architectures different from your host.

Network Analysis

Capture and analyze network traffic:

Advanced Configuration

Custom Filesystem Config

Create custom TOML configuration:

Environment Shell

Enter build environment with correct PATH:
This spawns a shell with:
  • Cross-compiler tools in PATH
  • All build dependencies accessible
  • Environment variables configured

Next Steps

Quick Start

Fast-track guide to building Redox

Contributing

Contribute to Redox development

Build System Reference

Detailed build system documentation

Developer FAQ

Common development questions

Getting Support

If you encounter issues:
  1. Check logs: Always save build output with 2>&1 | tee log.txt
  2. Search issues: GitLab Issues
  3. Ask on chat: Matrix or Discord
  4. Read docs: Redox Book
Post issue links in the Dev or Support chat rooms to avoid them being forgotten due to email notification noise.