Instructables

Create your own operating system!

Picture of Create your own operating system!

Nearly every true computer geek has, at some point, wanted to write an operating system. However, writing a custom kernel and other bits takes years of study, experience and patience. If you intend to keep your sanity, then the best course of action is to use someone else's code.

Cosmos*, or C# open source managed operating system, is a pre-made kernel that provides you with "OS legos" that allow you to quickly and easily create your own operating system.

You will need:

@ Microsoft Visual C# 2008.

@ A knowledge of the C# programming language (don't worry if you don't have this, it's a pretty easy language).

@ The Cosmos user kit (milestone 4).
 
Remove these adsRemove these ads by Signing Up

Step 1: Getting the software

Picture of Getting the software
Let's do a run down of the necessary software mentioned earlier.

Microsoft Visual C# can be downloaded free if you get the express edition. You can download it at http://www.microsoft.com/express/downloads/ You can also download the entire Visual Studio including visual basic and visual c++ as an ISO image (these can be tricky, see below for details on reading ISO images). Even on a blazing fast computer, downloading visual studio will take two hours at most, though.

WARNING: make sure that you get the 2008 edition and not 2010. This may seem backwards, but the Cosmos user kit has yet to support 2010.

The cosmos user kit is the platform that we will write our OS in. It's an all-in-one micro-kernel operating system that is written in 100% C#. You can download it at http://cosmos.codeplex.com/releases/view/35194



A note about ISO images:

If you opted to download the entire visual studio, then you're going to need to read the ISO image file. An ISO image is a map of a virtual DVD, using the same encoding as any other disk. You have two option: Use a program like nero or roxio to burn the image to a CD-ROM then insert that disk into your computer and download it (The latest Windows XP comes with Roxio, and Windows 7 comes with Nero pre-installed. Other than that, you will almost certainly find something on your computer that will burn a CD. Explore a bit), or you can use Daemon tools lite edition to read the file directly.


Daemon tools lite is free and can be found at http://www.daemon-tools.cc/eng/downloads

A: After downloading it, running the setup program, and re-booting, fire up Daemon tools and click Add File (the picture of the CD with a plus sign).

B: Find the image, and open it.

