Lubuntu 18.04 LTS Development Environment - JRInge/ha GitHub Wiki

Chosen as a reasonably lightweight OS to run on an old 32-bit Intel Core Duo laptop, to program the ESP32 MCU.

Get up-to-date as follows:

$ sudo apt update
$ sudo apt full-upgrade

At time of writing, this gave Lubuntu 18.04.5.

LTSpice under Wine

Add the WineHQ Ubuntu repository.

Get and install the repository key, then add the repo.

$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
$ sudo apt-key add winehq.key
$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
$ sudo apt update

Install Wine

$ sudo apt install --install-recommends winehq-stable

It wasn't necessary to separately download other packages.

Install LTSpice

  1. Download LTSpiceXVII.exe for Windows 7, 8 and 10, from Analogue Devices
  2. Execute LTSpiceXVII.exe using the Wine Program Runner.
  3. LTSpice should install, creating menu items and a desktop icon, and downloading several required packages automatically (wine-mono and wine-gecko).
  4. Add any extra components necessary from LTWiki

Programming ESP32 board with Lubuntu 18.04 LTS i386.

  1. Install Arduino IDE as per the instructions, choosing 32-bit download.

  2. Install pip if not already present: sudo apt install python-pip

  3. Install Python serial library: sudo pip install pyserial.

  4. Add user to dialout group to allow access to USB port:

    $ sudo usermod -a -G dialout

  5. Open Arduino IDE, and add Espressif Systems repo to the list of additional Board Manager URLs in Preferences:

    https://dl.espressif.com/dl/package_esp32_index.json

  6. In Board Manager, install the ESP32 board, and select the right model (Wemos D1 Mini ESP32, in this case).

  7. In Tools, select the correct port. e.g. /dev/ttyUSB0 for wired USB connection, or IP address for Over-The-Air (OTA) update. Must use wired connection for initial firmware load. OTA only available if an OTA-enabled sketch has already been programmed.

⚠️ **GitHub.com Fallback** ⚠️