After rewriting code for 7 hours and building the ISO file for more than 5 hours, I have finally built a bootable PythOS ISO file!!!
What I have rewritten, was pysh.py to optimize the shell.
I’ve also fixed a TypeError of PosixPath + str in ls.py.
How the OS works:
- 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)
How to dualboot:
(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 the releases page)
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!
NOTE:
If your computer uses legacy BIOS instead of UEFI, I’m sorry… I’ll be adding BIOS support very soon tho :)
Other architecture builds of the OS will be released very soon. The current supported arch is x86_64 (64-bit)
P.S. You might be wondering if you’ll need to type in “.py” for running my scripts in bin, you don’t. Simply type in the command without .py, it’ll be good to go. Of course you CAN type in .py if you want, but it would basically be your choice mate