今日已更新 88 条资讯 | 累计 40862 条内容
关于我们

How I built a Linux Distribution from scratch for my sister

Achinthya J 2026年09月08日 23:47 0 次阅读 来源:Dev.to

Before you read this I want to express that this is my first blog ever and I have no previous experience of writing blogs How it was decided I wanted to make something truly fascinating as a gift for my sister. She inspired me to start coding, and so I decided that I will build an Operating System for her. This was going to be hard so I decided that it was also going to be something I would work on after gifting it. And then began Project Leviathan What I chose I first took a look at the available options, I could try archiso which was nice to try but for me it wasn't something I would want to consider as mine. On the other end, trying to build a kernel, initramfs, and other core components of an OS all by myself was beyond what I could build in a week. So it was decided, using the linux kernel, but building the tty, drivers, graphics, and others by myself basically a Linux Distribution First steps First I began researching on what I really needed to build a Linux Distribution. For most of the research of it I used chatgpt. And even more importantly, I had to learn C. I settled with the basics, pointers, and other stuff. And then it began, I started with a simple directory and grub configurations along with MY own linux-6.8.0-138-generic kernel, so that grub would find and detect it. The TTY(TeleTypewriter) Since pretty much every part of it was still from my ubuntu installation, the first TTY was just a Busybox shell provided by my installation. But of course I had to change it. I started with a simple virtual TTY with just echo and cat, according to me quite a important feature. After quite a bit I got it working, and therefore had my first ever TTY. It still worked on busybox but the TTY only worked with my commands. Soon enough I removed Busybox entirely and at added other essential commands such as ls, rm, copy, mkdir, and pwd. The first graphics stack Since most of my TTY was done, I figured it was a good time to get started on the graphics stack. First it sta

本文内容来源于互联网,版权归原作者所有
查看原文