Jump to content




Firebox now with a DNS server for world hosted sites [Web Browser]

networking

29 replies to this topic

#1 Left4Cake

  • Members
  • 272 posts
  • LocationEarth

Posted 21 September 2012 - 01:17 AM

Firebox beta 1.0.1
with 40 sites on the my web server.

Adv computer not needed to use but some downloads may require it.

Credits
Zacpier - appstore on "google.com/play"
ComputerCraftfan11 - Rednet on "rednet.org"
Zaggy1024 - Sidescroller Minecraft WIP on "minecraft.net"
MysticT- Gchat on "google.com/talk"
GravityScore - Lightshot on "fraps.com"
GravityScore - Thunderbird on "gmail.com"
GravityScore - ccleverbot on "cleverbot.com"
PossieTV- Redbook on "redbook.com"
nitrogenfingers - Npaintpro on "getpaint.net"
*If/When this list get too long I will be placed in a spoiler.

I saw a few other and wanted to take my own crack at it.
This program download programs as temp and runs them, as well as host web sites that can be accessed directly, thou relays, or thou a Domain Name Server, as well as download pages from http. (witch can take advantage of my Html Reader for a sort of half-baked real browser)

My goal is to try to get as many real site sort of copied into a computercraft like fashion.


Posted Image

How to use Web server

Client either see the Client DNS instruction for connect directly with 192.168.1.id

Server:
Spoiler


How to use DNS
Client: Simply set the dns variable to the id of the DNS server or a Server relay connected to the DNS server
Now connect to it using rdnt:// before the address.

DNS Sever : see spoiler
Spoiler

V 1.0.1

- Added "Firebox = shell.getRunningProgram()" so that "rdnt://" could use shell.run(Firebox, "rdnt://www.exapmleurl.com")

V 1.0.0

- Added DNS Functionally
- Connected to a url on the DNS server works with "rdnt://"

Full client

Now on pastbin:
http://pastebin.com/4LXcjgDb
-or-
pastebin get 4LXcjgDb firebox

Note: As with the real internet use caution when visiting web sites.

Spoiler

Spoiler


You can change root to your own web server if you would rather host your own "internet"

How you can help


A "website"
Until I can pay for my own web server you will have to send stuff to me. It can be a plain lua script or you can also use php. If you are using php you can install xammp to test it on your own computer. (set root in firebox to "http://localhost/<root directory of files>") Just send me the code in a pm, and I will try to respond as soon as I am able. (repeat xammp dose not upload anything its a web server so you can test any php you want to use on your own.)


an rss feed
Anyone can just make a request for me to include a site rss feed. it is not that hard.

images
Need both ascii and .nfp images for "google images" Ascii images need to be able to fit on the screen and have to have a non space charater starting each line. .nfp images don't need to be within the screens size, but if its more then 49x19 only people with npaintpro can see the whole thing.

A "steam game"
I have a demake of steam. If you would like to send any of your lua games to be downloadable from it that would be awesome. However if the game has multiple file then you will need to make some sort of down-loader and send me that instead.

A "YouTube video"
ok, this is the largest stretch of a website clone out of all of them. Basically there is an ASCII version of YouTube. My website converts 50x19 .png images to ASCII art and then will send back on frame at a time. There can also be a text file containing some dioluge that gets printed on the bottom. If you want to send me one of these send a .zip or .rar file named what you want the "video" to be called and it must contain only .png images and .txt files. The images must be 50x19 (or maybe smaller) and the name of the files must be "1.png 2.png 3.png 3.txt 4.png 5.png..." In the example only 3.txt had a subtitle in it. "Videos" longer then about 100 frames tend to crash a bit and "videos" over about 300 frame can crash the system. So yeah the whole thing is clunky but what did you expect from ComputerCraft YouTube. :-P


A "Netflix video"

See ascii video player for detailes. Netflix just download the "videos" to be played by it.

and if you do go to http://www.lozengia....ecraft/firebox/ just keep in mind that you are only looking at the lua and not the php, also it look better if you "view scorce" in what ever browser you are using.

