Okay this is a side project that got way out of hand after I finished working on that hive-file-chunker this morning.
The hive-fc-linux project can be found here with example outputs.
The repository can be found at:
https://github.com/txtatech/hive-fc-linux
Note: The 'fc' in 'hive-fc-linux' stands for File Chunker!
The basic premise is that I use the file chunker script to turn the 'linux in a browser' files into 57 individual JSON files (at 3.5 megabytes total) that all have a character size that will fit inside a single block... with a little wiggle room for errors... and later use for hashing and blockid stamping.
There is still much to be done on the project but so far I have all the file chunking achieved.... and while I could just begin writing them to blocks manually... I think that much more further testing is in order first.
Basically I want to develop a robust method for the posting mechanism as well as the fetching and decoding mechanisms.
While I do not think that it would take very much to retrieve the blocks, re-assemble them in the correct order... and decode them into usable files in the browser... it is a lot to work out.
Given how flexible the framework is (with V86) it should not be all that problematic to get the Linux to load in the browser once all the files are available in the browser itself.
Ideally custom made (and possibly encrypted) Linux.iso files could be used that contain logic for handling and executing Smart Contracts or managing a DAO.
Please note that the 'linux.iso' file that I use in the project has not been security audited. It was one of the smallest and easiest to use ones that I could find and is for testing purposes only.
Okay, that is about all there is to it at the moment! I might update this post later as the project progresses. If it turns out to be feasible.
Notes:
Some other possible solutions include:
Using WasmEdge instead of V86 for emulation.
Deploying NodeOS instead of Linux
Store Buildroot on the blockchain to generate custom embedded Linux systems.
Directly writing Docker files to the blockchain for deployment.
Want to join Hive?
That Is All For Now!
Cheers! & Hive On!