1.Download LuaNode and toolchains
You can download LuaNode on Linux by the following command:
git clone https://github.com/Nicholas3388/LuaNode.git
Make sure you have git installed, if not, install it by the command: sudo apt install git.
Download toolchains by: git clone https://github.com/jmattsson/nodemcu-prebuilt-toolchains.git
2 .Download other usefull tools
ESPlorer: is a Integrated Development Environment (IDE) for ESP8266 developers. LuaNode is compatible for Esplorer. Developers can use it to run and test lua program, as well as download lua code to ESP32.
Check out http://chilipeppr.com/esp32 for a new web ide for esp32 for lua. There is a precompiled firmware binary as well in that site so you don't have to do it on your own.