Giter VIP home page Giter VIP logo

hatonthecat.github.io's Introduction

One of the goals of this page is to determine how to develop a webpage that can host thousands of concurrent connections on a lightweight System on a chip, such as a raspberry Pi.

https://en.wikipedia.org/wiki/Yaws_(web_server)

"https://web.archive.org/web/20070118063239/http://www.sics.se/~joe/apachevsyaws.html "Machine 2 requests 20 KByte pages from machine 1. It does this in tight a loop requesting a new page as soon as it has received a page from the server."

I installed an Apache Server on a Raspberry Pi 3B+ with Noip.com, MariaDB, php admin webpage less than 500 bytes.image Ideally, it would be used to host a BBS-like system, but with additional features.

The website is hosted at: http://buoy.hopto.org/ A couple tutorials were used:

https://peppe8o.com/lamp-server-on-raspberry-pi/

the above tutorial is thorough, although it took 3-4 tries to install MariaDB. In terminal, it could not fetch all the packages, so I retried without issue. Possibly the server or wifi connection was not good.

Edit: I removed MyAdminPHP and MariaDB since i was only serving static pages.

Also, permissions to edit and remove /var/www/html and replace it with my own page is listed here:

https://forums.raspberrypi.com/viewtopic.php?t=297575

"This allows you (pi) to read and write to that directory and apache to read from that directory. So how do you do that?

sudo chown pi:www-data /var/www/html

sudo chmod 755 /var/www/html "

Another goal of this project is to explore hosting simple servers on a microcontroller, with an OS such as FreeRTOS or Zephyr: https://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCP_Networking_Tutorial.html

https://elinux.org/images/1/18/Rissanen.pdf The Apache Server on my Raspbian OS, using a Raspberry Pi 3+ uses just under 200MB of RAM to host a couple 512byte pages. More than likely, that much RAM is not needed, and could likely be done on just 2MB of RAM or less. Hosting a Gopher or Gemini server may be a simpler protocol, although all internet protocols will be explored. I haven't hosted an HTTP site in over 15 years, so give me a break :) I actually wrote a lot more on that page. It was called Witsy.com, and it was hosted on https://www.knightsbridge.net/index.html for a year or two. I used CuteFTP or Filezilla to upload static pages, similar to the pages I have now, except that I host the server now. I would have kept it but I graduated college and I had other careers to pursue.

hatonthecat.github.io's People

Contributors

hatonthecat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.