Skip to content

πŸš€ Simulate a Linux Distro right in your web browser. Run commands, manage files and explore a sleek GUI.

License

Notifications You must be signed in to change notification settings

zenlinuxos/ElectronOS

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Electron Logo

A Toy Linux Distro written in JavaScript

Issues Stars License

Overview

ElectronOS is a toy Linux emulator designed to simulate a Debian-based Linux environment. It supports basic commands typically found in such systems, allowing users to practice and familiarize themselves with terminal operations in a controlled, browser-based environment.

Features

  • User Management: Add and switch between multiple local users.
  • System Update and Upgrade: Simulate the update and upgrade of repositories and packages.
  • File System Navigation: Navigate through directories, list storage contents, and print the working directory.
  • System Information: Display basic system information like the distro version.

Screenshots

CLI (Command Line Interface)

screenshot

GUI (Graphical User Interface)

Can be started using 'gui --start'

Supported Commands

  • sudo su: Access the root user.
  • sudo apt update: Update the repository index.
  • sudo apt upgrade / sudo apt upgrade -y: Upgrade installed packages.
  • cd <directory>: Change the current directory.
  • ls: List the contents of the current directory.
  • pwd: Print the current working directory.
  • adduser <username>: Add a new local user.
  • login <username>: Log into an existing local user.
  • whoami: Print the current username.
  • exit: Exit the root user session.
  • uname -a: Display the current version of the distribution.
  • ifconfig: Display information about your network.
  • trace -m: Get information about your own IP Address.
  • trace -t <ip addr>: Get information about the entered IP Address.

v1.1.3 beta Update

  • mkdir <directory>: Create a new directory.
  • rmdir <directory>: Remove an empty directory.
  • rm <file>: Remove a file.
  • rm -rf <directory>: Remove a directory and its contents recursively.
  • nano <filename>: Create or edit a file.
  • cat <filename>: Display the content of a file.
  • gui --start : Start the Desktop environment.

Accessing or modifying root directories is prohibited.

The GUI is under development and some features might not work!

To exit the GUI simply refresh the webpage.

More commands will be added soon...

v1.1.4 update

A functional File Manager

screenshot

A functional 'Pictures' sub-folder

screenshot

screenshot

Issues & Fixes βš’

ls: cannot access 'undefined': No such file or directory: This issue may arise if the cached data interferes with the new implementation of LocalStorage to store data locally in the browser.

Fix: Clearing cookies and site data can fix this issue.

This issue will be fixed in the next update πŸš€

About

πŸš€ Simulate a Linux Distro right in your web browser. Run commands, manage files and explore a sleek GUI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 55.5%
  • HTML 35.9%
  • CSS 8.6%