How to Quick-Start with LUA 5 on Lubuntu 15.10 Wily Linux+GNU

September 30, 2015 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Lua Quick Start for Lubuntu Linux

You are Welcome! The Tutorial Shows You Step-by-Step How to Install and Getting-Started with LUA 5.x Programming via the Apt Package Manager on Lubuntu 15.10 Wily Werewolf i386/amd64 GNU/Linux Desktop/Server.

Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics.

Lua is dynamically typed, runs by interpreting bytecode for a register-based virtual machine, and has automatic memory management with incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.

LUA Quick Start for Lubuntu 15.10 Wily Linux - Featured
  1. Open a Shell Terminal emulator window
    Ctrl+Alt+t on Desktop
    (Press “Enter” to Execute Commands)

    LUA Quick Start for Lubuntu Linux - Featured
  2. Installing LUA 5.x on Lubuntu

    For LUA 5.3:

    sudo apt-get install lua5.3

    For LUA 5.2:

    sudo apt-get install lua5.2

    For LUA 5.0:

    sudo apt-get install lua50

    If Got “User is Not in Sudoers file” then see: How to Enable sudo
    Testing installation:

    which lua
  3. Executing LUA Hello-World Example

    mkdir ~/Documents/lua
    cd ~/Documents/lua
    nano hello.lua


    Print("Hello World!")

    Ctrl+x to Save & Exit from nano editor :)
    To Run the LUA Hello-World script:

    lua hello.lua

    You’ll be Greeted with an: “Hello World!”

  4. Official LUA Docs onLine Tutorials

    LUA Tutorial Directory

Tags: , , , , , , , , , , , , , , , , , , , ,