Skip to content

pegasusOS - Modified smolOS fork to run on ESP8266 / ESP32 with internet access on command line.

License

Notifications You must be signed in to change notification settings

047pegasus/pegasusOS

 
 

Repository files navigation

pegasusOS

pegasusOS - a fork of smolOS which is a tiny and simple operating system for MicroPython (targetting ESP8266 and RP2040) giving the user POSIX-like environment to play.

pegasusOS in color version 0.7

Real Life Usecases

  • listing and removing unwanted files on board
  • checking free space
  • quicly iterating parameters for a program
  • (planned) easy expanding OS with own functions coding on the board
  • learning basics of operating disk operating system (using and modyfing)
  • connecting to network using command line

pegasusOS Features

  • Network connctivity features to the small device.
  • Changes microcontroller into a small working PC
  • Homemade for fun and learning
  • Super small and fast
  • Easy to use, simillar to MS-DOS, POSIX-like environment
  • List and manipulates files
  • Text editor included (very basic)
  • Ability to expand OS functionality with user defined code
  • Build on MicroPython
  • Stability and simplicity are the main principle behind the code
  • Free :)

Installation

Super Quick Quide

Just put main.py into the board (that has latest MicroPython firmware) and restart.

Detailed Guides

Connecting

As normal user:

$ picocom /dev/ttyUSB0 -b115200

Press ctrl+a+x to exit.

Running

First start. Or after flashing new main.py file. Restart the microcontroller:

>>> machine.soft_reset()

This should restart the device and "boot" you into the pegasusOS. Like so:




_____________________________________________________
                                        ____   _____ 
                                       / __ \ / ____|
  _ __   ___  __ _  __ _ ___ _   _ ___| |  | | (___  
 | '_ \ / _ \/ _` |/ _` / __| | | / __| |  | |\___ \ 
 | |_) |  __/ (_| | (_| \__ \ |_| \__ \ |__| |____) |
 | .__/ \___|\__, |\__,_|___/\__,_|___/\____/|_____/ 
 | |          __/ |                   ________               
 |_|         |___/                    \..__../                               
=====================================================
░█████╗░░░██╗██╗███████╗██████╗░███████╗░██████╗░░█████╗░░██████╗██╗░░░██╗░██████╗
██╔══██╗░██╔╝██║╚════██║██╔══██╗██╔════╝██╔════╝░██╔══██╗██╔════╝██║░░░██║██╔════╝
██║░░██║██╔╝░██║░░░░██╔╝██████╔╝█████╗░░██║░░██╗░███████║╚█████╗░██║░░░██║╚█████╗░
██║░░██║███████║░░░██╔╝░██╔═══╝░██╔══╝░░██║░░╚██╗██╔══██║░╚═══██╗██║░░░██║░╚═══██╗
╚█████╔╝╚════██║░░██╔╝░░██║░░░░░███████╗╚██████╔╝██║░░██║██████╔╝╚██████╔╝██████╔╝
░╚════╝░░░░░░╚═╝░░╚═╝░░░╚═╝░░░░░╚══════╝░╚═════╝░╚═╝░░╚═╝╚═════╝░░╚═════╝░╚═════╝░
-------Device Owner: Tanishq @047pegasus------
smolOS Version 0.3
MicroPython: 2.2.0-dev(9422289)
Firmware: v1.20.0 on 2023-04-26
CPU Speed: 80.0 MHz




pegasusInfo: Type [help] for pegasus manual.




pegasus $:

import and run

If you close the system or encurage a fatal error start OS again. In MicroPython REPL write:

>>> pegasusOS()

Or restart device:

>>> machine.soft_reset()

Using

Welcome screen

Write help for help :)

Example user session

Sample user session

txtEDitor

First application: ed! Almost complete but very simple text editor.

txtEDitor session

ifconfig & ping

Easy use network commands:

  • ifconfig! Almost complete but very simple network configuration command to connect to a network wirelessly and show details about connection.
  • ping! Almost complete ping utility to validate host connection using host IP address and also supports a count variable to explicitly define count value for check run.

txtEDitor session

About

pegasusOS - Modified smolOS fork to run on ESP8266 / ESP32 with internet access on command line.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%