Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am look for an OS with no GUI and No CLI. (I think that what is called)

All I am after is a bear bone OS that I can write C programs to run on it. I wanted to know if it could be done and if so where should I look. I just wanted to make an OS but didn’t want to go through the pain of building it from scratch.

All I wanted is to run a program on boot and have the C standard library to help make it easier. Because then I can make my own menu and graphics from they. I wanted to do this because I want to learn more about the ins and outs of an OS and hopefully it will be a fun project. Plus is a cool thing to talk to your mates about lol.

What I have tried:

I have tried googling. So am asking the question because I don’t want to have to build it from scratch
Posted
Updated 11-Apr-19 20:03pm
Comments
k5054 11-Apr-19 23:34pm    
You need to have either a GUI or a CLI (Command Line Interface), otherwise, how will you interact with your OS?

There's various distributions that can be installed without a GUI, to which you can then add a C compiler. You'll also want to add a text editor to write your programs with.

If linux isn't to your liking, then maybe something like FreeDOS would work. You'll still need a C compiler and a text editor.
Mohibur Rashid 12-Apr-19 2:03am    
Code project has an article on writing OS.
Just take a look

1 solution

It's going to depend largely on exactly what hardware you are using: "basic OSes" exist, but they are understandably targeted at a specific hardware setup, and will not work for different hardware.

OSes have to interact directly with the hardware, so they need to know all about it. And the C compiler needs to be specifically for that OS, or it can't run on it!

What I'd suggest is that you get yourself a Raspberry Pi and have a look at FreeDOS: Running DOS on the Raspberry Pi | Opensource.com[^] - it runs in an emulator which "Pretends" to be a basic PC, but that gives you pretty much the bottom end of OSes together with the support you might need.
 
Share this answer
 
Comments
WOLF 2018 12-Apr-19 8:14am    
Yes, but is there a tutorial about setting up. Because I could extract the .iso file and then see what comes with it and edit the bootloader and I think they is a C Compiler for dos. I am just inquiring. Would that be possible

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900