chamesle

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

handbook-files.html (6116B)


      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>File reference - Chamesle</title>
      7 <meta name="description" content="File reference">
      8 <link rel="canonical" href="https://chamesle.org/handbook-files.html">
      9 <meta property="og:type" content="website">
     10 <meta property="og:site_name" content="Chamesle">
     11 <meta property="og:title" content="File reference - Chamesle">
     12 <meta property="og:description" content="File reference">
     13 <meta property="og:url" content="https://chamesle.org/handbook-files.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="handbook-desktop.html">&larr; X and a window manager</a> | <a href="docs.html">Contents</a></p>
     41 <h2>11. File reference</h2>
     42 <h2 id="s11-1">11.1 On an installed system</h2>
     43 <table>
     44 <tr><th>path</th><th>what</th></tr>
     45 <tr><td><code>/sbin/init</code>, <code>/etc/inittab</code></td><td>busybox init, which runs OpenRC</td></tr>
     46 <tr><td><code>/etc/init.d/</code>, <code>/etc/runlevels/</code></td><td>the services, and the ones started at boot</td></tr>
     47 <tr><td><code>/usr/lib/chamesle/</code></td><td>the boot scripts the services run</td></tr>
     48 <tr><td><code>/etc/hostname</code>, <code>/etc/modules</code></td><td>host name, modules loaded at boot</td></tr>
     49 <tr><td><code>/etc/profile</code></td><td><code>PATH</code>, <code>umask</code></td></tr>
     50 <tr><td><code>/etc/passwd</code>, <code>/etc/shadow</code>, <code>/etc/group</code>, <code>/etc/shells</code></td><td>accounts, passwords, groups, login shells</td></tr>
     51 <tr><td><code>/etc/fstab</code></td><td>file systems</td></tr>
     52 <tr><td><code>/etc/sysctl.d/</code></td><td>kernel settings loaded at boot (6.10)</td></tr>
     53 <tr><td><code>/etc/os-release</code></td><td><code>NAME=Chamesle</code>, <code>ID=chamesle</code></td></tr>
     54 <tr><td><code>/etc/mag/</code></td><td><code>repos</code>, <code>keys/</code>, <code>arch</code>, <code>build.conf</code></td></tr>
     55 <tr><td><code>/etc/mkinitfs/mkinitfs.conf</code></td><td>what goes into the initramfs</td></tr>
     56 <tr><td><code>/boot/limine.conf</code></td><td>the boot entries</td></tr>
     57 <tr><td><code>/boot/limine-bios.sys</code></td><td>limine's BIOS stage</td></tr>
     58 <tr><td><code>/boot/EFI/BOOT/BOOTX64.EFI</code></td><td>limine for UEFI</td></tr>
     59 <tr><td><code>/boot/vmlinuz-lts</code>, <code>initramfs-lts</code></td><td>the kernel and its initramfs</td></tr>
     60 <tr><td><code>/lib/modules/V/</code></td><td>its modules</td></tr>
     61 <tr><td><code>/lib/firmware/</code></td><td>firmware</td></tr>
     62 <tr><td><code>/var/lib/mag/</code></td><td>what is installed, and its files</td></tr>
     63 <tr><td><code>/var/cache/mag/</code></td><td>indexes, downloaded packages and port trees</td></tr>
     64 <tr><td><code>/usr/share/limine/</code></td><td>limine's boot files, for installing it</td></tr>
     65 <tr><td><code>/usr/share/doc/chamesle/handbook.md</code></td><td>this book</td></tr>
     66 </table>
     67 <h2 id="s11-2">11.2 In the sources</h2>
     68 <table>
     69 <tr><th>path</th><th>what</th></tr>
     70 <tr><td><code>system/tools/chamesle-bootstrap</code></td><td>puts the base into a root with mag</td></tr>
     71 <tr><td><code>system/tools/chamesle-boot</code></td><td>limine.conf and limine for the system in a directory</td></tr>
     72 <tr><td><code>system/tools/chamesle-disk</code></td><td>cfdisk, vfat boot partition, ZFS root, mounted on <code>/mnt</code></td></tr>
     73 <tr><td><code>system/tools/mkapk</code>, <code>mkrepo</code>, <code>mkpkgs</code></td><td>packages, signed indexes, Chamesle's own repo</td></tr>
     74 <tr><td><code>system/files/</code></td><td>the files in <code>/etc</code> and the tools, in <code>chamesle-base</code></td></tr>
     75 <tr><td><code>system/pkg/chamesle-base/</code></td><td>its scripts, <code>repos</code>, <code>os-release</code>, <code>issue</code></td></tr>
     76 <tr><td><code>system/keys/</code></td><td>the public keys the repos are signed with</td></tr>
     77 <tr><td><code>system/iso/mkiso</code>, <code>mkinitramfs</code>, <code>init</code></td><td>the live ISO, its initramfs and the first process in it</td></tr>
     78 <tr><td><code>system/iso/profile/</code></td><td><code>packages</code>, <code>modules</code>, <code>limine.conf</code> and the <code>overlay/</code> of the live root</td></tr>
     79 <tr><td><code>system/handbook/handbook.md</code></td><td>this book</td></tr>
     80 <tr><td><code>mag/mag.c</code>, <code>mag/c.h</code>, <code>mag/build.sh</code></td><td>the package manager</td></tr>
     81 <tr><td><code>rifle/rifle.c</code>, <code>rifle/c.h</code>, <code>rifle/build.sh</code></td><td>the coreutils</td></tr>
     82 <tr><td><code>rifle/tests/run.sh</code>, <code>rifle/tests/cases</code></td><td>the comparison tests</td></tr>
     83 </table>
     84 <h2 id="s11-3">11.3 Commands in short</h2>
     85 <pre>chamesle-bootstrap [-a ARCH] [-n HOSTNAME] [-k KERNEL] [-f FIRMWARE] TARGET [PACKAGE]...
     86 arch-chroot DIR [COMMAND...]
     87 chamesle-disk DISK
     88 chamesle-boot [DIR]
     89 mag [-nfy] update|install|build|remove|upgrade|autoremove|list|info|search|files|owns|deps|rdeps|fetch
     90 rifle --install DIR | --list
     91 limine bios-install DEVICE</pre>
     92 <hr>
     93 <p><a href="handbook-desktop.html">&larr; X and a window manager</a> | <a href="docs.html">Contents</a></p>
     94 </main>
     95 
     96 <hr>
     97 <div id="foot">
     98 Something wrong on this page? Tell us on the <a href="board.html">board</a>.<br>
     99 Chamesle installs with <code>chamesle-install</code>, or by hand from the <a href="docs.html">handbook</a>.<br>
    100 <a href="https://ko-fi.com/L6N725GI1V">Ko-fi</a><br>
    101 <a href="#" id="edit-link">Edit text</a><br>
    102 $Date: 2026-11-23 $
    103 </div>
    104 
    105 </div>
    106 
    107 <script src="edit.js"></script>
    108 </body>
    109 </html>