UbuntuUbuntu Based

How To Install Arduino on Ubuntu 24.04 LTS

Install Arduino on Ubuntu 24.04

In this tutorial, we will show you how to install Arduino on Ubuntu 24.04 LTS. Arduino IDE (Integrated Development Environment) is the software that allows you to write, compile, and upload code to your Arduino board. It provides a user-friendly interface and a wide range of features to simplify the programming process. With the release of Arduino IDE 2.0, significant enhancements have been made, including improved performance, a more intuitive user interface, and extended compatibility with various Arduino boards. While Arduino IDE 1.x versions are still widely used, embracing the latest 2.x version is recommended to leverage the most up-to-date features and optimizations.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the Arduino on Ubuntu 24.04 (Noble Numbat). You can follow the same instructions for Ubuntu 22.04 and any other Debian-based distribution like Linux Mint, Elementary OS, Pop!_OS, and more as well.

Prerequisites

  • A server running one of the following operating systems: Ubuntu and any other Debian-based distribution like Linux Mint.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • An active internet connection. You’ll need an internet connection to download the necessary packages and dependencies.
  • An Ubuntu 24.04 system with root access or a user with sudo privileges.

Install Arduino on Ubuntu 24.04

Step 1. Preparing Your System.

Before proceeding with the installation, it’s crucial to ensure that your Ubuntu system is up to date. Open a terminal and execute the following command to update the package lists and upgrade any existing packages:

sudo apt update
sudo apt upgrade

This command will fetch the latest package information and install any available updates, providing a stable and secure foundation for the Arduino IDE installation.

Step 2. Installing Arduino on Ubuntu 24.04.

  • Method 1: Install Arduino IDE using apt

The apt package manager is the default package management system in Ubuntu, making it a convenient choice for installing Arduino IDE. Follow these steps to install Arduino IDE using apt:

sudo apt install arduino

After the installation is complete, verify that Arduino IDE is installed by launching it from the Activities menu or by running the following command in the terminal:

arduino
  • Method 2: Install Arduino IDE using AppImage.

To get the latest version of Arduino IDE, visit the official Arduino website. Look for the Linux AppImage download option compatible with 64-bit systems. AppImage is a universal software package format that allows you to run applications without installation, making it an excellent choice for Ubuntu users.

Next, open a terminal and navigate to the directory containing the downloaded AppImage file. If you saved it in the Downloads folder, use:

cd ~/Downloads

Make the AppImage executable by running:

chmod +x arduino-ide_*_Linux_64bit.AppImage

Now, you can run the Arduino IDE by executing:

./arduino-ide_*_Linux_64bit.AppImage

The Arduino IDE will launch, and you can start using it right away.

Using an AppImage offers the advantage of portability, as you can easily move the AppImage file to any location on your system or even to another computer without the need for reinstallation.

Step 3. Configure User Permissions.

To enable your user account to access the serial ports and communicate with the Arduino board, you need to add yourself to the dialout group. Run the following command in the terminal:

sudo usermod -aG dialout $USER

This command adds your user to the dialout group, granting the necessary permissions. However, for the changes to take effect, you need to log out of your current session and log back in. Alternatively, you can restart your system.

Congratulations! You have successfully installed Arduino. Thanks for using this tutorial for installing the Arduino on the Ubuntu 24.04 LTS system. For additional help or useful information, we recommend you check the official Arduino website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

r00t

r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to idroot.us, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button