Skip to content

CachyOS/New-Cli-Installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d8b8df6 Β· Mar 30, 2025
Jan 13, 2025
Jul 24, 2024
Jan 13, 2025
Mar 30, 2025
Mar 30, 2025
Mar 3, 2025
Jun 26, 2024
Nov 20, 2022
Apr 29, 2024
Aug 13, 2022
Mar 30, 2025
Dec 2, 2021
Jan 5, 2022
Jul 23, 2024
Jan 13, 2025
Mar 30, 2025
Feb 24, 2022
Mar 30, 2025
Jun 25, 2024
Feb 19, 2025
Jan 13, 2025
Dec 31, 2021

Repository files navigation

Demo image

cachyos-new-installer

CLI net-installer for CachyOS, inspired by manjaro-architect

This installer provides online installation for CachyOS.

Fast and smooth installer for Arch based operating system.

Requirements

  • C++23 feature required (tested with GCC 14.1.1 and Clang 18) Any compiler which support C++23 standard should work.

Installing from source

This is tested on Arch Linux, but any recent Linux with latest C++23 compiler should do:

sudo pacman -Sy \
    base-devel cmake pkg-config ninja clang mold llvm

Cloning the source code

git clone https://github.com/cachyos/new-cli-installer.git
cd new-cli-installer

Building and Configuring

cmake(recommended):

To build, first, configure it(if you intend to install it globally, you might also want -DCMAKE_INSTALL_PREFIX=/usr):

cmake -S . -B build

Second, build it:

cmake --build build

meson:

To build, first, configure it (if you intend to install it globally, you might also want --prefix=/usr):

meson build

Second, compile it:

meson compile -C build

Optionally, to disable developer environment: pass -DENABLE_DEVENV=OFF to cmake or -Ddevenv=false to meson when configuring the project.

Libraries used in this project

Simple menu overview:

TODO: should be simple as Calamares Installer


Advanced menu overview:

Main Menu
|
β”œβ”€β”€ Prepare Installation
|   β”œβ”€β”€ Set Virtual Console
|   β”œβ”€β”€ List Devices
|   β”œβ”€β”€ Partition Disk
|   β”œβ”€β”€ RAID (WIP)
|   β”œβ”€β”€ LUKS Encryption
|   β”œβ”€β”€ Logical Volume Management (WIP)
|   β”œβ”€β”€ Mount Partitions
|   β”œβ”€β”€ Configure Installer Mirrorlist
|   |   β”œβ”€β”€ Edit Pacman Configuration
|   |   └── Rank Mirrors by Speed (TODO)
|   |
β”‚   └── Refresh Pacman Keys
|
β”œβ”€β”€ Install System
β”‚   β”œβ”€β”€ Install Base Packages
β”‚   β”œβ”€β”€ Install Desktop
β”‚   β”œβ”€β”€ Install Bootloader
β”‚   β”œβ”€β”€ Configure Base
|   β”‚   β”œβ”€β”€ Generate FSTAB
|   β”‚   β”œβ”€β”€ Set Hostname
|   β”‚   β”œβ”€β”€ Set System Locale
|   β”‚   β”œβ”€β”€ Set Timezone and Clock
|   β”‚   β”œβ”€β”€ Set Root Password
|   β”‚   └── Add New User(s)
|   β”‚
β”‚   β”œβ”€β”€ Install Custom Packages
β”‚   β”œβ”€β”€ System Tweaks
|   β”‚   β”œβ”€β”€ Enable Automatic Login
|   β”‚   └── Performance
|   |       β”œβ”€β”€ I/O schedulers
|   |       └── Swap configuration
|   β”‚
β”‚   β”œβ”€β”€ Review Configuration Files
β”‚   └── Chroot into Installation
|
└── System Rescue
    β”œβ”€β”€ Install Hardware Drivers
    β”‚   β”œβ”€β”€ Install Display Drivers
    β”‚   └── Install Network Drivers (TODO)
    |
    β”œβ”€β”€ Install Bootloader
    β”œβ”€β”€ Configure Base
    |   └── ... (see 'Install System')
    β”‚
    β”œβ”€β”€ Install Custom Packages
    β”œβ”€β”€ Remove Packages
    β”œβ”€β”€ Review Configuration Files
    β”œβ”€β”€ Chroot into Installation
    β”œβ”€β”€ Data Recovery (TODO)
    β”‚   └── Btrfs snapshots..
    β”‚
    └── View System Logs
        β”œβ”€β”€ Dmesg
        β”œβ”€β”€ Pacman log
        β”œβ”€β”€ Xorg log
        └── Journalctl