COSMOS–NEXT GENERATION LIGHT MANAGED OS

Create your own operating system,
difficult?is easy
with the Cosmos and C #.

Want to work especial operating system with easy and mu-dah without too much programming skill is kind of even up to the assembly machine? Now with the Cos-mos, the operating system that is made with C #, you do not need to worry about the complexity in it. The withdrawal as a professional in the advanced operating system to create your own, you can do now with the Cosmos.

In this article, the author invites memanfatkan Cosmos un-tuk create their own operating system using the C # language. To VB.NET to be in-front of support.

Development Environment

Ok, to use the Cosmos case which is, among others:

Visual Studio 2008.

Virtual Emulators such as Virtual PC, Virtual Server, VMWare, Qemu, and so forth.

Download Cosmos user kit, you can download the http://www.codeplex.com/cosmos, the website, such as views, such as Figure 1.

After installing this, then the Visual Studio 2008 project templates have akan Cosmos as Figure 2.

Build Your Own Operating System

Can not wait to make their own operating system with C #? Simply, run Visual Studio 2008 and create a new project with the language C # project template and select CosmosBoot. After that, you will get a console project, such as Figure 3.

If there are open Program.cs file, there is method in the Init (), well there you customize your operating system. Try modifi put code in the Init method () as follows:

public static void Init ()

(

Cosmos.Kernel.Boot.Default ();

Console.WriteLine ( "Welcome to

Rajawali Operating System ");

Console.WriteLine ( "Version 1.0");

Console.WriteLine ("");

Console.Write (">>");

while (true);

)

Here the author would like mendemo Cosmos says hello. Do not build and make sure there is an error during the build.

Build & Test

How do I try? Many ways to try, most easily made into ISO booteable. Do, just run the application, later we will get a dialog box like Figure 4 Cosmos.

Select the ISO button and click Build. Then the system will be to compile and build. future console out and if we are finished click the Enter key. The result we will get the ISO file in the directory where the Cosmos User Kit is installed, such as Figure 5.

Virtual emulator for here the author using VMWare Workstation 6.0.5. Select a Guest Operating System and Other Typical such as Figure 6.

Disk allocation of 1 GB (maybe 512 MB) and 128 MB memory. Perform configuration on VMWare on CD / DVD ROM for mengarahkanke file Cosmos.iso which is the code we compile the results, such as Figure 7.

If all is complete, now we start a new run VMWare it, running the OS on the image such as Cosmos 8.

Easy one, eh?

Build Your Own Shell on Cosmos

If we are just now trying to create its own operating system through the Cosmos and simply say hello. Now we consider the shell command itself through Cosmos. Here the author mendemokan to create two shell command, namely:

Ver, the command to see the OS version.

Hostname, the command to see the name of the computer.

Exit, the shutdown command for the operating system Rajawali Cosmos.

On the project before we make modifi kasi Program.cs file in the Init method () as below:

public static void Init ()

(

Cosmos.Kernel.Boot.Default ();



Console.WriteLine ( "Welcome to the Operating System

Hawk ");

Console.WriteLine ( "Version 1.0");

Console.WriteLine ("");

Console.Write (">>");

isExit bool = false;

while (! isExit)

(

string x = Console.ReadLine ();

if (x == "")

Console.Write (">>");

else

(

if (x == "ver")

(

Console.WriteLine ( "Rajawali OS 1.0");

Console.Write (">>");

)

Else

if (x == "hostname")

(

Console.WriteLine ( "kurniawan");

Console.Write (">>");

)

else

if (x == "exit")

(

isExit = true;

Console.WriteLine ( "Shutdown ...");

)

)

)

Console.WriteLine ( "Done");

while (true);

)

Do compile and make sure there is no error. Run ISO file and create it. Then the virtual emulator eg author using VMWare workstation 6.0.5 and run the result as Figure 9.

Well, then you can innovate to create the shell itself or to make an application and have a game without having to leave the beloved C #!

Note

Not all sintak and the object. NET support at Cosmos, so make sure that compile and build code you do not have errors in it.

Sometimes sometimes we in the source code does not compile but have error when the compile error occurs through the Cosmos. Example we have the program code as follows:

byte [] data = System.Text.Encoding.ASCII.GetBytes ( "OS

Hawk ");

string base64 = Convert.ToBase64String (data);

Komentar

Postingan populer dari blog ini

High-Definition Multimedia Interface (HDMI)

Integrated Development Environment (IDE)

Java Fundamental