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.
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.
- Download
LTSpiceXVII.exe
for Windows 7, 8 and 10, from Analogue Devices - Execute
LTSpiceXVII.exe
using the Wine Program Runner. - LTSpice should install, creating menu items and a desktop icon, and downloading several required packages automatically (
wine-mono
andwine-gecko
). - Add any extra components necessary from LTWiki
-
Install Arduino IDE as per the instructions, choosing 32-bit download.
-
Install
pip
if not already present:sudo apt install python-pip
-
Install Python serial library:
sudo pip install pyserial
. -
Add user to
dialout
group to allow access to USB port:$ sudo usermod -a -G dialout
-
Open Arduino IDE, and add Espressif Systems repo to the list of additional Board Manager URLs in Preferences:
-
In Board Manager, install the ESP32 board, and select the right model (Wemos D1 Mini ESP32, in this case).
-
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.