Skip to content

Latest commit

 

History

History
94 lines (76 loc) · 3.02 KB

README.md

File metadata and controls

94 lines (76 loc) · 3.02 KB

Liskel OS

A bare-bones OpenComputers operating system that is fast and lightweight.

Versions

Current version: LiskelOS 2.2.1

Minified version: LiskelOS 2.2.1 Compact

Previous version: LiskelOS 1.8 (Deprecated)

(Optional libraries for LiskelOS here)

Features

  • Basic lightweight file input and output library.
  • Basic lightweight graphics library.
  • Shuts down and starts up instantly on any computer.
  • Console history and command recall function.
  • Scroll up and down your console history using mousewheel (requires compatible monitor).
  • Load custom libraries and programs using liskel's built in autorun capability.
  • Lightweight enough that it can run on a potato.
  • Does not change much of the core lua libraries and does not load any unnecessary libraries into memory.
  • Perfect as a test bootloader for another operating system.
  • Basically a bare-bones operating system designed for use with developing custom BIOS'es and OS'es
  • Liskel 2.1 offers a modular design and an improved system management

Installation

To install LiskelOS follow these steps:

  • In OpenOS, mount an empty drive (mount)
  • Go into where the drive is mounted (cd)
  • Create an init.lua file in the drive using the text editor (edit init.lua)
  • Copy the LiskelOS code from here: liskel2.lua
  • Paste the code into the new file. [Middle Mouse Button] or [Insert] to paste
  • Press [Ctrl-S] to save and [Ctrl-W] to exit the text editor
  • Shutdown and remove other drives with an OS to ensure that LiskelOS is selected by the EEPROM at boot
  • Start up the computer

How to use

  • Note: Some commands in OpenOS are not available in Liskel since they are implemented in OpenOS and thus are not in the core libraries. *

  • Based on OS 2.1 *

Print to console:

print("hello world!")

Getting a file handler

-- returns a file handler which can be used as a parameter for other commands
f.open("openfile.txt")

Reading a file:

-- read file contents to console
print(f.readfile(f.open("afile.txt")))

Writing to file:

f.write(f.open("newfile.txt"),"text to write out")

Run a lua file:

-- no need to put .lua on the end of the filename
f.run("luafile")

Print a table

-- prints the table named 'mytable'
print(mytable)

Print out system tables

-- alternatively this can be used to print out the functions in a table like 'component'
-- examples:
print(component) -- prints out functions provided by component
print(f) -- prints all functions provided by the built in file IO library
print(component.filesystem.address) -- prints out filesystem UUID
print(_G) -- prints out all functions and tables in global (2.1 only)

And much more! Just use the print feature above!