superPyOS- the glitch-born operating system written in python!

Project URL: https://glitch.com/edit/#!/python-os

for years, nobody has made an os using only standard library modules and a few pip modules thrown in.

We did.


introducing SuperPyOS, the operating system that uses several modules in your python installation and supports virtualisation (virtualenv).

I was helped by @J-Tech-Foundation, who wrote the boot scripts and this is our result. a WIP but it currently supports:

  • a ‘debug mode’
  • clears screen without problems
  • filesystem methods such as ls and cd (still in progress)
  • virtualenv, our QEMU substitute.

try it! remix and give it a shot. We are still in development at the moment so some features will be rough around the edges.

couple of comments on the current implementation, potential issues:

  1. lots of scripts fork and exec themselves with os.system. and they would wait for the child… doesn’t this lead to way too many processes? for example, in the main prompt press enter without typing a command several times. you’d get a big chain of python processes, right? go in another terminal and run top and press V to see what processes are running
  2. the command to activate the virtualenv forks a separate shell and sources the activate script, but then that shell would exit, and it would have no effect on the surrounding interpreter. have you tested that?
1 Like

to make a note, debug mode is actually developer mode…

and no, we have not yet tested virtual env, but we will soon

and also, it will support an interactive screen, instead of just terminal


note: i am working on making the os compress the data made by the user, well, actually everything except for the boot file so it decompresses, then runs everything.
it will add a lot more lag time to boot, but if glitch is something we would like this to run on, we gotta do it!

another note: all the data gets saved in a custom directory… more on that later on!


update

after about an hour+ of working, i got the first linux distribution ready to go!

the first release will be available on a non-affiliated github repo, with all the source code!

look forward to this soon!


also, all issues will be posted on the repo aswell, and they will be fixed, until an official one is released by @17lwinn because i am not the founder of this project, i am only the assistant and remixer!

I love how more people are thinking of developing Python apps on glitch. By the way I think it would be useful to add a help command to explain things for a new person. Also the boot script should detect when you are using the wrong version of python because I accidentally used python 2 at first which caused an error for package installation.

1 Like

we understand this… the main package for linux will be released, and with it, a file that you can put into something like the .data folder, and run it like ./.data/pyos

ez pz lemon sqeezy


also, if you saw the spoiler i had there for a few minutes, you may have seen the package name is incorrect… i will fix that

i will create the official repo and will get back to you!

we could create a tutorial script, tells the user about it’s uses, who and why it was created etc

we may have to delete or privatise the VENV folder

new update

Script shuts down if python version is below 3.0.0

1 Like