Update [outdated] (Sep/23/2012): You can download the site that are on my websever in there raw php form here. However it dose not include "lozengia.com" because that site call for function off my site that arn't the best written and are to much of a hassle for me to include. (plus would further require all sorts of unrelated stuff to get it to work).


#2 tommyroyall

  • Members
  • 136 posts

Posted 22 September 2012 - 07:44 PM

Perhaps I could make some APIs for running sites of which you have in this? :P/>
Is there any way that I could upload files to this for testing?

#3 Left4Cake

  • Members
  • 272 posts
  • LocationEarth

Posted 22 September 2012 - 10:41 PM

I don't own the web server. So I can't just give people straight up accesses. (I can personalty act as a middle man of sort for it but that the closest it get until I can pay for my own.)

However if you only want to test you could install xammp on your own machine and set the root variable in the program to htp://localhost/"where ever you put things".

But I would be more then happy to accept any contribution you would be willing to send.

#4 Exerro

  • Members
  • 801 posts

Posted 25 September 2012 - 05:39 PM

can i make a suggestion? make it possible for users to host websites on a pc and then other users be able to look at the website from a different pc with rednet

#5 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 25 September 2012 - 05:43 PM

I have suggested this before for other browsers, but I think it bears repeating. If you could incorporate THIS into your browser, it would be super awesome.

#6 Left4Cake

  • Members
  • 272 posts
  • LocationEarth

Posted 25 September 2012 - 10:12 PM

 awsumben13, on 25 September 2012 - 05:39 PM, said:

can i make a suggestion? make it possible for users to host websites on a pc and then other users be able to look at the website from a different pc with rednet

You know I have an idea for that. I would might consider treating it like a lan connection. (so you would type. 192.168.1.# to connect to a given pc hosting something.) The main reason for this would really be just to avoid conflation with the web based and rednet based sites.

 Cranium, on 25 September 2012 - 05:43 PM, said:

I have suggested this before for other browsers, but I think it bears repeating. If you could incorporate THIS into your browser, it would be super awesome.

I love the idea but is that possible with out some sort of HTCPCPapi. I am not sure the HTTPapi can do that.

#7 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 25 September 2012 - 10:22 PM

I'm thinking that if you set up the "ip" addresses, you could give the funny errors if you have problems connecting to them. My favorite is "error 418: I'm a teapot."

#8 rickydaan

  • Members
  • 93 posts
  • LocationThe Netherlands

Posted 27 September 2012 - 12:46 PM

Imma sing me in dude!! Wheres the actual sign in button?

#9 tommyroyall

  • Members
  • 136 posts

Posted 27 September 2012 - 08:58 PM

How can I put pages that I've made up there?

I was wondering if I could have a folder with which to run some test files of mine. I want to write a client-side interpreter for files of which I read from this :P/>.

#10 Left4Cake

  • Members
  • 272 posts
  • LocationEarth

Posted 27 September 2012 - 11:59 PM

 rickydaan, on 27 September 2012 - 12:46 PM, said:

Imma sing me in dude!! Wheres the actual sign in button?

 tommyroyall, on 27 September 2012 - 08:58 PM, said:

How can I put pages that I've made up there?

I was wondering if I could have a folder with which to run some test files of mine. I want to write a client-side interpreter for files of which I read from this :P/>.

For the time being I cant give out log ins since I am running off my Dads server right now. However I did just get a job and when I can I will try to get a server that people can submit stuff too. (in fact if anyone has any recommendations for a hosting serves that lets me create alt logins that can only access cretin directories that would help.)

In the mean time if you would like to test something download xammp, (unless its lua only then its just like any program for CC) and set the "root" variable in firebox to /localhost/"where ever you put it" Just as long as you only use lua + php anything that works with xammp should work on the server. Send me a pm with the program with the "domain name". My only restriction is that if it share a name with a major site. ("steampowered.com", "google.com", "facebook.com", "hulu.com" ect.) that it either 1) does the same thing as it, or 2) pull information from it. Even viruss are fine, its add to the real web experions. (however you will be on the bottom of the google list for sure. :-P)

