Web Serving on My OS

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
apamment
Member
Member
Posts: 28
Joined: Thu Aug 20, 2015 9:02 pm
Contact:

Web Serving on My OS

Post by apamment »

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.
User avatar
max
Member
Member
Posts: 616
Joined: Mon Mar 05, 2012 11:23 am
Libera.chat IRC: maxdev
Location: Germany
Contact:

Re: Web Serving on My OS

Post by max »

AWESOME WORK! Like that a lot :P
User avatar
SpyderTL
Member
Member
Posts: 1074
Joined: Sun Sep 19, 2010 10:05 pm

Re: Web Serving on My OS

Post by SpyderTL »

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. :)

http://forum.osdev.org/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
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: Web Serving on My OS

Post by onlyonemac »

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
User avatar
Roman
Member
Member
Posts: 568
Joined: Thu Mar 27, 2014 3:57 am
Location: Moscow, Russia
Contact:

Re: Web Serving on My OS

Post by Roman »

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
User avatar
Kazinsal
Member
Member
Posts: 559
Joined: Wed Jul 13, 2011 7:38 pm
Libera.chat IRC: Kazinsal
Location: Vancouver
Contact:

Re: Web Serving on My OS

Post by Kazinsal »

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.
User avatar
SpyderTL
Member
Member
Posts: 1074
Joined: Sun Sep 19, 2010 10:05 pm

Re: Web Serving on My OS

Post by SpyderTL »

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
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: Web Serving on My OS

Post by onlyonemac »

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
User avatar
BASICFreak
Member
Member
Posts: 284
Joined: Fri Jan 16, 2009 8:34 pm
Location: Louisiana, USA

Re: Web Serving on My OS

Post by BASICFreak »

onlyonemac wrote:What is the text in the console?

Code: Select all

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.
apamment
Member
Member
Posts: 28
Joined: Thu Aug 20, 2015 9:02 pm
Contact:

Re: Web Serving on My OS

Post by apamment »

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

Re: Web Serving on My OS

Post by SpyderTL »

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
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: Web Serving on My OS

Post by onlyonemac »

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
User avatar
Muazzam
Member
Member
Posts: 543
Joined: Mon Jun 16, 2014 5:59 am
Location: Shahpur, Layyah, Pakistan

Re: Web Serving on My OS

Post by Muazzam »

Printing hello world, the hard way!
User avatar
SpyderTL
Member
Member
Posts: 1074
Joined: Sun Sep 19, 2010 10:05 pm

Re: Web Serving on My OS

Post by SpyderTL »

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
User avatar
Muazzam
Member
Member
Posts: 543
Joined: Mon Jun 16, 2014 5:59 am
Location: Shahpur, Layyah, Pakistan

Re: Web Serving on My OS

Post by Muazzam »

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.
Post Reply