Skip to content

Instantly share code, notes, and snippets.

@gforcedev
Created October 16, 2015 15:00
Show Gist options
  • Save gforcedev/0e6fe8648cb28c3dc161 to your computer and use it in GitHub Desktop.
Save gforcedev/0e6fe8648cb28c3dc161 to your computer and use it in GitHub Desktop.

#7. Installing programs.

In the terminal, type lua. It should spit out "command not found". Now do sudo apt-get install lua5.2. It will say lots and eventually let you type again. Lua has now been installed. If you type lua again, it will bring you into a lua prompt. Press ctrl+C to exit.

commandA


Here is what happened:

sudo: give you admin privelages for the fake computer. apt-get: this is the package manager. install: this is a package manager command for install new package. lua5.2: the package to install

Now you can also write a lua script and run it using this command: commandB

Now you can just write 'lua' and then the name of your file to run it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment