Operating System Collab

Who said that!? I’m just gonna install the OS and let it take over my dad’s computer.

Yeah I meant I was going to make the whole thing myself

2 Likes

Sounds like a virus, especially if it does not need to interact with hardware.

2 Likes

Well, if you want to make an OS from scratch, your going to need to first design a Kernel, which requires knowledge of the Assembly language. I’ve heard its learning curve is probably the hardest of all “practical” programming languages. (Brainf*** and others are probably harder to learn but, why?)

2 Likes

Yes make a very good kernel. The Linux kernel has a mere 8 milion+ lines of code. But, it’s like 30 years old. Start small and then grow with time.

3 Likes

then let it be a virus! It’s a program that apparently it is a virus that’s not meant to be malicious. I’m not starting a hardware company so yeah.

Well, the point of an OS is to act as a “gateway” from applications to hardware and vice-versa. If it doesn’t do that I wouldn’t really consider it an OS.

I also created a post on this exact thing a while back and realized how ridiculously hard it is to create an OS from scratch

1 Like

Note that you can’t have a CLI-based OS

1 Like

An OS should be a series of programs connected to each other and the kernel, running on hardware.

A computer virus by definition is malicious.

I feel like there is some sort of miscommunication going on here about hardware. As bobastley said, the OS is like a gateway between the applications and the hardware.

The chain of command goes:
power cord → computer hardware → OS (and in the OS everything goes back to the kernel) → applications

So, the apps go through the OS to the hardware for everything, including system resources (CPU, RAM, etc.), speakers, and internet. The OS will need drivers to support the hardware (Linux has most of them built in to the kernel) in order to even run. Then it needs apps that support the OS.

3 Likes

That is not true at all. Some Linux distros are only a command line and you can install a GUI only if you want to.

3 Likes

And in case someone points this out, there is also the BIOS, which is like a tiny OS built into the motherboard. It controls the hardware and which hard drive the computer boots from.

1 Like

I would not recommend building an OS from scratch, especially if you don’t have experience with low-level concepts like I didn’t when I first asked the same question.

The reason why there are so many Linux distros is that the nitty-gritty is already developed, and programmers can simply use Linux as their base, and develop stuff that they actually desire. The only reason I even considered making an OS is because I wanted more control, and I personally feel Linux already has that control, not to mention it’s backed-up by the entire open-source community.

4 Likes

This is a very good way of putting it.

Yes it does, and depending on the distro you get even more control. I enjoy the freedom of Linux.

2 Likes

check out @bobastley’s topic on building an OS

3 Likes

@CoderElijah How do I use LFS (Linux From Scratch)?

If you really want to consider making an OS from scratch. Let me clear a few things up. First, it’s not really possible to collaborate, at least in Replit. Testing and running your OS will be much more challenging than compiling a C++ program, and you will need to learn how to boot into it in the first place.

I’m gonna pass over some tips @mrhh69 suggested. Possibly start with a target machine like a Rasberry Pi or some other microcontroller, then move to an actual PC architecture (such as x86 or something) and design a simple Kernel. Try to watch some tutorials and google around to get a better understanding, before jumping in like I tried to do.

Whatever you do though, try to get an actual understanding of concepts rather than copying and pasting, which was kinda the reason I created that topic anyway.

4 Likes

Follow instructions on the internet. That is only for really smart people, not people like me.

4 Likes

Well, how do I set it up?

I have no clue how to build a Linux distro from scratch. This is an advanced process that most people here will fail miserably at. If you are motivated, google it.

2 Likes

It’s not really as simple as setting it up. While it’s probably easier than creating an OS from scratch, it still requires considerable effort to boot and such.

I’ll link the downloadable guide here.

1 Like

​​​​​​​​​​​​​​​​​​​​

Google Generative AI
1 Like