https://github.com/sutac/strangeos
Basic UNIX-like filesystem with shell overlay build in python
https://github.com/sutac/strangeos
filesystem os python shell sqlite
Last synced: 11 months ago
JSON representation
Basic UNIX-like filesystem with shell overlay build in python
- Host: GitHub
- URL: https://github.com/sutac/strangeos
- Owner: sutaC
- Created: 2024-11-14T02:15:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-29T13:57:43.000Z (about 1 year ago)
- Last Synced: 2025-01-24T01:41:16.791Z (about 1 year ago)
- Topics: filesystem, os, python, shell, sqlite
- Language: Python
- Homepage:
- Size: 101 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# StrangeOS
Basic UNIX-like os build in python
## Technologies
- Python
- SQLite
## How to start?
- To run os run [run script](run) or execute:
```bash
python src/boot.py
```
- To clear filesystem data run [clear script](clear) or remove `filesystem.db`
## Information about system
Help with commands you will find in [help file](./src/data/helpmsg.txt) or by typing `help` in os itself.
### Filesystem base structure:
```
root
|-- bin
| `-- hi
|-- etc
| `-- help.txt
|-- home
| `-- root
| `-- hello.txt
```
### System options scheme:
Options must be saved in `options.json` file in root project directory. [Options template](options.template.json) provides default options for you to change
```
{
# System name
sysname: str ("system")
# Initial password to root user
rootpassword: str ("")
# Directory to filesystem database
dbdir: str ("filesystem.db")
# If true displays verbose error messages
verbose: bool (False)
# If true displays instruction segments
segments: bool (False)
}
```
> <option>: <type> (<default value>)