rdmsr / pythonOS

what have I done

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I build this/how can I recrate this?

TechStudent10 opened this issue · comments

Update: So I figured it out.

  1. You need Linux. There is no escaping Linux when creating OSes.
  2. You'll need Python 3.10. Here's a guide on how to upgrade: https://python.plainenglish.io/a-guide-to-upgrade-your-python-to-3-10-c0cb82ba662d
  3. You'll also need to install qemu. So run these two commands.
sudo apt install qemu
sudo apt install qemu-system-x86-64
  1. You'll need to do some refactoring.
    1. In build.py, wherever you are executing a Python file, change python to python3.10.
    2. Change line os.system("./scripts/make_image.py") to os.system("python3.10 ./scripts/make_image.py").
    3. I am not sure about the rest. If you have problems, let me know here.
  2. Run python3.10 build.py and you should have a .iso file and QEMU should open. You then need to press enter on your keyboard for it to load.

Yes, Linux is very good for developing operating systems. But, there are ways to counter only using Linux. brew is a good package manager that does include qemu and Python 3.10 for macOS. I'm not sure about Windows, but I'm definitely sure there's software for it.

On Windows I'm just using WSL with Ubuntu.

Closing in favor of rdmsr/snek#2