OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 3:05 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Web Serving on My OS
PostPosted: Wed Jan 27, 2016 1:30 am 
Offline
Member
Member

Joined: Thu Aug 20, 2015 9:02 pm
Posts: 28
I just wanted to share this, as it's exciting to me hehe.

When I started OS development I wanted to have something that could host a web page, and be self hosting.

Well although the TCP/IP stack is a little funky and sends packets in the wrong order (this is proving to be a tough nut to crack) it works well enough to send a web page.

Image

Now I just need an editor and to port GCC, binutils and NASM.


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Wed Jan 27, 2016 3:17 am 
Offline
Member
Member
User avatar

Joined: Mon Mar 05, 2012 11:23 am
Posts: 616
Location: Germany
AWESOME WORK! Like that a lot :P

_________________
Ghost OS - GitHub


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Wed Jan 27, 2016 8:33 am 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
Congrats! I have a screenshot of my first "Hello, World!" web page response from my OS around here somewhere. I know the feeling.

You should post this over on the "AHHH YEAH!!" thread. :)

viewtopic.php?f=11&t=27692

_________________
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Wed Jan 27, 2016 12:12 pm 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
Would anyone care to describe the picture? (If it's worthwhile...)

_________________
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Wed Jan 27, 2016 1:01 pm 
Offline
Member
Member
User avatar

Joined: Thu Mar 27, 2014 3:57 am
Posts: 568
Location: Moscow, Russia
onlyonemac wrote:
Would anyone care to describe the picture? (If it's worthwhile...)
As I understand, the guest system (Quinn) runs a web server, the host system (GNU/Linux with GNOME?) connects to it.

_________________
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Wed Jan 27, 2016 1:10 pm 
Offline
Member
Member
User avatar

Joined: Wed Jul 13, 2011 7:38 pm
Posts: 558
onlyonemac wrote:
Would anyone care to describe the picture? (If it's worthwhile...)


There is a Firefox window open displaying plain text content served from an HTTP server on a LAN. The content is "It works! Yay!". The OP's operating system is running in a VirtualBox instance in the foreground, acting as the web server. The operating system's console is displaying a log from the boot sequence as well as a log of served HTTP requests. In order, they are a 200 for a GET request to the root of the website, a 404 for a GET request to the directory "bob", and another 200 for a GET request to the root. The OS has a graphical interface with monospace and proportional font rendering.


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Wed Jan 27, 2016 2:05 pm 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
onlyonemac wrote:
Would anyone care to describe the picture? (If it's worthwhile...)

This took me a second to figure out what you were asking, and why you were asking it. :)

Inside VirtualBox, he has a graphical desktop with a wallpaper showing what appear to be two trains inside of some sort of building or factory, in grayscale, with two applications running. In the bottom right corner is a "Launcher" application with three buttons: Clock, File Manager and Memory Info.

The other application is a console window, with what looks like the default VGA font, but has some color text, and a very large "Q U I N N" title in some other font, so the console application appears to support switching fonts from one character to the next. He also has a large "cartoon"-esque mouse pointer.

_________________
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Wed Jan 27, 2016 3:29 pm 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
Funny how everyone describes something different, and between all of them I can put together an idea of what the picture looks like...

What is the text in the console?

_________________
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Wed Jan 27, 2016 4:13 pm 
Offline
Member
Member
User avatar

Joined: Fri Jan 16, 2009 8:34 pm
Posts: 284
Location: Louisiana, USA
onlyonemac wrote:
What is the text in the console?


Code:
Found PCI devices
Found ATA Drive 0GB - VBOX HARDDISK
Found ATAPI Drive 0GB - VBOX CD-ROM
FAT FS: Fat16
VFS: Registered disk0
Found 1 IDE controllers::
ETHER: Found i825xx Ethernet Controller MAC 8:0:27:90:fd:ab IRQ 10
Found ramdisk @ 0x2c7000 size 209(BLOCKED BY CURSUR)
FAT FS: Fat12
VFS: Registered ramdisk
VFS: Registered console
QUINN INIT
Interface UP!
Setting wallpaper...
QUINN User Shell
NoDevice$ disk0:
disk0:/$ wwwserver 192.168.56.2
[17:18][192.168.56.1][200] /
[17:18][192.168.56.1][404] /bob/
[17:19][192.168.56.1][200] /

_________________
BOS Source Thanks to GitHub
BOS Expanded Commentary
Both under active development!
Sortie wrote:
  • Don't play the role of an operating systems developer, be one.
  • Be truly afraid of undefined [behavior].
  • Your operating system should be itself, not fight what it is.


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Wed Jan 27, 2016 4:29 pm 
Offline
Member
Member

Joined: Thu Aug 20, 2015 9:02 pm
Posts: 28
Sorry, I should have described my image in the first post, didn't even think about it.


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Wed Jan 27, 2016 7:46 pm 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
apamment wrote:
Sorry, I should have described my image in the first post, didn't even think about it.

onlyonemac just happens to be (very nearly) blind, so it's really just for him. :)

Edit: I just realized that the "What does your OS look like" thread would be completely useless to onlyonemac. Anyone want to go through and "describe" every screenshot in that thread? :)

_________________
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Thu Jan 28, 2016 2:43 am 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
Oh right, I get it... So he's running an HTTP server on is OS in a VirtualBox instance with IP address 192.168.56.2, and accessing served pages from a web browser on the host machine, IP address 192.168.56.1? Sounds cool!

_________________
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Thu Jan 28, 2016 5:16 am 
Offline
Member
Member
User avatar

Joined: Mon Jun 16, 2014 5:59 am
Posts: 543
Location: Shahpur, Layyah, Pakistan
Printing hello world, the hard way!


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Thu Jan 28, 2016 6:49 am 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
Muazzam wrote:
Printing hello world, the hard way!

I think you just summed up OS Development. :)

_________________
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
 Post subject: Re: Web Serving on My OS
PostPosted: Thu Jan 28, 2016 7:14 am 
Offline
Member
Member
User avatar

Joined: Mon Jun 16, 2014 5:59 am
Posts: 543
Location: Shahpur, Layyah, Pakistan
SpyderTL wrote:
Muazzam wrote:
Printing hello world, the hard way!

I think you just summed up OS Development. :)

At least for me, network programming is harder than OS development. It (including a server and a browser) is a high-priority for my OS nonetheless.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 110 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group