source.html (4529B)
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>Chamesle Source - Chamesle</title> 7 <meta name="description" content="Chamesle Source: a Linux kernel that starts straight into vi, and nothing else."> 8 <link rel="canonical" href="https://chamesle.org/source.html"> 9 <meta property="og:type" content="website"> 10 <meta property="og:site_name" content="Chamesle"> 11 <meta property="og:title" content="Chamesle Source - Chamesle"> 12 <meta property="og:description" content="Chamesle Source: a Linux kernel that starts straight into vi, and nothing else."> 13 <meta property="og:url" content="https://chamesle.org/source.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 <a href="docs.html">Handbook</a> | 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 <b>Source</b> | 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 <h2>Chamesle Source</h2> 41 <p><i>A side project by the same person who makes Chamesle.</i></p> 42 43 <p>The old Chamesle tried to do everything for you. Chamesle Source does nothing for you. It's a kernel and an 44 editor, and everything else you write yourself.</p> 45 46 <h2>What you get</h2> 47 <ul> 48 <li><b>A Linux kernel.</b></li> 49 <li><b>vi, as the first and only program.</b> Not a vi clone: Bill Joy's own ex 1.1 from 1977, the first 50 vi there was, brought over to today's C. It runs as PID 1, where an init system would normally be.</li> 51 <li><b>A C compiler behind it.</b> tcc is built into vi. Save with <code>wq</code> and what you wrote is 52 compiled and run. If it doesn't compile, you stay in vi and see the errors.</li> 53 <li><b>A libc in one file.</b> <code>c.h</code>, about 800 lines, our own. It's all the C library there is.</li> 54 </ul> 55 <p>That's it. There's no init, no shell, no <code>ls</code>, no <code>cp</code>, no network tools.</p> 56 57 <h2>What you make</h2> 58 <p>The first thing you write is a shell, because there isn't one. Then the commands you're used to: listing 59 files, copying them, mounting a disk. Then a way to install the system onto that disk, so it survives a restart. 60 Then <code>wget</code>, so the computer can download something, and <code>tar</code>, so it can unpack what it 61 downloaded. With those two you can fetch a real compiler, gcc, and from there build bigger things.</p> 62 <p>Every program on the system is one you typed in, in a 1977 editor, on top of a libc that fits on a few pages.</p> 63 64 <h2>fbttywm</h2> 65 <p>ttywm was the window manager of the old Chamesle's TTY flavor: the console, 66 with floating windows on top. fbttywm is the same idea without Xorg underneath. It draws straight to the screen 67 and reads the keyboard and mouse itself, and every window is one of its own terminals.</p> 68 <p>It ships with Chamesle Source, but only as source code. To get windows you need gcc, so first you need 69 <code>wget</code> and <code>tar</code>, and before those a shell and the basic commands. You have to earn it.</p> 70 71 <h2>Why</h2> 72 <p>A normal distro hides work. Chamesle Source hides none of it. Knowing every layer from the kernel up helps when you build the real system.</p> 73 <p>It also answers a question people sometimes ask about small distros: is this just someone else's system with a 74 new wallpaper? Chamesle Source has nothing of anyone else's in it except the kernel, the compiler and a 1977 75 editor.</p> 76 77 <h2>Try it</h2> 78 <p>The code is on <a href="https://github.com/tortr-rs/chamesle-source">GitHub</a>. It runs in QEMU with one 79 script.</p> 80 81 <h2>Should I use it?</h2> 82 <p>No. Nobody should use it for anything real. It's a side project for fun and for learning. If you want a 83 computer that works, <a href="about.html">read about Chamesle</a>.</p> 84 </main> 85 86 <hr> 87 <div id="foot"> 88 Something wrong on this page? Tell us on the <a href="board.html">board</a>.<br> 89 Chamesle installs with <code>chamesle-install</code>, or by hand from the <a href="docs.html">handbook</a>.<br> 90 <a href="https://ko-fi.com/L6N725GI1V">Ko-fi</a><br> 91 <a href="#" id="edit-link">Edit text</a><br> 92 $Date: 2026-11-14 $ 93 </div> 94 95 </div> 96 97 <script src="edit.js"></script> 98 </body> 99 </html>