A lightweight Linux distro written almost completely with Python!
The system is organized into a modular directory structure mimicking a traditional Unix layout:
bin/: Contains core user utilities.sbin/: Reserved for system administration binaries and low-level power management infrastructure.etc/: Stores system-wide configuration data, including operating system details
The bootstrapping layer for PythOS built on top of the curses library. It handles system startup and presents an interactive logon interface.
- Features: Includes options for system logon, machine reboots, halts, and power-offs.
The central interactive command-line interpreter executing the user loop.
- Path Resolution: Traverses environment lookups prioritizing local script overrides.
- Execution Handler: Parses file shebang headers natively and isolates execution permissions to prevent shell environment crashes.
Handcrafted Python implementations of traditional system utilities optimized with standard argparse execution schemas.
(for Windows users. Skip if you know how to dualboot Linux, but please do not ignore step 6 when flashing): Prerequisites:
- Rufus (download from here)
- PythOS ISO (download from below)
- A USB (at least 200MB)
Steps:
- Plug in your USB and run Rufus you have just downloaded
- Select your USB device in the "Device" dropdown menu
- In the "Boot selection" dropdown, select "Disk or ISO image (Please select)"
- Select PythOS ISO file
- Click START
- Select DD mode as the flash mode instead of ISO mode (ISO mode will NOT work) and click OK
- Wait for it to flash
- Reboot your computer after flashing and enter UEFI boot menu
- Select the USB flash drive
- Select PythOS Phoenix
- ENJOY!
- Boots grub bootloader
- Boots Linux kernel
- Loads init script
- Loads init.py from sbin/
- Tries to load pysh.py from bin/ -> If fails or user exits pyshell, it falls back to init.py as a logon menu (written with ncurses)
- This is a protection mechanism that prevents kernel panic (which needs us to force reboot the PC)
