chamesle

chamesle.org: the site of Chamesle, a small Linux distribution
git clone https://github.com/tortr-rs/chamesle
Log | Files | Refs | README

handbook-about.html (6578B)


      1 <!doctype html>
      2 <html lang="en">
      3 <head>
      4 <meta charset="utf-8">
      5 <meta name="viewport" content="width=device-width, initial-scale=1">
      6 <title>About Chamesle - Chamesle</title>
      7 <meta name="description" content="Chamesle is a small Linux distribution on musl, installed from the ISO. Nothing is compiled: chamesle-bootstrap puts">
      8 <link rel="canonical" href="https://chamesle.org/handbook-about.html">
      9 <meta property="og:type" content="website">
     10 <meta property="og:site_name" content="Chamesle">
     11 <meta property="og:title" content="About Chamesle - Chamesle">
     12 <meta property="og:description" content="Chamesle is a small Linux distribution on musl, installed from the ISO. Nothing is compiled: chamesle-bootstrap puts">
     13 <meta property="og:url" content="https://chamesle.org/handbook-about.html">
     14 <link rel="stylesheet" href="style.css?25">
     15 <link rel="icon" href="img/logo.png">
     16 </head>
     17 <body>
     18 
     19 <div id="page">
     20 
     21 <div id="top">
     22 <h1><a href="./"><img src="img/banner.png" alt="Chamesle Linux" width="223" height="56"></a></h1>
     23 </div>
     24 
     25 <div id="nav">
     26 <a href="./">Home</a> |
     27 <a href="download.html">Download</a> |
     28 <b>Handbook</b> |
     29 <a href="packages.html">Packages</a> |
     30 <a href="new.html">News</a> |
     31 <a href="board.html">Board</a> |
     32 <a href="chat.html">Chat</a> |
     33 <a href="source.html">Source</a> |
     34 <a href="https://x22.chamesle.org/">X22</a> |
     35 <a href="https://github.com/tortr-rs/mag">mag</a> |
     36 <a href="about.html">About</a>
     37 </div>
     38 
     39 <main>
     40 <p><a href="docs.html">Contents</a> | <a href="handbook-preparing.html">Preparing &rarr;</a></p>
     41 <h2>1. About Chamesle</h2>
     42 <h2 id="s1-1">1.1 What it is</h2>
     43 <p>Chamesle is a small Linux distribution on musl, installed from the ISO. Nothing is compiled: <code>chamesle-bootstrap</code> puts the base into an empty root with the package manager. <code>chamesle-install</code> does the whole install from a few questions, or you do it by hand, writing the fstab, the password and the boot entry yourself. This handbook goes through every step.</p>
     44 <p>The parts:</p>
     45 <table>
     46 <tr><th>part</th><th>what it is</th></tr>
     47 <tr><td>kernel</td><td>a prebuilt Linux LTS kernel with its modules</td></tr>
     48 <tr><td>musl</td><td>the C library</td></tr>
     49 <tr><td>mag</td><td>the package manager, binary packages only, in one C file</td></tr>
     50 <tr><td>rifle</td><td>the coreutils, all in one C file; <code>cat</code>, <code>ls</code>, <code>cp</code> and the rest are links to one program</td></tr>
     51 <tr><td>mksh</td><td>the login shell; <code>/bin/sh</code> is busybox's ash</td></tr>
     52 <tr><td>init</td><td>OpenRC, the services come with their packages</td></tr>
     53 <tr><td>limine</td><td>the boot loader, BIOS and UEFI</td></tr>
     54 </table>
     55 <p>Chamesle is made to be the most UNIX distribution possible, and to run on almost anything: the same base goes on a new laptop and on a Pentium 4 with 256 MB of memory. It is a system for the tty first. Anything else is a <code>mag install</code> away.</p>
     56 <h2 id="s1-2">1.2 Where the packages come from</h2>
     57 <p>mag reads two kinds of repository, both signed:</p>
     58 <ul>
     59 <li>Chamesle's own, at <code>https://chamesle.org/repo</code>: <code>chamesle-base</code> (the files in <code>/etc</code>, the tools of this book and the keys), <code>mag</code> and <code>rifle</code></li>
     60 <li>a large musl repository with everything else: the kernel, the firmware, the libraries, editors, compilers, X, about 28,000 packages for x86_64</li>
     61 </ul>
     62 <p>Both are in <code>/etc/mag/repos</code>. A package is checked against the keys in <code>/etc/mag/keys</code> before anything of it is unpacked.</p>
     63 <h2 id="s1-3">1.3 The glibc Chamesle</h2>
     64 <p>There is a second Chamesle on glibc, for what musl cannot run: NVIDIA's driver, Steam, programs that only come built for glibc. It is the same idea on other packages. mag, rifle, the tools and OpenRC are the same; the packages are Artix's and Arch's, about 25,000, and anything else comes from the AUR, built here. <code>chamesle-install</code> asks which one you want, <code>chamesle-bootstrap -l glibc</code> makes it by hand (3.12).</p>
     65 <table>
     66 <tr><th>part</th><th>musl Chamesle</th><th>glibc Chamesle</th></tr>
     67 <tr><td>kernel</td><td>Linux LTS</td><td>Linux, latest (<code>linux-lts</code> and <code>linux-zen</code> are there too)</td></tr>
     68 <tr><td>initramfs</td><td>mkinitfs</td><td>mkinitcpio</td></tr>
     69 <tr><td>file systems</td><td>ZFS, btrfs, ext4</td><td>btrfs, ext4</td></tr>
     70 <tr><td>login shell</td><td>mksh</td><td>bash</td></tr>
     71 <tr><td>packages</td><td>~28,000</td><td>~25,000, and the AUR</td></tr>
     72 </table>
     73 <p>On glibc, coreutils owns <code>/usr/bin/ls</code> and the rest, so rifle's links are in <code>/usr/lib/rifle/bin</code>, which a login shell puts first in PATH (<code>/etc/profile.d/rifle.sh</code>).</p>
     74 <h2 id="s1-4">1.4 The layout of the system</h2>
     75 <pre>/bin /sbin /lib     /lib holds the musl loader and the firmware
     76 /usr/bin /usr/sbin  programs, /usr/lib libraries, /usr/share data
     77 /usr/local/bin      yours, first in PATH
     78 /boot               kernel, initramfs, limine.conf (on the EFI partition)
     79 /etc                configuration; /etc/mag is mag&#x27;s
     80 /lib/modules        kernel modules, one directory per kernel version
     81 /lib/firmware       firmware for the hardware
     82 /var/lib/mag        which package owns which file
     83 /var/cache/mag      downloaded indexes and packages
     84 /run /tmp           tmpfs, made new at every boot</pre>
     85 <h2 id="s1-5">1.5 Where the sources are</h2>
     86 <table>
     87 <tr><th>directory</th><th>what is in it</th></tr>
     88 <tr><td><code>system/</code></td><td><code>tools/</code> (<code>chamesle-bootstrap</code>, <code>chamesle-disk</code>, <code>chamesle-boot</code>, and <code>mkapk</code>, <code>mkrepo</code>, <code>mkpkgs</code> for the repo), <code>files/</code> (init, rc and the services), <code>pkg/</code>, <code>keys/</code>, <code>iso/</code>, this handbook</td></tr>
     89 <tr><td><code>mag/</code></td><td><code>mag.c</code>, <code>c.h</code>, <code>build.sh</code></td></tr>
     90 <tr><td><code>rifle/</code></td><td><code>rifle.c</code>, <code>build.sh</code>, <code>tests/run.sh</code></td></tr>
     91 </table>
     92 <p>They are on github.com/tortr-rs.</p>
     93 <hr>
     94 <p><a href="docs.html">Contents</a> | <a href="handbook-preparing.html">Preparing &rarr;</a></p>
     95 </main>
     96 
     97 <hr>
     98 <div id="foot">
     99 Something wrong on this page? Tell us on the <a href="board.html">board</a>.<br>
    100 Chamesle installs with <code>chamesle-install</code>, or by hand from the <a href="docs.html">handbook</a>.<br>
    101 <a href="https://ko-fi.com/L6N725GI1V">Ko-fi</a><br>
    102 <a href="#" id="edit-link">Edit text</a><br>
    103 $Date: 2026-11-23 $
    104 </div>
    105 
    106 </div>
    107 
    108 <script src="edit.js"></script>
    109 </body>
    110 </html>