The Arduino IDE is available on major operating systems and of course on Ubuntu or any other Linux distribution. The Arduino IDE is available for 32-bit and 64-bit versions of Linux. This is the opportunity to recycle an old PC running Windows XP to get you started programming the Arduino, ESP8266, ESP32, micro-controllers…
Recover Arduino IDE installation files
The IDE Arduino has evolved quite a bit in 10 years. You will probably find old tutorials that explain how to install the development environment by using the sudo apt-get install arduino -y command. This method is not recommended because it does not install the latest version.
To install the IDE Arduino on Ubuntu, simply go to the official site on this page and download the archive corresponding to the version of your system.
Installing the Arduino IDE
Ubuntu has an archive decompression utility (Archive Manager). At the end of the download, open the file manager and double click on the tar archive. The Archive Manager opens. Click the Extract button to unpack the archive. Unzip the folder to the destination directory directly. For example, in your user folder.
The installation script will simply create symbolic links and add an icon on the desktop as well as in the programming menu.
Open a Terminal and place it in the IDE installation folder, for example
Then run the installation script
On certain Linux distributions (including Raspbian for that matter), the installation script is problematic starting with version 1.8.1. You will most likely encounter this error message (several times)
A vendor prefix consists of alpha characters ([a-zA-Z]) and is terminated with a dash ("-"). An example filename is 'example-cc.arduino.arduinoide.desktop' Use --novendor to override or 'xdg-desktop-icon --manual' for additional info. xdg-mime: file '/home/chris/arduino-1.8.2/lib/cc.arduino.arduinoide.xml' does not exist
The solution was brought by jeryneedle on the Arduino forum here.
Open the installation script with a text editor (leafpad, geany or nano) and modify this line (line 9 for version 1.8.2)
RESOURCE_NAME = cc.arduino.arduinoide
RESOURCE_NAME = cc.arduino-arduinoide
Save and run the installation script again. This time, the shortcuts will be correctly installed on the desktop and in the programming menu.
Here, the IDE runs under 32-bit Lubuntu. This lighter version of Ubuntu 16.04 works very well on mini PC based on recycled ATOM.
- Get Started with HC-SR04, measure distance by ultrasound. Arduino code example
- ESP32, GPIO pins and associated functions. I/O, PWM, RTC, I2C, SPI, ADC, DAC
- ESP32-CAM pinout and equipments. ESP-EYE, AI Thinker, TTGO T-Camera, M5Stack Timer Camera …
- ESP32-CAM. Which model to choose? ESP-EYE, AI Thinker, TTGO T-Camera, M5Stack Timer Camera …
- M5Stack Atomic GPS. ESP32 TinyGPS++ tracker, GPX export on SD card, visualization on Google Maps or VSCode
- Home Assistant. Install the snap on Synology NAS on an Ubuntu Virtual Machine