chamesle

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

commit 2f78978e3182e9dac5077656e478448569f534fb
parent 49023ff8f7907b98b8e7d2cd14e7527e58316b43
Author: torter <koubbamohamedrayan@gmail.com>
Date:   Sat, 21 Nov 2026 14:42:49 +0000

site: chamesle-boot, X chapter, new ISOs, base r12

Diffstat:
Mdocs/docs.html | 7+++++--
Mdocs/download.html | 4++--
Mdocs/handbook-about.html | 2+-
Adocs/handbook-desktop.html | 114+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mdocs/handbook-files.html | 14++++++++------
Mdocs/handbook-installing.html | 40+++++++++++++++++++++++++++++++++++-----
Mdocs/handbook-iso.html | 2+-
Mdocs/handbook-maintaining.html | 4++--
Mdocs/index.html | 4++--
Mdocs/new.html | 5+++++
Mdocs/repo/x86/APKINDEX.tar.gz | 0
Ddocs/repo/x86/chamesle-base-20261121-r11.apk | 0
Adocs/repo/x86/chamesle-base-20261121-r12.apk | 0
Mdocs/repo/x86/mag-0.3.apk | 0
Mdocs/repo/x86_64/APKINDEX.tar.gz | 0
Ddocs/repo/x86_64/chamesle-base-20261121-r11.apk | 0
Adocs/repo/x86_64/chamesle-base-20261121-r12.apk | 0
Mdocs/repo/x86_64/mag-0.3.apk | 0
Mdocs/repo/x86_64/rifle-0.2.apk | 0
Mdocs/sitemap.xml | 1+
20 files changed, 176 insertions(+), 21 deletions(-)