#11 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 28 September 2012 - 02:24 AM

I saw it, I used it, I like it!
Why do people always use multiple messages to send info in rednet?
Just use matching and formatting to transfer messages.

#12 Exerro

  • Members
  • 801 posts

Posted 28 September 2012 - 06:58 PM

Do you need any help btw? I did want to make an internet system but found it a bit too hard so it would be great if i could help with this one and get some of my ideas out there...

#13 Left4Cake

  • Members
  • 272 posts
  • LocationEarth

Posted 28 September 2012 - 11:07 PM

 Noodle, on 28 September 2012 - 02:24 AM, said:

I saw it, I used it, I like it!
Why do people always use multiple messages to send info in rednet?
Just use matching and formatting to transfer messages.

Well this is my first time using rednet. So any help with that would be nice.

 awsumben13, on 28 September 2012 - 06:58 PM, said:

Do you need any help btw? I did want to make an internet system but found it a bit too hard so it would be great if i could help with this one and get some of my ideas out there...

I was kind of hoping to host community content. What exactly do you have in mind.

#14 Exerro

  • Members
  • 801 posts

Posted 29 September 2012 - 10:48 AM

 Left4Cake, on 28 September 2012 - 11:07 PM, said:

 Noodle, on 28 September 2012 - 02:24 AM, said:

I saw it, I used it, I like it!
Why do people always use multiple messages to send info in rednet?
Just use matching and formatting to transfer messages.

Well this is my first time using rednet. So any help with that would be nice.

 awsumben13, on 28 September 2012 - 06:58 PM, said:

Do you need any help btw? I did want to make an internet system but found it a bit too hard so it would be great if i could help with this one and get some of my ideas out there...

I was kind of hoping to host community content. What exactly do you have in mind.

each pc is connected to a LAN that is connected to satteliites (wireless turtles). the pcs can communicate with eachother through the lan and then they can also communicate long distances through the sattellites. Also with different info going through 1 rednet message i use -:- to separate each item

#15 Left4Cake

  • Members
  • 272 posts
  • LocationEarth

Posted 29 September 2012 - 12:45 PM

 awsumben13, on 29 September 2012 - 10:48 AM, said:

each pc is connected to a LAN that is connected to satteliites (wireless turtles). the pcs can communicate with eachother through the lan and then they can also communicate long distances through the sattellites. Also with different info going through 1 rednet message i use -:- to separate each item

Wow, never would of come up with that my self. If you can do that would be great. I always headed how other people internet programs were tethered to the range of just one PC.

#16 tommyroyall

  • Members
  • 136 posts

Posted 29 September 2012 - 02:37 PM

 Left4Cake, on 28 September 2012 - 11:07 PM, said:

I was kind of hoping to host community content. What exactly do you have in mind.

So, I could use xammp to upload to this?

#17 Left4Cake

  • Members
  • 272 posts
  • LocationEarth

Posted 29 September 2012 - 04:19 PM

 tommyroyall, on 29 September 2012 - 02:37 PM, said:

 Left4Cake, on 28 September 2012 - 11:07 PM, said:

I was kind of hoping to host community content. What exactly do you have in mind.

So, I could use xammp to upload to this?

I point of xammp is to allow you to test your program if you want to use php with it. (since you need some sort of server to interpret it) Since until I get somethings worked out money wise its a manual process on my part and I don't want to be middle man in a "i need to see if I fixed line 15" process.

#18 Left4Cake

  • Members
  • 272 posts
  • LocationEarth

Posted 03 January 2013 - 12:27 PM

Made a minor update to the client and uploaded a few more sites to the database.

#19 Northfleet

  • Members
  • 9 posts

Posted 14 March 2013 - 06:31 AM

Add pornhub.com, LOL. :lol:

#20 Left4Cake

  • Members
  • 272 posts
  • LocationEarth

Posted 18 March 2013 - 02:56 PM

 Northfleet, on 14 March 2013 - 06:31 AM, said:

Add pornhub.com, LOL. :lol:

The funny thing is I really could.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users