aienos.com
Source of www.aienos.com, served from my own hardware
Brought by drakestapleton
aienos.com / public / quickstart / index.html
| 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>Quickstart: from a blank computer to your first answer ยท AienOS</title> |
| 7 | <meta name="description" content="Copy and paste steps that take a fresh Linux computer to its first answer from an Omega compiler you grow yourself from 408 hand-written bytes. What you should see after each step, and the fix for each common mistake."> |
| 8 | <link rel="canonical" href="https://www.aienos.com/quickstart/"> |
| 9 | <link rel="icon" type="image/svg+xml" href="/favicon.svg"> |
| 10 | </head> |
| 11 | <body> |
| 12 | <main> |
| 13 | <section class="page-intro"> |
| 14 | <p class="eyebrow">Quickstart</p> |
| 15 | <h1>From a blank computer to your first answer</h1> |
| 16 | <p class="lede">Five steps, each one a box you copy and paste. At the end, a compiler you grew yourself from 408 bytes I wrote by hand answers a question on your own computer. On a bare system it needs up to about 440 MB of disk, most of it for the tools in step 1; the code itself is under 70 MB.</p> |
| 17 | <p><strong>Not open yet:</strong> the download in step 2 is moving to Interplane, my own forge, and there is no public download today. Steps 3 to 5 work once you have the code. My agents ran every step below exactly as written, as a brand new user on fresh Ubuntu 24.04 machines with both kinds of processor, before the download moved. If what you see does not match, look in <a href="#if-something-goes-wrong">If something goes wrong</a> at the bottom.</p> |
| 18 | </section> |
| 19 | <div class="prose"> |
| 20 | |
| 21 | <h2 id="before-you-start">Before you start</h2> |
| 22 | <ul> |
| 23 | <li><strong>A Linux computer</strong> with Ubuntu (these steps were tested on Ubuntu 24.04), on either kind of processor: Intel or AMD (most laptops and desktops), or ARM (a Raspberry Pi 5, a DGX Spark). On a Mac or a Windows PC, see <a href="#mac-or-windows">Mac or Windows</a>.</li> |
| 24 | <li><strong>A terminal.</strong> That is the window where you type commands. On Ubuntu, press Ctrl+Alt+T to open one.</li> |
| 25 | <li><strong>An internet connection.</strong></li> |
| 26 | </ul> |
| 27 | <p>How each step works: copy everything in the grey box, paste it into the terminal (Ctrl+Shift+V), and press Enter. Then compare with the box under it. Lots of other lines may scroll past first; what matters is that the lines in the second box show up.</p> |
| 28 | |
| 29 | <h2 id="step-1">Step 1. Install three tools</h2> |
| 30 | <p>This installs git, which downloads code; curl, which fetches files from the web; and qemu, which lets a regular PC run the ARM machine code the first steps are written in. It asks for your password, because installing programs needs it.</p> |
| 31 | <pre class="qs-cmd" data-step="1"><code>sudo apt-get update && sudo apt-get install -y git curl qemu-user-static && git --version</code></pre> |
| 32 | <p>You should see, as the last line (your numbers may differ):</p> |
| 33 | <pre class="qs-out" data-expect="1"><samp>git version 2</samp></pre> |
| 34 | |
| 35 | <h2 id="step-2">Step 2. Download the code</h2> |
| 36 | <p>This step makes one folder, <code>si</code>, short for Sovereign Intelligence, with the code in it. The download is moving to <a href="https://interplane.io/">Interplane</a>, my own forge, and is not open yet. When it opens, the command goes here. Until then, <a href="/contact/">tell me</a> if you want a copy.</p> |
| 37 | |
| 38 | <h2 id="step-3">Step 3. Grow the compiler</h2> |
| 39 | <p>A compiler turns a program you can read into machine code the computer runs. This step grows one, Omega's compiler, from 408 bytes I typed by hand, and checks every stage against the expected fingerprints. On an ARM computer it takes a few seconds. On a regular PC it takes longer, because qemu is translating every instruction.</p> |
| 40 | <pre class="qs-cmd" data-step="3"><code>cd ~/si && sh build.sh</code></pre> |
| 41 | <p>Lines starting with PASS and NOTE scroll past. A NOTE that says NOT_RUN only means that check needs hardware this computer does not have, such as the other kind of processor or a graphics chip, and that is fine. The very last line should be:</p> |
| 42 | <pre class="qs-out" data-expect="3"><samp>RC=0</samp></pre> |
| 43 | |
| 44 | <h2 id="step-4">Step 4. Ask your first question</h2> |
| 45 | <p>This writes a tiny program in Omega that works out 6 times 7, turns it into machine code with the compiler you just grew, and runs it. Copy the whole box, all 21 lines, in one go.</p> |
| 46 | <pre class="qs-cmd" data-step="4"><code>cd ~/si && cat > answer.om <<'EOF' |
| 47 | note answer: work out 6 times 7 and print the result |
| 48 | text msg "6 times 7 is " |
| 49 | global buf uchar 24 |
| 50 | fn main to int |
| 51 | k = write 1 msg 0 len msg |
| 52 | a = ulong 6 |
| 53 | n = mul a 7 |
| 54 | i = ulong 23 |
| 55 | put buf i uchar 10 |
| 56 | while gt n 0 bound 20 |
| 57 | i = sub i 1 |
| 58 | put buf i uchar add 48 rem n 10 |
| 59 | n = div n 10 |
| 60 | end |
| 61 | k = write 1 buf i sub 24 i |
| 62 | ret 0 |
| 63 | end |
| 64 | EOF |
| 65 | if [ "$(uname -m)" = x86_64 ]; then { echo 'target x86linux'; cat answer.om; } | out/omc-x86 > answer; else out/omc < answer.om > answer; fi |
| 66 | chmod +x answer && ./answer</code></pre> |
| 67 | <p>You should see:</p> |
| 68 | <pre class="qs-out" data-expect="4"><samp>6 times 7 is 42</samp></pre> |
| 69 | <p>That is your first answer. No program from anyone else did the work: the compiler that made it came from those 408 bytes in step 3.</p> |
| 70 | |
| 71 | <h2 id="step-5">Step 5. Change the question</h2> |
| 72 | <p>To see that it really works the answer out, this swaps the 7 for an 8, builds the program again and runs it.</p> |
| 73 | <pre class="qs-cmd" data-step="5"><code>cd ~/si && sed -i 's/7/8/' answer.om |
| 74 | if [ "$(uname -m)" = x86_64 ]; then { echo 'target x86linux'; cat answer.om; } | out/omc-x86 > answer; else out/omc < answer.om > answer; fi |
| 75 | ./answer</code></pre> |
| 76 | <p>You should see:</p> |
| 77 | <pre class="qs-out" data-expect="5"><samp>6 times 8 is 48</samp></pre> |
| 78 | |
| 79 | <h2 id="more">Want more? My other projects</h2> |
| 80 | <p>The installer for my other projects, at <code>www.aienos.com/si</code>, is moving to Interplane with the rest of the code. It does not download anything yet. <a href="/switched-off/">Get the code</a> lists every public project by name.</p> |
| 81 | |
| 82 | <h2 id="if-something-goes-wrong">If something goes wrong</h2> |
| 83 | <p>My agents made each of these mistakes on purpose on a fresh machine, saw the message below, and checked the fix there.</p> |
| 84 | |
| 85 | <h3 id="no-sudo"><code data-symptom="no-sudo">sudo: command not found</code></h3> |
| 86 | <p>You are the administrator already (the line you type on ends in <code>#</code>), usually inside a container. Install sudo once, then go back to step 1:</p> |
| 87 | <pre class="qs-fix" data-fix="no-sudo"><code>apt-get update && apt-get install -y sudo</code></pre> |
| 88 | |
| 89 | <h3 id="no-qemu"><code data-symptom="no-qemu">x86-64 host without qemu-aarch64</code></h3> |
| 90 | <p>Step 3 stopped with this on a regular PC because qemu is missing, often because step 1 was cut short. Install it, then run step 3 again:</p> |
| 91 | <pre class="qs-fix" data-fix="no-qemu"><code>sudo apt-get install -y qemu-user-static</code></pre> |
| 92 | |
| 93 | <h3 id="no-folder"><code data-symptom="no-folder">si: No such file or directory</code></h3> |
| 94 | <p>Step 3 could not find the <code>si</code> folder, because step 2 did not finish or was skipped. Step 2 is not open yet; see <a href="#step-2">step 2</a>.</p> |
| 95 | |
| 96 | <h3 id="mac-or-windows">Mac or Windows</h3> |
| 97 | <p>These steps need Linux. The simplest way on a Mac or a Windows PC is a container, a small Linux computer that runs inside yours. Install <a href="https://docs.docker.com/get-started/get-docker/">Docker Desktop</a>, open a terminal (on Windows, PowerShell), and start one:</p> |
| 98 | <pre class="qs-fix" data-fix="container"><code>docker run -it --rm ubuntu:24.04</code></pre> |
| 99 | <p>Inside it you are the administrator, so first follow the <a href="#no-sudo">sudo fix</a>, then steps 1 to 5 work as written. Everything in the container is gone when you type <code>exit</code>.</p> |
| 100 | |
| 101 | <h2 id="what-you-did">What you just did</h2> |
| 102 | <p>Every program on your computer was made by a compiler, and that compiler was made by an older one, going back decades. You had to trust all of them. Here the chain is short and you can read it: a 408-byte program written by hand, four small stages, then Omega's compiler, checked at every stage against fingerprints, and finally your own program. How the seed works, stage by stage, is in <code>README.md</code> in your <code>si</code> folder.</p> |
| 103 | <p>Stuck on something not listed here? Tell me: <a href="mailto:drake@aienos.com">drake@aienos.com</a> or <a href="https://x.com/drakestapleton">X @drakestapleton</a>.</p> |
| 104 | </div> |
| 105 | </main> |
| 106 | </body> |
| 107 | </html> |