diff --git a/docs/docs.html b/docs/docs.html @@ -47,7 +47,7 @@ <ul><li><a href="handbook-preparing.html#s2-1">2.1 What you need</a></li><li><a href="handbook-preparing.html#s2-2">2.2 From another Linux</a></li><li><a href="handbook-preparing.html#s2-3">2.3 Getting on the network</a></li></ul> </li> <li><a href="handbook-installing.html">Installing by hand</a> -<ul><li><a href="handbook-installing.html#s3-1">3.1 chamesle-disk</a></li><li><a href="handbook-installing.html#s3-2">3.2 Partitioning and file systems by hand</a></li><li><a href="handbook-installing.html#s3-3">3.3 chamesle-bootstrap</a></li><li><a href="handbook-installing.html#s3-4">3.4 Working inside the new root</a></li><li><a href="handbook-installing.html#s3-5">3.5 fstab</a></li><li><a href="handbook-installing.html#s3-6">3.6 Host name and password</a></li><li><a href="handbook-installing.html#s3-7">3.7 The boot entry</a></li><li><a href="handbook-installing.html#s3-8">3.8 First boot</a></li><li><a href="handbook-installing.html#s3-9">3.9 What to install next</a></li><li><a href="handbook-installing.html#s3-10">3.10 32-bit machines</a></li></ul> +<ul><li><a href="handbook-installing.html#s3-1">3.1 chamesle-disk</a></li><li><a href="handbook-installing.html#s3-2">3.2 Partitioning and file systems by hand</a></li><li><a href="handbook-installing.html#s3-3">3.3 chamesle-bootstrap</a></li><li><a href="handbook-installing.html#s3-4">3.4 Working inside the new root</a></li><li><a href="handbook-installing.html#s3-5">3.5 fstab</a></li><li><a href="handbook-installing.html#s3-6">3.6 Host name and password</a></li><li><a href="handbook-installing.html#s3-7">3.7 The boot entry</a></li><li><a href="handbook-installing.html#s3-8">3.8 First boot</a></li><li><a href="handbook-installing.html#s3-9">3.9 What to install next</a></li><li><a href="handbook-installing.html#s3-10">3.10 32-bit machines</a></li><li><a href="handbook-installing.html#s3-11">3.11 Next to another system</a></li></ul> </li> <li><a href="handbook-mag.html">mag</a> <ul><li><a href="handbook-mag.html#s4-1">4.1 The commands</a></li><li><a href="handbook-mag.html#s4-2">4.2 Installing and removing</a></li><li><a href="handbook-mag.html#s4-3">4.3 Where it keeps things</a></li><li><a href="handbook-mag.html#s4-4">4.4 Repositories</a></li><li><a href="handbook-mag.html#s4-5">4.5 Making a package</a></li></ul> @@ -67,8 +67,11 @@ <li><a href="handbook-maintaining.html">Maintaining</a> <ul><li><a href="handbook-maintaining.html#s9-1">9.1 Updating</a></li><li><a href="handbook-maintaining.html#s9-2">9.2 Cleaning up</a></li><li><a href="handbook-maintaining.html#s9-3">9.3 Configuration files</a></li><li><a href="handbook-maintaining.html#s9-4">9.4 Failures you will see</a></li></ul> </li> +<li><a href="handbook-desktop.html">X and a window manager</a> +<ul><li><a href="handbook-desktop.html#s10-1">10.1 What to install</a></li><li><a href="handbook-desktop.html#s10-2">10.2 Firmware for the graphics</a></li><li><a href="handbook-desktop.html#s10-3">10.3 Groups</a></li><li><a href="handbook-desktop.html#s10-4">10.4 startx</a></li><li><a href="handbook-desktop.html#s10-5">10.5 Window Maker</a></li><li><a href="handbook-desktop.html#s10-6">10.6 Firefox</a></li><li><a href="handbook-desktop.html#s10-7">10.7 When it fails</a></li></ul> +</li> <li><a href="handbook-files.html">File reference</a> -<ul><li><a href="handbook-files.html#s10-1">10.1 On an installed system</a></li><li><a href="handbook-files.html#s10-2">10.2 In the sources</a></li><li><a href="handbook-files.html#s10-3">10.3 Commands in short</a></li></ul> +<ul><li><a href="handbook-files.html#s11-1">11.1 On an installed system</a></li><li><a href="handbook-files.html#s11-2">11.2 In the sources</a></li><li><a href="handbook-files.html#s11-3">11.3 Commands in short</a></li></ul> </li> </ol> </main> diff --git a/docs/download.html b/docs/download.html @@ -47,7 +47,7 @@ fetches the base from the repos while you install.</p> <table> <tr><td>File</td><td>chamesle.iso</td></tr> <tr><td>Size</td><td>376 MB</td></tr> -<tr><td>SHA-256</td><td><code>ec745c5557b87ea458105baaa1e076590e983d5bbc40fa3a6879c0294a7cc9ed</code></td></tr> +<tr><td>SHA-256</td><td><code>860ab38dab32cd6c1d4ea722dc87ae1603de197b3c7a7958c1a94f39d5e27ef1</code></td></tr> <tr><td>Machines</td><td>x86-64, BIOS and UEFI</td></tr> <tr><td>Kernel</td><td>Linux 6.18 LTS</td></tr> </table> @@ -57,7 +57,7 @@ fetches the base from the repos while you install.</p> <table> <tr><td>File</td><td>chamesle-x86.iso</td></tr> <tr><td>Size</td><td>291 MB</td></tr> -<tr><td>SHA-256</td><td><code>34ca861ddefaf939efb7b3697e8fddeb6c40bf465077fbc6938c30e3286ec205</code></td></tr> +<tr><td>SHA-256</td><td><code>6833561509b79aff4bd08aac1199358de427aa7cd0182c75f8fab6bb1c7e2960</code></td></tr> <tr><td>Machines</td><td>32-bit x86 with SSE2 (Pentium 4 and later), BIOS</td></tr> </table> diff --git a/docs/handbook-about.html b/docs/handbook-about.html @@ -74,7 +74,7 @@ <h2 id="s1-4">1.4 Where the sources are</h2> <table> <tr><th>directory</th><th>what is in it</th></tr> -<tr><td><code>system/</code></td><td><code>tools/</code> (<code>chamesle-bootstrap</code>, <code>chamesle-chroot</code>, <code>chamesle-disk</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> +<tr><td><code>system/</code></td><td><code>tools/</code> (<code>chamesle-bootstrap</code>, <code>chamesle-chroot</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> <tr><td><code>mag/</code></td><td><code>mag.c</code>, <code>c.h</code>, <code>build.sh</code></td></tr> <tr><td><code>rifle/</code></td><td><code>rifle.c</code>, <code>build.sh</code>, <code>tests/run.sh</code></td></tr> </table> diff --git a/docs/handbook-desktop.html b/docs/handbook-desktop.html @@ -0,0 +1,114 @@ +<!doctype html> +<html lang="en"> +<head> +<meta charset="utf-8"> +<meta name="viewport" content="width=device-width, initial-scale=1"> +<title>X and a window manager - Chamesle</title> +<meta name="description" content="Any other window manager or desktop in the repos goes the same way; only the line in ~/.xinitrc changes."> +<link rel="canonical" href="https://chamesle.org/handbook-desktop.html"> +<meta property="og:type" content="website"> +<meta property="og:site_name" content="Chamesle"> +<meta property="og:title" content="X and a window manager - Chamesle"> +<meta property="og:description" content="Any other window manager or desktop in the repos goes the same way; only the line in ~/.xinitrc changes."> +<meta property="og:url" content="https://chamesle.org/handbook-desktop.html"> +<link rel="stylesheet" href="style.css?19"> +<link rel="icon" href="img/logo.png"> +</head> +<body> + +<div id="page"> + +<div id="top"> +<h1><a href="./"><img src="img/banner-dark.png" alt="Chamesle Linux" width="223" height="56"></a></h1> +</div> + +<div id="nav"> +<a href="./">Home</a> | +<a href="download.html">Download</a> | +<b>Handbook</b> | +<a href="packages.html">Packages</a> | +<a href="new.html">News</a> | +<a href="board.html">Board</a> | +<a href="chat.html">Chat</a> | +<a href="source.html">Source</a> | +<a href="https://x22.chamesle.org/">X22</a> | +<a href="https://github.com/tortr-rs/mag">mag</a> | +<a href="about.html">About</a> +</div> + +<main> +<p><a href="handbook-maintaining.html">&larr; Maintaining</a> | <a href="docs.html">Contents</a> | <a href="handbook-files.html">File reference &rarr;</a></p> +<h2>10. X and a window manager</h2> +<h2 id="s10-1">10.1 What to install</h2> +<pre>mag install xorg-server xinit xf86-input-libinput mesa-dri-gallium font-dejavu windowmaker st</pre> +<table> +<tr><th>package</th><th>for</th></tr> +<tr><td><code>xorg-server</code></td><td>X itself, with the <code>modesetting</code> driver, which drives Intel, AMD, NVIDIA and virtual graphics through the kernel</td></tr> +<tr><td><code>xinit</code></td><td><code>startx</code></td></tr> +<tr><td><code>xf86-input-libinput</code></td><td>keyboard, mouse and touchpad</td></tr> +<tr><td><code>mesa-dri-gallium</code></td><td>OpenGL</td></tr> +<tr><td><code>font-dejavu</code></td><td>a font; X programs show empty boxes without one</td></tr> +<tr><td><code>windowmaker</code></td><td>the window manager, and <code>WPrefs</code> for its settings</td></tr> +<tr><td><code>st</code></td><td>a terminal; <code>xterm</code> is another</td></tr> +</table> +<p>Any other window manager or desktop in the repos goes the same way; only the line in <code>~/.xinitrc</code> changes.</p> +<h2 id="s10-2">10.2 Firmware for the graphics</h2> +<p>The kernel's graphics drivers load firmware for most cards. Install the one for yours and reboot:</p> +<table> +<tr><th>graphics</th><th>firmware</th><th>Vulkan</th></tr> +<tr><td>Intel, up to 14th generation</td><td><code>linux-firmware-i915</code></td><td><code>mesa-vulkan-intel</code></td></tr> +<tr><td>Intel Arc, Lunar Lake and newer</td><td><code>linux-firmware-xe</code></td><td><code>mesa-vulkan-intel</code></td></tr> +<tr><td>AMD</td><td><code>linux-firmware-amdgpu</code>, <code>linux-firmware-radeon</code> for older cards</td><td><code>mesa-vulkan-ati</code></td></tr> +<tr><td>NVIDIA</td><td><code>linux-firmware-nvidia</code></td><td><code>mesa-vulkan-nouveau</code></td></tr> +</table> +<p>NVIDIA's own driver is built for glibc and is not in the repos. The open one, nouveau, runs every card; from the GTX 16 and RTX 20 on, the card's own firmware sets the clocks and it is fast, with Vulkan from NVK in <code>mesa-vulkan-nouveau</code>. On older NVIDIA cards it stays slow. <code>lspci</code> says which graphics a machine has.</p> +<h2 id="s10-3">10.3 Groups</h2> +<p>There is no logind to hand the screen and the input devices to whoever logs in. X opens them as the user, so the user needs the <code>video</code> and <code>input</code> groups (6.5):</p> +<pre>adduser alice video +adduser alice input</pre> +<p>Log out and in again after.</p> +<h2 id="s10-4">10.4 startx</h2> +<p><code>startx</code> runs <code>~/.xinitrc</code>, as the user, from a text login:</p> +<pre>echo &#x27;exec wmaker&#x27; &gt; ~/.xinitrc +startx</pre> +<p>X runs until <code>wmaker</code> ends: Exit in its menu. To start X at every login on tty1, at the end of <code>~/.profile</code>:</p> +<pre>[ &quot;$(tty)&quot; = /dev/tty1 ] &amp;&amp; exec startx</pre> +<p>Lines in <code>.xinitrc</code> before the <code>exec</code> run first, which is the place for the keyboard layout and the screen size:</p> +<pre>setxkbmap fr +xrandr --output eDP-1 --mode 1920x1080 +exec wmaker</pre> +<p><code>mag install setxkbmap xrandr</code> for those; <code>xrandr</code> alone lists the outputs and their modes.</p> +<h2 id="s10-5">10.5 Window Maker</h2> +<p>The first start makes <code>~/GNUstep</code> with Window Maker's settings. The right button on the desktop opens the menu, with programs, workspaces and Exit. The dock is in the top right corner and the clip, which switches workspaces, in the top left. Drag a program's icon to the dock to keep it there. <code>WPrefs</code> changes the rest: focus, themes, keys. The menu is <code>~/GNUstep/Defaults/WMRootMenu</code>.</p> +<h2 id="s10-6">10.6 Firefox</h2> +<pre>mag install firefox</pre> +<p><code>firefox-esr</code> is the long-term one. Firefox and many other programs want a D-Bus session; with <code>dbus</code> and <code>dbus-x11</code> installed and <code>dbus</code> in <code>boot-services</code> (6.8), start the window manager inside one:</p> +<pre>exec dbus-launch --exit-with-session wmaker</pre> +<h2 id="s10-7">10.7 When it fails</h2> +<p>X writes <code>~/.local/share/xorg/Xorg.0.log</code>; <code>grep EE</code> in it shows the errors.</p> +<table> +<tr><th>what you see</th><th>why, and what to do</th></tr> +<tr><td><code>open /dev/dri/card0: Permission denied</code>, then <code>no screens found</code></td><td>the user is not in <code>video</code> (10.3)</td></tr> +<tr><td><code>no screens found</code> with no permission error</td><td>no graphics driver came up; check <code>ls /dev/dri</code>, and the firmware (10.2)</td></tr> +<tr><td>no keyboard or mouse in X</td><td><code>xf86-input-libinput</code> is not installed, or the user is not in <code>input</code></td></tr> +<tr><td>X starts and ends at once</td><td><code>~/.xinitrc</code> is missing, or names a program that is not installed</td></tr> +<tr><td>boxes in place of letters</td><td>no font, <code>font-dejavu</code></td></tr> +</table> +<hr> +<p><a href="handbook-maintaining.html">&larr; Maintaining</a> | <a href="docs.html">Contents</a> | <a href="handbook-files.html">File reference &rarr;</a></p> +</main> + +<hr> +<div id="foot"> +Something wrong on this page? Tell us on the <a href="board.html">board</a>.<br> +Chamesle is installed by hand, from the <a href="docs.html">handbook</a>.<br> +<a href="https://ko-fi.com/L6N725GI1V">Ko-fi</a><br> +<a href="#" id="edit-link">Edit text</a><br> +$Date: 2026-11-21 $ +</div> + +</div> + +<script src="edit.js"></script> +</body> +</html> diff --git a/docs/handbook-files.html b/docs/handbook-files.html @@ -37,9 +37,9 @@ </div> <main> -<p><a href="handbook-maintaining.html">&larr; Maintaining</a> | <a href="docs.html">Contents</a></p> -<h2>10. File reference</h2> -<h2 id="s10-1">10.1 On an installed system</h2> +<p><a href="handbook-desktop.html">&larr; X and a window manager</a> | <a href="docs.html">Contents</a></p> +<h2>11. File reference</h2> +<h2 id="s11-1">11.1 On an installed system</h2> <table> <tr><th>path</th><th>what</th></tr> <tr><td><code>/sbin/init</code>, <code>/etc/rc</code>, <code>/etc/rc.shutdown</code></td><td>init, the boot script, the shutdown script, all run by mksh</td></tr> @@ -62,11 +62,12 @@ <tr><td><code>/usr/share/limine/</code></td><td>limine's boot files, for installing it</td></tr> <tr><td><code>/usr/share/doc/chamesle/handbook.md</code></td><td>this book</td></tr> </table> -<h2 id="s10-2">10.2 In the sources</h2> +<h2 id="s11-2">11.2 In the sources</h2> <table> <tr><th>path</th><th>what</th></tr> <tr><td><code>system/tools/chamesle-bootstrap</code></td><td>puts the base into a root with mag</td></tr> <tr><td><code>system/tools/chamesle-chroot</code></td><td>chroot with the pseudo file systems mounted</td></tr> +<tr><td><code>system/tools/chamesle-boot</code></td><td>limine.conf and limine for the system in a directory</td></tr> <tr><td><code>system/tools/chamesle-disk</code></td><td>cfdisk, vfat boot partition, ZFS root, mounted on <code>/mnt</code></td></tr> <tr><td><code>system/tools/mkapk</code>, <code>mkrepo</code>, <code>mkpkgs</code></td><td>packages, signed indexes, Chamesle's own repo</td></tr> <tr><td><code>system/files/</code></td><td>init, rc, <code>service</code>, <code>init.conf</code> and the service scripts, in <code>chamesle-base</code></td></tr> @@ -79,15 +80,16 @@ <tr><td><code>rifle/rifle.c</code>, <code>rifle/c.h</code>, <code>rifle/build.sh</code></td><td>the coreutils</td></tr> <tr><td><code>rifle/tests/run.sh</code>, <code>rifle/tests/cases</code></td><td>the comparison tests</td></tr> </table> -<h2 id="s10-3">10.3 Commands in short</h2> +<h2 id="s11-3">11.3 Commands in short</h2> <pre>chamesle-bootstrap [-a ARCH] [-n HOSTNAME] [-k KERNEL] [-f FIRMWARE] TARGET [PACKAGE]... chamesle-chroot DIR [COMMAND...] chamesle-disk DISK +chamesle-boot [DIR] mag [-nf] update|install|remove|upgrade|autoremove|list|info|search|files|owns|deps|rdeps|fetch rifle --install DIR | --list limine bios-install DEVICE</pre> <hr> -<p><a href="handbook-maintaining.html">&larr; Maintaining</a> | <a href="docs.html">Contents</a></p> +<p><a href="handbook-desktop.html">&larr; X and a window manager</a> | <a href="docs.html">Contents</a></p> </main> <hr> diff --git a/docs/handbook-installing.html b/docs/handbook-installing.html @@ -110,6 +110,17 @@ tmpfs /tmp tmpfs nosuid,nodev 0 0</pre> <pre>chamesle-chroot /mnt passwd root</pre> <p>The hash goes into <code>/etc/shadow</code>. The login shell of root is mksh.</p> <h2 id="s3-7">3.7 The boot entry</h2> +<pre>chamesle-boot /mnt</pre> +<p>It looks at what is mounted on <code>/mnt</code> and <code>/mnt/boot</code> and</p> +<ul> +<li>installs <code>limine</code> into the new root, so its boot files and its <code>limine</code> are the same version</li> +<li>for a root on ZFS, installs <code>zfs</code> and <code>zfs-lts</code> and adds <code>zfs</code> to the initramfs (7.5)</li> +<li>writes <code>/mnt/boot/limine.conf</code> with an entry for every kernel in <code>/mnt/boot</code>, the root by UUID, or by dataset on ZFS</li> +<li>copies <code>BOOTX64.EFI</code> to <code>EFI/BOOT/</code> on the boot partition, for UEFI</li> +<li>runs <code>limine bios-install</code> on the disk, for BIOS; on a GPT disk only when it has a BIOS boot partition, else it says the disk boots by UEFI only</li> +</ul> +<p>An old <code>limine.conf</code> is kept as <code>limine.conf.old</code>. If <code>/boot</code> is not FAT, limine cannot read it; chamesle-boot then writes nothing and prints an entry for the GRUB of the system already on the machine (3.11).</p> +<p>What it does by hand follows; skip to 3.8 if it said nothing went wrong.</p> <pre>ls /mnt/boot System.map-6.18.64-0-lts config-6.18.64-0-lts initramfs-lts vmlinuz-lts</pre> <p>The names stay the same when the kernel is updated, so <code>limine.conf</code> is written once. <code>/mnt/boot/limine.conf</code>, with the UUID of the root partition:</p> @@ -119,16 +130,16 @@ System.map-6.18.64-0-lts config-6.18.64-0-lts initramfs-lts vmlinuz-lts</pre> protocol: linux path: boot():/vmlinuz-lts module_path: boot():/initramfs-lts - cmdline: root=UUID=ROOT-UUID modules=sd-mod,usb-storage,ext4 rootfstype=ext4 quiet</pre> + cmdline: root=UUID=ROOT-UUID modules=sd-mod,usb-storage,nvme,ext4 rootfstype=ext4 quiet</pre> <p><code>boot()</code> is the partition <code>limine.conf</code> is on, which is <code>/boot</code>. The initramfs finds the root, loads the modules on the command line and starts <code>/sbin/init</code>. Take <code>quiet</code> out to see the kernel's messages. For a serial console add <code>console=ttyS0,115200</code>.</p> <p>A root on ZFS names the dataset; the initramfs needs the zfs module, which is section 7.5:</p> <pre> cmdline: root=ZFS=rpool/root rootfstype=zfs quiet</pre> -<p>Install limine. <code>limine</code> is a package; install it into the new root, or use the one of the live system:</p> +<p>Install limine into the new root, and use its files, not the ones of the live system; the two can differ in version, and limine's BIOS stage only works with a <code>limine-bios.sys</code> of its own version:</p> <pre>chamesle-chroot /mnt mag install limine</pre> <h3 id="bios">BIOS</h3> <pre>cp /mnt/usr/share/limine/limine-bios.sys /mnt/boot/ -limine bios-install /dev/sda</pre> -<p><code>limine bios-install</code> writes the loader to the start of the disk and into the BIOS boot partition. <code>limine-bios.sys</code> on the FAT partition is the part it loads.</p> +chamesle-chroot /mnt limine bios-install /dev/sda</pre> +<p><code>limine bios-install</code> writes the loader to the start of the disk and into the BIOS boot partition, which a GPT disk needs (3.1). <code>limine-bios.sys</code> on the FAT partition is the part it loads.</p> <h3 id="uefi">UEFI</h3> <pre>mkdir -p /mnt/boot/EFI/BOOT cp /mnt/usr/share/limine/BOOTX64.EFI /mnt/boot/EFI/BOOT/</pre> @@ -143,11 +154,30 @@ reboot</pre> <h2 id="s3-9">3.9 What to install next</h2> <pre>mag install vim htop tmux mag search irc</pre> -<p>Chapter 4 has the rest.</p> +<p>Chapter 4 has the rest, chapter 10 a graphical desktop.</p> <h2 id="s3-10">3.10 32-bit machines</h2> <p>On a 32-bit PC (Pentium 4, Athlon XP and the like) boot the ISO on another machine, or install from any Linux there (2.2), and give the architecture:</p> <pre>chamesle-bootstrap -a x86 /mnt</pre> <p>The x86 repository has the same packages, built for i686 with SSE2. <code>-a x86</code> is written to <code>/mnt/etc/mag/arch</code>, and mag keeps to it from then on. <code>rifle</code> is only built for x86_64, so on x86 busybox gives the coreutils. limine boots 32-bit BIOS machines as well; the entry is the same.</p> +<h2 id="s3-11">3.11 Next to another system</h2> +<p>To keep a Linux that is already on the disk, Chamesle goes on a partition of its own and the other system's GRUB boots both. The other system is not changed, except for one GRUB entry. Make a backup first; shrinking a file system that is in use is not possible, so it is done from the ISO.</p> +<p>Say the disk has an EFI partition <code>nvme0n1p1</code> and the other system's ext4 root <code>nvme0n1p2</code>, 238G with 100G free. Shrink it to 170G and make the file system fit its partition again:</p> +<pre>e2fsck -f /dev/nvme0n1p2 +resize2fs /dev/nvme0n1p2 170G +cfdisk /dev/nvme0n1</pre> +<p>In cfdisk resize <code>nvme0n1p2</code> to 171G (a little more than the file system, never less), make <code>nvme0n1p3</code> in the free space, write and quit. Then</p> +<pre>resize2fs /dev/nvme0n1p2 +mkfs.ext4 /dev/nvme0n1p3 +mount /dev/nvme0n1p3 /mnt</pre> +<p>Leave the EFI partition alone and do not mount anything on <code>/mnt/boot</code>: the kernel stays in <code>/boot</code> on the ext4 root, where GRUB reads it. Go on with 3.3 to 3.6. <code>chamesle-boot /mnt</code> then prints a GRUB entry; boot the other system, put the entry at the end of its <code>/etc/grub.d/40_custom</code> and run <code>grub-mkconfig -o /boot/grub/grub.cfg</code>.</p> +<p>To use the same home in both, mount the other root in Chamesle and bind its <code>/home</code>, in <code>/etc/fstab</code>:</p> +<pre>UUID=OTHER-ROOT-UUID /old ext4 defaults 0 2 +/old/home /home none bind 0 0</pre> +<p>and make your user with the same name, user number and group number as there (<code>id</code> on the other system says them):</p> +<pre>mkdir /old +addgroup -g 1000 alice +adduser -H -u 1000 -G alice alice</pre> +<p><code>-H</code> makes no home, since the other system's is used: the files, the dotfiles and the settings of the programs are the same in both systems.</p> <hr> <p><a href="handbook-preparing.html">&larr; Preparing</a> | <a href="docs.html">Contents</a> | <a href="handbook-mag.html">mag &rarr;</a></p> </main> diff --git a/docs/handbook-iso.html b/docs/handbook-iso.html @@ -42,7 +42,7 @@ <h2 id="s8-1">8.1 What it is</h2> <p>The ISO is a live system to work from. It boots on BIOS and UEFI machines with limine, from a disc or a stick, logs in as root on every tty and has</p> <ul> -<li>mag, the keys and the repos, and <code>chamesle-bootstrap</code>, <code>chamesle-chroot</code>, <code>chamesle-disk</code></li> +<li>mag, the keys and the repos, and <code>chamesle-bootstrap</code>, <code>chamesle-chroot</code>, <code>chamesle-disk</code>, <code>chamesle-boot</code></li> <li>the disk tools: <code>cfdisk</code>, <code>sfdisk</code>, <code>lsblk</code>, <code>blkid</code>, <code>mkfs.ext4</code>, <code>mkfs.fat</code>, <code>zpool</code>, <code>zfs</code>, <code>limine</code></li> <li>the network: <code>dhcpcd</code>, <code>iwd</code> with <code>iwctl</code>, <code>wpa_supplicant</code>, <code>curl</code></li> <li>the Intel wireless firmware, vim, less, and this handbook in <code>/usr/share/doc/chamesle/handbook.md</code></li> diff --git a/docs/handbook-maintaining.html b/docs/handbook-maintaining.html @@ -37,7 +37,7 @@ </div> <main> -<p><a href="handbook-iso.html">&larr; The live ISO</a> | <a href="docs.html">Contents</a> | <a href="handbook-files.html">File reference &rarr;</a></p> +<p><a href="handbook-iso.html">&larr; The live ISO</a> | <a href="docs.html">Contents</a> | <a href="handbook-desktop.html">X and a window manager &rarr;</a></p> <h2>9. Maintaining</h2> <h2 id="s9-1">9.1 Updating</h2> <pre>mag update @@ -64,7 +64,7 @@ rm -rf /var/cache/mag/pkg downloaded packages; they are fetched again when <tr><td>no devices in <code>/dev</code></td><td>udev did not start; check <code>udev</code> is in <code>boot-services</code></td></tr> </table> <hr> -<p><a href="handbook-iso.html">&larr; The live ISO</a> | <a href="docs.html">Contents</a> | <a href="handbook-files.html">File reference &rarr;</a></p> +<p><a href="handbook-iso.html">&larr; The live ISO</a> | <a href="docs.html">Contents</a> | <a href="handbook-desktop.html">X and a window manager &rarr;</a></p> </main> <hr> diff --git a/docs/index.html b/docs/index.html @@ -58,8 +58,8 @@ runs on a new laptop as well as on a Pentium 4 with 256 MB of memory.</p> <dt>2026-11-21</dt> <dd>No more building. <code>mag</code> is now a binary package manager, one C file, and reads signed repos with about 28,000 packages for x86_64 and 32-bit x86. There is no stage any more: boot the <a href="download.html">ISO</a>, -run <code>chamesle-bootstrap /mnt</code>, and write the fstab and the boot entry by hand. Chamesle's own packages are -in its repo at <code>chamesle.org/repo</code>. The <a href="handbook-installing.html">handbook</a> is rewritten for it.</dd> +run <code>chamesle-bootstrap /mnt</code> and <code>chamesle-boot</code>. Chamesle's own packages are +in its repo at <code>chamesle.org/repo</code>. The <a href="handbook-installing.html">handbook</a> is rewritten for it. It has a <a href="handbook-desktop.html">chapter on X</a> now, with Window Maker and Firefox.</dd> <dt>2026-11-17</dt> <dd>Stages are out: the whole system in one tarball, with <code>hoard</code> to build the rest. Replaced a day later.</dd> diff --git a/docs/new.html b/docs/new.html @@ -51,6 +51,11 @@ and the tools), <code>mag</code> and <code>rifle</code>, are in our repo at <cod <p>There is a 32-bit ISO now as well as the x86_64 one. The <a href="docs.html">handbook</a> is rewritten for all of this. SPAS and hoard are retired.</p> +<p>Later the same day: <code>chamesle-boot</code> writes <code>limine.conf</code> from what is mounted on +<code>/mnt</code> and puts limine on the disk for UEFI, and for BIOS when the disk has a BIOS boot partition, so the boot +entry is no longer written by hand. The base has <code>doas</code> and <code>su</code> works for users. The +<a href="handbook-desktop.html">handbook</a> has a chapter on X with Window Maker and Firefox, and one on installing next +to another system. The ISOs are new.</p> <h2 id="2026-11-16">November 16, 2026: ebuilds, and a name for the init</h2> <p>Packages will come from Gentoo's ebuilds, run by <a href="https://spas.chamesle.org/">SPAS</a>, instead of pkgsrc and mag. mag could read pkgsrc, but every package that built needed another fix, and we'd rather stand on something that already builds. SPAS now runs on diff --git a/docs/repo/x86/APKINDEX.tar.gz b/docs/repo/x86/APKINDEX.tar.gz Binary files differ. diff --git a/docs/repo/x86/chamesle-base-20261121-r11.apk b/docs/repo/x86/chamesle-base-20261121-r11.apk Binary files differ. diff --git a/docs/repo/x86/chamesle-base-20261121-r12.apk b/docs/repo/x86/chamesle-base-20261121-r12.apk Binary files differ. diff --git a/docs/repo/x86/mag-0.3.apk b/docs/repo/x86/mag-0.3.apk Binary files differ. diff --git a/docs/repo/x86_64/APKINDEX.tar.gz b/docs/repo/x86_64/APKINDEX.tar.gz Binary files differ. diff --git a/docs/repo/x86_64/chamesle-base-20261121-r11.apk b/docs/repo/x86_64/chamesle-base-20261121-r11.apk Binary files differ. diff --git a/docs/repo/x86_64/chamesle-base-20261121-r12.apk b/docs/repo/x86_64/chamesle-base-20261121-r12.apk Binary files differ. diff --git a/docs/repo/x86_64/mag-0.3.apk b/docs/repo/x86_64/mag-0.3.apk Binary files differ. diff --git a/docs/repo/x86_64/rifle-0.2.apk b/docs/repo/x86_64/rifle-0.2.apk Binary files differ. diff --git a/docs/sitemap.xml b/docs/sitemap.xml @@ -12,6 +12,7 @@ <url><loc>https://chamesle.org/handbook-kernel.html</loc><lastmod>2026-11-18</lastmod></url> <url><loc>https://chamesle.org/handbook-iso.html</loc><lastmod>2026-11-18</lastmod></url> <url><loc>https://chamesle.org/handbook-maintaining.html</loc><lastmod>2026-11-18</lastmod></url> + <url><loc>https://chamesle.org/handbook-desktop.html</loc><lastmod>2026-11-18</lastmod></url> <url><loc>https://chamesle.org/handbook-files.html</loc><lastmod>2026-11-18</lastmod></url> <url><loc>https://chamesle.org/packages.html</loc><lastmod>2026-11-18</lastmod></url> <url><loc>https://chamesle.org/new.html</loc><lastmod>2026-11-18</lastmod></url>