https://github.com/user0332/fakeos
A fake OS made in Python
https://github.com/user0332/fakeos
python python3
Last synced: about 1 year ago
JSON representation
A fake OS made in Python
- Host: GitHub
- URL: https://github.com/user0332/fakeos
- Owner: User0332
- Created: 2022-05-11T01:31:47.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-23T22:59:28.000Z (over 3 years ago)
- Last Synced: 2025-01-24T06:11:46.625Z (over 1 year ago)
- Topics: python, python3
- Language: Python
- Homepage:
- Size: 236 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FakeOS
A simulation of an operating system/VM made in Python 3.9
## General Info About Files
**`.fakeos` files** - These files are used and maintained by the system, they should not be modified unless you are aware of their effects
**`filesystem/files.py`** - This file contains the filesystem in a JSON-like format, here files can be created and manipulated outside of the system
**`assets/`** - General items to be used with pygame
**`src/`** - Source of the fake kernel
**`lib/System/`** - This is the folder that holds the System API, adding `{fakeos-directory}/lib/` to the `PYTHONPATH` environment variable will allow the OS to run and will allow you to import and use the System API
**`proc/`** - Windows filesystem holding process information, each folder number represents a process id
## Running FakeOS
To run FakeOS, you must run the fakeos.py file from the root directory of the project (ex. `python src/fakeos.py`). You must then type in `boot` and hit enter. Following that, you must enter the root password (defaulted to nothing, so just hit enter), and then it will bring you to a shell where you can execute any program specified in the system PATH (`/cfg/system.path`). You can run the program `testwindow` for a draggable window to appear for 10 seconds.