C: Now, select the file and click Mount. A popup (see pic')  will show you some options, click "run setup.hta". This will install Visual Studio. Alternatively, you can find setup.hta in the virtual drive that was created, located in My Computer under Devices with removable storage.
hassaanahmad8 months ago
Friends I want to make a team using (Team Foundation Server) in Microsoft
Visual Studio 2010 Professional.
I am looking for a team
We should work together and make our new productions..
i would like to be part of the team.
im a great inventor and i know how to reach the people if we need to.
Introduce yourself!
And then i will tell you what to do...

Hi ,This is vinupriya.i love programming and i am intrested in creating a os.

I am really intrested in joining your team.

My email id:vpriyasmiles@gmail.com

Asalamualikum, My Name is Syed Hassaan Abdullah.Iam from India. Iam a class 12 student and I want to work with you...

Okay but before i tell you what to do..
Let,s introduce yourself so we will come in contact with each other..
Sorry, But it is necessary...

Hi! Im Brady Phillips. I am from America and currently a sophomore in high school who is strongly wanting to learn programming. I have a good knowledge of programming and would like to expand my nowledge and get some more experience on a team under my belt. It would be great to have other people who can help me achieve this. I am strongly interested in joining your team. Contact me: brady414@live.com Thanks!

Email: kwabynalilwayne@gmail.com

join.jpg

Always with you bro

Me too i wanted to develop an operating system but i also need a team

So if this is our chance .. Lets do this

Email: kwabynalilwayne@gmail.com

My Life

Web--->

PHP,CSS,HTML,ASP,JAVASCRIPT,SQL

Programming-->VB.NET,C++,C#,PYTHON,RUBY,

Please I don't come here often so please email

Thank you

join.jpg

hassaanagmad can i get your information?
before i will give mine?

i also needing a help.

i have a BiG Plan and i also looking for a good team.

contact me @ wyne009@gmail.com

I am a good programmer. Contact me gvkarthik93@gmail.com

I will let you know my works and experiences. I am interested to join your team

Sir, I would also like to be part of that team.  But I only have visual basic 2010 express  and visual studio 2012 express. If you could please contact me at     joshbrozich@yahoo.com, that would be nice. Thank you.
lilses jonbrozich6 months ago
I am a extreme programmer. I hard code 24/7. No school. Would be cool if we can share some tips, work on something awesome;
But before giving you the detail about what to do ....
Introduce yourself because we have to know each other...
I am going to sending you a pending request on yahoo.
So that we can come in contact with each others..
Hi,I think that's a good idea hassaanahmad,lets work together
Okay!
But Introduce yourself!
And then i will tell you, what to do .

Hi, i am chandrahas reddy, interested in joining you team. I am b.tech final year student. contact me mchandrahasreddy@gmail.com

vsharma279 months ago
is building an os a easy task ...or it takes a lot of time
eyesee1 year ago
Very much
eyesee1 year ago
Very much
Do you know anything about using a USART mouse here?
IMG_0876[1].JPG
i am a very very very very polite girl
and i don't want to talk to you-
sci4me2 years ago
Alrighty, so I am trying to use Visual C# 2010 Express with the newest version of Cosmos. So it works, but when I build it, I get an error. And that's with the default code! I did add refrences to Cosmos.Hardware and all that and it still doesn't work! The error is about Cosmos.Hardware.Hardware... cant find it? Do you know of any way to fix this? If I use MS4 is 2008 Express, it works like a charm. But I want to use the newest version! Any ideas? Also, thanks for a great tutorial! It helped a lot! :)
sci4me sci4me1 year ago
no one is gonna help me huh?? hmmm...
DouglasG11 year ago
Can I put this on a custom computer that has no operating system?
Man when i install cosmosuserkit.ms4 in the end of the installation it says:

"Unable to execute file: C:\Documents and Settings\ bla bla bla ....\Cosmos.vsi

ShellExecuteEx faild; code 1155.
No application is associated with the specified file for this operation."

After i click OK it says Setup has finished installing cosmos user kit bla bla bla...
and i cant find the cosmos template in C#.

Could anyone please help me?
hey dungeon runner or anyone else i cant enter the link to cosmos dose anyone have the file???
can you do it in notepad or notepad++ ? you can write BASIC in there.
dungeon runner (author)  imBobertRobert3 years ago
I admit I still don't know much about how Cosmos operates, and I think you should look at the cosmos website at least, and there are a bunch of youtube tutorials on using Cosmos with languages like VisualBASIC, so try learning some things with those (If you can figure out how to use it with VB, I'm sure the same principal applies with other languages). I'm pretty sure BASIC isn't based on .NET though, so maybe think about picking up C#.

On the other hand, microsoft Small Basic is pretty much the same and it's .NET. Good luck finding out how to make it work with Cosmos though.

Happy coding.

dungeon runner (author) 3 years ago
You misunderstand the target audience here. This is for: @ People who want to write an OS but don't have the skill level to muck about with kernels/assembly. It is not for: @ People who can and are willing to get into the nitty-gritty of OS development. @ People who want to simply make a quick "OS" to have it as a practical tool (for that, you can try SuseStudio). All in all, Cosmos users don't make OSs for their practicality. They make them because it's fun and easy. (Also, Cosmos is a regular OS with a micro-kernel, bootloader, etc. It most definitely is a "real" OS). -Y
This is interesting, but I've heard from many in the business that C# isn't a good language to use. Do you know of some good example codes in C/C++?
dungeon runner (author)  Guard130073 years ago
The thing I forgot to mention is that you can literally boot Cosmos from any language based on .NET framework. So C++, Visual Basic, even Small Basic can all be used to write an OS.

-Y
account3r23 years ago
There is periods after the links. you have to get rid of them
PS1183 years ago
Why not just use Linux? It's a real OS, you can see the source, and you can acutally run stuff on it! Oh yeah, and if it's the ability to play with it inside Windows, that's attractive, google CoLinux.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!