Skip to content

manijamali2003/pyboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyBoot : Booting Python kernel in computer

In the name of God, the Compassionate, the Merciful

PyBoot © 2020 Mani Jamali. Free Software GNU Lesser General Public License v3.0

  • How to install PyBoot in linux
  • How to run Python kernel on PyBoot

How to install PyBoot in linux and Run Python kernel on it

  • Install Debian 10 without any desktop (only install system utils)
  • Run Debian 10 without any desktop as root user
  • Git PyBoot from github:
git clone https://github.com/manijamali2003/pyboot
  • Copy all files in git source to /root directory:
cp -v /root/pyboot/* /root
  • Create Boot directories
mkdir -p /root/stor/boot
  • Write your simple kernel written in Python (location: /root/stor/kernel.py)
# This my tiny kernel written in Python
import sys

## Stop in prompt ##
def kstop ():
   input ("Press enter key to shutdown.")

## Kernel entry ##
def kmain (args):
   print ("Welcome to my Python kernel!")
   kstop()

if __name__ == '__main__':
   kmain(sys.argv)
  • Set default kernel in /root/stor/kernel.py
echo kernel.py > /root/stor/boot/pyboot
  • Run install.sh then reboot the system
chmod +x install.sh
./install.sh
reboot
  • After installaction of PyBoot you can see your python kernel!

About

Booting Python kernel in computer with some scripts!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors