ohLinux Installation Guide

Overview

This guide explains how to install ohLinux from a live environment. There is no official ISO, so any Linux live ISO can be used.


1. Preparing Installation Media

  1. Download a Linux live ISO.
  2. (Optional) Verify checksum.
  3. Create a bootable USB using dd or a graphical tool.

2. Booting and Disk Setup

Partitioning

Use cfdisk (recommended) or fdisk.

Required partitions:

Formatting

Replace X and Y with your partitions.

EFI:

mkfs.vfat -F 32 /dev/X

Root:

mkfs.ext4 /dev/Y

Mounting

mount /dev/Y /mnt
mkdir -p /mnt/boot/efi
mount /dev/X /mnt/boot/efi

3. Installing Root Filesystem

cd /mnt
lynx "https://drive.usercontent.google.com/download?id=1OLuHfl-0w1JWnZfOJGBSRJbK-WsNYcPh&export=download&authuser=0"
xz -d rootfs.tar.xz
tar -xpvf rootfs.tar
cat /etc/resolv.conf | tee /mnt/etc/resolv.conf

4. Entering the System

mkdir -pv /mnt/proc /mnt/sys /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount --bind /dev /mnt/dev
chroot /mnt

Alternative:

arch-chroot /mnt

5. Package Manager (Singularity)

singularity install <package>
singularity remove <package>
singularity update
singularity install <package> --patch

Configuration:

/var/singularity/make.conf
CFLAGS="-O2 -pipe"
CC=clang
MAKEFLAGS="-j$(nproc)"

6. Kernel Compilation

tar xpvf /var/linux-7.0.tar.xz
make localmodconfig
make localyesconfig
make -j$(nproc)
make modules_install

7. Bootloader Setup (UEFI)

mount -t efivarfs efivarfs /sys/firmware/efi/efivars

Note: efibootmgr is already included.

mkdir -p /boot/efi/EFI/ohlinux
cp -rv /usr/share/limine/BOOTX64.EFI /boot/efi/EFI/ohlinux
efibootmgr \
  --create \
  --disk /dev/sdX \
  --part Y \
  --label "ohLinux" \
  --loader '\\EFI\\ohlinux\\BOOTX64.EFI' \
  --unicode
cp -rv /var/linux-7.0/arch/x86/boot/bzImage /boot/efi/bzImage

Configuration file:

/boot/efi/EFI/ohlinux/limine.conf
timeout: 5

/ohLinux
    protocol: linux
    path: boot():/bzImage
    cmdline: root=/dev/sdX rw

8. Final Steps

Enable services by symlinking into /init/services.

passwd

Installation complete.