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.
- HC-SR04 (ultrasound) vs Sharp GP2Y0A02YK0F (IR) vs VL53L0X (Laser), which solution to choose for distance measurement with Arduino or Raspberry Pi
- Test and Calibrate Sharp GP2Y0A02YK0F Asian Clone proximity Sensor
- Test the IDE XOD, develop Arduino projects without programming by assembling blocks
- BH1750 (GY-302), measure the lighting quality of your home (Arduino / ESP8266 / ESP32)
- Calculate the Air Quality Index (IAQ, IQA) with a DSM501 on Arduino or ESP8266
- Install the Arduino IDE (1.8 or higher) on Linux (Ubuntu 16.04 or later)