I know this is possible but can I make a basic Linux Distribution that can boot straight to Python terminal.
Bootloader -> Linux -> INIT -> Python
Is that all I need, sure I can I write the INIT Program in C?
Are you trying to do some kind of bare metal thing, but you can't be because you say linux is booting first. You can just put python in your pi .bashrc file and automatically login to the prompt. This will put you in the python REPL, which is what you are asking for, I think.TrapdoorSmoke wrote:I know this is possible but can I make a basic Linux Distribution that can boot straight to Python terminal.
Bootloader -> Linux -> INIT -> Python
Is that all I need, sure I can I write the INIT Program in C?
If what you want is to have some specific Python script run when the system boots up, you can put a call to it at the end of /etc/rc.local (there are fancier newer ways to do this, but the old way still works). If what you really want is a system that boots up to the ">>>" prompt of Python's REPL, then you could use the "raspi-config" utility to set "Boot Options" to "Console Autologin", then add an entry to the end of your ~/.profile script to run Python. But, a) this isn't very practical (because then the only thing you can do it test out bits of python code, you can't actually write and save anything substantial, and b) this will be fairly hard to undo - because now restarting the Pi will always bring you to Python's ">>>" prompt - and it's quite difficult to undo the changes to your .profile from there.TrapdoorSmoke wrote:I know this is possible but can I make a basic Linux Distribution that can boot straight to Python terminal.
Bootloader -> Linux -> INIT -> Python
Oh, and if I wasn't clear, with the pyboard you can connect to it and get python's REPL promptCarlRJ wrote: (Oh, and MicroPython is pretty cool - watched someone give a short talk this evening about running MicroPython on a very cheap ESP8266 board, and that's a system where you really can connect to it and get Python's ">>>" prompt.)
hi, the Python REPL (Read Execute Print Loop) is not a shell.TrapdoorSmoke wrote:Just wanted to make a OS with Python shell because the shell is much like bash