Page 1 of 2

Web Serving on My OS

Posted: Wed Jan 27, 2016 1:30 am
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.

Re: Web Serving on My OS

Posted: Wed Jan 27, 2016 3:17 am
by max
AWESOME WORK! Like that a lot :P

Re: Web Serving on My OS

Posted: Wed Jan 27, 2016 8:33 am
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

Re: Web Serving on My OS

Posted: Wed Jan 27, 2016 12:12 pm
by onlyonemac
Would anyone care to describe the picture? (If it's worthwhile...)

Re: Web Serving on My OS

Posted: Wed Jan 27, 2016 1:01 pm
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.

Re: Web Serving on My OS

Posted: Wed Jan 27, 2016 1:10 pm
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.

Re: Web Serving on My OS

Posted: Wed Jan 27, 2016 2:05 pm
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.

Re: Web Serving on My OS

Posted: Wed Jan 27, 2016 3:29 pm
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?

Re: Web Serving on My OS

Posted: Wed Jan 27, 2016 4:13 pm
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] /

Re: Web Serving on My OS

Posted: Wed Jan 27, 2016 4:29 pm
by apamment
Sorry, I should have described my image in the first post, didn't even think about it.

Re: Web Serving on My OS

Posted: Wed Jan 27, 2016 7:46 pm
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? :)

Re: Web Serving on My OS

Posted: Thu Jan 28, 2016 2:43 am
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!

Re: Web Serving on My OS

Posted: Thu Jan 28, 2016 5:16 am
by Muazzam
Printing hello world, the hard way!

Re: Web Serving on My OS

Posted: Thu Jan 28, 2016 6:49 am
by SpyderTL
Muazzam wrote:Printing hello world, the hard way!
I think you just summed up OS Development. :)

Re: Web Serving on My OS

Posted: Thu Jan 28, 2016 7:14 am
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.