Arduino

Installing Arduino IDE on Debian 10

According to the official website of Arduino, “Arduino is an open-source electronics platform based on easy-to-use hardware and software. Arduino boards are able to read inputs – light on a sensor, a finger on a button, or a Twitter message – and turn it into an output – activating a motor, turning on an LED, publishing something online. You can tell your board what to do by sending a set of instructions to the microcontroller on the board. To do so you use the Arduino programming language (based on Wiring), and the Arduino Software (IDE), based on Processing.”

In this article, I am going to show you how to install Arduino IDE on Debian 10. So, let’s get started.

Installing Arduino IDE from the Official Debian 10 Repository:

Arduino IDE is available in the official package repository of Debian 10 Buster. So, you can easily install it on your Debian 10 machine using the APT package manager.

First, update the APT package repository cache with the following command:

$ sudo apt update

The APT package repository cache should be updated.

Now, install Arduino IDE with the following command:

$ sudo apt install arduino

Now, press Y and then press <Enter> to continue.

APT package manager will download and install all the required packages.

Arduino IDE should be installed at this point.

Now, you have to add your Debian 10 login user to the dialout group. Otherwise, you will not be able to upload your Arduino codes to the Arduino microcontroller.

To add your Debian 10 login user to the dialout group, run the following command:

$ sudo usermod -aG dialout $(whoami)

Now, restart your Debian 10 machine with the following command:

$ sudo reboot

Once your computer starts, you can find the Arduino IDE in the application menu of Debian 10. Click on the Arduino IDE icon to start it.

Arduino IDE should start as you can see in the screenshot below.

If you go to Help > About Arduino, you can see that the Arduino IDE version is 1.0.5. It is really old.

In the next section, I am going to show you how to install the latest Arduino IDE from the official website of Arduino.

Installing Arduino IDE from the Official Website:

It is easier to get Arduino IDE installed from the official Debian 10 package repository but as the IDE version is very old, it may cause a lot of problems for you. But don’t worry. You can download and install the latest version of Arduino IDE from the official website of Arduino.

First, visit the official Arduino IDE page from your favorite web browser. Now, scroll down a little bit and click on Linux 64 bits link as marked in the screenshot below.

If you want, you can donate to the Arduino project. If you don’t want to donate, just click on JUST DOWNLOAD button as marked in the screenshot below.

Your browser should prompt you to save the Arduino IDE archive. Select Save File and click on OK.

Your browser should start downloading the Arduino IDE archive. It may take a while to complete.

Now, navigate to the ~/Downloads directory with the following command:

$ cd ~/Downloads

You should be able to find the Arduino IDE archive that you’ve just downloaded as you can see in the screenshot below. Remember the archive name.

$ ls -lh

Now, extract the archive in the /opt directory with the following command:

$ sudo tar xvJf arduino-1.8.9-linux64.tar.xz -C /opt

The archive should be extracted to the /opt directory.

A new directory should be created in the /opt directory as you can see in the screenshot below. Remember the directory name.

$ ls -lh /opt

Now, run the following command to create a desktop launcher for Arduino IDE and add a symbolic link of the Arduino executable to the PATH.

$ sudo -E /opt/arduino-1.8.9/install.sh

Arduino IDE desktop launcher/shortcut should be created. You can also access the Arduino executable from the command line.

Now, you have to add the Debian 10 login user to the dialout, tty, uucp and plugdev group. Otherwise, you won’t be able to upload your Arduino code to the Arduino microcontroller.

To add the Debian 10 login user to the dialout group, run the following command:

$ sudo usermod -aG dialout $(whoami)

To add the Debian 10 login user to the tty group, run the following command:

$ sudo usermod -aG tty $(whoami)

To add the Debian 10 login user to the uucp group, run the following command:

$ sudo usermod -aG uucp $(whoami)

To add the Debian 10 login user to the plugdev group, run the following command:

$ sudo usermod -aG plugdev $(whoami)

Now, restart your Debian 10 machine with the following command:

$ sudo reboot

Once your computer starts, you should be able to find Arduino IDE in the Application Menu of Debian 10 as you can see in the screenshot below. Click on it to start the Arduino IDE.

Arduino IDE should start.

As you can see from Help > About Arduino, I am running Arduino IDE 1.8.9. This is the latest version of Arduino IDE at the time of writing.

So, that’s how you install Arduino IDE on Debian 10. Thanks for reading this article.

About the author

Shahriar Shovon

Freelancer & Linux System Administrator. Also loves Web API development with Node.js and JavaScript. I was born in Bangladesh. I am currently studying Electronics and Communication Engineering at Khulna University of Engineering & Technology (KUET), one of the demanding public engineering universities of Bangladesh.